Gamedev Framework (gf)  0.8.0
A C++14 framework for 2D games
Public Types | Public Attributes | List of all members
gf::TmxText Struct Reference

A text object. More...

#include <gf/Tmx.h>

Inheritance diagram for gf::TmxText:
Inheritance graph
[legend]

Public Types

enum  HAlign {
  HAlign::Left,
  HAlign::Center,
  HAlign::Right
}
 A horizontal alignment. More...
 
enum  VAlign {
  VAlign::Top,
  VAlign::Center,
  VAlign::Bottom
}
 A vertical alignment. More...
 
- Public Types inherited from gf::TmxObject
enum  Kind {
  Rectangle,
  Ellipse,
  Polyline,
  Polygon,
  Tile,
  Text
}
 The kind of object. More...
 

Public Attributes

std::string text
 The text of the object. More...
 
std::string fontFamily
 The font family. More...
 
unsigned 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...
 
- Public Attributes inherited from gf::TmxObject
Kind kind
 The kind of the object. More...
 
TmxProperties properties
 The properties of the object. More...
 
Id 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...
 
Vector2u 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

- Public Member Functions inherited from gf::TmxObject
virtual ~TmxObject ()
 Destructor. More...
 

Detailed Description

A text object.

Member Enumeration Documentation

◆ HAlign

enum gf::TmxText::HAlign
strong

A horizontal alignment.

Enumerator
Left 

A left horizontal alignment.

Center 

A centered horizontal alignment.

Right 

A right horizontal alignment.

◆ VAlign

enum gf::TmxText::VAlign
strong

A vertical alignment.

Enumerator
Top 

A top vertical alignment.

Center 

A centered vertical alignment.

Bottom 

A bottom vertical alignment.

Member Data Documentation

◆ bold

bool gf::TmxText::bold

Is the text in bold?

◆ color

Color4u gf::TmxText::color

The color of the text.

◆ fontFamily

std::string gf::TmxText::fontFamily

The font family.

◆ halign

HAlign gf::TmxText::halign

The horizontal alignment of the text.

◆ italic

bool gf::TmxText::italic

Is the text in italic?

◆ kerning

bool gf::TmxText::kerning

Is the text using kerning?

◆ sizeInPixels

unsigned gf::TmxText::sizeInPixels

The size of the text in pixel.

◆ strikeout

bool gf::TmxText::strikeout

Is the text striked out?

◆ text

std::string gf::TmxText::text

The text of the object.

◆ underline

bool gf::TmxText::underline

Is the text underlined?

◆ valign

VAlign gf::TmxText::valign

The vertical alignment of the text.

◆ wrap

bool gf::TmxText::wrap

The wrap mode.