Stk.TextSourceSimple widgets to display text.
Class used internally to cache text rendering.
class label : ?classes:string list option -> ?name:string option -> ?props:Props.t option -> ?wdata:
Widget.wdata
option -> unit -> object ... endLabel widget, displaying a single line text.
val label :
?classes:string list ->
?name:string ->
?props:Props.t ->
?wdata:Widget.wdata ->
?halign:float ->
?valign:float ->
?text:string ->
?pack:(Widget.widget -> unit) ->
unit ->
labelConvenient function to create a label. Props.halign, Props.valign and Props.text properties can be specified with the corresponding optional arguments. See Widget arguments for other arguments.
class status : ?classes:string list option -> ?name:string option -> ?props:Props.t option -> ?wdata:
Widget.wdata
option -> unit -> object ... endA status is a label where messages can be stacked. Only the message at the top of the stack is displayed. Each message has an id, which can be used to remove the message even if not on top of the stack.
val status :
?classes:string list ->
?name:string ->
?props:Props.t ->
?wdata:Widget.wdata ->
?pack:(Widget.widget -> unit) ->
unit ->
statusConvenient function to create a status. See Widget arguments for arguments.
Class used internally to cache rendering of glyphs.
class glyph : ?classes:string list option -> ?name:string option -> ?props:Props.t option -> ?wdata:
Widget.wdata
option -> unit -> object ... endWidget to render a single glyph.
val glyph :
?classes:string list ->
?name:string ->
?props:Props.t ->
?wdata:Widget.wdata ->
?glyph:int ->
?pack:(Widget.widget -> unit) ->
unit ->
glyphConvenient function to create a glyph. Props.glyph property can be specified with the corresponding optional argument. See Widget arguments for other arguments.