]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/panel.h
Use a GL::Renderer to render widgets
[libs/gltk.git] / source / panel.h
index a5483c452c57f7b0d639511878fb8a8ef2f4b8d6..1126e837836e46f5d88590e2cf94df3b14efc174 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2007-2011  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_GLTK_PANEL_H_
 #define MSP_GLTK_PANEL_H_
 
@@ -68,6 +61,7 @@ public:
        virtual const char *get_class() const { return "panel"; }
 
        void set_layout(Layout *);
+       virtual void autosize();
 
 protected:
        virtual Child *create_child(Widget *);
@@ -78,17 +72,19 @@ public:
        Widget *get_final_input_focus() const;
 
 protected:
-       virtual void render_special(const Part &) const;
+       virtual void render_special(const Part &, GL::Renderer &) const;
 
 public:
        virtual void button_press(int, int, unsigned);
        virtual void button_release(int, int, unsigned);
        virtual void pointer_motion(int, int);
        virtual void pointer_leave();
-       virtual void key_press(unsigned, unsigned, wchar_t);
+       virtual void key_press(unsigned, unsigned);
        virtual void key_release(unsigned, unsigned);
+       virtual void character(wchar_t);
        virtual void focus_out();
 protected:
+       virtual void on_geometry_change();
        virtual void on_child_added(Widget &);
        virtual void on_child_removed(Widget &);