MyGUI
3.0.1
|
#include <MyGUI_StaticText.h>
Public Types | |
typedef RTTIBase | Base |
typedef StaticText | 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 |
StaticText () | |
IntCoord | getTextRegion () |
IntSize | getTextSize () |
virtual void | setFontName (const std::string &_value) |
const std::string & | getFontName () |
virtual void | setFontHeight (int _value) |
int | getFontHeight () |
virtual void | setTextAlign (Align _value) |
Align | getTextAlign () |
virtual void | setTextColour (const Colour &_value) |
const Colour & | getTextColour () |
virtual void | setProperty (const std::string &_key, 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) |
Static Public Member Functions | |
static const std::string & | getClassTypeName () |
Protected Member Functions | |
virtual | ~StaticText () |
void | baseChangeWidgetSkin (ResourceSkin *_info) |
Definition at line 32 of file MyGUI_StaticText.h.
typedef RTTIBase MyGUI::StaticText::Base |
Reimplemented in MyGUI::Edit, MyGUI::ComboBox, MyGUI::MenuItem, and MyGUI::Button.
Definition at line 35 of file MyGUI_StaticText.h.
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::Edit, MyGUI::ComboBox, MyGUI::MenuItem, and MyGUI::Button.
Definition at line 35 of file MyGUI_StaticText.h.
Definition at line 29 of file MyGUI_StaticText.cpp.
MyGUI::StaticText::~StaticText | ( | ) | [protected, virtual] |
Definition at line 40 of file MyGUI_StaticText.cpp.
void MyGUI::StaticText::_initialise | ( | WidgetStyle | _style, |
const IntCoord & | _coord, | ||
Align | _align, | ||
ResourceSkin * | _info, | ||
Widget * | _parent, | ||
ICroppedRectangle * | _croppedParent, | ||
IWidgetCreator * | _creator, | ||
const std::string & | _name | ||
) | [virtual] |
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::Edit, MyGUI::ComboBox, MyGUI::MenuItem, and MyGUI::Button.
Definition at line 33 of file MyGUI_StaticText.cpp.
void MyGUI::StaticText::baseChangeWidgetSkin | ( | ResourceSkin * | _info | ) | [protected, virtual] |
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::Edit, MyGUI::ComboBox, MyGUI::MenuItem, and MyGUI::Button.
Definition at line 45 of file MyGUI_StaticText.cpp.
static const std::string& MyGUI::StaticText::getClassTypeName | ( | ) | [inline, static] |
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::Edit, MyGUI::ComboBox, MyGUI::MenuItem, and MyGUI::Button.
Definition at line 35 of file MyGUI_StaticText.h.
int MyGUI::StaticText::getFontHeight | ( | ) |
Get widget text font height
Reimplemented from MyGUI::Widget.
Definition at line 121 of file MyGUI_StaticText.cpp.
const std::string & MyGUI::StaticText::getFontName | ( | ) |
Get widget text font name
Reimplemented from MyGUI::Widget.
Definition at line 106 of file MyGUI_StaticText.cpp.
Get widget text align
Reimplemented from MyGUI::Widget.
Definition at line 85 of file MyGUI_StaticText.cpp.
const Colour & MyGUI::StaticText::getTextColour | ( | ) |
Get widget text colour
Reimplemented from MyGUI::Widget.
Definition at line 96 of file MyGUI_StaticText.cpp.
Get text region coordinate
Definition at line 70 of file MyGUI_StaticText.cpp.
Get text region size
Reimplemented from MyGUI::Widget.
Definition at line 75 of file MyGUI_StaticText.cpp.
virtual const std::string& MyGUI::StaticText::getTypeName | ( | ) | const [inline, virtual] |
Get type name as string
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::Edit, MyGUI::ComboBox, MyGUI::MenuItem, and MyGUI::Button.
Definition at line 35 of file MyGUI_StaticText.h.
bool MyGUI::StaticText::isType | ( | ) | const [inline] |
Compare with selected type
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::Edit, MyGUI::ComboBox, MyGUI::MenuItem, and MyGUI::Button.
Definition at line 35 of file MyGUI_StaticText.h.
virtual bool MyGUI::StaticText::isType | ( | const std::type_info & | _type | ) | const [inline, virtual] |
Compare with selected type
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::Edit, MyGUI::ComboBox, MyGUI::MenuItem, and MyGUI::Button.
Definition at line 35 of file MyGUI_StaticText.h.
void MyGUI::StaticText::setFontHeight | ( | int | _value | ) | [virtual] |
Set widget text font height
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::Edit.
Definition at line 116 of file MyGUI_StaticText.cpp.
void MyGUI::StaticText::setFontName | ( | const std::string & | _value | ) | [virtual] |
Set widget text font
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::Edit.
Definition at line 101 of file MyGUI_StaticText.cpp.
void MyGUI::StaticText::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 from MyGUI::Widget.
Reimplemented in MyGUI::Edit, MyGUI::ComboBox, MyGUI::MenuItem, and MyGUI::Button.
Definition at line 126 of file MyGUI_StaticText.cpp.
void MyGUI::StaticText::setTextAlign | ( | Align | _value | ) | [virtual] |
Set widget text align
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::Edit.
Definition at line 80 of file MyGUI_StaticText.cpp.
void MyGUI::StaticText::setTextColour | ( | const Colour & | _value | ) | [virtual] |
Set widget text colour
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::Edit.
Definition at line 91 of file MyGUI_StaticText.cpp.