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
{
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) { }