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 -> stringGet the title of the window
method getSize : unit -> int * intSet the title of the window
method getPos : unit -> int * intSet the position of the window
method getContainer : unit -> dcontainerGet the main container of the window
method setContainer : dcontainer -> unitSet the main container of the window
method notClosed : unit -> boolChecks if the windows is closed
method waitForClose : unit -> unitHangs the thread while the windows hasn't been closed
method setEventHandler : (event -> unit) -> unitBinds an event handler for the user keyboard interaction. An event handler should be a function event->unit.