Header menu logo Mibo.Raylib

TextState Module

Convenience builders for TextState.

Functions and values

Function or value Description

create (font, text, position)

Full Usage: create (font, text, position)

Parameters:
Returns: TextState

Creates a text state with required fields. Defaults: FontSize=20, Spacing=1, Color=White, Layer=0.

font : Font
text : string
position : Vector2
Returns: TextState

withColor v s

Full Usage: withColor v s

Parameters:
Returns: TextState
Modifiers: inline
v : Color
s : TextState
Returns: TextState

withFontSize v s

Full Usage: withFontSize v s

Parameters:
Returns: TextState
Modifiers: inline
v : float32
s : TextState
Returns: TextState

withLayer v s

Full Usage: withLayer v s

Parameters:
Returns: TextState
Modifiers: inline

withSpacing v s

Full Usage: withSpacing v s

Parameters:
Returns: TextState
Modifiers: inline
v : float32
s : TextState
Returns: TextState

Type something to start searching.