#include <MyGUI_Widget.h>
Public Types | |
| typedef Widget | RTTIBase |
Public Member Functions | |
| virtual const std::string & | getTypeName () const |
| virtual bool | isType (const std::type_info &_type) const |
| template<typename Type> | |
| bool | isType () const |
| template<typename Type> | |
| Type * | castType (bool _throw=true) |
| template<typename Type> | |
| const Type * | castType (bool _throw=true) const |
| Widget () | |
| Widget * | createWidgetT (const std::string &_type, const std::string &_skin, const IntCoord &_coord, Align _align, const std::string &_name="") |
| Widget * | createWidgetT (const std::string &_type, const std::string &_skin, int _left, int _top, int _width, int _height, Align _align, const std::string &_name="") |
| Widget * | createWidgetRealT (const std::string &_type, const std::string &_skin, const FloatCoord &_coord, Align _align, const std::string &_name="") |
| Widget * | createWidgetRealT (const std::string &_type, const std::string &_skin, float _left, float _top, float _width, float _height, Align _align, const std::string &_name="") |
| template<typename T> | |
| T * | createWidget (const std::string &_skin, const IntCoord &_coord, Align _align, const std::string &_name="") |
| template<typename T> | |
| T * | createWidget (const std::string &_skin, int _left, int _top, int _width, int _height, Align _align, const std::string &_name="") |
| template<typename T> | |
| T * | createWidgetReal (const std::string &_skin, const FloatCoord &_coord, Align _align, const std::string &_name="") |
| template<typename T> | |
| T * | createWidgetReal (const std::string &_skin, float _left, float _top, float _width, float _height, Align _align, const std::string &_name="") |
| Widget * | createWidgetT (WidgetStyle _style, const std::string &_type, const std::string &_skin, const IntCoord &_coord, Align _align, const std::string &_layer="", const std::string &_name="") |
| template<typename T> | |
| T * | createWidget (WidgetStyle _style, const std::string &_skin, const IntCoord &_coord, Align _align, const std::string &_layer="", const std::string &_name="") |
| const std::string & | getName () const |
| Get name of widget. | |
| virtual void | setPosition (const IntPoint &_value) |
| virtual void | setSize (const IntSize &_value) |
| virtual void | setCoord (const IntCoord &_value) |
| void | setPosition (int _left, int _top) |
| void | setSize (int _width, int _height) |
| void | setCoord (int _left, int _top, int _width, int _height) |
| void | setRealPosition (const FloatPoint &_value) |
| void | setRealSize (const FloatSize &_value) |
| void | setRealCoord (const FloatCoord &_value) |
| void | setRealPosition (float _left, float _top) |
| void | setRealSize (float _width, float _height) |
| void | setRealCoord (float _left, float _top, float _width, float _height) |
| virtual void | setVisible (bool _value) |
| virtual void | setAlign (Align _value) |
| virtual void | setCaption (const UString &_value) |
| virtual const UString & | getCaption () |
| void | setAlpha (float _value) |
| float | getAlpha () |
| void | setInheritsAlpha (bool _value) |
| bool | isInheritsAlpha () |
| bool | setState (const std::string &_value) |
| void | setColour (const Colour &_value) |
| bool | isRootWidget () |
| Widget * | getParent () |
| EnumeratorWidgetPtr | getEnumerator () |
| size_t | getChildCount () |
| Widget * | getChildAt (size_t _index) |
| Widget * | findWidget (const std::string &_name) |
| void | setNeedKeyFocus (bool _value) |
| bool | isNeedKeyFocus () |
| void | setNeedMouseFocus (bool _value) |
| bool | isNeedMouseFocus () |
| void | setInheritsPick (bool _value) |
| bool | isInheritsPick () |
| void | setMaskPick (const std::string &_filename) |
| virtual void | setEnabled (bool _value) |
| void | setEnabledSilent (bool _value) |
| bool | isEnabled () |
| void | setPointer (const std::string &_value) |
| const std::string & | getPointer () |
| const std::string & | getLayerName () |
| IntCoord | getClientCoord () |
| Widget * | getClientWidget () |
| ISubWidgetText * | getSubWidgetText () |
| ISubWidgetRect * | getSubWidgetMain () |
| void | setNeedToolTip (bool _value) |
| bool | getNeedToolTip () |
| void | setEnableToolTip (bool _value) |
| bool | getEnableToolTip () |
| void | detachFromWidget (const std::string &_layer="") |
| void | attachToWidget (Widget *_parent, WidgetStyle _style=WidgetStyle::Child, const std::string &_layer="") |
| void | changeWidgetSkin (const std::string &_skinname) |
| void | setWidgetStyle (WidgetStyle _style, const std::string &_layer="") |
| WidgetStyle | getWidgetStyle () |
| virtual void | setProperty (const std::string &_key, const std::string &_value) |
| virtual void | _getContainer (Widget *&_container, size_t &_index) |
| void | _forcePeek (Widget *_widget) |
| void | _setUVSet (const FloatRect &_rect) |
| virtual void | _setTextureName (const std::string &_texture) |
| virtual const std::string & | _getTextureName () |
| IWidgetCreator * | _getIWidgetCreator () |
| IntCoord | _getTextRegion () |
| IntSize | _getTextSize () |
| void | _setFontName (const std::string &_font) |
| const std::string & | _getFontName () |
| void | _setFontHeight (int _height) |
| int | _getFontHeight () |
| void | _setTextAlign (Align _align) |
| Align | _getTextAlign () |
| void | _setTextColour (const Colour &_colour) |
| const Colour & | _getTextColour () |
| void | setCaptionWithNewLine (const std::string &_value) |
| virtual void | _initialise (WidgetStyle _style, const IntCoord &_coord, Align _align, ResourceSkin *_info, Widget *_parent, ICroppedRectangle *_croppedParent, IWidgetCreator *_creator, const std::string &_name) |
| void | setPosition (const IntCoord &_coord) |
| void | setPosition (int _left, int _top, int _width, int _height) |
| void | enableToolTip (bool _enable) |
| void | setInheritsPeek (bool _inherits) |
| bool | isInheritsPeek () |
| void | setMaskPeek (const std::string &_filename) |
| IntCoord | getTextCoord () |
| IntSize | getTextSize () |
| void | setFontName (const std::string &_font) |
| const std::string & | getFontName () |
| void | setFontHeight (int _height) |
| int | getFontHeight () |
| void | setTextAlign (Align _align) |
| Align | getTextAlign () |
| void | setTextColour (const Colour &_colour) |
| const Colour & | getTextColour () |
Static Public Member Functions | |
| static const std::string & | getClassTypeName () |
Protected Member Functions | |
| Widget (WidgetStyle _style, const IntCoord &_coord, Align _align, ResourceSkin *_info, Widget *_parent, ICroppedRectangle *_croppedParent, IWidgetCreator *_creator, const std::string &_name) | |
| virtual | ~Widget () |
| virtual void | baseChangeWidgetSkin (ResourceSkin *_info) |
| void | _updateView () |
| void | _setAlign (const IntSize &_oldsize, bool _update) |
| void | _setAlign (const IntCoord &_oldcoord, bool _update) |
| virtual Widget * | baseCreateWidget (WidgetStyle _style, const std::string &_type, const std::string &_skin, const IntCoord &_coord, Align _align, const std::string &_layer, const std::string &_name) |
| virtual void | _destroyChildWidget (Widget *_widget) |
| virtual void | _destroyAllChildWidget () |
| virtual size_t | _getContainerIndex (const IntPoint &_point) |
| virtual void | _resetContainer (bool _update) |
| virtual void | baseUpdateEnable () |
| virtual ILayerItem * | getLayerItemByPoint (int _left, int _top) |
| virtual const IntCoord & | getLayerItemCoord () |
Protected Attributes | |
| MapWidgetStateInfo | mStateInfo |
| MaskPickInfo const * | mMaskPickInfo |
| MaskPickInfo | mOwnMaskPickInfo |
| VectorWidgetPtr | mWidgetChild |
| VectorWidgetPtr | mWidgetChildSkin |
| VectorSubWidget | mSubSkinChild |
| ISubWidgetText * | mText |
| ISubWidgetRect * | mMainSkin |
| bool | mEnabled |
| bool | mInheritsEnabled |
| bool | mSubSkinsVisible |
| bool | mInheritsVisible |
| float | mAlpha |
| float | mRealAlpha |
| bool | mInheritsAlpha |
| std::string | mName |
| std::string | mPointer |
| std::string | mTextureName |
| ITexture * | mTexture |
| Widget * | mParent |
| IWidgetCreator * | mIWidgetCreator |
| bool | mNeedKeyFocus |
| bool | mNeedMouseFocus |
| bool | mInheritsPick |
| Widget * | mWidgetClient |
| bool | mNeedToolTip |
| bool | mEnableToolTip |
| bool | mToolTipVisible |
| float | mToolTipCurrentTime |
| IntPoint | mToolTipOldPoint |
| size_t | mToolTipOldIndex |
| IntPoint | m_oldMousePoint |
| WidgetStyle | mWidgetStyle |
| FloatCoord | mRelativeCoord |
| bool | mDisableUpdateRelative |
Friends | |
| class | IWidgetCreator |
Definition at line 41 of file MyGUI_Widget.h.
| typedef Widget MyGUI::Widget::RTTIBase |
Reimplemented from MyGUI::IObject.
Reimplemented in MyGUI::Button, MyGUI::Canvas, MyGUI::ComboBox, MyGUI::DDContainer, MyGUI::Edit, MyGUI::HScroll, MyGUI::ItemBox, MyGUI::List, MyGUI::ListBox, MyGUI::ListCtrl, MyGUI::MenuBar, MyGUI::MenuCtrl, MyGUI::MenuItem, MyGUI::Message, MyGUI::MultiList, MyGUI::PopupMenu, MyGUI::Progress, MyGUI::ScrollView, MyGUI::StaticImage, MyGUI::StaticText, MyGUI::Tab, MyGUI::TabItem, MyGUI::VScroll, and MyGUI::Window.
Definition at line 53 of file MyGUI_Widget.h.
| MyGUI::Widget::Widget | ( | ) |
Definition at line 77 of file MyGUI_Widget.cpp.
| MyGUI::Widget::Widget | ( | WidgetStyle | _style, | |
| const IntCoord & | _coord, | |||
| Align | _align, | |||
| ResourceSkin * | _info, | |||
| Widget * | _parent, | |||
| ICroppedRectangle * | _croppedParent, | |||
| IWidgetCreator * | _creator, | |||
| const std::string & | _name | |||
| ) | [protected] |
Definition at line 48 of file MyGUI_Widget.cpp.
| MyGUI::Widget::~Widget | ( | ) | [protected, virtual] |
Definition at line 191 of file MyGUI_Widget.cpp.
| static const std::string& MyGUI::Widget::getClassTypeName | ( | ) | [inline, static] |
Reimplemented from MyGUI::IObject.
Reimplemented in MyGUI::Button, MyGUI::Canvas, MyGUI::ComboBox, MyGUI::DDContainer, MyGUI::Edit, MyGUI::HScroll, MyGUI::ItemBox, MyGUI::List, MyGUI::ListBox, MyGUI::ListCtrl, MyGUI::MenuBar, MyGUI::MenuCtrl, MyGUI::MenuItem, MyGUI::Message, MyGUI::MultiList, MyGUI::PopupMenu, MyGUI::Progress, MyGUI::ScrollView, MyGUI::StaticImage, MyGUI::StaticText, MyGUI::Tab, MyGUI::TabItem, MyGUI::VScroll, and MyGUI::Window.
Definition at line 53 of file MyGUI_Widget.h.
| virtual const std::string& MyGUI::Widget::getTypeName | ( | ) | const [inline, virtual] |
Get type name as string
Reimplemented from MyGUI::IObject.
Reimplemented in MyGUI::Button, MyGUI::Canvas, MyGUI::ComboBox, MyGUI::DDContainer, MyGUI::Edit, MyGUI::HScroll, MyGUI::ItemBox, MyGUI::List, MyGUI::ListBox, MyGUI::ListCtrl, MyGUI::MenuBar, MyGUI::MenuCtrl, MyGUI::MenuItem, MyGUI::Message, MyGUI::MultiList, MyGUI::PopupMenu, MyGUI::Progress, MyGUI::ScrollView, MyGUI::StaticImage, MyGUI::StaticText, MyGUI::Tab, MyGUI::TabItem, MyGUI::VScroll, and MyGUI::Window.
Definition at line 53 of file MyGUI_Widget.h.
| virtual bool MyGUI::Widget::isType | ( | const std::type_info & | _type | ) | const [inline, virtual] |
Compare with selected type
Reimplemented from MyGUI::IObject.
Reimplemented in MyGUI::Button, MyGUI::Canvas, MyGUI::ComboBox, MyGUI::DDContainer, MyGUI::Edit, MyGUI::HScroll, MyGUI::ItemBox, MyGUI::List, MyGUI::ListBox, MyGUI::ListCtrl, MyGUI::MenuBar, MyGUI::MenuCtrl, MyGUI::MenuItem, MyGUI::Message, MyGUI::MultiList, MyGUI::PopupMenu, MyGUI::Progress, MyGUI::ScrollView, MyGUI::StaticImage, MyGUI::StaticText, MyGUI::Tab, MyGUI::TabItem, MyGUI::VScroll, and MyGUI::Window.
Definition at line 53 of file MyGUI_Widget.h.
| bool MyGUI::Widget::isType | ( | ) | const [inline] |
Compare with selected type
Reimplemented from MyGUI::IObject.
Reimplemented in MyGUI::Button, MyGUI::Canvas, MyGUI::ComboBox, MyGUI::DDContainer, MyGUI::Edit, MyGUI::HScroll, MyGUI::ItemBox, MyGUI::List, MyGUI::ListBox, MyGUI::ListCtrl, MyGUI::MenuBar, MyGUI::MenuCtrl, MyGUI::MenuItem, MyGUI::Message, MyGUI::MultiList, MyGUI::PopupMenu, MyGUI::Progress, MyGUI::ScrollView, MyGUI::StaticImage, MyGUI::StaticText, MyGUI::Tab, MyGUI::TabItem, MyGUI::VScroll, and MyGUI::Window.
Definition at line 53 of file MyGUI_Widget.h.
| Type* MyGUI::Widget::castType | ( | bool | _throw = true |
) | [inline] |
Try to cast pointer to selected type. \ @param _throw If true throw exception when casting in wrong type, else return nullptr \
Reimplemented from MyGUI::IObject.
Definition at line 55 of file MyGUI_Widget.h.
| const Type* MyGUI::Widget::castType | ( | bool | _throw = true |
) | const [inline] |
Try to cast pointer to selected type. \ @param _throw If true throw exception when casting in wrong type, else return nullptr \
Reimplemented from MyGUI::IObject.
Definition at line 57 of file MyGUI_Widget.h.
| Widget * MyGUI::Widget::createWidgetT | ( | const std::string & | _type, | |
| const std::string & | _skin, | |||
| const IntCoord & | _coord, | |||
| Align | _align, | |||
| const std::string & | _name = "" | |||
| ) |
Create child widget
| _type | widget type | |
| _skin | widget skin | |
| _coord | int coordinates of widget (_left, _top, _width, _height) | |
| _align | widget align (possible values can be found in enum Align) | |
| _name | if needed (you can use it for finding widget by name later) |
Definition at line 1502 of file MyGUI_Widget.cpp.
| Widget * MyGUI::Widget::createWidgetT | ( | const std::string & | _type, | |
| const std::string & | _skin, | |||
| int | _left, | |||
| int | _top, | |||
| int | _width, | |||
| int | _height, | |||
| Align | _align, | |||
| const std::string & | _name = "" | |||
| ) |
See Widget::createWidgetT(const std::string& _type, const std::string& _skin, const IntCoord& _coord, Align _align, const std::string& _name = "")
Definition at line 1507 of file MyGUI_Widget.cpp.
| Widget * MyGUI::Widget::createWidgetRealT | ( | const std::string & | _type, | |
| const std::string & | _skin, | |||
| const FloatCoord & | _coord, | |||
| Align | _align, | |||
| const std::string & | _name = "" | |||
| ) |
Create widget using coordinates relative to parent. see Widget::createWidgetT(const std::string& _type, const std::string& _skin, const IntCoord& _coord, Align _align, const std::string& _name = "")
Definition at line 372 of file MyGUI_Widget.cpp.
| Widget * MyGUI::Widget::createWidgetRealT | ( | const std::string & | _type, | |
| const std::string & | _skin, | |||
| float | _left, | |||
| float | _top, | |||
| float | _width, | |||
| float | _height, | |||
| Align | _align, | |||
| const std::string & | _name = "" | |||
| ) |
Create widget using coordinates relative to parent. see Widget::createWidgetT(const std::string& _type, const std::string& _skin, const IntCoord& _coord, Align _align, const std::string& _name = "")
Definition at line 1512 of file MyGUI_Widget.cpp.
| T* MyGUI::Widget::createWidget | ( | const std::string & | _skin, | |
| const IntCoord & | _coord, | |||
| Align | _align, | |||
| const std::string & | _name = "" | |||
| ) | [inline] |
Same as Widget::createWidgetT but return T pointer instead of Widget*
Definition at line 83 of file MyGUI_Widget.h.
| T* MyGUI::Widget::createWidget | ( | const std::string & | _skin, | |
| int | _left, | |||
| int | _top, | |||
| int | _width, | |||
| int | _height, | |||
| Align | _align, | |||
| const std::string & | _name = "" | |||
| ) | [inline] |
Same as Widget::createWidgetT but return T pointer instead of Widget*
Definition at line 90 of file MyGUI_Widget.h.
| T* MyGUI::Widget::createWidgetReal | ( | const std::string & | _skin, | |
| const FloatCoord & | _coord, | |||
| Align | _align, | |||
| const std::string & | _name = "" | |||
| ) | [inline] |
Same as Widget::createWidgetRealT but return T* instead of Widget*
Definition at line 97 of file MyGUI_Widget.h.
| T* MyGUI::Widget::createWidgetReal | ( | const std::string & | _skin, | |
| float | _left, | |||
| float | _top, | |||
| float | _width, | |||
| float | _height, | |||
| Align | _align, | |||
| const std::string & | _name = "" | |||
| ) | [inline] |
Same as Widget::createWidgetRealT but return T* instead of Widget*
Definition at line 104 of file MyGUI_Widget.h.
| Widget * MyGUI::Widget::createWidgetT | ( | WidgetStyle | _style, | |
| const std::string & | _type, | |||
| const std::string & | _skin, | |||
| const IntCoord & | _coord, | |||
| Align | _align, | |||
| const std::string & | _layer = "", |
|||
| const std::string & | _name = "" | |||
| ) |
Create child widget
| _style | Child, Popup or Overlapped widget style | |
| _type | widget type | |
| _skin | widget skin | |
| _coord | int coordinates of widget (_left, _top, _width, _height) | |
| _align | widget align (possible values can be found in enum Align) | |
| _name | if needed (you can use it for finding widget by name later) |
Definition at line 1517 of file MyGUI_Widget.cpp.
| T* MyGUI::Widget::createWidget | ( | WidgetStyle | _style, | |
| const std::string & | _skin, | |||
| const IntCoord & | _coord, | |||
| Align | _align, | |||
| const std::string & | _layer = "", |
|||
| const std::string & | _name = "" | |||
| ) | [inline] |
Same as Widget::createWidgetT but return T* instead of Widget*
Definition at line 121 of file MyGUI_Widget.h.
| const std::string& MyGUI::Widget::getName | ( | void | ) | const [inline] |
| void MyGUI::Widget::setPosition | ( | const IntPoint & | _value | ) | [virtual] |
Set widget position (position of left top corner)
Reimplemented from MyGUI::ICroppedRectangle.
Reimplemented in MyGUI::Edit, MyGUI::ItemBox, MyGUI::List, MyGUI::ListCtrl, MyGUI::Progress, MyGUI::ScrollView, MyGUI::Tab, MyGUI::VScroll, and MyGUI::Window.
Definition at line 1041 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::setSize | ( | const IntSize & | _value | ) | [virtual] |
Set widget size
Reimplemented from MyGUI::ICroppedRectangle.
Reimplemented in MyGUI::Canvas, MyGUI::Edit, MyGUI::ItemBox, MyGUI::List, MyGUI::ListCtrl, MyGUI::Progress, MyGUI::ScrollView, MyGUI::Tab, MyGUI::VScroll, and MyGUI::Window.
Definition at line 1079 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::setCoord | ( | const IntCoord & | _value | ) | [virtual] |
Set widget position and size
Reimplemented from MyGUI::ICroppedRectangle.
Reimplemented in MyGUI::Canvas, MyGUI::Edit, MyGUI::ItemBox, MyGUI::List, MyGUI::ListCtrl, MyGUI::Progress, MyGUI::ScrollView, MyGUI::Tab, MyGUI::VScroll, and MyGUI::Window.
Definition at line 1137 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::setPosition | ( | int | _left, | |
| int | _top | |||
| ) | [inline] |
See Widget::setPosition(const IntPoint& _pos)
Reimplemented in MyGUI::Edit, MyGUI::ItemBox, MyGUI::List, MyGUI::ListCtrl, MyGUI::Progress, MyGUI::ScrollView, MyGUI::Tab, MyGUI::VScroll, and MyGUI::Window.
Definition at line 138 of file MyGUI_Widget.h.
| void MyGUI::Widget::setSize | ( | int | _width, | |
| int | _height | |||
| ) | [inline] |
See Widget::setSize(const IntSize& _size)
Reimplemented in MyGUI::Canvas, MyGUI::Edit, MyGUI::ItemBox, MyGUI::List, MyGUI::ListCtrl, MyGUI::Progress, MyGUI::ScrollView, MyGUI::Tab, MyGUI::VScroll, and MyGUI::Window.
Definition at line 140 of file MyGUI_Widget.h.
| void MyGUI::Widget::setCoord | ( | int | _left, | |
| int | _top, | |||
| int | _width, | |||
| int | _height | |||
| ) | [inline] |
See Widget::setCoord(const IntCoord& _coord)
Reimplemented in MyGUI::Canvas, MyGUI::Edit, MyGUI::ItemBox, MyGUI::List, MyGUI::ListCtrl, MyGUI::Progress, MyGUI::ScrollView, MyGUI::Tab, MyGUI::VScroll, and MyGUI::Window.
Definition at line 142 of file MyGUI_Widget.h.
| void MyGUI::Widget::setRealPosition | ( | const FloatPoint & | _value | ) |
Set widget position (position of left top corner)
Definition at line 841 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::setRealSize | ( | const FloatSize & | _value | ) |
Set widget size
Definition at line 846 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::setRealCoord | ( | const FloatCoord & | _value | ) |
Set widget position and size
Definition at line 851 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::setRealPosition | ( | float | _left, | |
| float | _top | |||
| ) | [inline] |
See Widget::setRealPosition(const FloatPoint& _point)
Definition at line 152 of file MyGUI_Widget.h.
| void MyGUI::Widget::setRealSize | ( | float | _width, | |
| float | _height | |||
| ) | [inline] |
See Widget::setRealSize(const FloatSize& _size)
Definition at line 154 of file MyGUI_Widget.h.
| void MyGUI::Widget::setRealCoord | ( | float | _left, | |
| float | _top, | |||
| float | _width, | |||
| float | _height | |||
| ) | [inline] |
See Widget::setRealPosition(const FloatCoord& _coord)
Definition at line 156 of file MyGUI_Widget.h.
| void MyGUI::Widget::setVisible | ( | bool | _value | ) | [virtual] |
Hide or show widget
Reimplemented from MyGUI::ICroppedRectangle.
Reimplemented in MyGUI::MenuCtrl, and MyGUI::Window.
Definition at line 1639 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::setAlign | ( | Align | _value | ) | [virtual] |
Set align
Reimplemented from MyGUI::ICroppedRectangle.
Definition at line 1205 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::setCaption | ( | const UString & | _value | ) | [virtual] |
Set widget caption
Reimplemented in MyGUI::Edit, MyGUI::MenuItem, MyGUI::TabItem, and MyGUI::Window.
Definition at line 431 of file MyGUI_Widget.cpp.
| const UString & MyGUI::Widget::getCaption | ( | ) | [virtual] |
Get widget caption
Reimplemented in MyGUI::Edit, MyGUI::TabItem, and MyGUI::Window.
Definition at line 436 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::setAlpha | ( | float | _value | ) |
Set widget opacity
Definition at line 517 of file MyGUI_Widget.cpp.
| float MyGUI::Widget::getAlpha | ( | ) | [inline] |
Get widget opacity
Definition at line 172 of file MyGUI_Widget.h.
| void MyGUI::Widget::setInheritsAlpha | ( | bool | _value | ) |
Enable or disable inherits alpha mode
Definition at line 539 of file MyGUI_Widget.cpp.
| bool MyGUI::Widget::isInheritsAlpha | ( | ) | [inline] |
Get inherits alpha mode flag
Definition at line 177 of file MyGUI_Widget.h.
| bool MyGUI::Widget::setState | ( | const std::string & | _value | ) |
Set widget's state
Definition at line 446 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::setColour | ( | const Colour & | _value | ) |
Definition at line 1714 of file MyGUI_Widget.cpp.
| bool MyGUI::Widget::isRootWidget | ( | ) | [inline] |
Is this widget is root widget (root == without parents)
Definition at line 186 of file MyGUI_Widget.h.
| Widget* MyGUI::Widget::getParent | ( | ) | [inline] |
Get parent widget or nullptr if no parent
Definition at line 189 of file MyGUI_Widget.h.
| EnumeratorWidgetPtr MyGUI::Widget::getEnumerator | ( | ) |
Get child widgets Enumerator
Definition at line 1522 of file MyGUI_Widget.cpp.
| size_t MyGUI::Widget::getChildCount | ( | ) |
Get child count
Definition at line 1529 of file MyGUI_Widget.cpp.
| Widget * MyGUI::Widget::getChildAt | ( | size_t | _index | ) |
Get child by index (index from 0 to child_count - 1)
Definition at line 1536 of file MyGUI_Widget.cpp.
| Widget * MyGUI::Widget::findWidget | ( | const std::string & | _name | ) |
Find widget by name (search recursively through all childs starting from this widget)
Definition at line 658 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::setNeedKeyFocus | ( | bool | _value | ) | [inline] |
Set need key focus flag
Definition at line 204 of file MyGUI_Widget.h.
| bool MyGUI::Widget::isNeedKeyFocus | ( | ) | [inline] |
Is need key focus If disable this widget won't be reacting on keyboard at all.
Enabled (true) by default.
Definition at line 209 of file MyGUI_Widget.h.
| void MyGUI::Widget::setNeedMouseFocus | ( | bool | _value | ) | [inline] |
Set need mouse focus flag
Definition at line 212 of file MyGUI_Widget.h.
| bool MyGUI::Widget::isNeedMouseFocus | ( | ) | [inline] |
Is need mouse focus If disable this widget won't be reacting on mouse at all.
Enabled (true) by default.
Definition at line 217 of file MyGUI_Widget.h.
| void MyGUI::Widget::setInheritsPick | ( | bool | _value | ) | [inline] |
Set inherits mode flag This mode makes all child widgets pickable even if widget don't need mouse focus (was set setNeedKeyFocus(false) ).
Disabled (false) by default.
Definition at line 224 of file MyGUI_Widget.h.
| bool MyGUI::Widget::isInheritsPick | ( | ) | [inline] |
Get inherits mode flag
Definition at line 226 of file MyGUI_Widget.h.
| void MyGUI::Widget::setMaskPick | ( | const std::string & | _filename | ) |
Set picking mask for widget
Definition at line 829 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::setEnabled | ( | bool | _value | ) | [virtual] |
Enable or disable widget
Definition at line 1672 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::setEnabledSilent | ( | bool | _value | ) | [inline] |
Enable or disable widget without changing widget's state
Definition at line 234 of file MyGUI_Widget.h.
| bool MyGUI::Widget::isEnabled | ( | ) | [inline] |
Is widget enabled
Definition at line 236 of file MyGUI_Widget.h.
| void MyGUI::Widget::setPointer | ( | const std::string & | _value | ) | [inline] |
Set mouse pointer for this widget
Definition at line 239 of file MyGUI_Widget.h.
| const std::string & MyGUI::Widget::getPointer | ( | ) |
Get mouse pointer name for this widget
Definition at line 1544 of file MyGUI_Widget.cpp.
| const std::string & MyGUI::Widget::getLayerName | ( | ) |
Get widget's layer, return "" if widget is not root widget (root == without parents)
Definition at line 640 of file MyGUI_Widget.cpp.
| IntCoord MyGUI::Widget::getClientCoord | ( | ) |
Get rect where child widgets placed
Reimplemented in MyGUI::ScrollView.
Definition at line 510 of file MyGUI_Widget.cpp.
| Widget* MyGUI::Widget::getClientWidget | ( | ) | [inline] |
Get clien area widget or nullptr if widget don't have client
Definition at line 250 of file MyGUI_Widget.h.
| ISubWidgetText* MyGUI::Widget::getSubWidgetText | ( | ) | [inline] |
Get text sub widget or nullptr if no text sub widget
Definition at line 253 of file MyGUI_Widget.h.
| ISubWidgetRect* MyGUI::Widget::getSubWidgetMain | ( | ) | [inline] |
Get sub widget of first texture or nullptr if no sub widget with texture
Definition at line 255 of file MyGUI_Widget.h.
| void MyGUI::Widget::setNeedToolTip | ( | bool | _value | ) |
Set need tool tip mode flag. Enable this if you need tool tip events for widget
Definition at line 671 of file MyGUI_Widget.cpp.
| bool MyGUI::Widget::getNeedToolTip | ( | ) | [inline] |
Get need tool tip mode flag
Definition at line 260 of file MyGUI_Widget.h.
| void MyGUI::Widget::setEnableToolTip | ( | bool | _value | ) |
Enable or disable tooltip event
Definition at line 795 of file MyGUI_Widget.cpp.
| bool MyGUI::Widget::getEnableToolTip | ( | ) | [inline] |
Get tool tip enabled flag
Definition at line 265 of file MyGUI_Widget.h.
| void MyGUI::Widget::detachFromWidget | ( | const std::string & | _layer = "" |
) |
Detach widget from widgets hierarchy
| _layer | Attach to specified layer (if any) |
Definition at line 1239 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::attachToWidget | ( | Widget * | _parent, | |
| WidgetStyle | _style = WidgetStyle::Child, |
|||
| const std::string & | _layer = "" | |||
| ) |
Attach widget to parent
| _style | Child widget type | |
| _layer | Attach to specified layer (if any) |
Definition at line 1301 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::changeWidgetSkin | ( | const std::string & | _skinname | ) |
Change widget skin
Definition at line 214 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::setWidgetStyle | ( | WidgetStyle | _style, | |
| const std::string & | _layer = "" | |||
| ) |
Set widget style.
| _layer | Attach to specified layer (if any) |
Definition at line 1382 of file MyGUI_Widget.cpp.
| WidgetStyle MyGUI::Widget::getWidgetStyle | ( | ) | [inline] |
Get widget style
Definition at line 290 of file MyGUI_Widget.h.
| void MyGUI::Widget::setProperty | ( | const std::string & | _key, | |
| const std::string & | _value | |||
| ) | [virtual] |
Set any widget property
| _key | Property name (for example Widget_Alpha or Edit_MultiLine) | |
| _value | Value converted to string |
Reimplemented in MyGUI::Button, MyGUI::ComboBox, MyGUI::DDContainer, MyGUI::Edit, MyGUI::List, MyGUI::MenuItem, MyGUI::Message, MyGUI::Progress, MyGUI::ScrollView, MyGUI::StaticImage, MyGUI::StaticText, MyGUI::Tab, MyGUI::TabItem, MyGUI::VScroll, and MyGUI::Window.
Definition at line 1554 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::_getContainer | ( | Widget *& | _container, | |
| size_t & | _index | |||
| ) | [virtual] |
| void MyGUI::Widget::_forcePeek | ( | Widget * | _widget | ) |
Definition at line 622 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::_setUVSet | ( | const FloatRect & | _rect | ) |
Definition at line 590 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::_setTextureName | ( | const std::string & | _texture | ) | [virtual] |
Definition at line 595 of file MyGUI_Widget.cpp.
| const std::string & MyGUI::Widget::_getTextureName | ( | ) | [virtual] |
Definition at line 605 of file MyGUI_Widget.cpp.
| IWidgetCreator* MyGUI::Widget::_getIWidgetCreator | ( | ) | [inline] |
Definition at line 311 of file MyGUI_Widget.h.
| IntCoord MyGUI::Widget::_getTextRegion | ( | ) |
Definition at line 948 of file MyGUI_Widget.cpp.
| IntSize MyGUI::Widget::_getTextSize | ( | ) |
Definition at line 940 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::_setFontName | ( | const std::string & | _font | ) |
Definition at line 903 of file MyGUI_Widget.cpp.
| const std::string & MyGUI::Widget::_getFontName | ( | ) |
Definition at line 911 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::_setFontHeight | ( | int | _height | ) |
Definition at line 924 of file MyGUI_Widget.cpp.
| int MyGUI::Widget::_getFontHeight | ( | ) |
Definition at line 932 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::_setTextAlign | ( | Align | _align | ) |
Definition at line 870 of file MyGUI_Widget.cpp.
| Align MyGUI::Widget::_getTextAlign | ( | ) |
Definition at line 878 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::_setTextColour | ( | const Colour & | _colour | ) |
Definition at line 887 of file MyGUI_Widget.cpp.
| const Colour & MyGUI::Widget::_getTextColour | ( | ) |
Definition at line 895 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::setCaptionWithNewLine | ( | const std::string & | _value | ) |
Definition at line 1481 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::_initialise | ( | WidgetStyle | _style, | |
| const IntCoord & | _coord, | |||
| Align | _align, | |||
| ResourceSkin * | _info, | |||
| Widget * | _parent, | |||
| ICroppedRectangle * | _croppedParent, | |||
| IWidgetCreator * | _creator, | |||
| const std::string & | _name | |||
| ) | [virtual] |
Reimplemented in MyGUI::Button, MyGUI::Canvas, MyGUI::ComboBox, MyGUI::DDContainer, MyGUI::Edit, MyGUI::HScroll, MyGUI::ItemBox, MyGUI::List, MyGUI::ListBox, MyGUI::ListCtrl, MyGUI::MenuBar, MyGUI::MenuCtrl, MyGUI::MenuItem, MyGUI::Message, MyGUI::MultiList, MyGUI::PopupMenu, MyGUI::Progress, MyGUI::ScrollView, MyGUI::StaticImage, MyGUI::StaticText, MyGUI::Tab, MyGUI::TabItem, MyGUI::VScroll, and MyGUI::Window.
Definition at line 105 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::setPosition | ( | const IntCoord & | _coord | ) | [inline] |
Reimplemented in MyGUI::Edit, MyGUI::ItemBox, MyGUI::List, MyGUI::Progress, MyGUI::ScrollView, MyGUI::Tab, MyGUI::VScroll, and MyGUI::Window.
Definition at line 333 of file MyGUI_Widget.h.
| void MyGUI::Widget::setPosition | ( | int | _left, | |
| int | _top, | |||
| int | _width, | |||
| int | _height | |||
| ) | [inline] |
Reimplemented in MyGUI::Edit, MyGUI::ItemBox, MyGUI::List, MyGUI::Progress, MyGUI::ScrollView, MyGUI::Tab, MyGUI::VScroll, and MyGUI::Window.
Definition at line 335 of file MyGUI_Widget.h.
| void MyGUI::Widget::enableToolTip | ( | bool | _enable | ) | [inline] |
| void MyGUI::Widget::setInheritsPeek | ( | bool | _inherits | ) | [inline] |
Definition at line 341 of file MyGUI_Widget.h.
| bool MyGUI::Widget::isInheritsPeek | ( | ) | [inline] |
| void MyGUI::Widget::setMaskPeek | ( | const std::string & | _filename | ) | [inline] |
Definition at line 346 of file MyGUI_Widget.h.
| IntCoord MyGUI::Widget::getTextCoord | ( | ) | [inline] |
Definition at line 349 of file MyGUI_Widget.h.
| IntSize MyGUI::Widget::getTextSize | ( | ) | [inline] |
Reimplemented in MyGUI::StaticText.
Definition at line 351 of file MyGUI_Widget.h.
| void MyGUI::Widget::setFontName | ( | const std::string & | _font | ) | [inline] |
Reimplemented in MyGUI::Edit, and MyGUI::StaticText.
Definition at line 354 of file MyGUI_Widget.h.
| const std::string& MyGUI::Widget::getFontName | ( | ) | [inline] |
Reimplemented in MyGUI::StaticText.
Definition at line 356 of file MyGUI_Widget.h.
| void MyGUI::Widget::setFontHeight | ( | int | _height | ) | [inline] |
Reimplemented in MyGUI::Edit, and MyGUI::StaticText.
Definition at line 359 of file MyGUI_Widget.h.
| int MyGUI::Widget::getFontHeight | ( | ) | [inline] |
Reimplemented in MyGUI::StaticText.
Definition at line 361 of file MyGUI_Widget.h.
| void MyGUI::Widget::setTextAlign | ( | Align | _align | ) | [inline] |
Reimplemented in MyGUI::Edit, and MyGUI::StaticText.
Definition at line 364 of file MyGUI_Widget.h.
| Align MyGUI::Widget::getTextAlign | ( | ) | [inline] |
Reimplemented in MyGUI::StaticText.
Definition at line 366 of file MyGUI_Widget.h.
| void MyGUI::Widget::setTextColour | ( | const Colour & | _colour | ) | [inline] |
Reimplemented in MyGUI::Edit, and MyGUI::StaticText.
Definition at line 369 of file MyGUI_Widget.h.
| const Colour& MyGUI::Widget::getTextColour | ( | ) | [inline] |
Reimplemented in MyGUI::StaticText.
Definition at line 371 of file MyGUI_Widget.h.
| void MyGUI::Widget::baseChangeWidgetSkin | ( | ResourceSkin * | _info | ) | [protected, virtual] |
Reimplemented in MyGUI::Button, MyGUI::Canvas, MyGUI::ComboBox, MyGUI::DDContainer, MyGUI::Edit, MyGUI::HScroll, MyGUI::ItemBox, MyGUI::List, MyGUI::ListBox, MyGUI::ListCtrl, MyGUI::MenuBar, MyGUI::MenuCtrl, MyGUI::MenuItem, MyGUI::Message, MyGUI::MultiList, MyGUI::PopupMenu, MyGUI::Progress, MyGUI::ScrollView, MyGUI::StaticImage, MyGUI::StaticText, MyGUI::Tab, MyGUI::VScroll, and MyGUI::Window.
Definition at line 220 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::_updateView | ( | ) | [protected, virtual] |
| void MyGUI::Widget::_setAlign | ( | const IntSize & | _oldsize, | |
| bool | _update | |||
| ) | [protected, virtual] |
| void MyGUI::Widget::_setAlign | ( | const IntCoord & | _oldcoord, | |
| bool | _update | |||
| ) | [protected, virtual] |
| Widget * MyGUI::Widget::baseCreateWidget | ( | WidgetStyle | _style, | |
| const std::string & | _type, | |||
| const std::string & | _skin, | |||
| const IntCoord & | _coord, | |||
| Align | _align, | |||
| const std::string & | _layer, | |||
| const std::string & | _name | |||
| ) | [protected, virtual] |
Implements MyGUI::IWidgetCreator.
Reimplemented in MyGUI::MenuCtrl, MyGUI::MenuItem, MyGUI::ScrollView, MyGUI::Tab, and MyGUI::Window.
Definition at line 359 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::_destroyChildWidget | ( | Widget * | _widget | ) | [protected, virtual] |
| void MyGUI::Widget::_destroyAllChildWidget | ( | ) | [protected, virtual] |
| virtual size_t MyGUI::Widget::_getContainerIndex | ( | const IntPoint & | _point | ) | [inline, protected, virtual] |
Reimplemented in MyGUI::ItemBox, and MyGUI::ListCtrl.
Definition at line 397 of file MyGUI_Widget.h.
| void MyGUI::Widget::_resetContainer | ( | bool | _update | ) | [protected, virtual] |
Reimplemented in MyGUI::ItemBox, and MyGUI::ListCtrl.
Definition at line 815 of file MyGUI_Widget.cpp.
| void MyGUI::Widget::baseUpdateEnable | ( | ) | [protected, virtual] |
| ILayerItem * MyGUI::Widget::getLayerItemByPoint | ( | int | _left, | |
| int | _top | |||
| ) | [protected, virtual] |
| virtual const IntCoord& MyGUI::Widget::getLayerItemCoord | ( | ) | [inline, protected, virtual] |
friend class IWidgetCreator [friend] |
Definition at line 51 of file MyGUI_Widget.h.
MapWidgetStateInfo MyGUI::Widget::mStateInfo [protected] |
Definition at line 437 of file MyGUI_Widget.h.
MaskPickInfo const* MyGUI::Widget::mMaskPickInfo [protected] |
Definition at line 439 of file MyGUI_Widget.h.
MaskPickInfo MyGUI::Widget::mOwnMaskPickInfo [protected] |
Definition at line 440 of file MyGUI_Widget.h.
VectorWidgetPtr MyGUI::Widget::mWidgetChild [protected] |
Definition at line 443 of file MyGUI_Widget.h.
VectorWidgetPtr MyGUI::Widget::mWidgetChildSkin [protected] |
Definition at line 445 of file MyGUI_Widget.h.
VectorSubWidget MyGUI::Widget::mSubSkinChild [protected] |
Definition at line 447 of file MyGUI_Widget.h.
ISubWidgetText* MyGUI::Widget::mText [protected] |
Definition at line 450 of file MyGUI_Widget.h.
ISubWidgetRect* MyGUI::Widget::mMainSkin [protected] |
Definition at line 452 of file MyGUI_Widget.h.
bool MyGUI::Widget::mEnabled [protected] |
Definition at line 455 of file MyGUI_Widget.h.
bool MyGUI::Widget::mInheritsEnabled [protected] |
Definition at line 456 of file MyGUI_Widget.h.
bool MyGUI::Widget::mSubSkinsVisible [protected] |
Definition at line 458 of file MyGUI_Widget.h.
bool MyGUI::Widget::mInheritsVisible [protected] |
Definition at line 460 of file MyGUI_Widget.h.
float MyGUI::Widget::mAlpha [protected] |
Definition at line 462 of file MyGUI_Widget.h.
float MyGUI::Widget::mRealAlpha [protected] |
Definition at line 463 of file MyGUI_Widget.h.
bool MyGUI::Widget::mInheritsAlpha [protected] |
Definition at line 464 of file MyGUI_Widget.h.
std::string MyGUI::Widget::mName [protected] |
Definition at line 466 of file MyGUI_Widget.h.
std::string MyGUI::Widget::mPointer [protected] |
Definition at line 468 of file MyGUI_Widget.h.
std::string MyGUI::Widget::mTextureName [protected] |
Definition at line 469 of file MyGUI_Widget.h.
ITexture* MyGUI::Widget::mTexture [protected] |
Reimplemented from MyGUI::LayerItem.
Reimplemented in MyGUI::Canvas.
Definition at line 470 of file MyGUI_Widget.h.
Widget* MyGUI::Widget::mParent [protected] |
Definition at line 473 of file MyGUI_Widget.h.
IWidgetCreator* MyGUI::Widget::mIWidgetCreator [protected] |
Definition at line 476 of file MyGUI_Widget.h.
bool MyGUI::Widget::mNeedKeyFocus [protected] |
Definition at line 479 of file MyGUI_Widget.h.
bool MyGUI::Widget::mNeedMouseFocus [protected] |
Definition at line 481 of file MyGUI_Widget.h.
bool MyGUI::Widget::mInheritsPick [protected] |
Definition at line 482 of file MyGUI_Widget.h.
Widget* MyGUI::Widget::mWidgetClient [protected] |
Definition at line 487 of file MyGUI_Widget.h.
bool MyGUI::Widget::mNeedToolTip [protected] |
Definition at line 489 of file MyGUI_Widget.h.
bool MyGUI::Widget::mEnableToolTip [protected] |
Definition at line 490 of file MyGUI_Widget.h.
bool MyGUI::Widget::mToolTipVisible [protected] |
Definition at line 491 of file MyGUI_Widget.h.
float MyGUI::Widget::mToolTipCurrentTime [protected] |
Definition at line 492 of file MyGUI_Widget.h.
IntPoint MyGUI::Widget::mToolTipOldPoint [protected] |
Definition at line 493 of file MyGUI_Widget.h.
size_t MyGUI::Widget::mToolTipOldIndex [protected] |
Definition at line 494 of file MyGUI_Widget.h.
IntPoint MyGUI::Widget::m_oldMousePoint [protected] |
Definition at line 495 of file MyGUI_Widget.h.
WidgetStyle MyGUI::Widget::mWidgetStyle [protected] |
Definition at line 498 of file MyGUI_Widget.h.
FloatCoord MyGUI::Widget::mRelativeCoord [protected] |
Definition at line 500 of file MyGUI_Widget.h.
bool MyGUI::Widget::mDisableUpdateRelative [protected] |
Definition at line 501 of file MyGUI_Widget.h.
1.5.6