X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fglwidget.h;h=7557ea68629830abff7353f100634fafd81c3742;hb=e310c1d53915d306d8aa9a1bed9bac489bd30b03;hp=1b000797efe9aa146608b30c07e835ecbb5e42e4;hpb=83fce768d2c1e0e16691c092ea02d64e2b280fad;p=virtualjaguar diff --git a/src/gui/glwidget.h b/src/gui/glwidget.h index 1b00079..7557ea6 100644 --- a/src/gui/glwidget.h +++ b/src/gui/glwidget.h @@ -8,6 +8,7 @@ #include #include +#include class GLWidget: public QGLWidget { @@ -17,6 +18,8 @@ class GLWidget: public QGLWidget GLWidget(QWidget * parent = 0); ~GLWidget(); + void HandleMouseHiding(void); + void CheckAndRestoreMouseCursor(void); // QSize minimumSizeHint() const; // QSize sizeHint() const; @@ -24,11 +27,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; @@ -41,6 +49,7 @@ class GLWidget: public QGLWidget int offset; bool fullscreen; int outputWidth; + int32_t hideMouseTimeout; }; #endif // __GLWIDGET_H__