struct EE::UI::UIApplication::Settings

Overview

#include <uiapplication.hpp>

struct Settings {
    // fields

    std::optional<Float> pixelDensity;
    bool loadBaseResources { true };
    Font* baseFont { nullptr };
    std::optional<std::string> baseStyleSheetPath;

    // construction

    Settings();
    Settings(std::optional<Float> pixelDensity, bool loadBaseResources = true, Font* baseFont = nullptr, std::optional<std::string> baseStyleSheetPath = {});
};

Detailed Documentation

Fields

std::optional<Float> pixelDensity

Not setting anything will automatically try to detect the main screen pixel density.

bool loadBaseResources { true }

Must be set to true in order to initialize the basic UI resources (font and UI theme). Otherwise it will initialize with an empty UI scene node

Font* baseFont { nullptr }

The default base font for the UI. If not provided it will load NotoSans-Regular ( will look at “assets/fonts/NotoSans-Regular.ttf” )

std::optional<std::string> baseStyleSheetPath

The style sheet path is the path of the base UI theme stylesheet ( will look at “assets/ui/breeze.css” by default )