40 #ifndef _uicheckbox_cpp
41 #define _uicheckbox_cpp
43 #include "UI/uimanager.h"
44 #include "UI/checkbox.h"
45 #include "UI/screen.h"
47 #include "stringtool.h"
48 #include "exception.h"
76 Button(RendName,RendRect,Parent),
101 this->
StateGroupBindings[ WS_Selected | WS_Hovered | WS_Focused ] = SelectedHoveredGroup;
102 this->
StateGroupBindings[ WS_Selected | WS_Focused | WS_Dragged ] = SelectedNormalGroup;
103 this->
StateGroupBindings[ WS_Selected | WS_Dragged | WS_Hovered ] = SelectedHoveredGroup;
104 this->
StateGroupBindings[ WS_Selected | WS_Hovered | WS_Focused | WS_Dragged ] = SelectedHoveredGroup;
112 return (this->
State & WS_Selected);
164 if( !PropertiesNode.
Empty() ) {
166 CurrAttrib = PropertiesNode.
GetAttribute(
"LockoutTime");
167 if( !CurrAttrib.
Empty() )
204 this->
State |= WS_Selected;
213 this->
State &= ~WS_Selected;
227 {
return new CheckBox(RendName,Parent); }
230 {
return new CheckBox(RendName,RendRect,Parent); }
233 {
return new CheckBox(XMLNode,Parent); }
248 {
delete static_cast<CheckBox*
>( ToBeDestroyed ); }