API Documentation
CursorManager.h
1 // CursorManager.h
3 //
5 
6 namespace nkWinUi
7 {
11  class CursorManager final : public nkCommon::MaybeSingletonClass<CursorManager>
12  {
13  public :
14 
15  // Getters
19  System* getSystem () const ;
20 
21  // Memory management
53  Cursor* getByIndex (unsigned int index) const ;
60  void rename (nkMemory::StringView currentName, nkMemory::StringView newName) ;
74 
75  // Activation curseur
81  void setActiveCursor (Cursor* cursor) ;
82  } ;
83 }
nkWinUi::CursorManager::getSystem
System * getSystem() const
nkWinUi::CursorManager::setActiveCursor
void setActiveCursor(Cursor *cursor)
nkWinUi::CursorManager::getByIndex
Cursor * getByIndex(unsigned int index) const
nkWinUi::CursorManager::createOrRetrieve
Cursor * createOrRetrieve(nkMemory::StringView name)
nkWinUi::CursorManager::get
Cursor * get(nkMemory::StringView name) const
nkWinUi::System
The main system of the component.
Definition: System.h:18
nkMemory::UniquePtr
Smart pointer owning the object instance it encapsulates.
Definition: UniquePtr.h:17
nkWinUi::CursorManager
Manages the recorded cursors living in the component.
Definition: CursorManager.h:12
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkWinUi::CursorManager::record
Cursor * record(nkMemory::StringView name, nkMemory::UniquePtr< Cursor > resource)
nkWinUi::CursorManager::rename
void rename(nkMemory::StringView currentName, nkMemory::StringView newName)
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7
nkWinUi::CursorManager::relinquish
nkMemory::UniquePtr< Cursor > relinquish(nkMemory::StringView name)
nkWinUi::Cursor
WIP.
Definition: Cursor.h:12
nkWinUi::CursorManager::erase
void erase(nkMemory::StringView name)