Make (objective)c compilation dependent on OCaml version
[llpp.git] / wsi.mli
blob9b564bb888a2855e784d27ba80d0a4806e12cf10
1 type cursor =
2 | CURSOR_INHERIT
3 | CURSOR_INFO
4 | CURSOR_CYCLE
5 | CURSOR_FLEUR
6 | CURSOR_TEXT
7 ;;
9 type winstate =
10 | MaxVert
11 | MaxHorz
12 | Fullscreen
15 type visiblestate =
16 | Unobscured
17 | PartiallyObscured
18 | FullyObscured
21 class type t =
22 object
23 method display : unit
24 method map : bool -> unit
25 method expose : unit
26 method visible : visiblestate -> unit
27 method reshape : int -> int -> unit
28 method mouse : int -> bool -> int -> int -> int -> unit
29 method motion : int -> int -> unit
30 method pmotion : int -> int -> unit
31 method key : int -> int -> unit
32 method enter : int -> int -> unit
33 method leave : unit
34 method winstate : winstate list -> unit
35 method quit : 'a. 'a
36 method scroll : int -> int -> unit
37 method zoom : float -> int -> int -> unit
38 method opendoc : string -> unit
39 end;;
41 val setcursor : cursor -> unit;;
42 val settitle : string -> unit;;
43 val swapb : unit -> unit;;
44 val readresp : Unix.file_descr -> unit;;
45 val init : t -> int -> int -> Utils.platform -> Unix.file_descr * int * int;;
46 val fullscreen : unit -> unit;;
47 val reshape : int -> int -> unit;;
48 val activatewin : unit -> unit;;
49 val mapwin : unit -> unit;;
50 val withalt : int -> bool;;
51 val withctrl : int -> bool;;
52 val withshift : int -> bool;;
53 val withmeta : int -> bool;;
54 val withnone : int -> bool;;
55 val metamask : int;;
56 val altmask : int;;
57 val shiftmask : int;;
58 val ctrlmask : int;;
59 val keyname : int -> string;;
60 val namekey : string -> int;;
61 val fontsizefactor : unit -> int;;
62 val kc2kt : int -> Keys.t;;