class dlabel :?text:string -> ?font:string -> unit ->
object
..end
Graphical element that prints text to the screen.
When you create a dlabel, you can specify 2 optionnal arguments:
Example:
let lab = new DrawCaml.dlabel ~text:"hello world" ~font="*helvetica*-r-*-20-*" ();;
method setColor : string -> unit
Sets the color of the label
method setFont : string -> unit
Specify the font of the label using X logical font format (use xlsfonts
to see available fonts)
method setText : string -> unit
Sets the text of the label