Class DrawCaml.dwindow

class dwindow : ?title:string -> ?pos:int * int -> ?size:int * int -> unit -> object .. end

Object consisting of the main window.

When you create a dwindow, you can specify 3 optionnal arguments:

Example:

let window = new DrawCaml.dwindow ~title:"Test Window" ~pos:(50,50) ~size:(500,500) ();;

method getTitle : unit -> string

Get the title of the window

method getSize : unit -> int * int

Set the title of the window

method getPos : unit -> int * int

Set the position of the window

method getContainer : unit -> dcontainer

Get the main container of the window

method setContainer : dcontainer -> unit

Set the main container of the window

method notClosed : unit -> bool

Checks if the windows is closed

method waitForClose : unit -> unit

Hangs the thread while the windows hasn't been closed

method setEventHandler : (event -> unit) -> unit

Binds an event handler for the user keyboard interaction. An event handler should be a function event->unit.