-
Notifications
You must be signed in to change notification settings - Fork 0
/
wsi.mli
58 lines (54 loc) · 1.39 KB
/
wsi.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
type cursor =
| CURSOR_INHERIT
| CURSOR_INFO
| CURSOR_CYCLE
| CURSOR_FLEUR
| CURSOR_TEXT
;;
type winstate =
| MaxVert
| MaxHorz
| Fullscreen
;;
type visiblestate =
| Unobscured
| PartiallyObscured
| FullyObscured
;;
class type t = object
method display : unit
method map : bool -> unit
method expose : unit
method visible : visiblestate -> unit
method reshape : int -> int -> unit
method mouse : int -> bool -> int -> int -> int -> unit
method motion : int -> int -> unit
method pmotion : int -> int -> unit
method key : int -> int -> unit
method enter : int -> int -> unit
method leave : unit
method winstate : winstate list -> unit
method quit : unit
end;;
val setcursor : cursor -> unit;;
val settitle : string -> unit;;
val swapb : unit -> unit;;
val readresp : Unix.file_descr -> unit;;
val init : t -> int -> int -> int
-> Utils.platform -> Unix.file_descr * int * int;;
val fullscreen : unit -> unit;;
val reshape : int -> int -> unit;;
val activatewin : unit -> unit;;
val mapwin : unit -> unit;;
val withalt : int -> bool;;
val withctrl : int -> bool;;
val withshift : int -> bool;;
val withmeta : int -> bool;;
val withnone : int -> bool;;
val metamask : int;;
val altmask : int;;
val shiftmask : int;;
val ctrlmask : int;;
val keyname : int -> string;;
val namekey : string -> int;;
val setwinbgcol : int -> unit;;