Loading...
Searching...
No Matches
IGUIStaticText.h
Go to the documentation of this file.
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_GUI_STATIC_TEXT_H_INCLUDED__
#define __I_GUI_STATIC_TEXT_H_INCLUDED__
#include "IGUIElement.h"
#include "SColor.h"
namespace irr
{
namespace gui
{
class IGUIFont;
class IGUIStaticText : public IGUIElement
{
public:
IGUIStaticText(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
: IGUIElement(EGUIET_STATIC_TEXT, environment, parent, id, rectangle) {}
virtual void setOverrideFont(IGUIFont* font=0) = 0;
virtual IGUIFont* getOverrideFont(void) const = 0;
virtual IGUIFont* getActiveFont() const = 0;
virtual void setOverrideColor(video::SColor color) = 0;
virtual video::SColor getOverrideColor(void) const = 0;
virtual void enableOverrideColor(bool enable) = 0;
virtual bool isOverrideColorEnabled(void) const = 0;
virtual void setBackgroundColor(video::SColor color) = 0;
virtual void setDrawBackground(bool draw) = 0;
virtual video::SColor getBackgroundColor() const = 0;
virtual bool isDrawBackgroundEnabled() const = 0;
virtual void setDrawBorder(bool draw) = 0;
virtual bool isDrawBorderEnabled() const = 0;
virtual void setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT vertical) = 0;
virtual void setWordWrap(bool enable) = 0;
virtual bool isWordWrapEnabled(void) const = 0;
virtual s32 getTextHeight() const = 0;
virtual s32 getTextWidth(void) const = 0;
virtual void setTextRestrainedInside(bool restrainedInside) = 0;
virtual bool isTextRestrainedInside() const = 0;
virtual void setRightToLeft(bool rtl) = 0;
virtual bool isRightToLeft() const = 0;
};
} // end namespace gui
} // end namespace irr
#endif
IGUIElement.h
SColor.h
irr::core::rect
Rectangle template.
Definition rect.h:27
irr::gui::IGUIElement::draw
virtual void draw()
Draws the element and its children.
Definition IGUIElement.h:312
irr::gui::IGUIElement::IGUIElement
IGUIElement(EGUI_ELEMENT_TYPE type, IGUIEnvironment *environment, IGUIElement *parent, s32 id, const core::rect< s32 > &rectangle)
Constructor.
Definition IGUIElement.h:30
irr::gui::IGUIEnvironment
GUI Environment. Used as factory and manager of all other GUI elements.
Definition IGUIEnvironment.h:71
irr::gui::IGUIFont
Font interface.
Definition IGUIFont.h:40
irr::gui::IGUIStaticText::getActiveFont
virtual IGUIFont * getActiveFont() const =0
Get the font which is used right now for drawing.
irr::gui::IGUIStaticText::setWordWrap
virtual void setWordWrap(bool enable)=0
Enables or disables word wrap for using the static text as multiline text control.
irr::gui::IGUIStaticText::isWordWrapEnabled
virtual bool isWordWrapEnabled(void) const =0
Checks if word wrap is enabled.
irr::gui::IGUIStaticText::setRightToLeft
virtual void setRightToLeft(bool rtl)=0
Set whether the string should be interpreted as right-to-left (RTL) text.
irr::gui::IGUIStaticText::setDrawBorder
virtual void setDrawBorder(bool draw)=0
Sets whether to draw the border.
irr::gui::IGUIStaticText::isDrawBorderEnabled
virtual bool isDrawBorderEnabled() const =0
Checks if border drawing is enabled.
irr::gui::IGUIStaticText::isOverrideColorEnabled
virtual bool isOverrideColorEnabled(void) const =0
Checks if an override color is enabled.
irr::gui::IGUIStaticText::getOverrideFont
virtual IGUIFont * getOverrideFont(void) const =0
Gets the override font (if any).
irr::gui::IGUIStaticText::getBackgroundColor
virtual video::SColor getBackgroundColor() const =0
Gets the background color.
irr::gui::IGUIStaticText::isRightToLeft
virtual bool isRightToLeft() const =0
Checks whether the text in this element should be interpreted as right-to-left.
irr::gui::IGUIStaticText::IGUIStaticText
IGUIStaticText(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
Definition IGUIStaticText.h:23
irr::gui::IGUIStaticText::getTextHeight
virtual s32 getTextHeight() const =0
Returns the height of the text in pixels when it is drawn.
irr::gui::IGUIStaticText::isTextRestrainedInside
virtual bool isTextRestrainedInside() const =0
Checks if the text in this label should be clipped if it goes outside bounds.
irr::gui::IGUIStaticText::getOverrideColor
virtual video::SColor getOverrideColor(void) const =0
Gets the override color.
irr::gui::IGUIStaticText::setOverrideColor
virtual void setOverrideColor(video::SColor color)=0
Sets another color for the text.
irr::gui::IGUIStaticText::setTextRestrainedInside
virtual void setTextRestrainedInside(bool restrainedInside)=0
Set whether the text in this label should be clipped if it goes outside bounds.
irr::gui::IGUIStaticText::isDrawBackgroundEnabled
virtual bool isDrawBackgroundEnabled() const =0
Checks if background drawing is enabled.
irr::gui::IGUIStaticText::setTextAlignment
virtual void setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT vertical)=0
Sets text justification mode.
irr::gui::IGUIStaticText::getTextWidth
virtual s32 getTextWidth(void) const =0
Returns the width of the current text, in the current font.
irr::gui::IGUIStaticText::enableOverrideColor
virtual void enableOverrideColor(bool enable)=0
Sets if the static text should use the overide color or the color in the gui skin.
irr::gui::IGUIStaticText::setOverrideFont
virtual void setOverrideFont(IGUIFont *font=0)=0
Sets another skin independent font.
irr::gui::IGUIStaticText::setDrawBackground
virtual void setDrawBackground(bool draw)=0
Sets whether to draw the background.
irr::gui::IGUIStaticText::setBackgroundColor
virtual void setBackgroundColor(video::SColor color)=0
Sets another color for the background.
irr::video::SColor
Class representing a 32 bit ARGB color.
Definition SColor.h:202
irr::gui
The gui namespace contains useful classes for easy creation of a graphical user interface.
Definition EGUIAlignment.h:11
irr::gui::EGUI_ALIGNMENT
EGUI_ALIGNMENT
Definition EGUIAlignment.h:13
irr::gui::EGUIET_STATIC_TEXT
@ EGUIET_STATIC_TEXT
A static text (IGUIStaticText).
Definition EGUIElementTypes.h:68
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
irr::s32
signed int s32
32 bit signed variable.
Definition irrTypes.h:66
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0