summaryrefslogtreecommitdiff
path: root/src/lib/ecore_imf
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2014-01-23 11:02:51 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2014-01-23 11:02:51 +0900
commit7b30c414432019a602c6c0ea4c76e4ad14ad19d7 (patch)
tree7a555e4ccc8e83992858160f5f74c1fb8e0d4555 /src/lib/ecore_imf
parentfa165f09022d2d002ed0ccdf05cc7ee00735c4a3 (diff)
ecore_imf: Add selection_set callback type to allow Input Method to select a region of text
Diffstat (limited to 'src/lib/ecore_imf')
-rw-r--r--src/lib/ecore_imf/Ecore_IMF.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/ecore_imf/Ecore_IMF.h b/src/lib/ecore_imf/Ecore_IMF.h
index 2d96a22ab0..f4521fba44 100644
--- a/src/lib/ecore_imf/Ecore_IMF.h
+++ b/src/lib/ecore_imf/Ecore_IMF.h
@@ -107,6 +107,7 @@ typedef struct _Ecore_IMF_Event_Preedit_End Ecore_IMF_Event_Preedit_End;
107typedef struct _Ecore_IMF_Event_Preedit_Changed Ecore_IMF_Event_Preedit_Changed; 107typedef struct _Ecore_IMF_Event_Preedit_Changed Ecore_IMF_Event_Preedit_Changed;
108typedef struct _Ecore_IMF_Event_Commit Ecore_IMF_Event_Commit; 108typedef struct _Ecore_IMF_Event_Commit Ecore_IMF_Event_Commit;
109typedef struct _Ecore_IMF_Event_Delete_Surrounding Ecore_IMF_Event_Delete_Surrounding; 109typedef struct _Ecore_IMF_Event_Delete_Surrounding Ecore_IMF_Event_Delete_Surrounding;
110typedef struct _Ecore_IMF_Event_Selection Ecore_IMF_Event_Selection;
110 111
111/* Events to filter */ 112/* Events to filter */
112typedef struct _Ecore_IMF_Event_Mouse_Down Ecore_IMF_Event_Mouse_Down; 113typedef struct _Ecore_IMF_Event_Mouse_Down Ecore_IMF_Event_Mouse_Down;
@@ -147,7 +148,8 @@ typedef enum
147 ECORE_IMF_CALLBACK_PREEDIT_END, /**< "PREEDIT_END" is called when a preediting sequence has been completed or canceled. @since 1.2 */ 148 ECORE_IMF_CALLBACK_PREEDIT_END, /**< "PREEDIT_END" is called when a preediting sequence has been completed or canceled. @since 1.2 */
148 ECORE_IMF_CALLBACK_PREEDIT_CHANGED, /**< "PREEDIT_CHANGED" is called whenever the preedit sequence currently being entered has changed. @since 1.2 */ 149 ECORE_IMF_CALLBACK_PREEDIT_CHANGED, /**< "PREEDIT_CHANGED" is called whenever the preedit sequence currently being entered has changed. @since 1.2 */
149 ECORE_IMF_CALLBACK_COMMIT, /**< "COMMIT" is called when a complete input sequence has been entered by the user @since 1.2 */ 150 ECORE_IMF_CALLBACK_COMMIT, /**< "COMMIT" is called when a complete input sequence has been entered by the user @since 1.2 */
150 ECORE_IMF_CALLBACK_DELETE_SURROUNDING /**< "DELETE_SURROUNDING" is called when the input method needs to delete all or part of the context surrounding the cursor @since 1.2 */ 151 ECORE_IMF_CALLBACK_DELETE_SURROUNDING, /**< "DELETE_SURROUNDING" is called when the input method needs to delete all or part of the context surrounding the cursor @since 1.2 */
152 ECORE_IMF_CALLBACK_SELECTION_SET /**< "SELECTION_SET" is called when the input method needs to set the selection @since 1.9 */
151} Ecore_IMF_Callback_Type; 153} Ecore_IMF_Callback_Type;
152 154
153/** 155/**
@@ -344,6 +346,13 @@ struct _Ecore_IMF_Event_Delete_Surrounding
344 int n_chars; 346 int n_chars;
345}; 347};
346 348
349struct _Ecore_IMF_Event_Selection
350{
351 Ecore_IMF_Context *ctx;
352 int start;
353 int end;
354};
355
347struct _Ecore_IMF_Event_Mouse_Down 356struct _Ecore_IMF_Event_Mouse_Down
348{ 357{
349 int button; /**< The button which has been pressed */ 358 int button; /**< The button which has been pressed */