module Okey:Okey interface.sig..end
Once the lib is compiled and installed, you can use it by referencing
it with the Okey module. You must add okey.cmo or okey.cmx
on the commande line when you link.
typemodifier =Gdk.Tags.modifier
val set_default_modifiers : modifier list -> unit[].val set_default_mask : modifier list -> unit[`MOD2 ; `MOD3 ; `MOD4 ; `MOD5 ; `LOCK].
The mask defines the modifiers not taken into account
when looking for the handler of a key press event.val add : < connect : < destroy : callback:(unit -> unit) -> GtkSignal.id; .. >;
event : GObj.event_ops; get_id : int; .. > ->
?cond:(unit -> bool) ->
?mods:modifier list ->
?mask:modifier list -> Gdk.keysym -> (unit -> unit) -> unitadd widget key callback associates the callback function to the event
"key_press" with the given key for the given widget.cond : this function is a guard: the callback function is not called
if the cond function returns false.
The default cond function always returns true.mods : the list of modifiers. If not given, the default modifiers
are used.
You can set the default modifiers with function Okey.set_default_modifiers.mask : the list of modifiers which must not be taken
into account to trigger the given handler. mods
and mask must not have common modifiers. If not given, the default mask
is used.
You can set the default modifiers mask with function Okey.set_default_mask.val add_list : < connect : < destroy : callback:(unit -> unit) -> GtkSignal.id; .. >;
event : GObj.event_ops; get_id : int; .. > ->
?cond:(unit -> bool) ->
?mods:modifier list ->
?mask:modifier list -> Gdk.keysym list -> (unit -> unit) -> unitOkey.add for each given key.val set : < connect : < destroy : callback:(unit -> unit) -> GtkSignal.id; .. >;
event : GObj.event_ops; get_id : int; .. > ->
?cond:(unit -> bool) ->
?mods:modifier list ->
?mask:modifier list -> Gdk.keysym -> (unit -> unit) -> unitOkey.add but the previous handlers for the
given modifiers and key are not kept.val set_list : < connect : < destroy : callback:(unit -> unit) -> GtkSignal.id; .. >;
event : GObj.event_ops; get_id : int; .. > ->
?cond:(unit -> bool) ->
?mods:modifier list ->
?mask:modifier list -> Gdk.keysym list -> (unit -> unit) -> unitOkey.set for each given key.val remove_widget : < connect : < destroy : callback:(unit -> unit) -> GtkSignal.id; .. >;
event : GObj.event_ops; get_id : int; .. > ->
unit -> unit