diff options
| author | Sebastian | 2010-05-12 19:42:27 +0200 |
|---|---|---|
| committer | Sebastian | 2010-05-12 19:42:27 +0200 |
| commit | ce3329047d378a14006ce74ec273ac59e3375303 (patch) | |
| tree | 782430f270b4c7aca1b35d5b7813518e3797c555 /src/util/clientGUIUtils.h | |
| download | pvs-ce3329047d378a14006ce74ec273ac59e3375303.tar.gz pvs-ce3329047d378a14006ce74ec273ac59e3375303.tar.xz pvs-ce3329047d378a14006ce74ec273ac59e3375303.zip | |
initial import of latest svn version
Diffstat (limited to 'src/util/clientGUIUtils.h')
| -rw-r--r-- | src/util/clientGUIUtils.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/util/clientGUIUtils.h b/src/util/clientGUIUtils.h new file mode 100644 index 0000000..28b05cc --- /dev/null +++ b/src/util/clientGUIUtils.h @@ -0,0 +1,39 @@ +#include "src/util/consoleLogger.h" +#include <X11/Xlib.h> // Every Xlib program must include this +#include <X11/cursorfont.h> +#include <assert.h> +#include <unistd.h> +#include <stdio.h> + + + +#define REFRESH_RATE 0.15 + +#ifndef _BLANKSCREEN_H_ +#define _BLANKSCREEN_H_ + +class BlankScreen +{ +public: + BlankScreen(); + void draw(bool force = false); + bool lock(); + bool unlock(); + void setLogMsg(QString msg); + bool lock_inputs(); + +private: + Display *dpy; + Window win; + XEvent ev; + int scr; + + bool locked; + + + QString lockMsg; + int blackColor, whiteColor; + int offX, offY; +}; + +#endif |
