Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::GUIElement Class Reference

#include <GUIElement.h>

+ Inheritance diagram for Divide::GUIElement:

Public Member Functions

 GUIElement (string name, CEGUI::Window *parent) noexcept
 
virtual void setTooltip (const string &tooltipText)
 
 PROPERTY_RW (string, name, "")
 
 VIRTUAL_PROPERTY_RW (bool, visible, true)
 
 VIRTUAL_PROPERTY_RW (bool, active, false)
 
virtual GUIType type () const noexcept
 
- Public Member Functions inherited from Divide::GUIDWrapper
 GUIDWrapper () noexcept
 
 GUIDWrapper (const GUIDWrapper &old) noexcept
 
 GUIDWrapper (GUIDWrapper &&old) noexcept
 
virtual ~GUIDWrapper ()=default
 
FORCE_INLINE I64 getGUID () const noexcept
 
GUIDWrapperoperator= (const GUIDWrapper &old)=delete
 
GUIDWrapperoperator= (GUIDWrapper &&other)=delete
 

Static Public Attributes

static constexpr GUIType Type = GUIType::COUNT
 

Protected Attributes

CEGUI::Window * _parent
 
- Protected Attributes inherited from Divide::GUIDWrapper
const I64 _guid
 

Friends

class GUI
 

Additional Inherited Members

- Static Public Member Functions inherited from Divide::GUIDWrapper
static I64 generateGUID () noexcept
 

Detailed Description

Definition at line 64 of file GUIElement.h.

Constructor & Destructor Documentation

◆ GUIElement()

Divide::GUIElement::GUIElement ( string  name,
CEGUI::Window *  parent 
)
noexcept

Definition at line 7 of file GUIElement.cpp.

Member Function Documentation

◆ PROPERTY_RW()

Divide::GUIElement::PROPERTY_RW ( string  ,
name  ,
""   
)

◆ setTooltip()

virtual void Divide::GUIElement::setTooltip ( const string tooltipText)
inlinevirtual

Reimplemented in Divide::GUIButton.

Definition at line 69 of file GUIElement.h.

◆ type()

◆ VIRTUAL_PROPERTY_RW() [1/2]

Divide::GUIElement::VIRTUAL_PROPERTY_RW ( bool  ,
active  ,
false   
)

◆ VIRTUAL_PROPERTY_RW() [2/2]

Divide::GUIElement::VIRTUAL_PROPERTY_RW ( bool  ,
visible  ,
true   
)

Friends And Related Function Documentation

◆ GUI

friend class GUI
friend

Definition at line 65 of file GUIElement.h.

Member Data Documentation

◆ _parent

CEGUI::Window* Divide::GUIElement::_parent
protected

Definition at line 81 of file GUIElement.h.

◆ Type

constexpr GUIType Divide::GUIElement::Type = GUIType::COUNT
staticconstexpr

Definition at line 76 of file GUIElement.h.


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