Merge branch 'master' of https://github.com/ghennequin/llpp into ghennequin-master
[llpp.git] / wsi.mli
blob903a6ea8864032efa44c8d18712b585d25897e81
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 = object
22 method display : unit
23 method map : bool -> unit
24 method expose : unit
25 method visible : visiblestate -> unit
26 method reshape : int -> int -> unit
27 method mouse : int -> bool -> int -> int -> int -> unit
28 method motion : int -> int -> unit
29 method pmotion : int -> int -> unit
30 method key : int -> int -> unit
31 method enter : int -> int -> unit
32 method leave : unit
33 method winstate : winstate list -> unit
34 method quit : unit
35 end;;
37 val setcursor : cursor -> unit;;
38 val settitle : string -> unit;;
39 val swapb : unit -> unit;;
40 val readresp : Unix.file_descr -> unit;;
41 val init : t -> int -> int -> int
42 -> Utils.platform -> Unix.file_descr * int * int;;
43 val fullscreen : unit -> unit;;
44 val reshape : int -> int -> unit;;
45 val activatewin : unit -> unit;;
46 val mapwin : unit -> unit;;
47 val withalt : int -> bool;;
48 val withctrl : int -> bool;;
49 val withshift : int -> bool;;
50 val withmeta : int -> bool;;
51 val withnone : int -> bool;;
52 val metamask : int;;
53 val altmask : int;;
54 val shiftmask : int;;
55 val ctrlmask : int;;
56 val keyname : int -> string;;
57 val namekey : string -> int;;
58 val setwinbgcol : int -> unit;;