2 * ion/ioncore/regbind.h
4 * Copyright (c) Tuomo Valkonen 1999-2009.
6 * See the included file LICENSE for details.
9 #ifndef ION_IONCORE_REGBIND_H
10 #define ION_IONCORE_REGBIND_H
18 DECLSTRUCT(WSubmapState
){
22 /* Watch leave_reg; */
26 extern bool region_add_bindmap(WRegion
*reg
, WBindmap
*bindmap
);
27 extern void region_remove_bindmap(WRegion
*reg
, WBindmap
*bindmap
);
29 extern void region_remove_bindings(WRegion
*reg
);
31 extern WBinding
*region_lookup_keybinding(WRegion
*reg
,
32 int act
, uint state
, uint kcb
,
33 const WSubmapState
*sc
,
34 WRegion
**binding_owner_ret
);
35 extern WBinding
*region_lookup_binding(WRegion
*reg
, int act
, uint state
,
38 extern void rbind_binding_added(const WRegBindingInfo
*rbind
,
39 const WBinding
*binding
,
40 const WBindmap
*bindmap
);
41 extern void rbind_binding_removed(const WRegBindingInfo
*rbind
,
42 const WBinding
*binding
,
43 const WBindmap
*bindmap
);
45 extern void region_update_owned_grabs(WRegion
*reg
);
46 extern void region_do_update_owned_grabs(WRegion
*reg
);
48 #endif /* ION_IONCORE_REGBIND_H */