Kaplay.Text
Modules
Comp
Types
textAlign
type textAlign = | @as("left") Left | @as("center") Center | @as("right") Right
textOptions
type textOptions = { size?: float, font?: string, width?: float, align?: textAlign, lineSpacing?: float, letterSpacing?: float,}
Fields
size option < float >
font option < string >
width option < float >
align option < textAlign >
lineSpacing option < float >
letterSpacing option < float >
Values
addTextComponent
let addText: ( Kaplay.Context.t, string, ~options: textOptions=?,) => Kaplay.Types.comp
Return type
getText
let getText: T.t => string
Parameters
T.t
Return type
string
setText
let setText: (T.t, string) => unit
Parameters
T.t
string
Return type
unit