25 #if defined(EXPERIMENTAL_QOPENGLWIDGET)
30 #if !defined(EXPERIMENTAL_QOPENGLWIDGET)
46 static bool hasServer();
55 bool meetsMinRes( )
const;
61 bool windowUnderCursor(
RE_IDType wid,
int x,
int y)
const;
68 bool getColorUnderCursor(
float color[3])
const;
70 #if defined(EXPERIMENTAL_QOPENGLWIDGET)
77 #if defined(EXPERIMENTAL_QOPENGLWIDGET)
87 bool GLSwapBuffers(
RE_Window *currentWindow);
88 #if defined(EXPERIMENTAL_QOPENGLWIDGET)
102 static int primaryScreenNum();
103 static int numScreens();
108 static int screenContaining(
const QWidget *widget);
110 static int screenContaining(
int x,
int y,
bool native=
false);
111 static const UT_DimRect &screenArea(
int screen_num);
112 static const UT_DimRect &nativeScreenArea(
int screen_num);
113 static const UT_DimRect &workArea(
int screen_num);
114 static const UT_DimRect &nativeWorkArea(
int screen_num);
115 static const UT_DimRect &displayScreenArea(
int screen_num);
116 static const UT_DimRect &displayWorkArea(
int screen_num);
117 static fpreal screenToDeviceScale(
int screen_num);
118 static fpreal physicalDPI(
int screen_num);
127 static void toScreenCoords(
int &
x,
int &
y);
128 static void fromScreenCoords(
int &
x,
int &
y);
135 static void toScreenScale(
int screen,
int &
value);
136 static void fromScreenScale(
int screen,
int &
value);
140 void addCurrentMainWindow(
RE_Window *win);
143 void removeCurrentMainWindow(
RE_Window *win);
153 RE_Window *getFirstCurrentMainWindow()
const;
169 static bool isAppExiting();
174 static void setAppExiting();
177 #if defined(EXPERIMENTAL_QOPENGLWIDGET)
182 bool makeContextCurrent(
196 static int myMinXRes;
197 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