27#ifndef _TextAreaOverlayElement_H__
28#define _TextAreaOverlayElement_H__
111 mGeomPositionsOutOfDate =
true;
#define _OgreOverlayExport
Class representing colour.
Abstract definition of a 2D element to be displayed in an Overlay.
Abstract class which is command object which gets/sets parameters.
'New' rendering operation using vertex buffers.
Command object for setting the alignment.
String doGet(const void *target) const
void doSet(void *target, const String &val)
Command object for setting the caption.
void doSet(void *target, const String &val)
String doGet(const void *target) const
Command object for setting the char height.
void doSet(void *target, const String &val)
String doGet(const void *target) const
Command object for setting the bottom colour.
void doSet(void *target, const String &val)
String doGet(const void *target) const
Command object for setting the top colour.
void doSet(void *target, const String &val)
String doGet(const void *target) const
Command object for setting the constant colour.
void doSet(void *target, const String &val)
String doGet(const void *target) const
Command object for setting the caption.
String doGet(const void *target) const
void doSet(void *target, const String &val)
Command object for setting the width of a space.
void doSet(void *target, const String &val)
String doGet(const void *target) const
This class implements an overlay element which contains simple unformatted text.
Real getSpaceWidth() const
const String & getFontName() const
void setCharHeight(Real height)
virtual void updatePositionGeometry()
Inherited function.
void setMetricsMode(GuiMetricsMode gmm)
Overridden from OverlayElement.
virtual ~TextAreaOverlayElement()
Alignment getAlignment() const
void addBaseParameters(void)
Method for setting up base parameters for this class.
void getRenderOperation(RenderOperation &op)
See Renderable.
virtual void updateColours(void)
Updates vertex colours.
void checkMemoryAllocation(size_t numChars)
Internal method to allocate memory, only reallocates when necessary.
static CmdSpaceWidth msCmdSpaceWidth
Real getCharHeight() const
void setAlignment(Alignment a)
void _update(void)
Overridden from OverlayElement.
void setColourTop(const ColourValue &col)
Sets the colour of the top of the letters.
TextAreaOverlayElement(const String &name)
Constructor.
RenderOperation mRenderOp
Render operation.
virtual void initialise(void)
Initialise gui element.
const ColourValue & getColourBottom(void) const
Gets the colour of the bottom of the letters.
bool mSpaceWidthOverridden
void setFontName(const String &font)
static CmdAlignment msCmdAlignment
const ColourValue & getColourTop(void) const
Gets the colour of the top of the letters.
ColourValue mColourBottom
Colours to use for the vertices.
static CmdColourBottom msCmdColourBottom
virtual void setCaption(const DisplayString &text)
Sets the caption on elements that support it.
static CmdColourTop msCmdColourTop
virtual const String & getTypeName(void) const
See OverlayElement.
Alignment mAlignment
The text alignment.
static CmdFontName msCmdFontName
static CmdColour msCmdColour
static CmdCharHeight msCmdCharHeight
virtual void updateTextureGeometry()
Inherited function.
const MaterialPtr & getMaterial(void) const
See Renderable.
const ColourValue & getColour(void) const
Gets the colour of the text.
void setColour(const ColourValue &col)
Sets the colour of the text.
bool mTransparent
Flag indicating if this panel should be visual or just group things.
void setColourBottom(const ColourValue &col)
Sets the colour of the bottom of the letters.
void setSpaceWidth(Real width)
void setMaterialName(const String &matName)
Overridden from OverlayElement.
GuiMetricsMode
Enum describing how the position / size of an element is to be recorded.
float Real
Software floating point type.