X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fglwidget.h;h=170afff81e63bb283c6822509eae9ed0e35fd87d;hb=c9d57b57d70ab2ae842144828175820fb207a3b0;hp=39ed1815438b39755c045ea33c3e50a2fde9f283;hpb=19cb30261693d5c56c79d87030cfe8e1dc9ca033;p=virtualjaguar diff --git a/src/gui/glwidget.h b/src/gui/glwidget.h index 39ed181..170afff 100644 --- a/src/gui/glwidget.h +++ b/src/gui/glwidget.h @@ -6,8 +6,8 @@ #ifndef __GLWIDGET_H__ #define __GLWIDGET_H__ -#include #include +#include class GLWidget: public QGLWidget { @@ -17,6 +17,8 @@ class GLWidget: public QGLWidget GLWidget(QWidget * parent = 0); ~GLWidget(); + void HandleMouseHiding(void); + void CheckAndRestoreMouseCursor(void); // QSize minimumSizeHint() const; // QSize sizeHint() const; @@ -24,11 +26,16 @@ class GLWidget: public QGLWidget // void clicked(); protected: - void initializeGL(); - void paintGL(); + void initializeGL(void); + void paintGL(void); void resizeGL(int width, int height); + void mouseMoveEvent(QMouseEvent *); +// void mousePressEvent(QMouseEvent * event); +// void mouseReleaseEvent(QMouseEvent * event); + + private: + void CreateTextures(void); -// private: public: GLuint texture; int textureWidth, textureHeight; @@ -38,6 +45,10 @@ class GLWidget: public QGLWidget bool synchronize; unsigned filter; + int offset; + bool fullscreen; + int outputWidth; + int32_t hideMouseTimeout; }; #endif // __GLWIDGET_H__