Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // X11Painter.h
- #include <X11/Xlib.h>
- #include <X11/Xutil.h>
- #include <X11/extensions/shape.h>
- #include <stdlib.h>
- #include <stdio.h>
- #include <unistd.h>
- #include <exception>
- //
- //#include "libLaserFinger.h"
- #ifndef LF_X11PAINTER_H
- #define LF_X11PAINTER_H
- using namespace std;
- class X11Exception : public exception {};
- class DisplayUnknownException : public X11Exception {};
- class NoDisplayException : public X11Exception {};
- class ShapeExtensionException : public X11Exception {};
- class WrongPositionException : public X11Exception {};
- class X11Painter {
- public:
- X11Painter();
- X11Painter(int screenno);
- ~X11Painter();
- void show();
- void showAt(int x, int y);
- void hide();
- private:
- Display* display;
- int screen;
- Window window;
- XSetWindowAttributes winattr;
- int xpos;
- Visual* visual;
- int screenwidth;
- int screenheight;
- int some_test;
- unsigned int depth;
- bool windowVisibility;
- };
- #endif // LF_X11PAINTER_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement