.. index:: pair: struct; EE::UI::UIDirectionHelper .. _doxid-struct_e_e_1_1_u_i_1_1_u_i_direction_helper: struct EE::UI::UIDirectionHelper ================================ .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct UIDirectionHelper { // methods static :ref:`UIDirectionValue` :ref:`fromString`(std::string_view str); static std::string :target:`toString`(:ref:`UIDirectionValue` direction); static std::string :target:`toString`(:ref:`UIDirection` direction); static :ref:`UIDirection` :ref:`fromLocale`(std::string_view locale); }; .. _details-struct_e_e_1_1_u_i_1_1_u_i_direction_helper: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; fromString .. _doxid-struct_e_e_1_1_u_i_1_1_u_i_direction_helper_1ad1a5411e4b58b25b4942779c168cae36: .. ref-code-block:: cpp :class: doxyrest-title-code-block static :ref:`UIDirectionValue` fromString(std::string_view str) Parses "ltr", "rtl", "inherit" and "auto" (treated as inherit). Defaults to Inherit. .. index:: pair: function; fromLocale .. _doxid-struct_e_e_1_1_u_i_1_1_u_i_direction_helper_1ad9fedd980959141f9369440154adcb29: .. ref-code-block:: cpp :class: doxyrest-title-code-block static :ref:`UIDirection` fromLocale(std::string_view locale) .. rubric:: Returns: The conventional :ref:`UI ` direction of a BCP 47 / POSIX locale name, such as "ar", "he_IL", "fa-IR" or "ur.UTF-8". Unknown locales resolve to left-to-right. This helper does not change any widget: applications decide when locale changes should update direction.