Module Mlpost_lablgtk.Interface
Abstract lablgtk in order to display Mlpost figures inside a very simple interface
val new_interface : ?width:int -> ?height:int -> ?title:string -> unit -> interfacecreate a new interface with an empty control window
Interfaces
val create_text : interface -> ?label:string -> string -> (string -> unit) -> unitcreate_text ~label get setadds to the control window a text input.getis the initial value,setis called each times the value of the text input is changed.
val create_option : interface -> ?label:string -> (string * (unit -> unit)) list -> unitcreate_option ~label value_listadds to the control window a radio menu item.value_listis a pair of one of the choice and the callback function used when this choice is selected.
val remove_pic : interface -> (unit -> Mlpost.Command.t) -> unitremove_pic gen_picremoves a display window created byadd_pic gen_pic
Required function
val add_pic : interface -> ?width:int -> ?height:int -> ?title:string -> ?show_corner:bool -> ?auto_aspect:auto_aspect -> (unit -> Mlpost.Command.t) -> unitadd_pic get_picadd a new display window.get_picis called each times the window must be refreshed. If the value of one of the interfaces is changed, the displayed picure is refreshed.