Inheritance diagram for CEGUI::TextItem:
Public Member Functions | |
TextFormatting | getTextFormatting () const |
Return the TextFormatting currently used for rendering the text. | |
float | getTextXOffset (void) const |
get the offset that is used to shift of the text in the x-direction this is useful if the button-images are not symmetrical and the text shouldn't be completely centered | |
colour | getTextColour (void) const |
Get the current text colour of the item. | |
void | setTextFormatting (TextFormatting format) |
Set the TextFormatting to be used when rendering the text. | |
void | setTextColour (const colour &col) |
Set the current text colour of the item. | |
void | setTextXOffset (float offset) |
Set the offset to use for a shift of the text in the x-direction this is useful if the button-images are not symmetrical and the text shouldn't be completely centered. | |
virtual Size | getItemPixelSize (void) |
Return the "optimal" size for the item. | |
TextItem (const String &type, const String &name) | |
Constructor for TextItem objects. | |
virtual | ~TextItem (void) |
Destructor for TextItem objects. | |
Static Public Attributes | |
static const colour | DefaultTextColour = 0xFFFFFFFF |
Default colour used when rendering text. | |
Protected Member Functions | |
virtual void | onTextChanged (WindowEventArgs &e) |
Handler called when the window's text is changed. | |
virtual void | populateRenderCache () |
Update the rendering cache. | |
virtual bool | testClassName_impl (const String &class_name) const |
Return whether this window was inherited from the given class name at some point in the inheritance heirarchy. | |
Protected Attributes | |
colour | d_textColour |
the current text colour | |
TextFormatting | d_textFormatting |
the current text formatting | |
float | d_textXOffset |
offset applied to the x co-ordinate of the text rendered. |
|
Return the "optimal" size for the item.
Implements CEGUI::ItemEntry. |
|
Get the current text colour of the item.
|
|
Return the TextFormatting currently used for rendering the text.
|
|
get the offset that is used to shift of the text in the x-direction this is useful if the button-images are not symmetrical and the text shouldn't be completely centered
|
|
Handler called when the window's text is changed.
Reimplemented from CEGUI::Window. |
|
Update the rendering cache. Populates the Window's RenderCache with imagery to be sent to the renderer. Reimplemented from CEGUI::Window. |
|
Set the current text colour of the item.
|
|
Set the offset to use for a shift of the text in the x-direction this is useful if the button-images are not symmetrical and the text shouldn't be completely centered.
|
|
Return whether this window was inherited from the given class name at some point in the inheritance heirarchy.
Reimplemented from CEGUI::ItemEntry. Reimplemented in CEGUI::MenuItem. |