diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/ecore/src/lib/ecore_imf/Ecore_IMF.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/libraries/ecore/src/lib/ecore_imf/Ecore_IMF.h b/libraries/ecore/src/lib/ecore_imf/Ecore_IMF.h index 21df2a0..adea35d 100644 --- a/libraries/ecore/src/lib/ecore_imf/Ecore_IMF.h +++ b/libraries/ecore/src/lib/ecore_imf/Ecore_IMF.h | |||
@@ -64,6 +64,17 @@ EAPI extern int ECORE_IMF_EVENT_PREEDIT_CHANGED; | |||
64 | EAPI extern int ECORE_IMF_EVENT_COMMIT; | 64 | EAPI extern int ECORE_IMF_EVENT_COMMIT; |
65 | EAPI extern int ECORE_IMF_EVENT_DELETE_SURROUNDING; | 65 | EAPI extern int ECORE_IMF_EVENT_DELETE_SURROUNDING; |
66 | 66 | ||
67 | typedef void (*Ecore_IMF_Event_Cb) (void *data, Ecore_IMF_Context *ctx, void *event_info); | ||
68 | |||
69 | typedef enum | ||
70 | { | ||
71 | ECORE_IMF_CALLBACK_PREEDIT_START, | ||
72 | ECORE_IMF_CALLBACK_PREEDIT_END, | ||
73 | ECORE_IMF_CALLBACK_PREEDIT_CHANGED, | ||
74 | ECORE_IMF_CALLBACK_COMMIT, | ||
75 | ECORE_IMF_CALLBACK_DELETE_SURROUNDING | ||
76 | } Ecore_IMF_Callback_Type; | ||
77 | |||
67 | typedef enum | 78 | typedef enum |
68 | { | 79 | { |
69 | ECORE_IMF_EVENT_MOUSE_DOWN, | 80 | ECORE_IMF_EVENT_MOUSE_DOWN, |
@@ -138,7 +149,10 @@ typedef enum | |||
138 | ECORE_IMF_INPUT_PANEL_LAYOUT_IP, /**< IP layout */ | 149 | ECORE_IMF_INPUT_PANEL_LAYOUT_IP, /**< IP layout */ |
139 | ECORE_IMF_INPUT_PANEL_LAYOUT_MONTH, /**< Month layout */ | 150 | ECORE_IMF_INPUT_PANEL_LAYOUT_MONTH, /**< Month layout */ |
140 | ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY, /**< Number Only layout */ | 151 | ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY, /**< Number Only layout */ |
141 | ECORE_IMF_INPUT_PANEL_LAYOUT_INVALID | 152 | ECORE_IMF_INPUT_PANEL_LAYOUT_INVALID, /**< Never use this */ |
153 | ECORE_IMF_INPUT_PANEL_LAYOUT_HEX, /**< Hexadecimal layout @since 1.2 */ | ||
154 | ECORE_IMF_INPUT_PANEL_LAYOUT_TERMINAL, /**< Command-line terminal layout @since 1.2 */ | ||
155 | ECORE_IMF_INPUT_PANEL_LAYOUT_PASSWORD /**< Like normal, but no auto-correct, no auto-capitalization etc. @since 1.2 */ | ||
142 | } Ecore_IMF_Input_Panel_Layout; | 156 | } Ecore_IMF_Input_Panel_Layout; |
143 | 157 | ||
144 | typedef enum | 158 | typedef enum |
@@ -385,6 +399,9 @@ EAPI void ecore_imf_context_preedit_end_event_add(Ecore | |||
385 | EAPI void ecore_imf_context_preedit_changed_event_add(Ecore_IMF_Context *ctx); | 399 | EAPI void ecore_imf_context_preedit_changed_event_add(Ecore_IMF_Context *ctx); |
386 | EAPI void ecore_imf_context_commit_event_add(Ecore_IMF_Context *ctx, const char *str); | 400 | EAPI void ecore_imf_context_commit_event_add(Ecore_IMF_Context *ctx, const char *str); |
387 | EAPI void ecore_imf_context_delete_surrounding_event_add(Ecore_IMF_Context *ctx, int offset, int n_chars); | 401 | EAPI void ecore_imf_context_delete_surrounding_event_add(Ecore_IMF_Context *ctx, int offset, int n_chars); |
402 | EAPI void ecore_imf_context_event_callback_add(Ecore_IMF_Context *ctx, Ecore_IMF_Callback_Type type, Ecore_IMF_Event_Cb func, const void *data); | ||
403 | EAPI void *ecore_imf_context_event_callback_del(Ecore_IMF_Context *ctx, Ecore_IMF_Callback_Type type, Ecore_IMF_Event_Cb func); | ||
404 | EAPI void ecore_imf_context_event_callback_call(Ecore_IMF_Context *ctx, Ecore_IMF_Callback_Type type, void *event_info); | ||
388 | EAPI void ecore_imf_context_prediction_allow_set(Ecore_IMF_Context *ctx, Eina_Bool prediction); | 405 | EAPI void ecore_imf_context_prediction_allow_set(Ecore_IMF_Context *ctx, Eina_Bool prediction); |
389 | EAPI Eina_Bool ecore_imf_context_prediction_allow_get(Ecore_IMF_Context *ctx); | 406 | EAPI Eina_Bool ecore_imf_context_prediction_allow_get(Ecore_IMF_Context *ctx); |
390 | EAPI void ecore_imf_context_autocapital_type_set(Ecore_IMF_Context *ctx, Ecore_IMF_Autocapital_Type autocapital_type); | 407 | EAPI void ecore_imf_context_autocapital_type_set(Ecore_IMF_Context *ctx, Ecore_IMF_Autocapital_Type autocapital_type); |