]> git.tdb.fi Git - libs/gui.git/blobdiff - source/window.h
Add Window::set_title
[libs/gui.git] / source / window.h
index 34efb7ce888a04d399e918bbab778a8dbdc25663..a8ad867cca9acac780cf3f34535d69c21df286b1 100644 (file)
@@ -45,10 +45,12 @@ protected:
 
        Window();
 public:
-       Window(unsigned, unsigned);
-       Window(const DisplayOptions &);
+       Window(unsigned w, unsigned h);
+       Window(const DisplayOptions &dopt);
        virtual ~Window();
 
+       void set_title(const std::string &);
+
        unsigned get_width() const  { return options.width; }
        unsigned get_height() const { return options.height; }
        void show();
@@ -56,10 +58,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 *);
 };