module DrawCaml:sig
..end
Documentation for Drawcaml graphical module
type
key =
| |
Letter of |
| |
Left |
| |
Up |
| |
Right |
| |
Down |
| |
Space |
| |
Other of |
Type for clean handling of keyboard events
type
event =
| |
MousePressed of |
| |
MouseReleased of |
| |
KeyPressed of |
| |
KeyReleased of |
Type for the event caught in the eventHandler of the window.
val makeKey : int -> key
Constructors for event types
type
dlayout =
| |
FloatLayout |
| |
GridLayout |
| |
Other |
Different types of layout:
Note that the use of Other is deprecated.
class virtual delement :unit ->
object
..end
Abstract type for the elements of the window.
class dlabel :?text:string -> ?font:string -> unit ->
object
..end
Graphical element that prints text to the screen.
class dcontainer :?layout:dlayout -> ?dim:int * int -> unit ->
object
..end
Base element that can contain other elements and arrange them.
class dwindow :?title:string -> ?pos:int * int -> ?size:int * int -> unit ->
object
..end
Object consisting of the main window.