API Documentation
ViewportManager.h
1 // ViewportManager.h
3 //
5 
6 namespace nkGraphics
7 {
13  class ViewportManager final : public nkCommon::MaybeSingletonClass<ViewportManager>
14  {
15  public :
16 
17  // Getters
22 
23  // Setters
30  void setActiveViewport (Viewport* value) ;
31 
54  Viewport* getByIndex (unsigned int index) const ;
61  void rename (nkMemory::StringView currentName, nkMemory::StringView newName) ;
67  void erase (nkMemory::StringView name) ;
68  } ;
69 }
nkGraphics::Viewport
Holds all the information needed about a viewport.
Definition: Viewport.h:14
nkGraphics::ViewportManager::rename
void rename(nkMemory::StringView currentName, nkMemory::StringView newName)
nkGraphics::ViewportManager::getByIndex
Viewport * getByIndex(unsigned int index) const
nkGraphics::ViewportManager::erase
void erase(nkMemory::StringView name)
nkGraphics::ViewportManager::setActiveViewport
void setActiveViewport(Viewport *value)
nkGraphics::ViewportManager
Manages the viewports available in the component.
Definition: ViewportManager.h:14
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkGraphics::ViewportManager::get
Viewport * get(nkMemory::StringView name) const
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::ViewportManager::getActiveViewport
Viewport * getActiveViewport() const
nkGraphics::ViewportManager::createOrRetrieve
Viewport * createOrRetrieve(nkMemory::StringView name)