2 * ion/ioncore/regbind.h
4 * Copyright (c) Tuomo Valkonen 1999-2007.
6 * Ion is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 2.1 of the License, or
9 * (at your option) any later version.
12 #ifndef ION_IONCORE_REGBIND_H
13 #define ION_IONCORE_REGBIND_H
21 DECLSTRUCT(WSubmapState){
27 extern bool region_add_bindmap(WRegion *reg, WBindmap *bindmap);
28 extern void region_remove_bindmap(WRegion *reg, WBindmap *bindmap);
30 extern void region_remove_bindings(WRegion *reg);
32 extern WBinding *region_lookup_keybinding(WRegion *reg, const XKeyEvent *ev,
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 */