105 template <
typename T>
133 void setRealPosition(
float _left,
float _top);
140 const std::string& getName()
const;
143 virtual void setVisible(
bool _value);
145 bool getVisible()
const;
151 void setDepth(
int _value);
153 int getDepth()
const;
156 bool getInheritedVisible()
const;
161 Align getAlign()
const;
164 void setAlpha(
float _value);
166 float getAlpha()
const;
178 void setInheritsAlpha(
bool _value);
180 bool getInheritsAlpha()
const;
186 bool isRootWidget()
const;
189 Widget* getParent()
const;
198 size_t getChildCount()
const;
215 virtual void setEnabled(
bool _value);
217 void setEnabledSilent(
bool _value);
219 bool getEnabled()
const;
222 bool getInheritedEnabled()
const;
228 Widget* getClientWidget();
229 const Widget* getClientWidget()
const;
234 void detachFromWidget(
const std::string&
_layer =
"");
244 void changeWidgetSkin(
const std::string&
_skinName);
259 void setProperty(
const std::string&
_key,
const std::string&
_value);
296 Widget* _getContainer()
const;
299 bool _checkPoint(
int _left,
int _top)
const;
304 virtual void _resetContainer(
bool _update);
306 bool _setWidgetState(
const std::string&
_value);
309 void _updateChilds();
315 virtual void shutdownOverride();
316 virtual void initialiseOverride();
324 void _destroyAllChildWidget();
329 virtual void baseUpdateEnable();
333 const IntCoord& getLayerItemCoord()
const override;
335 template <
typename T>
339 for (VectorWidgetPtr::iterator
iter = mWidgetChildSkin.begin();
iter != mWidgetChildSkin.end(); ++
iter)
357 Widget* _getClientWidget();
358 const Widget* _getClientWidget()
const;
360 virtual void setPropertyOverride(
const std::string&
_key,
const std::string&
_value);
364 void shutdownWidgetSkinBase();
367 void _updateAbsolutePoint();
370 void _updateVisible();
372 void _updateEnabled();
374 float _getRealAlpha()
const;
377 void _destroyChildSkinWidget();
380 void _checkInheristProperties();
405 bool mInheritedEnabled;
408 bool mInheritedVisible;
#define MYGUI_RTTI_DERIVED(DerivedType)
Type * castType(bool _throw=true)
delegates::CMultiDelegate3< Widget *, const std::string &, const std::string & > EventHandle_WidgetStringString
std::vector< Widget * > VectorWidgetPtr