summaryrefslogtreecommitdiffstats
path: root/src/util/clientGUIUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/clientGUIUtils.h')
-rw-r--r--src/util/clientGUIUtils.h39
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