25 #if defined(EXPERIMENTAL_QOPENGLWIDGET)
30 #if !defined(EXPERIMENTAL_QOPENGLWIDGET)
43 static bool hasServer();
52 bool meetsMinRes( )
const;
58 bool windowUnderCursor(
RE_IDType wid,
int x,
int y)
const;
65 bool getColorUnderCursor(
float color[3])
const;
67 #if defined(EXPERIMENTAL_QOPENGLWIDGET)
74 #if defined(EXPERIMENTAL_QOPENGLWIDGET)
84 bool GLSwapBuffers(
RE_Window *currentWindow);
85 #if defined(EXPERIMENTAL_QOPENGLWIDGET)
99 static int primaryScreenNum();
100 static int numScreens();
101 static int screenContaining(
int x,
int y,
bool native=
false);
102 static const UT_DimRect &screenArea(
int screen_num);
103 static const UT_DimRect &nativeScreenArea(
int screen_num);
104 static const UT_DimRect &workArea(
int screen_num);
105 static const UT_DimRect &nativeWorkArea(
int screen_num);
106 static const UT_DimRect &displayScreenArea(
int screen_num);
107 static const UT_DimRect &displayWorkArea(
int screen_num);
108 static fpreal screenToDeviceScale(
int screen_num);
109 static fpreal physicalDPI(
int screen_num);
118 static void toScreenCoords(
int &
x,
int &
y);
119 static void fromScreenCoords(
int &
x,
int &
y);
126 static void toScreenScale(
int screen,
int &
value);
127 static void fromScreenScale(
int screen,
int &
value);
131 void addCurrentMainWindow(
RE_Window *win);
134 void removeCurrentMainWindow(
RE_Window *win);
144 RE_Window *getFirstCurrentMainWindow()
const;
160 static bool isAppExiting();
165 static void setAppExiting();
168 #if defined(EXPERIMENTAL_QOPENGLWIDGET)
173 bool makeContextCurrent(
187 static int myMinXRes;
188 static int myMinYRes;
static fpreal64 getDragDelay()
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
RE_IDType getFocusWindow() const
#define SYS_NO_DISCARD_RESULT
QOpenGLContext * RE_OGLContext