mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-02-08 13:40:58 -05:00
Recreating it works fine on Intel GPU, no issues on validation but didnt work on other cards, there is a better way to do this from native without dangling around Fixes https://github.com/Facepunch/sbox-issues/issues/9675
34 lines
1.3 KiB
Modula-2
34 lines
1.3 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 );
|
|
|
|
//
|
|
// 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 );
|
|
}
|