* Refactor Ecore_Evas Wayland code to match changes in
Ecore_Wayland
+2012-02-29 Jihoon Kim (jihoon)
+
+ * Add ecore_imf_context_input_panel_caps_lock_mode_set/get to set the caps lock mode on the input panel
+
- Add Socket and Plug to draw other process area.
* ecore_wayland
- Add Ecore_Wayland (backend to support Wayland).
+ * ecore_imf
+ - ecore_imf_context_event_callback_add()
+ - ecore_imf_context_event_callback_del()
+ - ecore_imf_context_event_callback_call()
+ - ecore_imf_context_input_panel_imdata_set()
+ - ecore_imf_context_input_panel_imdata_get()
+ - ecore_imf_context_input_panel_return_key_type_set()
+ - ecore_imf_context_input_panel_return_key_type_get()
+ - ecore_imf_context_input_panel_return_key_disabled_set()
+ - ecore_imf_context_input_panel_return_key_disabled_get()
+ - ecore_imf_context_input_panel_caps_lock_mode_set()
+ - ecore_imf_context_input_panel_caps_lock_mode_get()
Improvements:
* ecore:
void (*input_panel_imdata_get)(Ecore_IMF_Context *ctx, void* data, int *len);
void (*input_panel_return_key_type_set) (Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Return_Key_Type return_key_type);
void (*input_panel_return_key_disabled_set) (Ecore_IMF_Context *ctx, Eina_Bool disabled);
+ void (*input_panel_caps_lock_mode_set) (Ecore_IMF_Context *ctx, Eina_Bool mode);
};
struct _Ecore_IMF_Context_Info
EAPI Ecore_IMF_Input_Panel_Return_Key_Type ecore_imf_context_input_panel_return_key_type_get(Ecore_IMF_Context *ctx);
EAPI void ecore_imf_context_input_panel_return_key_disabled_set(Ecore_IMF_Context *ctx, Eina_Bool disabled);
EAPI Eina_Bool ecore_imf_context_input_panel_return_key_disabled_get(Ecore_IMF_Context *ctx);
+EAPI void ecore_imf_context_input_panel_caps_lock_mode_set(Ecore_IMF_Context *ctx, Eina_Bool mode);
+EAPI Eina_Bool ecore_imf_context_input_panel_caps_lock_mode_get(Ecore_IMF_Context *ctx);
/* The following entry points must be exported by each input method module
*/
return ctx->input_panel_return_key_disabled;
}
+
+/**
+ * Set the caps lock mode on the input panel.
+ *
+ * @param ctx An #Ecore_IMF_Context.
+ * @param mode Turn on caps lock on the input panel if EINA_TRUE
+ * @ingroup Ecore_IMF_Context_Group
+ * @since 1.2.0
+ */
+EAPI void
+ecore_imf_context_input_panel_caps_lock_mode_set(Ecore_IMF_Context *ctx, Eina_Bool mode)
+{
+ if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
+ {
+ ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
+ "ecore_imf_context_input_panel_caps_lock_mode_set");
+ return;
+ }
+
+ if (ctx->klass->input_panel_caps_lock_mode_set)
+ ctx->klass->input_panel_caps_lock_mode_set(ctx, mode);
+
+ ctx->input_panel_caps_lock_mode = mode;
+}
+
+/**
+ * Get the caps lock mode on the input panel.
+ *
+ * @param ctx An #Ecore_IMF_Context.
+ * @return EINA_TRUE if the caps lock is turned on.
+ * @ingroup Ecore_IMF_Context_Group
+ * @since 1.2.0
+ */
+EAPI Eina_Bool
+ecore_imf_context_input_panel_caps_lock_mode_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_caps_lock_mode_get");
+ return EINA_FALSE;
+ }
+
+ return ctx->input_panel_caps_lock_mode;
+}
+
Eina_Bool allow_prediction : 1;
Eina_Bool input_panel_enabled : 1;
Eina_Bool input_panel_return_key_disabled : 1;
+ Eina_Bool input_panel_caps_lock_mode : 1;
};
struct _Ecore_IMF_Module
NULL, /* input_panel_imdata_set */
NULL, /* input_panel_imdata_get */
NULL, /* input_panel_return_key_type_set */
- NULL /* input_panel_return_key_disabled_set */
+ NULL, /* input_panel_return_key_disabled_set */
+ NULL /* input_panel_caps_lock_mode_set */
};
static Ecore_IMF_Context *imf_module_create (void);
.input_panel_imdata_set = NULL,
.input_panel_imdata_get = NULL,
.input_panel_return_key_type_set = NULL,
- .input_panel_return_key_disabled_set = NULL
+ .input_panel_return_key_disabled_set = NULL,
+ .input_panel_caps_lock_mode_set = NULL
};
static Ecore_IMF_Context *