25 #ifndef GRAPHICS_AURORA_TEXT_H 26 #define GRAPHICS_AURORA_TEXT_H 45 float r = 1.0f,
float g = 1.0f,
float b = 1.0f,
float a = 1.0f,
48 float r = 1.0f,
float g = 1.0f,
float b = 1.0f,
float a = 1.0f,
51 float r = 1.0f,
float g = 1.0f,
float b = 1.0f,
float a = 1.0f,
57 void getPosition(
float &x,
float &y,
float &z)
const;
58 void getColor(
float &r,
float &g,
float &b,
float &a)
const;
63 void set(
const Common::UString &str,
float maxWidth = 0.0f,
float maxHeight = 0.0f);
66 void setSize(
float width,
float height);
67 void setColor(
float r,
float g,
float b,
float a);
90 bool isIn(
float x,
float y)
const;
118 ColorPositions::const_iterator color,
122 ColorPositions::const_iterator color,
132 #endif // GRAPHICS_AURORA_TEXT_H float getHorizontalAlign() const
A class holding an UTF-8 string.
void disableColorTokens(bool disabled)
Disable parsing <c color tokens into actual coloring.
void drawLineImmediate(const Common::UString &line, ColorPositions::const_iterator color, size_t position, float &x, float &y)
void setText(const Common::UString &str)
const Common::UString & getFont() const
size_t getLineCount() const
Text(const FontHandle &font, const Common::UString &str, float r=1.0f, float g=1.0f, float b=1.0f, float a=1.0f, float halign=kHAlignLeft, float valign=kVAlignTop)
void drawLine(const Common::UString &line, ColorPositions::const_iterator color, size_t position)
void getColor(float &r, float &g, float &b, float &a) const
void getPosition(float &x, float &y, float &z) const
void setPosition(float x, float y, float z=-FLT_MAX)
Basic Aurora graphics types.
std::vector< ColorPosition > ColorPositions
void parseColors(const Common::UString &str, Common::UString &parsed, ColorPositions &colors)
bool isIn(float x, float y) const
Is that point within the object?
A handle to an Aurora font.
void setHorizontalAlign(float halign)
void renderImmediate(const glm::mat4 &parentTransform)
For shader based systems, don't sort anything, render this right_now.
void render(RenderPass pass)
Render the object.
void setVerticalAlign(float valign)
void calculateDistance()
Calculate the object's distance.
void setSize(float width, float height)
float getVerticalAlign() const
void setFont(const Common::UString &fnt)
Change the font of the text.
void setColor(float r, float g, float b, float a)