summaryrefslogtreecommitdiff
path: root/src/lib/ecore_imf/Ecore_IMF.h
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2014-09-23 10:18:35 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2014-09-23 10:18:35 +0900
commit000f5fee84384423712cbb706d6da6aa2cd06007 (patch)
tree9e29623b6020296ebc696042ad56fd3d60da3c95 /src/lib/ecore_imf/Ecore_IMF.h
parent9d50d23e12d3abc0a7ed96708f023f2d06531418 (diff)
ecore_imf: Add ecore_imf_context_bidi_direction_set/get API
Some Input Methods want to know the bidi direction (LTR/RTL) at the current cursor position.
Diffstat (limited to 'src/lib/ecore_imf/Ecore_IMF.h')
-rw-r--r--src/lib/ecore_imf/Ecore_IMF.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/lib/ecore_imf/Ecore_IMF.h b/src/lib/ecore_imf/Ecore_IMF.h
index 6d0719e667..1e4d276898 100644
--- a/src/lib/ecore_imf/Ecore_IMF.h
+++ b/src/lib/ecore_imf/Ecore_IMF.h
@@ -332,6 +332,18 @@ enum
332 ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_SIGNED_AND_DECIMAL /**< The number layout to allow decimal point and negative sign @since 1.8 */ 332 ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_SIGNED_AND_DECIMAL /**< The number layout to allow decimal point and negative sign @since 1.8 */
333}; 333};
334 334
335/**
336 * @typedef Ecore_IMF_BiDi_Direction
337 * @brief Enumeration that defines the types of Ecore_IMF bidirectionality
338 * @since 1.12
339 */
340typedef enum
341{
342 ECORE_IMF_BIDI_DIRECTION_NEUTRAL, /**< The Neutral mode @since 1.12 */
343 ECORE_IMF_BIDI_DIRECTION_LTR, /**< The Left to Right mode @since 1.12 */
344 ECORE_IMF_BIDI_DIRECTION_RTL /**< The Right to Left mode @since 1.12 */
345} Ecore_IMF_BiDi_Direction;
346
335struct _Ecore_IMF_Event_Preedit_Start 347struct _Ecore_IMF_Event_Preedit_Start
336{ 348{
337 Ecore_IMF_Context *ctx; 349 Ecore_IMF_Context *ctx;
@@ -535,6 +547,7 @@ struct _Ecore_IMF_Context_Class
535 void (*input_panel_language_locale_get) (Ecore_IMF_Context *ctx, char **lang); 547 void (*input_panel_language_locale_get) (Ecore_IMF_Context *ctx, char **lang);
536 void (*candidate_panel_geometry_get)(Ecore_IMF_Context *ctx, int *x, int *y, int *w, int *h); 548 void (*candidate_panel_geometry_get)(Ecore_IMF_Context *ctx, int *x, int *y, int *w, int *h);
537 void (*input_hint_set) (Ecore_IMF_Context *ctx, Ecore_IMF_Input_Hints input_hints); 549 void (*input_hint_set) (Ecore_IMF_Context *ctx, Ecore_IMF_Input_Hints input_hints);
550 void (*bidi_direction_set) (Ecore_IMF_Context *ctx, Ecore_IMF_BiDi_Direction direction);
538}; 551};
539 552
540struct _Ecore_IMF_Context_Info 553struct _Ecore_IMF_Context_Info
@@ -1636,6 +1649,26 @@ EAPI void ecore_imf_context_input_panel_show_on_demand_
1636 */ 1649 */
1637EAPI Eina_Bool ecore_imf_context_input_panel_show_on_demand_get(Ecore_IMF_Context *ctx); 1650EAPI Eina_Bool ecore_imf_context_input_panel_show_on_demand_get(Ecore_IMF_Context *ctx);
1638 1651
1652/**
1653 * @brief Sets the bidirectionality at the current cursor position.
1654 *
1655 * @since 1.12.0
1656 *
1657 * @param[in] ctx An #Ecore_IMF_Context
1658 * @param[in] direction the direction mode
1659 */
1660EAPI void ecore_imf_context_bidi_direction_set(Ecore_IMF_Context *ctx, Ecore_IMF_BiDi_Direction direction);
1661
1662/**
1663 * @brief Gets the bidirectionality at the current cursor position.
1664 *
1665 * @since 1.12.0
1666 *
1667 * @param[in] ctx An #Ecore_IMF_Context
1668 * @return the direction mode
1669 */
1670EAPI Ecore_IMF_BiDi_Direction ecore_imf_context_bidi_direction_get(Ecore_IMF_Context *ctx);
1671
1639/* The following entry points must be exported by each input method module 1672/* The following entry points must be exported by each input method module
1640 */ 1673 */
1641 1674