A theme used to style the windows in the component. More...
Public Member Functions | |
Theme () noexcept | |
nkMemory::StringView | getName () const |
const ThemeColors & | getColors () const |
ThemeColors & | getColors () |
void | setName (nkMemory::StringView name) |
Static Public Member Functions | |
static nkMemory::UniquePtr< Theme > | create (System *system=nullptr) |
A theme used to style the windows in the component.
|
noexcept |
Constructor.
nkMemory::StringView nkWinUi::Theme::getName | ( | ) | const |
const ThemeColors& nkWinUi::Theme::getColors | ( | ) | const |
ThemeColors& nkWinUi::Theme::getColors | ( | ) |
void nkWinUi::Theme::setName | ( | nkMemory::StringView | name | ) |
Sets the name of the theme. Used internally by the ThemeManager.
name | The name to set. |
|
static |
Creates a standalone resource, linking it to a system, but no manager. This method can be used to allocate a resource and manually manage its lifetime.
system | The system to create the resource into. If left to nullptr, then the Singleton instance will be used. |