API Documentation
Theme.h
1 // Theme.h
3 //
5 
6 namespace nkWinUi
7 {
11  struct ThemeColors
12  {
25 
30 
35  } ;
36 }
37 
38 namespace nkWinUi
39 {
43  class Theme final
44  {
45  public :
46 
50  Theme () noexcept ;
51 
52  // Getters
56  nkMemory::StringView getName () const ;
60  const ThemeColors& getColors () const ;
65 
66  // Setters
72  void setName (nkMemory::StringView name) ;
73 
74  public :
75 
76  // Statics
84  static nkMemory::UniquePtr<Theme> create (System* system = nullptr) ;
85  } ;
86 }
nkWinUi::Theme::Theme
Theme() noexcept
nkWinUi::ThemeColors::_textColor
Color _textColor
Definition: Theme.h:34
nkWinUi::ThemeColors::_hoverColor
Color _hoverColor
Definition: Theme.h:29
nkWinUi::Theme::getColors
const ThemeColors & getColors() const
nkWinUi::Theme::setName
void setName(nkMemory::StringView name)
nkWinUi::Theme::create
static nkMemory::UniquePtr< Theme > create(System *system=nullptr)
nkWinUi::ThemeColors::_ternaryColor
Color _ternaryColor
Definition: Theme.h:24
nkWinUi::System
The main system of the component.
Definition: System.h:18
nkWinUi::Color
Represents a color, with 4 channels.
Definition: Color.h:12
nkWinUi::Theme
A theme used to style the windows in the component.
Definition: Theme.h:44
nkWinUi::Theme::getName
nkMemory::StringView getName() const
nkWinUi::ThemeColors::_primaryColor
Color _primaryColor
Definition: Theme.h:16
nkWinUi::ThemeColors::_secondaryColor
Color _secondaryColor
Definition: Theme.h:20
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7
nkWinUi::ThemeColors
Information about all the colors a theme will need.
Definition: Theme.h:12
nkMemory
Encompasses all API of component NilkinsMemory.
Definition: Allocator.h:7