Module DrawCaml

module DrawCaml: sig .. end

Documentation for Drawcaml graphical module


type key = 
| Letter of char
| Left
| Up
| Right
| Down
| Space
| Other of int

Type for clean handling of keyboard events

type event = 
| MousePressed of int * int * int
| MouseReleased of int * int * int
| KeyPressed of key
| KeyReleased of key

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.