Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
One-line text widget
val create :
?size:int ->
?font:font ->
?style:Tsdl_ttf.Ttf.Style.t ->
?fg:Draw.color ->
string ->
t
Create a new Label.t
val icon : ?size:int -> ?fg:Draw.color -> string -> t
Create a Label.t using the name of a Fontawesome symbol
val set : t -> string -> unit
Modify the text of the label
val set_fg_color : t -> Draw.color -> unit
val size : t -> int * int
Logical size (w,h). Warning, a +/- 1 error can be observed due to rounding.