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 11:55:05 +0000
committerMike McCormack <mikem@ring3k.org>2011-07-07 11:55:05 +0000
commit7221f6218519e486b7542e53bb54c73a08086826 (patch)
tree43191be6541d78d83ded99c0264f0328406fa1e9 /legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c
parentf7f762154e994d5d8d027020d2734569057f8ee0 (diff)
ecore-imf: Add APIs for virtual keyboard support
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com> SVN revision: 61114
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c90
1 files changed, 90 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 06210d3a5b..e95523e9bb 100644
--- a/legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c
+++ b/legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c
@@ -1055,6 +1055,96 @@ ecore_imf_context_control_panel_hide (Ecore_IMF_Context *ctx)
1055} 1055}
1056 1056
1057/** 1057/**
1058 * Ask the Input Method Context to show the input panel (virtual keyboard).
1059 *
1060 * @param ctx An #Ecore_IMF_Context.
1061 * @ingroup Ecore_IMF_Context_IMControl_Group
1062 * @since 1.1.0
1063 */
1064EAPI void
1065ecore_imf_context_input_panel_show(Ecore_IMF_Context *ctx)
1066{
1067 if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
1068 {
1069 ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
1070 "ecore_imf_context_input_panel_show");
1071 return;
1072 }
1073
1074 if (ctx->klass->show) ctx->klass->show(ctx);
1075}
1076
1077/**
1078 * Ask the Input Method Context to hide the input panel.
1079 *
1080 * @param ctx An #Ecore_IMF_Context.
1081 * @ingroup Ecore_IMF_Context_IMControl_Group
1082 * @since 1.1.0
1083 */
1084EAPI void
1085ecore_imf_context_input_panel_hide(Ecore_IMF_Context *ctx)
1086{
1087 if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
1088 {
1089 ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
1090 "ecore_imf_context_input_panel_hide");
1091 return;
1092 }
1093
1094 if (ctx->klass->hide) ctx->klass->hide(ctx);
1095}
1096
1097/**
1098 * Set the layout of the input panel.
1099 *
1100 * @param ctx An #Ecore_IMF_Context.
1101 * @param layout see #ECORE_IMF_INPUT_PANEL_LAYOUT
1102 * @ingroup Ecore_IMF_Context_IMControl_Group
1103 * @since 1.1.0
1104 */
1105EAPI void
1106ecore_imf_context_input_panel_layout_set (Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Layout layout)
1107{
1108 if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
1109 {
1110 ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
1111 "ecore_imf_context_input_panel_layout_set");
1112 return;
1113 }
1114
1115 if (ctx->klass->input_panel_layout_set)
1116 ctx->klass->input_panel_layout_set(ctx, layout);
1117
1118 ctx->input_panel_layout = layout;
1119}
1120
1121/**
1122 * Get the layout of the current active input panel.
1123 *
1124 * @param ctx An #Ecore_IMF_Context.
1125 * @return layout see #Ecore_IMF_Input_Panel_Layout
1126 * @ingroup Ecore_IMF_Context_IMControl_Group
1127 * @since 1.1.0
1128 */
1129EAPI Ecore_IMF_Input_Panel_Layout
1130ecore_imf_context_input_panel_layout_get (Ecore_IMF_Context *ctx)
1131{
1132 if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
1133 {
1134 ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
1135 "ecore_imf_context_input_panel_layout_get");
1136 return ECORE_IMF_INPUT_PANEL_LAYOUT_INVALID;
1137 }
1138
1139 if (ctx->klass->input_panel_layout_get)
1140 {
1141 return ctx->input_panel_layout;
1142 }
1143 else
1144 return ECORE_IMF_INPUT_PANEL_LAYOUT_INVALID;
1145}
1146
1147/**
1058 * Set the language of the input panel. 1148 * Set the language of the input panel.
1059 * This API can be used when you want to show the English keyboard. 1149 * This API can be used when you want to show the English keyboard.
1060 * 1150 *