Class DrawCaml.dcontainer

class dcontainer : ?layout:dlayout -> ?dim:int * int -> unit -> object .. end

Base element that can contain other elements and arrange them.

When you create a dcontainer, you can specify 2 optionnal arguments:

Examples:

let grid = new DrawCaml.dcontainer ~layout:GridLayout ~dim:(5,5) ();;
let float = new DrawCaml.dcontainer ~layout:FloatLayout ();;
Inherits
method setBgColor : string -> unit

Set the color of the background of the container

method add : 'a. (#delement as 'a) -> ?pos:int * int -> unit -> unit

Add an element in the container, at the given position

method remove : 'b. (#delement as 'b) -> unit

Removes a specified element from the container