]> matita.cs.unibo.it Git - helm.git/blob - helm/DEVEL/lablgtkmathview/gMathView.mli
* restored binding with gtkmathview 0.4.0
[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 clicked : callback:(Gdome.element -> unit) -> GtkSignal.id
34     method element_changed :
35       callback:(Gdome.element option -> unit) -> GtkSignal.id
36     method press_move :
37       callback:(Gdome.element option -> Gdome.element option -> unit) -> GtkSignal.id
38   end
39
40 class math_view_skel :
41   (Gtk_mathview.math_view Gtk.obj as 'a)->
42   object
43     inherit GContainer.container
44     method freeze : unit
45     method thaw : unit
46     method export_to_postscript :
47       ?width:int ->
48       ?height:int ->
49       ?x_margin:int ->
50       ?y_margin:int ->
51       ?disable_colors:bool -> filename:string -> unit -> unit
52     method get_anti_aliasing : bool
53     method get_buffer : Gdk.pixmap
54     method get_font_manager_type : [ `font_manager_gtk | `font_manager_t1]
55     method get_font_size : int
56     method get_frame : GBin.frame
57     method get_hadjustment : GData.adjustment
58     method get_height : int
59     method get_log_verbosity : int
60     method get_top : int * int
61     method get_transparency : bool
62     method get_vadjustment : GData.adjustment
63     method get_width : int
64     method load_uri : filename:string -> unit
65     method load_doc : dom:Gdome.document -> unit
66     method set_adjustments : GData.adjustment -> GData.adjustment -> unit
67     method set_anti_aliasing : bool -> unit
68     method set_font_manager_type :
69       fm_type:[ `font_manager_gtk | `font_manager_t1] -> unit
70     method set_font_size : int -> unit
71     method set_log_verbosity : int -> unit
72     method select : Gdome.element -> unit
73     method unselect : Gdome.element -> unit
74     method is_selected : Gdome.element -> bool
75     method set_top : int -> int -> unit
76     method set_transparency : bool -> unit
77     method unload : unit
78     val obj : 'a
79   end
80
81 class math_view :
82   Gtk_mathview.math_view Gtk.obj ->
83   object
84     inherit math_view_skel
85     method connect : math_view_signals
86   end
87
88 val math_view :
89   ?adjustmenth:GData.adjustment ->
90   ?adjustmentv:GData.adjustment ->
91   ?font_size:int ->
92   ?font_manager:[ `font_manager_gtk | `font_manager_t1] ->
93   ?border_width:int ->
94   ?width:int ->
95   ?height:int ->
96   ?packing:(GObj.widget -> unit) -> ?show:bool -> unit -> math_view