WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
ThemeManager.h
Go to the documentation of this file.
1#pragma once
2
3struct GLFWwindow;
4
5namespace ThemeManager
6{
7
8enum Theme
9{
10 Dark = 0,
13 Count
14};
15
19void apply(Theme theme, GLFWwindow* window);
20
22[[nodiscard]] Theme currentTheme() noexcept;
23
25[[nodiscard]] int& currentThemeRef() noexcept;
26
28[[nodiscard]] const char* themeName(int index) noexcept;
29
31[[nodiscard]] const char* const* themeNames() noexcept;
32
34[[nodiscard]] constexpr int themeCount() noexcept { return static_cast<int>(Count); }
35
36} // namespace ThemeManager
void apply(Theme theme, GLFWwindow *window)
const char * themeName(int index) noexcept
Human-readable name for a theme.
constexpr int themeCount() noexcept
Number of available themes.
const char *const * themeNames() noexcept
Pointer to the contiguous name array (for ImGui::Combo items).
int & currentThemeRef() noexcept
Writable reference so ImGui::Combo can bind directly.
Theme currentTheme() noexcept
Currently active theme index.