|
AeonGUI
A portable video game graphic user interface library.
|
Abstract text layout interface. More...
#include <aeongui/TextLayout.hpp>
Public Member Functions | |
| virtual | ~TextLayout ()=0 |
| Virtual destructor. | |
| virtual void | SetText (const std::string &aText)=0 |
| Set the text content to lay out. | |
| virtual void | SetFontFamily (const std::string &aFamily)=0 |
| Set the font family. | |
| virtual void | SetFontSize (double aSize)=0 |
| Set the font size. | |
| virtual void | SetFontWeight (int aWeight)=0 |
| Set the font weight. | |
| virtual void | SetFontStyle (int aStyle)=0 |
| Set the font style. | |
| virtual double | GetTextWidth () const =0 |
| Get the logical width of the laid-out text. | |
| virtual double | GetTextHeight () const =0 |
| Get the logical height of the laid-out text. | |
| virtual double | GetBaseline () const =0 |
| Get the baseline offset from the top. | |
| virtual double | GetCharOffsetX (long aIndex) const =0 |
Abstract text layout interface.
Abstracts PangoLayout to allow multiple text‐layout back-ends to be used interchangeably.
|
pure virtual |
Get the baseline offset from the top.
Implemented in AeonGUI::PangoTextLayout.
|
pure virtual |
Get the x-offset of the character at the given index.
| aIndex | UTF-8 byte index. |
Implemented in AeonGUI::PangoTextLayout.
|
pure virtual |
Get the logical height of the laid-out text.
Implemented in AeonGUI::PangoTextLayout.
|
pure virtual |
Get the logical width of the laid-out text.
Implemented in AeonGUI::PangoTextLayout.
|
pure virtual |
Set the font family.
| aFamily | Font family name (e.g. "sans-serif"). |
Implemented in AeonGUI::PangoTextLayout.
|
pure virtual |
Set the font size.
| aSize | Font size in CSS pixels. |
Implemented in AeonGUI::PangoTextLayout.
|
pure virtual |
Set the font style.
| aStyle | 0 = normal, 1 = italic, 2 = oblique. |
Implemented in AeonGUI::PangoTextLayout.
|
pure virtual |
Set the font weight.
| aWeight | CSS font weight (400 = normal, 700 = bold). |
Implemented in AeonGUI::PangoTextLayout.
|
pure virtual |
Set the text content to lay out.
| aText | UTF-8 text string. |
Implemented in AeonGUI::PangoTextLayout.