Catlike Coding
Unity Code Documentation
Public Member Functions | Public Attributes | List of all members
CatlikeCoding.TextBox.AppliedTextStyle Struct Reference

Text styling data used to render characters. More...

Public Member Functions

void Apply (TextStyle style, TextRenderer renderer, Color tint, float textScale)
 Apply a style completely, regardless what's enabled. More...
 
void ApplyOnTop (TextStyle style, Color tint, float textScale)
 Apply a style on top of the current settings. More...
 

Public Attributes

Color32 color
 Style color. More...
 
BitmapFont font
 Style font. More...
 
float letterSpacing
 Style letter spacing. More...
 
LineDescent lineDescent
 Style line descent data. More...
 
float lineHeight
 Style line height. More...
 
TextRenderer renderer
 Renderer responsible for rendering characters with this style. More...
 
float size
 Style size. More...
 

Detailed Description

Text styling data used to render characters.

Member Function Documentation

void CatlikeCoding.TextBox.AppliedTextStyle.Apply ( TextStyle  style,
TextRenderer  renderer,
Color  tint,
float  textScale 
)

Apply a style completely, regardless what's enabled.

Parameters
styleStyle to apply.
rendererRenderer to use.
tintTint for style color
textScaleScale factor for the text.
void CatlikeCoding.TextBox.AppliedTextStyle.ApplyOnTop ( TextStyle  style,
Color  tint,
float  textScale 
)

Apply a style on top of the current settings.

Parameters
styleStyle to apply.
tintTint for style color
textScaleScale factor for the text.

Member Data Documentation

Color32 CatlikeCoding.TextBox.AppliedTextStyle.color

Style color.

BitmapFont CatlikeCoding.TextBox.AppliedTextStyle.font

Style font.

float CatlikeCoding.TextBox.AppliedTextStyle.letterSpacing

Style letter spacing.

LineDescent CatlikeCoding.TextBox.AppliedTextStyle.lineDescent

Style line descent data.

float CatlikeCoding.TextBox.AppliedTextStyle.lineHeight

Style line height.

TextRenderer CatlikeCoding.TextBox.AppliedTextStyle.renderer

Renderer responsible for rendering characters with this style.

float CatlikeCoding.TextBox.AppliedTextStyle.size

Style size.