#define TIZEN_KEYROUTER_MODE_PRESSED TIZEN_KEYROUTER_MODE_REGISTERED+1
#define TIZEN_KEYROUTER_MODE_PICTURE_OFF TIZEN_KEYROUTER_MODE_REGISTERED+2
+struct _E_Keyrouter_Key_List_Node
+{
+ struct wl_resource *surface;
+ struct wl_client *wc;
+ Eina_Bool focused;
+ E_Keyrouter_Client_Status status;
+};
+
+struct _E_Keyrouter_Grabbed_Key
+{
+ int keycode;
+ Eina_Stringshare *keyname;
+ Eina_Bool no_privcheck;
+ Eina_Bool repeat;
+
+ Eina_List *excl_ptr;
+ Eina_List *or_excl_ptr;
+ Eina_List *top_ptr;
+ Eina_List *shared_ptr;
+ Eina_List *press_ptr;
+ Eina_List *pic_off_ptr;
+};
+
+struct _E_Keyrouter_Event_Data
+{
+ struct wl_client *client;
+ struct wl_resource *surface;
+
+ int mode;
+
+ Eina_Bool ignored;
+
+ void *data;
+};
+
+E_DEPRECATED struct _E_Keyrouter_Info
+{
+ void *(*keygrab_list_get)(void);
+ int (*max_keycode_get)(void);
+};
+
typedef struct _E_Keyrouter E_Keyrouter;
typedef enum {
typedef Eina_Bool (*E_Keyrouter_Intercept_Hook_Cb) (void *data, int type, Ecore_Event_Key *event);
-struct _E_Keyrouter_Grabbed_Key
-{
- int keycode;
- Eina_Stringshare *keyname;
- Eina_Bool no_privcheck;
- Eina_Bool repeat;
-
- Eina_List *excl_ptr;
- Eina_List *or_excl_ptr;
- Eina_List *top_ptr;
- Eina_List *shared_ptr;
- Eina_List *press_ptr;
- Eina_List *pic_off_ptr;
-};
-
-struct _E_Keyrouter_Event_Data
-{
- struct wl_client *client;
- struct wl_resource *surface;
-
- int mode;
-
- Eina_Bool ignored;
-
- void *data;
-};
-
-struct _E_Keyrouter_Key_List_Node
-{
- struct wl_resource *surface;
- struct wl_client *wc;
- Eina_Bool focused;
- E_Keyrouter_Client_Status status;
-};
-
-E_DEPRECATED struct _E_Keyrouter_Info
-{
- void *(*keygrab_list_get)(void);
- int (*max_keycode_get)(void);
-};
-
extern E_API E_Keyrouter_Info e_keyrouter;
E_API E_Keyrouter_Intercept_Hook *e_keyrouter_intercept_hook_add(E_Keyrouter_Intercept_Hook_Point hookpoint, E_Keyrouter_Intercept_Hook_Cb func, const void *data);