]> git.tdb.fi Git - libs/gui.git/blobdiff - source/window.h
Convert GLWindow to use GLX 1.3
[libs/gui.git] / source / window.h
index 34efb7ce888a04d399e918bbab778a8dbdc25663..0f1dfbaf8c18ca343fbe617c6808ddfc52f800f7 100644 (file)
@@ -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 *);
 };