19 #include <QApplication> 25 #define EXITING_DUE_TO_WINDOW_CLOSE 106 29 class QSGLApplication :
public QApplication {
31 QSGLApplication(
int& argc,
char *argv[]);
32 bool notify(QObject* receiver, QEvent* e)
override;
43 class QtGui :
public QObject {
50 void exitGraphics(
int exitCode = 0);
58 string getApplicationDisplayName()
const;
70 char** getArgv()
const;
82 static QtGui* instance();
87 void setArgs(
int argc,
char** argv);
95 void startBackgroundEventLoop(GThunkInt mainFunc,
bool exitAfter =
true);
97 void startEventLoop(
bool exitAfter =
true);
104 void processEventFromQueue();
107 Q_DISABLE_COPY(QtGui)
115 QSGLApplication* getApplication();
121 static QSGLApplication* _app;
122 static QThread* _qtGuiThread;
123 static GThread* _studentThread;
124 static QtGui* _instance;
126 friend class GEventQueue;
void studentThreadHasExited(string reason)
Definition: qtgui.cpp:164
Definition: console.h:293
This class represents a graphics window that supports simple graphics.
Definition: gwindow.h:98
The GThread class is a utility class containing static methods that allow you to run code on various ...
Definition: gthread.h:111