API Documentation
FontManager.h
1 // FontManager.h
3 //
5 
6 namespace nkWinUi
7 {
13  class FontManager final : public nkCommon::MaybeSingletonClass<FontManager>
14  {
15  public :
16 
17  // Getters
21  Font* getDefaultFont () const ;
25  System* getSystem () const ;
26 
27  // Memory management
49  Font* get (nkMemory::StringView name) const ;
58  Font* getByIndex (unsigned int index) const ;
79  } ;
80 }
nkWinUi::FontManager::getByIndex
Font * getByIndex(unsigned int index) const
nkWinUi::FontManager::getDefaultFont
Font * getDefaultFont() const
nkWinUi::FontManager::getSystem
System * getSystem() const
nkWinUi::Font
Offers an interface to work with fonts.
Definition: Font.h:14
nkWinUi::FontManager::get
Font * get(nkMemory::StringView name) const
nkWinUi::FontManager::createOrRetrieve
Font * createOrRetrieve(nkMemory::StringView name)
nkWinUi::FontManager
Manages the recorded fonts [WIP].
Definition: FontManager.h:14
nkWinUi::System
The main system of the component.
Definition: System.h:18
nkWinUi::FontManager::erase
void erase(nkMemory::StringView name)
nkWinUi::FontManager::rename
void rename(nkMemory::StringView oldName, nkMemory::StringView newName)
nkMemory::UniquePtr
Smart pointer owning the object instance it encapsulates.
Definition: UniquePtr.h:17
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkWinUi::FontManager::relinquish
nkMemory::UniquePtr< Font > relinquish(nkMemory::StringView name)
nkWinUi::FontManager::record
Font * record(nkMemory::StringView name, nkMemory::UniquePtr< Font > resource)
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7