set_pointer_focus(0);
}
-void Container::key_press(unsigned key, unsigned mod)
-{
- if(input_focus)
- input_focus->key_press(key, mod);
-}
-
-void Container::key_release(unsigned key, unsigned mod)
-{
- if(input_focus)
- input_focus->key_release(key, mod);
-}
-
-void Container::character(wchar_t ch)
-{
- if(input_focus)
- input_focus->character(ch);
-}
-
void Container::touch_press(int x, int y, unsigned finger)
{
if(Widget *child = get_pointer_target(x, y, true))
}
}
+void Container::key_press(unsigned key, unsigned mod)
+{
+ if(input_focus)
+ input_focus->key_press(key, mod);
+}
+
+void Container::key_release(unsigned key, unsigned mod)
+{
+ if(input_focus)
+ input_focus->key_release(key, mod);
+}
+
+void Container::character(wchar_t ch)
+{
+ if(input_focus)
+ input_focus->character(ch);
+}
+
void Container::focus_out()
{
set_input_focus(0);
Widget *get_pointer_target(int, int, bool) const;
public:
virtual void pointer_leave();
- virtual void key_press(unsigned, unsigned);
- virtual void key_release(unsigned, unsigned);
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);
virtual void focus_out();
protected:
virtual void pointer_motion(int, int) { }
virtual void pointer_enter();
virtual void pointer_leave();
- virtual void key_press(unsigned, unsigned) { }
- virtual void key_release(unsigned, unsigned) { }
- virtual void character(wchar_t) { }
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) { }
virtual void focus_in();
virtual void focus_out();
protected: