diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-03-22 22:39:19 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-13 22:40:45 +0100 |
commit | ce83bbe3db755828faea0490ede53f8889ba0254 (patch) | |
tree | a59f99c0e31fbbc0d8b5500710e55af2f40b17e7 /src/menu/container.cpp | |
parent | 3d6a2c963c24212a0650f6dce5c1a47899f0e387 (diff) | |
download | usdx-ce83bbe3db755828faea0490ede53f8889ba0254.tar.gz usdx-ce83bbe3db755828faea0490ede53f8889ba0254.tar.xz usdx-ce83bbe3db755828faea0490ede53f8889ba0254.zip |
menu/drawable_control: added size to controls and clip drawing if requested
if requested (set_clipping_required) DrawableControl will use
ClippingHelper to setup glScissor befor drawing the content. container
will request clipping by default
Diffstat (limited to '')
-rw-r--r-- | src/menu/container.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/menu/container.cpp b/src/menu/container.cpp index 05cb9fd4..4ac26548 100644 --- a/src/menu/container.cpp +++ b/src/menu/container.cpp @@ -35,11 +35,13 @@ namespace usdx Container::Container(Container* owner) : DrawableControl(owner), frame(NULL) { + set_clipping_required(true); } Container::Container(Container* owner, const ContainerHelper& add) : DrawableControl(owner, add), frame(NULL) { + set_clipping_required(true); } Container::~Container() |