]> icculus.org git repositories - mikachu/openbox.git/blob - util/bsetroot.h
new version of bsetbg
[mikachu/openbox.git] / util / bsetroot.h
1 #ifndef   __bsetroot2_hh
2 #define   __bsetroot2_hh
3
4 #include "../src/BaseDisplay.h"
5 #include "../src/Image.h"
6
7 class bsetroot : public BaseDisplay {
8 private:
9   BImageControl **img_ctrl;
10
11   char *fore, *back, *grad;
12
13   // no copying!!
14   bsetroot(const bsetroot &);
15   bsetroot& operator=(const bsetroot&);
16
17   inline virtual void process_event(XEvent * /*unused*/) { }
18
19 public:
20   bsetroot(int argc, char **argv, char *dpy_name = 0);
21   ~bsetroot(void);
22
23   inline virtual Bool handleSignal(int /*unused*/) { return False; }
24
25   void setPixmapProperty(int screen, Pixmap pixmap);
26   Pixmap duplicatePixmap(int screen, Pixmap pixmap, int width, int height);
27
28   void gradient(void);
29   void modula(int x, int y);
30   void solid(void);
31   void usage(int exit_code = 0);
32 };
33
34 #endif // __bsetroot2_hh