From 06983baa19f0fbf48dd3e89e2d3810a4d8cf340a Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 7 Sep 2012 01:44:35 +0200 Subject: menu/text: basic handling of auto size If auto_size is false the control is setup clipping, so that the outside parts of the control gets discarded. If auto_size enable, the drawn parts outside the component rectangle are drawn. TODO: currently the component dost not really change its size. This could be necessary for sensible regions. --- src/menu/text.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/menu/text.hpp') diff --git a/src/menu/text.hpp b/src/menu/text.hpp index 7a57adab..d5798c8e 100644 --- a/src/menu/text.hpp +++ b/src/menu/text.hpp @@ -104,6 +104,9 @@ namespace usdx virtual void set_size(const Dimension& size); virtual void set_size(int width, int height); + + void set_auto_size(const bool value); + bool get_auto_size(void) const; }; }; -- cgit v1.2.3