BlankMat 0.1.0
Free open-source 3D texture creation application
Loading...
Searching...
No Matches
IGUIContainerWindow< T > Class Template Referenceabstract
Inheritance diagram for IGUIContainerWindow< T >:
Collaboration diagram for IGUIContainerWindow< T >:

Public Member Functions

void Draw () override
 
- Public Member Functions inherited from IGUIWindow
bool IsEnabled ()
 
void Enable ()
 
void Disable ()
 
bool ToggleEnabled ()
 
GUI GetType ()
 
const std::string GetName ()
 
void SetName (const std::string &name)
 
const glm::vec2 GetPos ()
 
void SetPos (const glm::vec2 &pos)
 

Protected Member Functions

virtual IContainer< T > * GetContainer ()=0
 
virtual void DisplaySelectedItem ()=0
 
virtual void AddNewItem (const std::string &name)=0
 
virtual void SelectItem (T *selection)=0
 
virtual bool ShouldDisplayItem (T *item)
 
virtual bool DisplayDeleteItem (const std::string &name, T *item)
 
virtual bool DisplayListItem (const std::string &name, T *item, T *&selection)
 
void ListContainer (IContainer< T > *container)
 

Protected Attributes

StatemState = nullptr
 
ScenemScene = nullptr
 
bool mMustSelect = false
 
std::string mWindowName = ""
 
std::string mItemName = ""
 
bool mIsAddingItem = false
 
std::string mAddItemName = ""
 
- Protected Attributes inherited from IGUIWindow
GUI mType = GUI::NONE
 
std::string mName = ""
 
glm::vec2 mScreenPos = glm::vec2(0, 0)
 
bool mIsEnabled = true
 

Member Function Documentation

◆ AddNewItem()

template<typename T >
virtual void IGUIContainerWindow< T >::AddNewItem ( const std::string &  name)
protectedpure virtual

◆ DisplayDeleteItem()

template<typename T >
virtual bool IGUIContainerWindow< T >::DisplayDeleteItem ( const std::string &  name,
T *  item 
)
inlineprotectedvirtual

◆ DisplayListItem()

template<typename T >
virtual bool IGUIContainerWindow< T >::DisplayListItem ( const std::string &  name,
T *  item,
T *&  selection 
)
inlineprotectedvirtual

Reimplemented in GUITextureViewer.

◆ DisplaySelectedItem()

template<typename T >
virtual void IGUIContainerWindow< T >::DisplaySelectedItem ( )
protectedpure virtual

◆ Draw()

template<typename T >
void IGUIContainerWindow< T >::Draw ( )
inlineoverridevirtual

Implements IGUIWindow.

◆ GetContainer()

template<typename T >
virtual IContainer< T > * IGUIContainerWindow< T >::GetContainer ( )
protectedpure virtual

◆ ListContainer()

template<typename T >
void IGUIContainerWindow< T >::ListContainer ( IContainer< T > *  container)
inlineprotected

◆ SelectItem()

template<typename T >
virtual void IGUIContainerWindow< T >::SelectItem ( T *  selection)
protectedpure virtual

◆ ShouldDisplayItem()

template<typename T >
virtual bool IGUIContainerWindow< T >::ShouldDisplayItem ( T *  item)
inlineprotectedvirtual

Member Data Documentation

◆ mAddItemName

template<typename T >
std::string IGUIContainerWindow< T >::mAddItemName = ""
protected

◆ mIsAddingItem

template<typename T >
bool IGUIContainerWindow< T >::mIsAddingItem = false
protected

◆ mItemName

template<typename T >
std::string IGUIContainerWindow< T >::mItemName = ""
protected

◆ mMustSelect

template<typename T >
bool IGUIContainerWindow< T >::mMustSelect = false
protected

◆ mScene

template<typename T >
Scene* IGUIContainerWindow< T >::mScene = nullptr
protected

◆ mState

template<typename T >
State* IGUIContainerWindow< T >::mState = nullptr
protected

◆ mWindowName

template<typename T >
std::string IGUIContainerWindow< T >::mWindowName = ""
protected