]> matita.cs.unibo.it Git - helm.git/blob - helm/DEVEL/lablgtkmathview/gMathView.mli
* binding update to recognize the new event scheme generated by
[helm.git] / helm / DEVEL / lablgtkmathview / gMathView.mli
1 (* Copyright (C) 2000, Luca Padovani <luca.padovani@cs.unibo.it>.
2  *
3  * This file is part of lablgtkmathview, the Ocaml binding
4  * for the GtkMathView widget.
5  * 
6  * lablgtkmathview is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * lablgtkmathview is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with lablgtkmathview; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19  * 
20  * For details, send a mail to the author.
21  *)
22
23 exception ErrorLoadingFile of string
24 exception ErrorWritingFile of string
25 exception ErrorLoadingDOM
26 exception NoSelection
27
28 class math_view_signals :
29   ([> `container | `widget | `base | `math_view] as 'b) Gtk.obj ->
30   object ('a)
31     inherit GContainer.container_signals
32     val obj: 'b Gtk.obj
33     method click : callback:(Gdome.element -> int -> unit) -> GtkSignal.id
34     method element_over :
35       callback:(Gdome.element option -> int -> unit) -> GtkSignal.id
36     method select_begin :
37       callback:(Gdome.element option -> int -> unit) -> GtkSignal.id
38     method select_over :
39       callback:(Gdome.element option -> int -> unit) -> GtkSignal.id
40     method select_end :
41       callback:(Gdome.element option -> int -> unit) -> GtkSignal.id
42     method select_abort :
43       callback:(unit -> unit) -> GtkSignal.id
44   end
45
46 class math_view_skel :
47   (Gtk_mathview.math_view Gtk.obj as 'a)->
48   object
49     inherit GContainer.container
50     method freeze : unit
51     method thaw : unit
52     method export_to_postscript :
53       ?width:int ->
54       ?height:int ->
55       ?x_margin:int ->
56       ?y_margin:int ->
57       ?disable_colors:bool -> filename:string -> unit -> unit
58     method get_anti_aliasing : bool
59     method get_buffer : Gdk.pixmap
60     method get_font_manager_type : [ `font_manager_gtk | `font_manager_t1]
61     method get_font_size : int
62     method get_frame : GBin.frame
63     method get_hadjustment : GData.adjustment
64     method get_height : int
65     method get_log_verbosity : int
66     method get_top : int * int
67     method get_transparency : bool
68     method get_vadjustment : GData.adjustment
69     method get_width : int
70     method load_uri : filename:string -> unit
71     method load_doc : dom:Gdome.document -> unit
72     method set_adjustments : GData.adjustment -> GData.adjustment -> unit
73     method set_anti_aliasing : bool -> unit
74     method set_font_manager_type :
75       fm_type:[ `font_manager_gtk | `font_manager_t1] -> unit
76     method set_font_size : int -> unit
77     method set_log_verbosity : int -> unit
78     method select : Gdome.element -> unit
79     method unselect : Gdome.element -> unit
80     method is_selected : Gdome.element -> bool
81     method set_top : int -> int -> unit
82     method set_transparency : bool -> unit
83     method unload : unit
84     val obj : 'a
85   end
86
87 class math_view :
88   Gtk_mathview.math_view Gtk.obj ->
89   object
90     inherit math_view_skel
91     method connect : math_view_signals
92   end
93
94 val math_view :
95   ?adjustmenth:GData.adjustment ->
96   ?adjustmentv:GData.adjustment ->
97   ?font_size:int ->
98   ?font_manager:[ `font_manager_gtk | `font_manager_t1] ->
99   ?border_width:int ->
100   ?width:int ->
101   ?height:int ->
102   ?packing:(GObj.widget -> unit) -> ?show:bool -> unit -> math_view