ELM_CONFIG_VAL(D, T, scroll_item_align_enable, T_UCHAR);
ELM_CONFIG_VAL(D, T, scroll_item_valign, T_STRING);
//
+ ELM_CONFIG_VAL(D, T, language_auto_mirrored, T_UCHAR);
#undef T
#undef D
#undef T_INT
_elm_config->scroll_item_align_enable = EINA_FALSE;
_elm_config->scroll_item_valign = eina_stringshare_add("center");
//
+ _elm_config->language_auto_mirrored = EINA_TRUE;
}
static void
_elm_rescale();
}
+EAPI Eina_Bool
+elm_config_language_auto_mirrored_get(void)
+{
+ return _elm_config->language_auto_mirrored;
+}
+
+EAPI void
+elm_config_language_auto_mirrored_set(Eina_Bool automatic)
+{
+ automatic = !!automatic;
+ if (_elm_config->language_auto_mirrored == automatic) return;
+ _elm_config->language_auto_mirrored = automatic;
+ _elm_rescale();
+}
+
EAPI Eina_Bool
elm_config_cursor_engine_only_get(void)
{
*/
EAPI void elm_config_mirrored_set(Eina_Bool mirrored);
+/**
+ * Get the system auto mirrored mode.
+ * This determines whether the mirrored mode is determined automatically by the locale or not.
+ *
+ * @return @c EINA_TRUE if mirrored is set, @c EINA_FALSE otherwise
+ */
+EAPI Eina_Bool elm_config_language_auto_mirrored_get(void);
+
+/**
+ * Set the system auto mirrored mode.
+ * This determines whether the mirrored mode is determined automatically by the locale or not.
+ *
+ * @param mirrored @c EINA_TRUE to set auto mirrored mode, @c EINA_FALSE to unset it.
+ */
+EAPI void elm_config_language_auto_mirrored_set(Eina_Bool auto_mirrored);
+
/**
* @internal
*
Eina_Bool scroll_item_align_enable;
const char *scroll_item_valign;
//
+ Eina_Bool language_auto_mirrored;
/* Not part of the EET file */
Eina_Bool is_mirrored : 1;
elm_widget_translate(obj);
}
/* END */
+
+ /* TIZEN_ONLY(20161117): Temporary code
+ Apply mirroring according to config in elm_win_add() time */
+ if (_elm_config->language_auto_mirrored)
+ {
+ if (!strcmp(E_("default:LTR"), "default:RTL"))
+ elm_config_mirrored_set(EINA_TRUE);
+ else
+ elm_config_mirrored_set(EINA_FALSE);
+ }
+ /* END */
}
void
evas_object_paragraph_direction_set(obj, EVAS_BIDI_DIRECTION_LTR);
/* END */
+ if (_elm_config->language_auto_mirrored)
+ {
+ if (!strcmp(E_("default:LTR"), "default:RTL"))
+ elm_config_mirrored_set(EINA_TRUE);
+ else
+ elm_config_mirrored_set(EINA_FALSE);
+ }
+
return obj;
}