API Documentation
ComponentManager.h
1 // ComponentManager.h
3 //
5 
6 namespace nkWinUi
7 {
14  class ComponentManager final : public nkCommon::MaybeSingletonClass<ComponentManager>
15  {
16  public :
17 
18  // Getters
22  System* getSystem () const ;
23 
58  Component* getByIndex (unsigned int index) const ;
65  void rename (nkMemory::StringView currentName, nkMemory::StringView newName) ;
79  } ;
80 }
nkWinUi::ComponentManager::rename
void rename(nkMemory::StringView currentName, nkMemory::StringView newName)
nkWinUi::ComponentManager::createOrRetrieve
Component * createOrRetrieve(nkMemory::StringView name, COMPONENT_TYPE componentType)
nkWinUi::ComponentManager::getByIndex
Component * getByIndex(unsigned int index) const
nkWinUi::ComponentManager::getSystem
System * getSystem() const
nkWinUi::ComponentManager::get
Component * get(nkMemory::StringView name) const
nkWinUi::Component
Base class for any graphical component.
Definition: Component.h:12
nkWinUi::System
The main system of the component.
Definition: System.h:18
nkWinUi::COMPONENT_TYPE
COMPONENT_TYPE
Available component types.
Definition: ComponentType.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::ComponentManager::record
Component * record(nkMemory::StringView name, nkMemory::UniquePtr< Component > resource)
nkWinUi::ComponentManager::relinquish
nkMemory::UniquePtr< Component > relinquish(nkMemory::StringView name)
nkWinUi::ComponentManager::erase
void erase(nkMemory::StringView name)
nkWinUi::ComponentManager
Manages the components within nkWinUi.
Definition: ComponentManager.h:15
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7