.. index:: pair: struct; EE::UI::UIApplication::Settings .. _doxid-struct_e_e_1_1_u_i_1_1_u_i_application_1_1_settings: struct EE::UI::UIApplication::Settings ====================================== .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct Settings { // fields std::optional<:ref:`Float`> :ref:`pixelDensity`; bool :ref:`loadBaseResources` { true }; :ref:`Font`* :ref:`baseFont` { nullptr }; std::optional :ref:`baseStyleSheetPath`; :ref:`Font`* :ref:`emojiFont` { nullptr }; // construction :target:`Settings`(); :target:`Settings`(std::optional<:ref:`Float`> pixelDensity, bool loadBaseResources = true, :ref:`Font`* baseFont = nullptr, std::optional baseStyleSheetPath = {}, :ref:`Font`* emojiFont = nullptr); }; .. _details-struct_e_e_1_1_u_i_1_1_u_i_application_1_1_settings: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Fields ------ .. index:: pair: variable; pixelDensity .. _doxid-struct_e_e_1_1_u_i_1_1_u_i_application_1_1_settings_1a98c25fc42f2d3ac12c324a32a0348459: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::optional<:ref:`Float`> pixelDensity Not setting anything will automatically try to detect the main screen pixel density. .. index:: pair: variable; loadBaseResources .. _doxid-struct_e_e_1_1_u_i_1_1_u_i_application_1_1_settings_1a86b6709d92d95551d30040a704ba14d2: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool loadBaseResources { true } Must be set to true in order to initialize the basic :ref:`UI ` resources (font and :ref:`UI ` theme). Otherwise it will initialize with an empty :ref:`UI ` scene node .. index:: pair: variable; baseFont .. _doxid-struct_e_e_1_1_u_i_1_1_u_i_application_1_1_settings_1aa97ded89442ae62fa0c1076c10042595: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Font`* baseFont { nullptr } The default base font for the :ref:`UI `. If not provided it will load NotoSans-Regular ( will look at "assets/fonts/NotoSans-Regular.ttf" ) .. index:: pair: variable; baseStyleSheetPath .. _doxid-struct_e_e_1_1_u_i_1_1_u_i_application_1_1_settings_1a35b7cffbf65661eef8588265070b4dc6: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::optional baseStyleSheetPath The style sheet path is the path of the base :ref:`UI ` theme stylesheet ( will look at "assets/ui/breeze.css" by default ) .. index:: pair: variable; emojiFont .. _doxid-struct_e_e_1_1_u_i_1_1_u_i_application_1_1_settings_1a7919239363b80238501295edc559120c: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Font`* emojiFont { nullptr } The default emoji font for the :ref:`UI `. If not provided it will load NotoEmoji-Regular ( will look at "assets/fonts/NotoEmoji-Regular.ttf" )