API Documentation
ImageManager.h
1 // ImageManager.h
3 //
5 
6 namespace nkWinUi
7 {
11  class ImageManager final : public nkCommon::MaybeSingletonClass<ImageManager>
12  {
13  public :
14 
15  // Getters
19  System* getSystem () const ;
20 
21  // Memory management
43  Image* get (nkMemory::StringView name) const ;
52  Image* getByIndex (unsigned int index) const ;
73  } ;
74 }
nkWinUi::Image
Abstracts an image to be used within the component.
Definition: Image.h:12
nkWinUi::ImageManager::relinquish
nkMemory::UniquePtr< Image > relinquish(nkMemory::StringView name)
nkWinUi::ImageManager::record
Image * record(nkMemory::StringView name, nkMemory::UniquePtr< Image > resource)
nkWinUi::System
The main system of the component.
Definition: System.h:18
nkWinUi::ImageManager::getSystem
System * getSystem() const
nkWinUi::ImageManager::get
Image * get(nkMemory::StringView name) const
nkWinUi::ImageManager::getByIndex
Image * getByIndex(unsigned int index) const
nkWinUi::ImageManager
Manages the images in the component.
Definition: ImageManager.h:12
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::ImageManager::rename
void rename(nkMemory::StringView oldName, nkMemory::StringView newName)
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7
nkWinUi::ImageManager::erase
void erase(nkMemory::StringView name)
nkWinUi::ImageManager::createOrRetrieve
Image * createOrRetrieve(nkMemory::StringView name)