SpiecsEngine
 
Loading...
Searching...
No Matches
Spices::SlateRegister Class Reference

This Class is the manager of all slate, it keeps all slate handle. More...

#include <SlateRegister.h>

Public Member Functions

 SlateRegister ()=default
 Constructor Function.
 
virtual ~SlateRegister ()=default
 Destructor Function.
 
 SlateRegister (const SlateRegister &)=delete
 Copy Constructor Function.
 
SlateRegisteroperator= (const SlateRegister &)=delete
 Copy Assignment Operation.
 
template<typename T , typename ... Args>
std::shared_ptr< T > Register (bool isPrimary, const std::string &panelName, Args &&... args)
 This function registry slate instance.
 
void OnUpdate (TimeStep &ts) const
 
void OnRender () const
 This function is called on SlateRenderer::Render.
 
void OnEvent (Event &event)
 This function will be called on global Event function pointer is called.
 
std::shared_ptr< ImguiViewportGetViewPort ()
 
std::shared_ptr< ImguiSlateGetSlate (const std::string &name)
 Get Slate by name.
 

Private Attributes

std::unordered_map< std::string, std::shared_ptr< ImguiSlate > > m_SlatesEventContainer
 The container of all slate handle.
 
std::unordered_map< std::string, std::shared_ptr< ImguiSlate > > m_SlatesRenderContainer
 The container of all slate handle.
 

Detailed Description

This Class is the manager of all slate, it keeps all slate handle.

Definition at line 34 of file SlateRegister.h.


The documentation for this class was generated from the following files: