MyGUI
3.2.0
|
#include <MyGUI_TextBox.h>
Public Types | |
typedef RTTIBase | Base |
typedef TextBox | 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 |
TextBox () | |
virtual IntCoord | getTextRegion () |
virtual IntSize | getTextSize () |
virtual void | setCaption (const UString &_value) |
virtual const UString & | getCaption () |
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 () |
void | setCaptionWithReplacing (const std::string &_value) |
virtual void | setTextShadowColour (const Colour &_value) |
const Colour & | getTextShadowColour () |
virtual void | setTextShadow (bool _value) |
bool | getTextShadow () |
Static Public Member Functions | |
static const std::string & | getClassTypeName () |
Protected Member Functions | |
virtual void | setPropertyOverride (const std::string &_key, const std::string &_value) |
Definition at line 31 of file MyGUI_TextBox.h.
typedef RTTIBase MyGUI::TextBox::Base |
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::ComboBox, MyGUI::Window, MyGUI::EditBox, MyGUI::MenuItem, MyGUI::MultiListItem, MyGUI::Button, and MyGUI::TabItem.
Definition at line 34 of file MyGUI_TextBox.h.
typedef TextBox MyGUI::TextBox::RTTIBase |
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::ComboBox, MyGUI::Window, MyGUI::EditBox, MyGUI::MenuItem, MyGUI::MultiListItem, MyGUI::Button, and MyGUI::TabItem.
Definition at line 34 of file MyGUI_TextBox.h.
Definition at line 30 of file MyGUI_TextBox.cpp.
const UString & MyGUI::TextBox::getCaption | ( | ) | [virtual] |
Get widget caption
Reimplemented in MyGUI::EditBox, MyGUI::Window, MyGUI::MultiListItem, and MyGUI::TabItem.
Definition at line 98 of file MyGUI_TextBox.cpp.
static const std::string& MyGUI::TextBox::getClassTypeName | ( | ) | [inline, static] |
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::ComboBox, MyGUI::Window, MyGUI::EditBox, MyGUI::MenuItem, MyGUI::MultiListItem, MyGUI::Button, and MyGUI::TabItem.
Definition at line 34 of file MyGUI_TextBox.h.
int MyGUI::TextBox::getFontHeight | ( | ) |
Get widget text font height
Definition at line 87 of file MyGUI_TextBox.cpp.
const std::string & MyGUI::TextBox::getFontName | ( | ) |
Get widget text font name
Definition at line 74 of file MyGUI_TextBox.cpp.
Get widget text align
Definition at line 50 of file MyGUI_TextBox.cpp.
const Colour & MyGUI::TextBox::getTextColour | ( | ) |
Get widget text colour
Definition at line 63 of file MyGUI_TextBox.cpp.
IntCoord MyGUI::TextBox::getTextRegion | ( | ) | [virtual] |
Get text region coordinate
Reimplemented in MyGUI::EditBox.
Definition at line 34 of file MyGUI_TextBox.cpp.
bool MyGUI::TextBox::getTextShadow | ( | ) |
Get widget text shadow
Definition at line 143 of file MyGUI_TextBox.cpp.
const Colour & MyGUI::TextBox::getTextShadowColour | ( | ) |
Get widget text shadow colour
Definition at line 132 of file MyGUI_TextBox.cpp.
IntSize MyGUI::TextBox::getTextSize | ( | ) | [virtual] |
Get text region size
Reimplemented in MyGUI::EditBox.
Definition at line 39 of file MyGUI_TextBox.cpp.
virtual const std::string& MyGUI::TextBox::getTypeName | ( | ) | const [inline, virtual] |
Get type name as string
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::ComboBox, MyGUI::Window, MyGUI::EditBox, MyGUI::MenuItem, MyGUI::MultiListItem, MyGUI::Button, and MyGUI::TabItem.
Definition at line 34 of file MyGUI_TextBox.h.
bool MyGUI::TextBox::isType | ( | ) | const [inline] |
Compare with selected type
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::ComboBox, MyGUI::Window, MyGUI::EditBox, MyGUI::MenuItem, MyGUI::MultiListItem, MyGUI::Button, and MyGUI::TabItem.
Definition at line 34 of file MyGUI_TextBox.h.
virtual bool MyGUI::TextBox::isType | ( | const std::type_info & | _type | ) | const [inline, virtual] |
Compare with selected type
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::ComboBox, MyGUI::Window, MyGUI::EditBox, MyGUI::MenuItem, MyGUI::MultiListItem, MyGUI::Button, and MyGUI::TabItem.
Definition at line 34 of file MyGUI_TextBox.h.
void MyGUI::TextBox::setCaption | ( | const UString & | _value | ) | [virtual] |
Set widget caption
Reimplemented in MyGUI::EditBox, MyGUI::Window, MyGUI::MenuItem, MyGUI::MultiListItem, and MyGUI::TabItem.
Definition at line 92 of file MyGUI_TextBox.cpp.
void MyGUI::TextBox::setCaptionWithReplacing | ( | const std::string & | _value | ) |
Set TextBox caption and replace special sequences.
"\\n" will be replaced with new line character;
"#{Keyword}" replaced with string from LanguageManager or left as it is if kayword wasn't found.
Definition at line 105 of file MyGUI_TextBox.cpp.
void MyGUI::TextBox::setFontHeight | ( | int | _value | ) | [virtual] |
Set widget text font height
Reimplemented in MyGUI::EditBox.
Definition at line 81 of file MyGUI_TextBox.cpp.
void MyGUI::TextBox::setFontName | ( | const std::string & | _value | ) | [virtual] |
Set widget text font
Reimplemented in MyGUI::EditBox.
Definition at line 68 of file MyGUI_TextBox.cpp.
void MyGUI::TextBox::setPropertyOverride | ( | const std::string & | _key, |
const std::string & | _value | ||
) | [protected, virtual] |
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::EditBox, MyGUI::ComboBox, MyGUI::Window, MyGUI::MenuItem, MyGUI::Button, MyGUI::MultiListItem, and MyGUI::TabItem.
Definition at line 148 of file MyGUI_TextBox.cpp.
void MyGUI::TextBox::setTextAlign | ( | Align | _value | ) | [virtual] |
Set widget text align
Reimplemented in MyGUI::EditBox.
Definition at line 44 of file MyGUI_TextBox.cpp.
void MyGUI::TextBox::setTextColour | ( | const Colour & | _value | ) | [virtual] |
Set widget text colour
Reimplemented in MyGUI::EditBox.
Definition at line 57 of file MyGUI_TextBox.cpp.
void MyGUI::TextBox::setTextShadow | ( | bool | _value | ) | [virtual] |
Set widget text shadow
Reimplemented in MyGUI::EditBox.
Definition at line 137 of file MyGUI_TextBox.cpp.
void MyGUI::TextBox::setTextShadowColour | ( | const Colour & | _value | ) | [virtual] |
Set widget text shadow colour
Reimplemented in MyGUI::EditBox.
Definition at line 126 of file MyGUI_TextBox.cpp.