Public Member Functions | Public Attributes

Tiny2D::Text::DrawParams Struct Reference

Text drawing parameters. More...

#include <Tiny2D.h>

List of all members.

Public Member Functions

 DrawParams ()
 Constructs empty text draw parameters.

Public Attributes

std::string text
 Text.
Color color
 Text color; defaults to Color::White.
Vec2 position
 Left-top text coordinate; defaults to (0,0)
float width
 Width of the text rectangle (only used when horizontal alignment is non-left); defaults to 0.0f.
float height
 Height of the text rectangle (only used when vertical alignment is non-top); defaults to 0.0f.
float rotation
 Rotation of the text; defaults to 0.0f.
float scale
 Scale of the text; defaults to 1.0f.
HorizontalAlignment horizontalAlignment
 Horizontal alignment; defaults to HorizontalAlignment_Left.
VerticalAlignment verticalAlignment
 Vertical alignment; defaults to VerticalAlignment_Top.
bool drawShadow
 Draw the text shadow?; defaults to false.
Color shadowColor
 Shadow color; defaults to Color::Black.
Vec2 shadowOffset
 Shadow offset; defaults to (2,3)

Detailed Description

Text drawing parameters.


Constructor & Destructor Documentation

Tiny2D::Text::DrawParams::DrawParams (  )

Constructs empty text draw parameters.


Member Data Documentation

Text color; defaults to Color::White.

Draw the text shadow?; defaults to false.

Height of the text rectangle (only used when vertical alignment is non-top); defaults to 0.0f.

Horizontal alignment; defaults to HorizontalAlignment_Left.

Left-top text coordinate; defaults to (0,0)

Rotation of the text; defaults to 0.0f.

Scale of the text; defaults to 1.0f.

Shadow color; defaults to Color::Black.

Shadow offset; defaults to (2,3)

Text.

Vertical alignment; defaults to VerticalAlignment_Top.

Width of the text rectangle (only used when horizontal alignment is non-left); defaults to 0.0f.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines