X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwidget.h;h=79187f3b5e864bf40b77fdab827b93e676c3d38a;hb=be8ea35fe6eabe4c68d2d337634f21c63c964265;hp=322fbfa8a53f0b052ce94c45ab5fed847c7a6837;hpb=c062ca892fc6e10f74a76991b5d4b4349c046b5f;p=libs%2Fgltk.git diff --git a/source/widget.h b/source/widget.h index 322fbfa..79187f3 100644 --- a/source/widget.h +++ b/source/widget.h @@ -15,6 +15,19 @@ class Style; class Widget { public: + class Loader: public Msp::DataFile::Loader + { + protected: + Widget &wdg; + + public: + Loader(Widget &); + private: + void position(int, int); + void size(unsigned, unsigned); + void style(const std::string &); + }; + virtual ~Widget() { } void set_position(int, int); void set_size(unsigned, unsigned); @@ -27,6 +40,10 @@ public: virtual void pointer_motion(int, int) { } virtual void pointer_enter() { } virtual void pointer_leave() { } + virtual void key_press(unsigned, unsigned, wchar_t) { } + virtual void key_release(unsigned, unsigned) { } + virtual void focus_in() { } + virtual void focus_out() { } protected: const Resources &res; Geometry geom;