5#ifndef __I_GUI_STATIC_TEXT_H_INCLUDED__
6#define __I_GUI_STATIC_TEXT_H_INCLUDED__
virtual void draw()
Draws the element and its children.
IGUIElement(EGUI_ELEMENT_TYPE type, IGUIEnvironment *environment, IGUIElement *parent, s32 id, const core::rect< s32 > &rectangle)
Constructor.
GUI Environment. Used as factory and manager of all other GUI elements.
virtual IGUIFont * getActiveFont() const =0
Get the font which is used right now for drawing.
virtual void setWordWrap(bool enable)=0
Enables or disables word wrap for using the static text as multiline text control.
virtual bool isWordWrapEnabled(void) const =0
Checks if word wrap is enabled.
virtual void setRightToLeft(bool rtl)=0
Set whether the string should be interpreted as right-to-left (RTL) text.
virtual void setDrawBorder(bool draw)=0
Sets whether to draw the border.
virtual bool isDrawBorderEnabled() const =0
Checks if border drawing is enabled.
virtual bool isOverrideColorEnabled(void) const =0
Checks if an override color is enabled.
virtual IGUIFont * getOverrideFont(void) const =0
Gets the override font (if any).
virtual video::SColor getBackgroundColor() const =0
Gets the background color.
virtual bool isRightToLeft() const =0
Checks whether the text in this element should be interpreted as right-to-left.
IGUIStaticText(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
virtual s32 getTextHeight() const =0
Returns the height of the text in pixels when it is drawn.
virtual bool isTextRestrainedInside() const =0
Checks if the text in this label should be clipped if it goes outside bounds.
virtual video::SColor getOverrideColor(void) const =0
Gets the override color.
virtual void setOverrideColor(video::SColor color)=0
Sets another color for the text.
virtual void setTextRestrainedInside(bool restrainedInside)=0
Set whether the text in this label should be clipped if it goes outside bounds.
virtual bool isDrawBackgroundEnabled() const =0
Checks if background drawing is enabled.
virtual void setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT vertical)=0
Sets text justification mode.
virtual s32 getTextWidth(void) const =0
Returns the width of the current text, in the current font.
virtual void enableOverrideColor(bool enable)=0
Sets if the static text should use the overide color or the color in the gui skin.
virtual void setOverrideFont(IGUIFont *font=0)=0
Sets another skin independent font.
virtual void setDrawBackground(bool draw)=0
Sets whether to draw the background.
virtual void setBackgroundColor(video::SColor color)=0
Sets another color for the background.
Class representing a 32 bit ARGB color.
The gui namespace contains useful classes for easy creation of a graphical user interface.
@ EGUIET_STATIC_TEXT
A static text (IGUIStaticText).
Everything in the Irrlicht Engine can be found in this namespace.
signed int s32
32 bit signed variable.