![]() |
Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
|
A text object. More...
#include <gf/Tmx.h>
Public Types | |
enum class | HAlign { Left , Center , Right } |
A horizontal alignment. More... | |
enum class | VAlign { Top , Center , Bottom } |
A vertical alignment. More... | |
![]() | |
enum | Kind { Rectangle , Ellipse , Polyline , Polygon , Tile , Text , Point } |
The kind of object. More... | |
Public Attributes | |
std::string | text |
The text of the object. More... | |
std::string | fontFamily |
The font family. More... | |
int | sizeInPixels |
The size of the text in pixel. More... | |
bool | wrap |
The wrap mode. More... | |
Color4u | color |
The color of the text. More... | |
bool | bold |
Is the text in bold? More... | |
bool | italic |
Is the text in italic? More... | |
bool | underline |
Is the text underlined? More... | |
bool | strikeout |
Is the text striked out? More... | |
bool | kerning |
Is the text using kerning? More... | |
HAlign | halign |
The horizontal alignment of the text. More... | |
VAlign | valign |
The vertical alignment of the text. More... | |
![]() | |
Kind | kind |
The kind of the object. More... | |
TmxProperties | properties |
The properties of the object. More... | |
int | id |
The id of the object. More... | |
std::string | name |
The name of the object. More... | |
std::string | type |
The type of the object. More... | |
Vector2f | position |
The position of the object. More... | |
double | rotation |
The rotation of the object. More... | |
bool | visible |
The visibility of the object. More... | |
Additional Inherited Members | |
![]() | |
virtual | ~TmxObject () |
Destructor. More... | |
A text object.
|
strong |
|
strong |
bool gf::TmxText::bold |
Is the text in bold?
Color4u gf::TmxText::color |
The color of the text.
std::string gf::TmxText::fontFamily |
The font family.
HAlign gf::TmxText::halign |
The horizontal alignment of the text.
bool gf::TmxText::italic |
Is the text in italic?
bool gf::TmxText::kerning |
Is the text using kerning?
int gf::TmxText::sizeInPixels |
The size of the text in pixel.
bool gf::TmxText::strikeout |
Is the text striked out?
std::string gf::TmxText::text |
The text of the object.
bool gf::TmxText::underline |
Is the text underlined?
VAlign gf::TmxText::valign |
The vertical alignment of the text.
bool gf::TmxText::wrap |
The wrap mode.