X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=util%2Fbsetroot.h;h=7bd3ff01883d269535a61118542e5103239ec65e;hb=788754fec3eb30dca567c047601d4c5791457c8c;hp=ca535562c30acb6592fe191ee44dbc7a5208c5b1;hpb=dfc5f034581f5a26cba5c4811500438f89f0634a;p=chaz%2Fopenbox diff --git a/util/bsetroot.h b/util/bsetroot.h index ca535562..7bd3ff01 100644 --- a/util/bsetroot.h +++ b/util/bsetroot.h @@ -4,30 +4,31 @@ #include "../src/BaseDisplay.h" #include "../src/Image.h" - class bsetroot : public BaseDisplay { private: BImageControl **img_ctrl; - Pixmap *pixmaps; char *fore, *back, *grad; + // no copying!! + bsetroot(const bsetroot &); + bsetroot& operator=(const bsetroot&); -protected: - inline virtual void process_event(XEvent *) { } + inline virtual void process_event(XEvent * /*unused*/) { } - public: - bsetroot(int, char **, char * = 0); + bsetroot(int argc, char **argv, char *dpy_name = 0); ~bsetroot(void); - inline virtual Bool handleSignal(int) { return False; } + inline virtual Bool handleSignal(int /*unused*/) { return False; } + + void setPixmapProperty(int screen, Pixmap pixmap); + Pixmap duplicatePixmap(int screen, Pixmap pixmap, int width, int height); void gradient(void); - void modula(int, int); + void modula(int x, int y); void solid(void); - void usage(int = 0); + void usage(int exit_code = 0); }; - #endif // __bsetroot2_hh