}
/**
+ * Ask the Input Method Context to show the control panel of using Input Method.
+ *
+ * @param ctx An #Ecore_IMF_Context.
+ * @ingroup Ecore_IMF_Context_IMControl_Group
+ * @since 1.1.0
+ */
+EAPI void
+ecore_imf_context_control_panel_show (Ecore_IMF_Context *ctx)
+{
+ if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
+ {
+ ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
+ "ecore_imf_context_control_panel_show");
+ return;
+ }
+
+ if (ctx->klass->control_panel_show) ctx->klass->control_panel_show(ctx);
+}
+
+/**
+ * Ask the Input Method Context to hide the control panel of using Input Method.
+ *
+ * @param ctx An #Ecore_IMF_Context.
+ * @ingroup Ecore_IMF_Context_IMControl_Group
+ * @since 1.1.0
+ */
+EAPI void
+ecore_imf_context_control_panel_hide (Ecore_IMF_Context *ctx)
+{
+ if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
+ {
+ ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
+ "ecore_imf_context_control_panel_hide");
+ return;
+ }
+
+ if (ctx->klass->control_panel_hide) ctx->klass->control_panel_hide(ctx);
+}
+
+/**
* Ask the Input Method Context to show the input panel (virtual keyboard).
*
* @param ctx An #Ecore_IMF_Context.
}
/**
- * Ask the Input Method Context to show the control panel of using Input Method.
+ * Set the layout of the input panel.
*
* @param ctx An #Ecore_IMF_Context.
+ * @param layout see #ECORE_IMF_INPUT_PANEL_LAYOUT
* @ingroup Ecore_IMF_Context_IMControl_Group
* @since 1.1.0
*/
EAPI void
-ecore_imf_context_control_panel_show (Ecore_IMF_Context *ctx)
+ecore_imf_context_input_panel_layout_set (Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Layout layout)
{
if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
{
ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
- "ecore_imf_context_control_panel_show");
+ "ecore_imf_context_input_panel_layout_set");
return;
}
- if (ctx->klass->control_panel_show) ctx->klass->control_panel_show(ctx);
+ if (ctx->klass->input_panel_layout_set)
+ ctx->klass->input_panel_layout_set(ctx, layout);
+
+ ctx->input_panel_layout = layout;
}
/**
- * Ask the Input Method Context to hide the control panel of using Input Method.
+ * Get the layout of the current active input panel.
*
* @param ctx An #Ecore_IMF_Context.
+ * @return layout see #Ecore_IMF_Input_Panel_Layout
* @ingroup Ecore_IMF_Context_IMControl_Group
* @since 1.1.0
*/
-EAPI void
-ecore_imf_context_control_panel_hide (Ecore_IMF_Context *ctx)
+EAPI Ecore_IMF_Input_Panel_Layout
+ecore_imf_context_input_panel_layout_get (Ecore_IMF_Context *ctx)
{
if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
{
ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
- "ecore_imf_context_control_panel_hide");
- return;
+ "ecore_imf_context_input_panel_layout_get");
+ return ECORE_IMF_INPUT_PANEL_LAYOUT_INVALID;
}
- if (ctx->klass->control_panel_hide) ctx->klass->control_panel_hide(ctx);
+ if (ctx->klass->input_panel_layout_get)
+ return ctx->input_panel_layout;
+ else
+ return ECORE_IMF_INPUT_PANEL_LAYOUT_INVALID;
}
/**
}
/**
+ * Set the specific data to pass to the input panel.
+ * this API is used by applications to deliver specific data to the input panel.
+ * the data format MUST be negotiated by both application and the input panel.
+ *
+ * @param ctx An #Ecore_IMF_Context.
+ * @param data The specific data to be set to the input panel.
+ * @param len the length of data
+ * @ingroup Ecore_IMF_Context_IMControl_Group
+ * @since 1.1.0
+ */
+EAPI void
+ecore_imf_context_input_panel_imdata_set (Ecore_IMF_Context *ctx, const char *data, int len)
+{
+ if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
+ {
+ ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
+ "ecore_imf_context_input_panel_imdata_set");
+ return;
+ }
+
+ if ((!data) || (len <=0)) return;
+
+ if (ctx->klass->input_panel_imdata_set)
+ ctx->klass->input_panel_imdata_set(ctx, data, len);
+}
+
+/**
+ * Get the specific data of the current active input panel.
+ *
+ * @param ctx An #Ecore_IMF_Context.
+ * @param data The specific data to be got from the input panel
+ * @param len The length of data
+ * @ingroup Ecore_IMF_Context_IMControl_Group
+ * @since 1.1.0
+ */
+EAPI void
+ecore_imf_context_input_panel_imdata_get (Ecore_IMF_Context *ctx, char *data, int *len)
+{
+ if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
+ {
+ ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
+ "ecore_imf_context_input_panel_imdata_get");
+ return;
+ }
+
+ if (!data) return;
+
+ if (ctx->klass->input_panel_imdata_get)
+ ctx->klass->input_panel_imdata_get(ctx, data, len);
+}
+
+/**
* Get ISE Language of given ISE. -- Not supported for now --
* @ingroup Ecore_IMF_Context_IMControl_Group
*/
}
/**
- * Set specific data to pass to input panel.
- * this API is used by applications to deliver specific data to input panel.
- * the data format MUST be negotiated by both application and input panel.
- *
- * @param ctx An #Ecore_IMF_Context.
- * @param data The specific data to be set to the input panel.
- * @param len the length of data
- * @ingroup Ecore_IMF_Context_IMControl_Group
- * @since 1.1.0
- */
-EAPI void
-ecore_imf_context_input_panel_imdata_set (Ecore_IMF_Context *ctx, const char *data, int len)
-{
- if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
- {
- ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
- "ecore_imf_context_input_panel_imdata_set");
- return;
- }
-
- if (!data || len <=0) return;
-
- if (ctx->klass->input_panel_imdata_set)
- ctx->klass->input_panel_imdata_set(ctx, data, len);
-}
-
-/**
- * Get specific data of the current active input panel.
- *
- * @param ctx An #Ecore_IMF_Context.
- * @param data The specific data to be got from the input panel
- * @param len The length of data
- * @ingroup Ecore_IMF_Context_IMControl_Group
- * @since 1.1.0
- */
-EAPI void
-ecore_imf_context_input_panel_imdata_get (Ecore_IMF_Context *ctx, char *data, int *len)
-{
- if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
- {
- ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
- "ecore_imf_context_input_panel_get_imdata");
- return;
- }
-
- if (!data) return;
-
- if (ctx->klass->input_panel_imdata_get)
- ctx->klass->input_panel_imdata_get(ctx, data, len);
-}
-
-/**
* Set whether animation effect of the input panel is shown or not.
*
* @param ctx An #Ecore_IMF_Context.
}
if (ctx->klass->input_panel_use_effect_set)
- ctx->klass->input_panel_use_effect_set(ctx, use_effect);
+ ctx->klass->input_panel_use_effect_set(ctx, use_effect);
ctx->use_effect = use_effect;
}
/**
- * Get whether input panel supports animation effect or not when it is shown or hidden.
+ * Get whether the input panel supports animation effect or not when it is shown or hidden.
*
* @param ctx An #Ecore_IMF_Context.
* @param use_effect whether animation effect is shown or not
}
/**
- * Get position of current active input panel.
+ * Get the position of the current active input panel.
*
* @param ctx An #Ecore_IMF_Context.
- * @param x top-left x co-ordinate of rectangle;
- * @param y top-left y co-ordinate of rectangle;
- * @param w width of rectangle ;
- * @param h height of rectangle;
+ * @param x top-left x co-ordinate of the input panel
+ * @param y top-left y co-ordinate of the input panel
+ * @param w width of the input panel
+ * @param h height of the input panel
* @ingroup Ecore_IMF_Context_IMControl_Group
* @since 1.1.0
*/
}
if (ctx->klass->input_panel_geometry_get)
- ctx->klass->input_panel_geometry_get(ctx, x, y, w, h);
+ ctx->klass->input_panel_geometry_get(ctx, x, y, w, h);
}
/**
key_item->key_value = key_value;
if (key_string)
- strcpy(key_item->key_string, key_string);
+ strcpy(key_item->key_string, key_string);
ctx->private_key_list = eina_list_append(ctx->private_key_list, key_item);
}
}
/**
- * Set the layout of input panel.
- *
- * @param ctx An #Ecore_IMF_Context.
- * @param layout see #ECORE_IMF_INPUT_PANEL_LAYOUT
- * @ingroup Ecore_IMF_Context_IMControl_Group
- * @since 1.1.0
- */
-EAPI void
-ecore_imf_context_input_panel_layout_set (Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Layout layout)
-{
- if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
- {
- ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
- "ecore_imf_context_input_panel_layout_set");
- return;
- }
-
- if (ctx->klass->input_panel_layout_set)
- ctx->klass->input_panel_layout_set(ctx, layout);
-
- ctx->input_panel_layout = layout;
-}
-
-/**
- * Get the layout of current active input panel.
- *
- * @param ctx An #Ecore_IMF_Context.
- * @return layout see #Ecore_IMF_Input_Panel_Layout
- * @ingroup Ecore_IMF_Context_IMControl_Group
- * @since 1.1.0
- */
-EAPI Ecore_IMF_Input_Panel_Layout
-ecore_imf_context_input_panel_layout_get (Ecore_IMF_Context *ctx)
-{
- if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
- {
- ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
- "ecore_imf_context_input_panel_layout_get");
- return ECORE_IMF_INPUT_PANEL_LAYOUT_INVALID;
- }
-
- if (ctx->klass->input_panel_layout_get)
- {
- // ctx->klass->input_panel_layout_get (ctx, &layout);
- return ctx->input_panel_layout;
- }
- else
- return ECORE_IMF_INPUT_PANEL_LAYOUT_INVALID;
-}
-
-/**
* Restore all default properties of input panel.
*
* @param ctx An #Ecore_IMF_Context.
}
if (ctx->klass->input_panel_state_get)
- state = ctx->klass->input_panel_state_get(ctx);
+ state = ctx->klass->input_panel_state_get(ctx);
return state;
}
}
if (ctx->klass->input_panel_event_callback_add)
- {
- ctx->klass->input_panel_event_callback_add(ctx, type, func, data);
- }
+ ctx->klass->input_panel_event_callback_add(ctx, type, func, data);
}
/**
}
if (ctx->klass->input_panel_event_callback_del)
- {
- ctx->klass->input_panel_event_callback_del(ctx, type, func);
- }
+ ctx->klass->input_panel_event_callback_del(ctx, type, func);
}
/**
return;
}
- if (ctx->klass->input_panel_caps_mode_set) ctx->klass->input_panel_caps_mode_set(ctx, mode);
+ if (ctx->klass->input_panel_caps_mode_set)
+ ctx->klass->input_panel_caps_mode_set(ctx, mode);
}