From 45637b81cfac4a630ebc5814a8a1498ac1a28529 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sun, 13 Jan 2013 22:27:20 +0100 Subject: drawable_control: add focusable property drawable controls could now disable the ability to receive focus --- src/menu/drawable_control.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/menu/drawable_control.hpp') diff --git a/src/menu/drawable_control.hpp b/src/menu/drawable_control.hpp index 9f33b376..cd1f45e0 100644 --- a/src/menu/drawable_control.hpp +++ b/src/menu/drawable_control.hpp @@ -60,6 +60,11 @@ namespace usdx */ bool clipping_required; + /** + * Whether the control should be able to get the focus. + */ + bool focusable; + /** * Background of the control. The background is drawn, before the real * content is drawn. @@ -88,6 +93,9 @@ namespace usdx bool is_clipping_required(void) const; void set_clipping_required(const bool); + bool is_focusable(void) const; + void set_focusable(const bool); + /** * Function get called, if the control should draw itself it the * current position on the OpenGL screen. If clipping is required, the -- cgit v1.2.3