summaryrefslogtreecommitdiff
path: root/src/lib/ecore_imf
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2017-05-31 18:23:32 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2017-06-02 09:24:47 +0900
commite2804c6f0148518904c38e9b78df2dcf17dad908 (patch)
treec6398940190f783332905a93e7226b949c1e74c2 /src/lib/ecore_imf
parentb53d1e29f1f240c0a30a5751acb09636a49e82ed (diff)
ecore_imf: Add commit content event callback
COMMIT_CONTENT is called when the input method commits content such as an image. Change-Id: Idf238dc9b27811999b1ee733eeba2318d57e54f1 Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
Diffstat (limited to 'src/lib/ecore_imf')
-rw-r--r--src/lib/ecore_imf/Ecore_IMF.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/lib/ecore_imf/Ecore_IMF.h b/src/lib/ecore_imf/Ecore_IMF.h
index 6e8804e..08ae0e8 100644
--- a/src/lib/ecore_imf/Ecore_IMF.h
+++ b/src/lib/ecore_imf/Ecore_IMF.h
@@ -142,6 +142,7 @@ typedef struct _Ecore_IMF_Event_Preedit_Changed Ecore_IMF_Event_Preedit_Chang
142typedef struct _Ecore_IMF_Event_Commit Ecore_IMF_Event_Commit; 142typedef struct _Ecore_IMF_Event_Commit Ecore_IMF_Event_Commit;
143typedef struct _Ecore_IMF_Event_Delete_Surrounding Ecore_IMF_Event_Delete_Surrounding; 143typedef struct _Ecore_IMF_Event_Delete_Surrounding Ecore_IMF_Event_Delete_Surrounding;
144typedef struct _Ecore_IMF_Event_Selection Ecore_IMF_Event_Selection; 144typedef struct _Ecore_IMF_Event_Selection Ecore_IMF_Event_Selection;
145typedef struct _Ecore_IMF_Event_Commit_Content Ecore_IMF_Event_Commit_Content;
145 146
146/* Events to filter */ 147/* Events to filter */
147typedef struct _Ecore_IMF_Event_Mouse_Down Ecore_IMF_Event_Mouse_Down; 148typedef struct _Ecore_IMF_Event_Mouse_Down Ecore_IMF_Event_Mouse_Down;
@@ -191,7 +192,8 @@ typedef enum
191 ECORE_IMF_CALLBACK_COMMIT, /**< "COMMIT" is called when a complete input sequence has been entered by the user @since 1.2 */ 192 ECORE_IMF_CALLBACK_COMMIT, /**< "COMMIT" is called when a complete input sequence has been entered by the user @since 1.2 */
192 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 */ 193 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 */
193 ECORE_IMF_CALLBACK_SELECTION_SET, /**< "SELECTION_SET" is called when the input method needs to set the selection @since 1.9 */ 194 ECORE_IMF_CALLBACK_SELECTION_SET, /**< "SELECTION_SET" is called when the input method needs to set the selection @since 1.9 */
194 ECORE_IMF_CALLBACK_PRIVATE_COMMAND_SEND /**< "PRIVATE_COMMAND_SEND" is called when the input method sends a private command @since 1.12 */ 195 ECORE_IMF_CALLBACK_PRIVATE_COMMAND_SEND, /**< "PRIVATE_COMMAND_SEND" is called when the input method sends a private command @since 1.12 */
196 ECORE_IMF_CALLBACK_COMMIT_CONTENT /**< "COMMIT_CONTENT" is called when the input method commits content such as an image @since 1.20 */
195} Ecore_IMF_Callback_Type; 197} Ecore_IMF_Callback_Type;
196 198
197/** 199/**
@@ -491,6 +493,19 @@ struct _Ecore_IMF_Event_Selection
491}; 493};
492 494
493/** 495/**
496 * @struct _Ecore_IMF_Event_Commit_Content
497 * @brief The structure type used with the Commit_Content Input Method event
498 * @since 1.20
499 */
500struct _Ecore_IMF_Event_Commit_Content
501{
502 Ecore_IMF_Context *ctx; /**< The associated Ecore IMF Context */
503 const char *content_uri; /**< The content URI */
504 const char *description; /**< The content description */
505 const char *mime_types; /**< The content MIME types */
506};
507
508/**
494 * @struct _Ecore_IMF_Event_Mouse_Down 509 * @struct _Ecore_IMF_Event_Mouse_Down
495 * @brief The structure type used with the Mouse_Down event 510 * @brief The structure type used with the Mouse_Down event
496 */ 511 */