X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwindow.h;h=0f1dfbaf8c18ca343fbe617c6808ddfc52f800f7;hb=d39a783c839c08be8ac36a040f4f8b2ee0da8d56;hp=34efb7ce888a04d399e918bbab778a8dbdc25663;hpb=935c50bdcc95fe95d39931182461a2b25ac30b9d;p=libs%2Fgui.git diff --git a/source/window.h b/source/window.h index 34efb7c..0f1dfba 100644 --- a/source/window.h +++ b/source/window.h @@ -45,8 +45,8 @@ protected: Window(); public: - Window(unsigned, unsigned); - Window(const DisplayOptions &); + Window(unsigned w, unsigned h); + Window(const DisplayOptions &dopt); virtual ~Window(); unsigned get_width() const { return options.width; } @@ -56,10 +56,10 @@ public: void tick(); protected: void prepare(); - void create(); + void set_window(Handle wnd); void init(); - void process_event(const XEvent &); - virtual void on_resize() { } + void process_event(const XEvent &event); + virtual void on_event(const XEvent &event) { (void)event; } static int x_error_handler(Display *, XErrorEvent *); };