API Documentation
Font.h
1 // FontManager.h
3 //
5 
6 namespace nkWinUi
7 {
13  class Font
14  {
15  public :
16 
17  // Constructor, destructor
21  Font () noexcept ;
27  virtual ~Font () ;
28 
29  // Getters
33  nkMemory::StringView getName () const ;
37  nkMemory::StringView getFaceName () const ;
41  unsigned int getSize () const ;
45  bool getDefault () const ;
49  bool getReadyForUse () const ;
50 
51  // Setters
59  void setName (nkMemory::StringView value) ;
67  void setFaceName (nkMemory::StringView value) ;
75  void setSize (unsigned int value) ;
83  void setDefault (bool value) ;
84 
85  // Loading
89  virtual void load () = 0 ;
93  virtual void unload () = 0 ;
97  void reload () ;
98 
99  public :
100 
101  // Statics
109  static nkMemory::UniquePtr<Font> create (System* system = nullptr) ;
110  } ;
111 }
nkWinUi::Font::reload
void reload()
nkWinUi::Font::getReadyForUse
bool getReadyForUse() const
nkWinUi::Font::getDefault
bool getDefault() const
nkWinUi::Font::setFaceName
void setFaceName(nkMemory::StringView value)
nkWinUi::Font
Offers an interface to work with fonts.
Definition: Font.h:14
nkWinUi::System
The main system of the component.
Definition: System.h:18
nkWinUi::Font::Font
Font() noexcept
nkWinUi::Font::getFaceName
nkMemory::StringView getFaceName() const
nkWinUi::Font::getName
nkMemory::StringView getName() const
nkWinUi::Font::setSize
void setSize(unsigned int value)
nkWinUi::Font::setName
void setName(nkMemory::StringView value)
nkWinUi::Font::load
virtual void load()=0
nkWinUi::Font::unload
virtual void unload()=0
nkWinUi::Font::setDefault
void setDefault(bool value)
nkWinUi::Font::create
static nkMemory::UniquePtr< Font > create(System *system=nullptr)
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7
nkWinUi::Font::getSize
unsigned int getSize() const
nkMemory
Encompasses all API of component NilkinsMemory.
Definition: Allocator.h:7