aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/drawable_control.hpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2013-01-13 22:27:20 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-18 19:34:21 +0100
commit45637b81cfac4a630ebc5814a8a1498ac1a28529 (patch)
tree2cedc1344560c4304e0b7b4e4602ef0fefcab94c /src/menu/drawable_control.hpp
parent91337be4652b0f8c822de58d3c646423b1967bf0 (diff)
downloadusdx-45637b81cfac4a630ebc5814a8a1498ac1a28529.tar.gz
usdx-45637b81cfac4a630ebc5814a8a1498ac1a28529.tar.xz
usdx-45637b81cfac4a630ebc5814a8a1498ac1a28529.zip
drawable_control: add focusable property
drawable controls could now disable the ability to receive focus
Diffstat (limited to 'src/menu/drawable_control.hpp')
-rw-r--r--src/menu/drawable_control.hpp8
1 files changed, 8 insertions, 0 deletions
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
@@ -61,6 +61,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