Skip to content

UIModule

#include "GUI/UIModule.h"

Inherits from Module

Public Functions

Name
UIModule() =default
~UIModule() override
Fonts &getFonts()
Theme &getTheme()
std::optional< Theme * >getThemeByName(const std::string & name) const
std::vector< Theme > &getThemes()
WindowManager &getWindowManager()
ImFont *loadFont(const char * filename, float size_pixels, float fontScale, const ImFontConfig * font_cfg_template, const ImWchar * glyph_ranges, bool mergeIcons)
voidloadFonts()
voidloadThemes()
template <typename TStrategy &gt; <br>voidopenConfirmModal()
template <typename T &gt; <br>voidopenModal()
voidreloadThemes()
voidsetDefaultTheme()<br>Set the theme to the default one based on the system settings (LightMode or DarkMode only on Windows).
voidsetTheme(const Theme & theme)

Friends

Name
classApplication

Additional inherited members

Public Functions inherited from Module

Name
Module() =default
virtual~Module() =default
virtual voidonEndFrame()
virtual voidonUpdate(double deltaSeconds)

Public Functions Documentation

function UIModule

cpp
UIModule() =default
UIModule() =default

function ~UIModule

cpp
~UIModule() override
~UIModule() override

function getFonts

cpp
inline Fonts & getFonts()
inline Fonts & getFonts()

function getTheme

cpp
inline Theme & getTheme()
inline Theme & getTheme()

function getThemeByName

cpp
std::optional< Theme * > getThemeByName(
    const std::string & name
) const
std::optional< Theme * > getThemeByName(
    const std::string & name
) const

function getThemes

cpp
inline std::vector< Theme > & getThemes()
inline std::vector< Theme > & getThemes()

function getWindowManager

cpp
inline WindowManager & getWindowManager()
inline WindowManager & getWindowManager()

function loadFont

cpp
ImFont * loadFont(
    const char * filename,
    float size_pixels,
    float fontScale,
    const ImFontConfig * font_cfg_template,
    const ImWchar * glyph_ranges,
    bool mergeIcons
)
ImFont * loadFont(
    const char * filename,
    float size_pixels,
    float fontScale,
    const ImFontConfig * font_cfg_template,
    const ImWchar * glyph_ranges,
    bool mergeIcons
)

function loadFonts

cpp
void loadFonts()
void loadFonts()

function loadThemes

cpp
void loadThemes()
void loadThemes()

function openConfirmModal

cpp
template <typename TStrategy >
inline void openConfirmModal()
template <typename TStrategy >
inline void openConfirmModal()

function openModal

cpp
template <typename T >
inline void openModal()
template <typename T >
inline void openModal()

function reloadThemes

cpp
void reloadThemes()
void reloadThemes()

function setDefaultTheme

cpp
void setDefaultTheme()
void setDefaultTheme()

Set the theme to the default one based on the system settings (LightMode or DarkMode only on Windows).

function setTheme

cpp
void setTheme(
    const Theme & theme
)
void setTheme(
    const Theme & theme
)

Friends

friend Application

cpp
friend class Application(
    Application 
);
friend class Application(
    Application 
);

Updated on 2024-11-06 at 20:16:53 +0000