StarEngine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
star::UIUserElement Class Reference

#include <UIUserElement.h>

Inheritance diagram for star::UIUserElement:
Inheritance graph
Collaboration diagram for star::UIUserElement:
Collaboration graph

Public Types

enum  ElementStates : byte { ElementStates::IDLE = 0, ElementStates::CLICK = 2, ElementStates::TOGGLE = 3, ElementStates::DISABLED = 4 }
 

Public Member Functions

 UIUserElement (void)
 
virtual ~UIUserElement (void)
 
virtual void Initialize ()
 
bool IsToggled () const
 
bool IsDisabled () const
 
void SetSelectCallback (std::function< void()> callback)
 
- Public Member Functions inherited from star::Object
 Object ()
 
virtual ~Object (void)
 
Object * GetParent () const
 
void BaseInitialize ()
 
void BaseUpdate (const Context &context)
 
void BaseDraw ()
 
const tstring & GetName () const
 
void SetName (const tstring &name)
 
void AddComponent (BaseComponent *pComponent)
 
void RemoveComponent (const BaseComponent *pComponent)
 
void AddChild (Object *pObject)
 
void RemoveChild (const Object *pObject)
 
std::vector< Object * > & GetChildren ()
 
void SetCollisionTag (const tstring &tag)
 
const tstring & GetCollisionTag () const
 
void SetVisible (bool visible)
 
bool IsVisible () const
 
void Freeze (bool freeze)
 
bool IsFrozen () const
 
void SetDisabled (bool disabled)
 
bool IsDisabled () const
 
void CollisionCheck (Object *otherObject)
 
bool RectangleCollision (Object *object, Object *otherObject)
 
bool CircleCollision (Object *object, Object *otherObject)
 
bool RectangleCircleCollision (Object *object, Object *otherObject)
 
void SetScene (BaseScene *pScene)
 
void UnsetScene ()
 
TransformComponent * GetTransform () const
 
BaseScene * GetScene () const
 
template<class T >
T * GetComponent (bool searchChildren=false) const
 
template<class T >
T * GetChild () const
 
template<class T >
T * GetChild (const tstring &name) const
 

Protected Member Functions

virtual void BaseUpdate (const Context &context)
 
virtual void BaseDraw ()
 
- Protected Member Functions inherited from star::Object
virtual void Update (const Context &context)
 
virtual void Draw ()
 

Protected Attributes

std::function< void()> m_SelectCallback
 
ElementStates m_ElementState
 
- Protected Attributes inherited from star::Object
bool m_bIsInitialized
 
bool m_IsVisible
 
bool m_IsFrozen
 
Object * m_pParentGameObject
 
PathFindNodeComponent * m_pPathFindComp
 
BaseScene * m_pScene
 
std::vector< BaseComponent * > m_pComponents
 
std::vector< Object * > m_pChildren
 
tstring m_Name
 
tstring m_CollisionTag
 

Member Enumeration Documentation

Enumerator
IDLE 
CLICK 
TOGGLE 
DISABLED 

Constructor & Destructor Documentation

star::UIUserElement::UIUserElement ( void  )
star::UIUserElement::~UIUserElement ( void  )
virtual

Member Function Documentation

void star::UIUserElement::BaseDraw ( )
protectedvirtual
void star::UIUserElement::BaseUpdate ( const Context &  context)
protectedvirtual
void star::UIUserElement::Initialize ( )
virtual

Reimplemented from star::Object.

bool star::UIUserElement::IsDisabled ( ) const
bool star::UIUserElement::IsToggled ( ) const
void star::UIUserElement::SetSelectCallback ( std::function< void()>  callback)

Member Data Documentation

ElementStates star::UIUserElement::m_ElementState
protected
std::function<void()> star::UIUserElement::m_SelectCallback
protected

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