X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwidget.h;h=2bf751a714f0db3a25bc45015894181fe3c96562;hb=18a5af8e80903eb9738cefe03825595877fbf447;hp=9caae9fb6216180654c9165dbe1893f2f1fec999;hpb=707b59d45ae50b69c94918f8f74313283b304597;p=libs%2Fgltk.git diff --git a/source/widget.h b/source/widget.h index 9caae9f..2bf751a 100644 --- a/source/widget.h +++ b/source/widget.h @@ -17,8 +17,7 @@ class Resources; class Style; /** -Base class for all widgets. Derived classes should call update_style in -constructor, because it can't be done correctly in the Widget constructor. +Base class for all widgets. */ class Widget { @@ -137,6 +136,9 @@ public: virtual void pointer_motion(int, int) { } virtual void pointer_enter(); virtual void pointer_leave(); + virtual void touch_press(int, int, unsigned); + virtual void touch_release(int, int, unsigned); + virtual void touch_motion(int, int, unsigned); virtual void key_press(unsigned, unsigned) { } virtual void key_release(unsigned, unsigned) { } virtual void character(wchar_t) { }