summaryrefslogtreecommitdiff
path: root/src/lib/ecore_imf/ecore_imf_context.c
diff options
context:
space:
mode:
authorInHong Han <inhong1.han@samsung.com>2017-09-14 10:39:03 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2017-09-14 10:49:03 +0900
commit9f068c55dbf1ce1017492d4d84133d0acbd903c8 (patch)
tree24960404e37482206d075f0f5c58a1609f6d9b7e /src/lib/ecore_imf/ecore_imf_context.c
parentcacd374e4121f5e91db51cf7b228f243d04d3193 (diff)
ecore_imf: Add ecore_imf_context_input_panel_position_set API
Summary: Sets the x,y coordinates of the input panel Test Plan: Tested in Tizen device Reviewers: woohyun, id213sin, jihoon, cedric Subscribers: jpeg, jihoon, cedric Differential Revision: https://phab.enlightenment.org/D5193
Diffstat (limited to 'src/lib/ecore_imf/ecore_imf_context.c')
-rw-r--r--src/lib/ecore_imf/ecore_imf_context.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/ecore_imf/ecore_imf_context.c b/src/lib/ecore_imf/ecore_imf_context.c
index caa2d59f1b..1b34e0c01f 100644
--- a/src/lib/ecore_imf/ecore_imf_context.c
+++ b/src/lib/ecore_imf/ecore_imf_context.c
@@ -1445,3 +1445,19 @@ ecore_imf_context_mime_type_accept_set(Ecore_IMF_Context *ctx, const char *mime_
1445 if (ctx->klass->mime_type_accept_set) 1445 if (ctx->klass->mime_type_accept_set)
1446 ctx->klass->mime_type_accept_set(ctx, mime_type); 1446 ctx->klass->mime_type_accept_set(ctx, mime_type);
1447} 1447}
1448
1449EAPI void
1450ecore_imf_context_input_panel_position_set(Ecore_IMF_Context *ctx, int x, int y)
1451{
1452 if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
1453 {
1454 ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
1455 "ecore_imf_context_input_panel_position_set");
1456 return;
1457 }
1458
1459 if (x < 0 || y < 0) return;
1460
1461 if (ctx->klass->input_panel_position_set)
1462 ctx->klass->input_panel_position_set(ctx, x, y);
1463} \ No newline at end of file