6 type visual_options = [
19 | `STENCIL_SIZE of int
20 | `ACCUM_GREEN_SIZE of int
21 | `ACCUM_ALPHA_SIZE of int
23 type gl_area = [`widget|`drawing|`glarea]
28 visual_options list -> share:[>`glarea] optobj -> gl_area obj
29 = "ml_gtk_gl_area_new"
30 external swap_buffers : [>`glarea] obj -> unit
31 = "ml_gtk_gl_area_swapbuffers"
32 external make_current : [>`glarea] obj -> bool
33 = "ml_gtk_gl_area_make_current"
36 class area_signals : 'a obj ->
38 inherit widget_signals
39 constraint 'a = [>`glarea|`widget]
41 method display : callback:(unit -> unit) -> GtkSignal.id
42 method realize : callback:(unit -> unit) -> GtkSignal.id
44 callback:(width:int -> height:int -> unit) -> GtkSignal.id
47 class area : gl_area obj ->
51 method event : event_ops
52 method as_area : gl_area obj
53 method connect : area_signals
54 method make_current : unit -> unit
55 method set_size : width:int -> height:int -> unit
56 method swap_buffers : unit -> unit
60 visual_options list ->
63 ?height:int -> ?packing:(widget -> unit) -> ?show:bool -> unit -> area