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 -> unitSets the color of the label
method setFont : string -> unitSpecify the font of the label using X logical font format (use xlsfonts to see available fonts)
method setText : string -> unitSets the text of the label