Multi or single line text label. More...
#include <IGUIStaticText.h>
Multi or single line text label.
Definition at line 18 of file IGUIStaticText.h.
irr::gui::IGUIStaticText::IGUIStaticText | ( | IGUIEnvironment * | environment, |
IGUIElement * | parent, | ||
s32 | id, | ||
core::rect< s32 > | rectangle | ||
) | [inline] |
constructor
Definition at line 23 of file IGUIStaticText.h.
virtual void irr::gui::IGUIStaticText::enableOverrideColor | ( | bool | enable | ) | [pure virtual] |
Sets if the static text should use the overide color or the color in the gui skin.
enable,: | If set to true, the override color, which can be set with IGUIStaticText::setOverrideColor is used, otherwise the EGDC_BUTTON_TEXT color of the skin. |
virtual IGUIFont* irr::gui::IGUIStaticText::getActiveFont | ( | ) | const [pure virtual] |
Get the font which is used right now for drawing.
Currently this is the override font when one is set and the font of the active skin otherwise
virtual video::SColor irr::gui::IGUIStaticText::getBackgroundColor | ( | ) | const [pure virtual] |
Gets the background color.
virtual video::SColor irr::gui::IGUIStaticText::getOverrideColor | ( | void | ) | const [pure virtual] |
Gets the override color.
virtual IGUIFont* irr::gui::IGUIStaticText::getOverrideFont | ( | void | ) | const [pure virtual] |
Gets the override font (if any)
virtual s32 irr::gui::IGUIStaticText::getTextHeight | ( | ) | const [pure virtual] |
Returns the height of the text in pixels when it is drawn.
This is useful for adjusting the layout of gui elements based on the height of the multiline text in this element.
virtual s32 irr::gui::IGUIStaticText::getTextWidth | ( | void | ) | const [pure virtual] |
Returns the width of the current text, in the current font.
If the text is broken, this returns the width of the widest line
virtual bool irr::gui::IGUIStaticText::isDrawBackgroundEnabled | ( | ) | const [pure virtual] |
Checks if background drawing is enabled.
virtual bool irr::gui::IGUIStaticText::isDrawBorderEnabled | ( | ) | const [pure virtual] |
Checks if border drawing is enabled.
virtual bool irr::gui::IGUIStaticText::isOverrideColorEnabled | ( | void | ) | const [pure virtual] |
Checks if an override color is enabled.
virtual bool irr::gui::IGUIStaticText::isRightToLeft | ( | ) | const [pure virtual] |
Checks whether the text in this element should be interpreted as right-to-left.
virtual bool irr::gui::IGUIStaticText::isTextRestrainedInside | ( | ) | const [pure virtual] |
Checks if the text in this label should be clipped if it goes outside bounds.
virtual bool irr::gui::IGUIStaticText::isWordWrapEnabled | ( | void | ) | const [pure virtual] |
Checks if word wrap is enabled.
virtual void irr::gui::IGUIStaticText::setBackgroundColor | ( | video::SColor | color | ) | [pure virtual] |
Sets another color for the background.
virtual void irr::gui::IGUIStaticText::setDrawBackground | ( | bool | draw | ) | [pure virtual] |
Sets whether to draw the background.
virtual void irr::gui::IGUIStaticText::setDrawBorder | ( | bool | draw | ) | [pure virtual] |
Sets whether to draw the border.
virtual void irr::gui::IGUIStaticText::setOverrideColor | ( | video::SColor | color | ) | [pure virtual] |
Sets another color for the text.
If set, the static text does not use the EGDC_BUTTON_TEXT color defined in the skin, but the set color instead. You don't need to call IGUIStaticText::enableOverrrideColor(true) after this, this is done by this function. If you set a color, and you want the text displayed with the color of the skin again, call IGUIStaticText::enableOverrideColor(false);
color,: | New color of the text. |
virtual void irr::gui::IGUIStaticText::setOverrideFont | ( | IGUIFont * | font = 0 | ) | [pure virtual] |
Sets another skin independent font.
If this is set to zero, the button uses the font of the skin.
font,: | New font to set. |
virtual void irr::gui::IGUIStaticText::setRightToLeft | ( | bool | rtl | ) | [pure virtual] |
Set whether the string should be interpreted as right-to-left (RTL) text.
virtual void irr::gui::IGUIStaticText::setTextAlignment | ( | EGUI_ALIGNMENT | horizontal, |
EGUI_ALIGNMENT | vertical | ||
) | [pure virtual] |
Sets text justification mode.
horizontal,: | EGUIA_UPPERLEFT for left justified (default), EGUIA_LOWEERRIGHT for right justified, or EGUIA_CENTER for centered text. |
vertical,: | EGUIA_UPPERLEFT to align with top edge, EGUIA_LOWEERRIGHT for bottom edge, or EGUIA_CENTER for centered text (default). |
virtual void irr::gui::IGUIStaticText::setTextRestrainedInside | ( | bool | restrainedInside | ) | [pure virtual] |
Set whether the text in this label should be clipped if it goes outside bounds.
virtual void irr::gui::IGUIStaticText::setWordWrap | ( | bool | enable | ) | [pure virtual] |
Enables or disables word wrap for using the static text as multiline text control.
enable,: | If set to true, words going over one line are broken on to the next line. |