- Panel(const Resources &);
- ~Panel();
-
- void add(Widget &);
- void remove(Widget &);
- void raise(Widget &);
- void set_focus(Widget &);
-
- 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_release(unsigned, unsigned);
- virtual void focus_out();
-
- // These functions are not intended to be called from outside GLtk
- void child_hidden(Widget &);
- void grab_pointer(Widget &);
- void ungrab_pointer(Widget &);
- void grab_focus(Widget &);
-private:
- virtual const char *get_class() const { return "panel"; }
- virtual void render_special(const Part &) const;
+ Panel();
+
+ template<typename T>
+ static void register_child_type(const std::string &);
+
+ const char *get_class() const override { return "panel"; }
+
+ Layout &get_or_create_layout();