diff options
Diffstat (limited to 'matchbox2/mb-wm-keys.h')
-rw-r--r-- | matchbox2/mb-wm-keys.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/matchbox2/mb-wm-keys.h b/matchbox2/mb-wm-keys.h index b16fe95..656c6e6 100644 --- a/matchbox2/mb-wm-keys.h +++ b/matchbox2/mb-wm-keys.h @@ -23,6 +23,27 @@ #include <matchbox2/mb-wm.h> +typedef struct MBWMKeys MBWMKeys; +typedef struct MBWMKeyBinding MBWMKeyBinding; + +typedef void (*MBWMKeyPressedFunc) (MBWindowManager *wm, + MBWMKeyBinding *binding, + void *userdata); + +typedef void (*MBWMKeyDestroyFunc) (MBWindowManager *wm, + MBWMKeyBinding *binding, + void *userdata); + +struct MBWMKeyBinding +{ + KeySym keysym; + int modifier_mask; + MBWMKeyPressedFunc pressed; + MBWMKeyDestroyFunc destroy; + void *userdata; + /* FIXME: free func */ +}; + void mb_wm_keys_binding_remove_all (MBWindowManager *wm); |