41 #ifndef _uicharacter_h
42 #define _uicharacter_h
45 #include "UI/sprite.h"
46 #include "UI/charactertraits.h"
47 #include "UI/uienumerations.h"
114 Real GetCharacterAdvance(
Glyph* Prev)
const;
118 Real GetUnscaledCharacterAdvance(
Glyph* Prev)
const;
121 Real GetLineHeight()
const;
124 Real GetUnscaledLineHeight()
const;
127 Real GetVerticalOffset()
const;
130 Real GetUnscaledVerticalOffset()
const;
137 String GetAtlasName()
const;
140 Vector2 GetAtlasWhitePixel()
const;
154 void SetCharacterColour(
const ColourValue& Colour);
161 void SetHighlighted(
Boole Highlight);
164 Boole GetHighlighted()
const;
175 Boole IsGlyph()
const;
178 Boole IsSprite()
const;
182 Boole IsRenderable()
const;
185 Boole IsHighlightable()
const;
188 Boole IsWhiteSpace()
const;
191 Boole IsNewLine()
const;
199 void SetLengthOffset(
const Real& Offset);
202 Real GetLengthOffset()
const;
205 Real GetRightEdgeLengthOffset()
const;
210 void SetCustomSize(
const Vector2& Size);
213 Boole IsCustomSizeSet()
const;
216 Vector2 GetCharacterSize()
const;
219 Vector2 GetUnscaledCharacterSize()
const;
226 Glyph* GetCharGlyph()
const;
229 Sprite* GetCharSprite()
const;
Boole Highlighted
Stores whether or not this character is being highlighted.
bool Boole
Generally acts a single bit, true or false.
Real LengthOffset
The X-axis offset from the left side where this character is being rendered relative to the TextLine ...
Class used to describe a single glyph or character available for text operations. ...
QuadCorner
Used by Sprites and Glyphs for tracking their placement on a TextureAtlas.
This is a collection of smaller textures packed into a larger texture, intended to increase UI perfor...
Glyph * CharGlyph
A pointer to the Glyph this character is being rendered as, or NULL if it is a Sprite.
This is a simple class for holding 4 reals representing the colour any give object or lightsource can...
This class stores common data for determining the look of a Character.
Sprite * CharSprite
A pointer to the Sprite this character is being rendered as, or NULL if it is a Glyph.
float Real
A Datatype used to represent a real floating point number.
This class creates and encapsultes a character that can be used in text renders.
uint32_t UInt32
An 32-bit unsigned integer.
This is used to represent a point on a 2 dimentional area, such as a screen.
Vector2 CustomSize
The forced size of this character, if it is set.
TextLayer * Layer
A pointer to the layer this character is being rendered by.
The bulk of the engine components go in this namspace.
CharacterTraits CharTraits
The rendering traits of this character.
Basic class used to describe a portion of a texture to be applied to a Quad.
std::string String
A datatype used to a series of characters.
This is a base class for render layers that render text.