summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2011-07-07 06:23:46 +0000
committerCarsten Haitzler <raster@rasterman.com>2011-07-07 06:23:46 +0000
commitfe041aca5fb967a25a9b2d872b8b2ba1cf9ff5ff (patch)
tree890807d51ba4f30a8cd8161b342d1f4f0857fe78 /legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c
parent72bcec17b9db773d183c8020176e21cc37c5a72e (diff)
From: Jihoon Kim <jihoon48.kim@samsung.com>
Subject: [E-devel] [PATCH] add ecore_imf_context_cursor_location_set API In this patch, it will add ecore_imf_context_cursor_location_set API in Ecore_IMF. The cursor location can be used to determine the position of candidate word window in immodule. SVN revision: 61105
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c b/legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c
index 382bf6a789..c1ecd1eca3 100644
--- a/legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c
+++ b/legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c
@@ -504,6 +504,29 @@ ecore_imf_context_cursor_position_set(Ecore_IMF_Context *ctx, int cursor_pos)
504} 504}
505 505
506/** 506/**
507 * Notify the Input Method Context that a change in the cursor
508 * location has been made. The location is relative to the canvas.
509 *
510 * @param ctx An #Ecore_IMF_Context.
511 * @param x cursor x position.
512 * @param x cursor y position.
513 * @param w cursor width.
514 * @param h cursor height.
515 * @ingroup Ecore_IMF_Context_Group
516 */
517EAPI void
518ecore_imf_context_cursor_location_set(Ecore_IMF_Context *ctx, int x, int y, int w, int h)
519{
520 if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
521 {
522 ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
523 "ecore_imf_context_cursor_position_set");
524 return;
525 }
526 if (ctx->klass->cursor_location_set) ctx->klass->cursor_location_set(ctx, x, y, w, h);
527}
528
529/**
507 * Set whether the IM context should use the preedit string 530 * Set whether the IM context should use the preedit string
508 * to display feedback. If @use_preedit is EINA_FALSE (default 531 * to display feedback. If @use_preedit is EINA_FALSE (default
509 * is EINA_TRUE), then the IM context may use some other method to display 532 * is EINA_TRUE), then the IM context may use some other method to display