|
VisuTwin Canvas
C++ 3D Engine — Metal Backend
|
#include <framework/components/button/buttonComponent.h>
Public Member Functions | |
| ButtonComponent (IComponentSystem *system, Entity *entity) | |
| Entity * | imageEntity () const |
| void | initializeComponentData () override |
| void | setImageEntity (Entity *entity) |
| ~ButtonComponent () override | |
| Public Member Functions inherited from visutwin::canvas::Component | |
| virtual void | cloneFrom (const Component *source) |
| Component (IComponentSystem *system, Entity *entity) | |
| virtual bool | enabled () const |
| Entity * | entity () const |
| virtual void | onDisable () |
| virtual void | onEnable () |
| virtual void | onPostStateChange () |
| virtual void | setEnabled (bool value) |
| IComponentSystem * | system () const |
| virtual | ~Component ()=default |
| Public Member Functions inherited from visutwin::canvas::EventHandler | |
| template<typename... Args> | |
| EventHandler * | fire (const std::string &name, Args &&... args) |
| bool | hasEvent (const std::string &name) const |
| void | initEventHandler () |
| template<typename Callback> requires (!std::is_same_v<std::decay_t<Callback>, HandleEventCallback>) | |
| EventHandler * | off (const std::string &name, Callback &&callback, void *scope=nullptr) |
| EventHandler * | off (const std::string &name="", const HandleEventCallback &callback=HandleEventCallback(), void *scope=nullptr) |
| EventHandler * | offByHandle (EventHandle *handle) |
| template<typename Callback> requires (!std::is_same_v<std::decay_t<Callback>, HandleEventCallback>) | |
| EventHandle * | on (const std::string &name, Callback &&callback, void *scope=nullptr) |
| EventHandle * | on (const std::string &name, HandleEventCallback callback, void *scope=nullptr) |
| template<typename Callback> requires (!std::is_same_v<std::decay_t<Callback>, HandleEventCallback>) | |
| EventHandle * | once (const std::string &name, Callback &&callback, void *scope=nullptr) |
| EventHandle * | once (const std::string &name, HandleEventCallback callback, void *scope=nullptr) |
| virtual | ~EventHandler ()=default |
Static Public Member Functions | |
| static const std::vector< ButtonComponent * > & | instances () |
Additional Inherited Members | |
| Protected Member Functions inherited from visutwin::canvas::Component | |
| virtual void | onSetEnabled (bool oldValue, bool newValue) |
| Protected Member Functions inherited from visutwin::canvas::EventHandler | |
| EventHandle * | addCallback (const std::string &name, HandleEventCallback callback, void *scope=nullptr, bool once=false) |
| Protected Attributes inherited from visutwin::canvas::Component | |
| bool | _enabled = true |
| Entity * | _entity |
Definition at line 14 of file buttonComponent.h.
| visutwin::canvas::ButtonComponent::ButtonComponent | ( | IComponentSystem * | system, |
| Entity * | entity ) |
Definition at line 9 of file buttonComponent.cpp.
References visutwin::canvas::Component::Component(), visutwin::canvas::Component::entity(), and visutwin::canvas::Component::system().
|
override |
Definition at line 15 of file buttonComponent.cpp.
|
inline |
Definition at line 24 of file buttonComponent.h.
|
inlineoverridevirtual |
Implements visutwin::canvas::Component.
Definition at line 20 of file buttonComponent.h.
|
inlinestatic |
Definition at line 22 of file buttonComponent.h.
|
inline |
Definition at line 25 of file buttonComponent.h.
References visutwin::canvas::Component::entity().