Files
sbox-public/engine/Definitions/tools/widgetutil.def
Tony Ferguson e66a1a64e2 New splash screen (#4093)
- Add progress bar, project name
- No more stacked messages
- Frameless, can drag from anywhere
- Projects can override splash image with "splash_screen.png" in project root

https://files.facepunch.com/tony/1b1911b1/sbox-dev_Eqcq1EOeav.png
2026-02-19 21:48:58 +00:00

36 lines
1.4 KiB
Modula-2

native enum Qt::CursorShape is Editor.CursorShape;
native static class WidgetUtil Native.WidgetUtil
{
static void OnObject_Destroyed( QObject obj, CastTo[WidgetUtil::callback] IntPtr method );
static void OnMenu_AboutToShow( QMenu obj, CastTo[WidgetUtil::callback_menu] IntPtr method );
static void OnMenu_AboutToHide( QMenu obj, CastTo[WidgetUtil::callback_menu] IntPtr method );
static int GetChildrenCount( QObject obj );
static int GetChildren( QObject obj, QObject[] childrens, int max );
static QGraphicsView CreateGraphicsView( QWidget parent, GraphicsView managedObject );
static QGraphicsProxyWidget CreateGraphicsProxy( QGraphicsItem parent, GraphicsWidget managedObject );
static void PostKeyEvent( QWidget target, int key );
static void PaintSetFont( QPainter painter, string fontName, int size, int weight, bool italic, bool heightInPixels );
static SwapChainHandle_t CreateSwapChain( QWidget target, RenderMultisampleType_t nMSAAAmount );
static bool UpdateSwapChainMSAA( SwapChainHandle_t swapChain, RenderMultisampleType_t nMSAAAmount );
static void SetWindowNoActivate( QWidget widget );
// Make an entire frameless window draggable by its client area
static void MakeWindowDraggable( QWidget widget );
//
// Text measuring tools
//
Vector4 MeasureText( QRect rect, int flags, string text );
QString ElidedText( string text, int width, int mode, int flags );
static void ConstrainToScreen( QWidget widget );
}