You.i Engine
CYIGeometryBatch::TextSettings Struct Reference

#include <utility/YiGeometryBatch.h>

Public Member Functions

 TextSettings ()
 

Public Attributes

glm::vec2 position
 The top-left position at which text should be rendered. Defaults to (0.0, 0.0) More...
 
CYIColor color
 The text color. Defaults to white. More...
 
float scale
 The text scale. Defaults to 1.0. More...
 
TextStyle style
 The text style. Defaults to TextStyle::Normal. More...
 
CharacterSet characterSet
 The character set. If CharacterSet::UTF8, the text is intepreted as UTF-8 code points. If CharacterSet::CodePage437, the text is interpreted as bytes repesenting Code Page 437 values. Defaults to CharacterSet::UTF8. More...
 
WrapMode wrapMode
 The text wrapping mode. Defaults to WrapMode::None. More...
 
float wrappingWidth
 The text wrapping width. Used only when wrapMode is not WrapMode::None. Defaults to 0.0. More...
 

Constructor & Destructor Documentation

◆ TextSettings()

CYIGeometryBatch::TextSettings::TextSettings ( )

Member Data Documentation

◆ characterSet

CharacterSet CYIGeometryBatch::TextSettings::characterSet

The character set. If CharacterSet::UTF8, the text is intepreted as UTF-8 code points. If CharacterSet::CodePage437, the text is interpreted as bytes repesenting Code Page 437 values. Defaults to CharacterSet::UTF8.

◆ color

CYIColor CYIGeometryBatch::TextSettings::color

The text color. Defaults to white.

◆ position

glm::vec2 CYIGeometryBatch::TextSettings::position

The top-left position at which text should be rendered. Defaults to (0.0, 0.0)

◆ scale

float CYIGeometryBatch::TextSettings::scale

The text scale. Defaults to 1.0.

◆ style

TextStyle CYIGeometryBatch::TextSettings::style

The text style. Defaults to TextStyle::Normal.

◆ wrapMode

WrapMode CYIGeometryBatch::TextSettings::wrapMode

The text wrapping mode. Defaults to WrapMode::None.

◆ wrappingWidth

float CYIGeometryBatch::TextSettings::wrappingWidth

The text wrapping width. Used only when wrapMode is not WrapMode::None. Defaults to 0.0.


The documentation for this struct was generated from the following file: