|
StarEngine
|
#include <UIUserElement.h>


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 |
|
strong |
| star::UIUserElement::UIUserElement | ( | void | ) |
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
Reimplemented from star::Object.
| bool star::UIUserElement::IsDisabled | ( | ) | const |
| bool star::UIUserElement::IsToggled | ( | ) | const |
| void star::UIUserElement::SetSelectCallback | ( | std::function< void()> | callback | ) |
|
protected |
|
protected |
1.8.5