X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpanel.h;h=31be7e57c1afb530c0ef58600d69c9e31110c12b;hb=c062ca892fc6e10f74a76991b5d4b4349c046b5f;hp=7a94dcd0fdb5f02f8778afaebf1c6b298a2de418;hpb=c1f038acb91eb3bfaa34dfd4729d19ed3f871a42;p=libs%2Fgltk.git diff --git a/source/panel.h b/source/panel.h index 7a94dcd..31be7e5 100644 --- a/source/panel.h +++ b/source/panel.h @@ -11,18 +11,23 @@ class Panel: public Widget public: Panel(const Resources &); ~Panel(); + void add(Widget &); + void button_press(int, int, unsigned); + void button_release(int, int, unsigned); + void pointer_motion(int, int); private: typedef std::list ChildSeq; ChildSeq children; + Widget *pointer_focus; + unsigned pointer_grab; Panel(const Panel &); Panel &operator=(const Panel &); const char *get_class() const { return "panel"; } void render_part(const Part &) const; - void on_button_press(int, int, unsigned); - void on_button_release(int, int, unsigned); + void set_pointer_focus(Widget *); }; } // namespace GLtk