PixelLightAPI
.
|
Virtual base class for events. More...
#include <DynEvent.h>
Public Types | |
typedef Signature< void, DynParams &, void * > ::FuncType | FUNC |
Public Member Functions | |
PLCORE_API | DynEvent () |
Constructor. | |
virtual PLCORE_API | ~DynEvent () |
Destructor. | |
PLCORE_API void | Connect (DynEventHandler &cHandler) |
Connect event handler to the event. | |
PLCORE_API void | Disconnect (DynEventHandler &cHandler) |
Disconnect event handler from the event. | |
uint32 | GetNumOfConnects () const |
Return the number of connections. | |
virtual PLCORE_API const EventDesc * | GetDesc () const |
Get event descriptor. | |
virtual PLCORE_API DynEventHandler * | CreateGenericEventHandler (const FUNC &pFunc, void *pUserData=nullptr) const |
Create a generic event handler which is compatible with this dynamic event. | |
virtual PLCORE_API void | Emit (DynParams &cParams) const |
Emit event. | |
virtual PLCORE_API void | Emit (const DynParams &cParams) const |
Emit event. | |
virtual PLCORE_API void | Emit (const String &sParams) const |
Emit event. | |
virtual PLCORE_API void | Emit (const XmlElement &cElement) const |
Emit event. | |
Protected Attributes | |
SimpleList< DynEventHandler * > | m_lstHandlers |
Virtual base class for events.
typedef Signature<void, DynParams&, void*>::FuncType PLCore::DynEvent::FUNC |
PLCORE_API PLCore::DynEvent::DynEvent | ( | ) |
virtual PLCORE_API PLCore::DynEvent::~DynEvent | ( | ) | [virtual] |
Destructor.
PLCORE_API void PLCore::DynEvent::Connect | ( | DynEventHandler & | cHandler | ) |
Connect event handler to the event.
[in] | cHandler | Event handler |
PLCORE_API void PLCore::DynEvent::Disconnect | ( | DynEventHandler & | cHandler | ) |
Disconnect event handler from the event.
[in] | cHandler | Event handler |
uint32 PLCore::DynEvent::GetNumOfConnects | ( | ) | const [inline] |
Return the number of connections.
virtual PLCORE_API const EventDesc* PLCore::DynEvent::GetDesc | ( | ) | const [virtual] |
Get event descriptor.
virtual PLCORE_API DynEventHandler* PLCore::DynEvent::CreateGenericEventHandler | ( | const FUNC & | pFunc, |
void * | pUserData = nullptr |
||
) | const [virtual] |
Create a generic event handler which is compatible with this dynamic event.
[in] | pFunc | Function to be called by the dynamic event handler |
[in] | pUserData | Optional pointer to user data to pass on to the given generic function when the event was emitted, can be a null pointer |
Reimplemented in PLCore::Event<>, PLCore::Event< T0 >, PLCore::Event< T0, T1 >, PLCore::Event< T0, T1, T2 >, PLCore::Event< T0, T1, T2, T3 >, PLCore::Event< T0, T1, T2, T3, T4 >, PLCore::Event< T0, T1, T2, T3, T4, T5 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15 >, PLCore::Event< Effect & >, PLCore::Event< AbstractToggleButton * >, PLCore::Event< const PLMath::Vector2i & >, PLCore::Event< Material & >, PLCore::Event< const Class * >, PLCore::Event< Buffer & >, PLCore::Event< const Module * >, PLCore::Event< int >, PLCore::Event< Parameter & >, PLCore::Event< GraphPath & >, PLCore::Event< SceneRenderer & >, PLCore::Event< Widget * >, PLCore::Event< PLCore::uint32, const PLMath::Vector2i & >, PLCore::Event< const struct AInputEvent & >, PLCore::Event< Program * >, PLCore::Event< Graph & >, PLCore::Event< Mesh & >, PLCore::Event< AType & >, PLCore::Event< Skeleton & >, PLCore::Event< bool >, PLCore::Event< Texture & >, PLCore::Event< Controller *, PLCore::String >, and PLCore::Event< TabBarEntry * >.
virtual PLCORE_API void PLCore::DynEvent::Emit | ( | DynParams & | cParams | ) | const [virtual] |
Emit event.
[in] | cParams | Parameters |
Reimplemented in PLCore::Event<>, PLCore::Event< T0 >, PLCore::Event< T0, T1 >, PLCore::Event< T0, T1, T2 >, PLCore::Event< T0, T1, T2, T3 >, PLCore::Event< T0, T1, T2, T3, T4 >, PLCore::Event< T0, T1, T2, T3, T4, T5 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15 >, PLCore::Event< Effect & >, PLCore::Event< AbstractToggleButton * >, PLCore::Event< const PLMath::Vector2i & >, PLCore::Event< Material & >, PLCore::Event< const Class * >, PLCore::Event< Buffer & >, PLCore::Event< const Module * >, PLCore::Event< int >, PLCore::Event< Parameter & >, PLCore::Event< GraphPath & >, PLCore::Event< SceneRenderer & >, PLCore::Event< Widget * >, PLCore::Event< PLCore::uint32, const PLMath::Vector2i & >, PLCore::Event< const struct AInputEvent & >, PLCore::Event< Program * >, PLCore::Event< Graph & >, PLCore::Event< Mesh & >, PLCore::Event< AType & >, PLCore::Event< Skeleton & >, PLCore::Event< bool >, PLCore::Event< Texture & >, PLCore::Event< Controller *, PLCore::String >, and PLCore::Event< TabBarEntry * >.
virtual PLCORE_API void PLCore::DynEvent::Emit | ( | const DynParams & | cParams | ) | const [virtual] |
Emit event.
[in] | cParams | Parameters |
Reimplemented in PLCore::Event<>, PLCore::Event< T0 >, PLCore::Event< T0, T1 >, PLCore::Event< T0, T1, T2 >, PLCore::Event< T0, T1, T2, T3 >, PLCore::Event< T0, T1, T2, T3, T4 >, PLCore::Event< T0, T1, T2, T3, T4, T5 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15 >, PLCore::Event< Effect & >, PLCore::Event< AbstractToggleButton * >, PLCore::Event< const PLMath::Vector2i & >, PLCore::Event< Material & >, PLCore::Event< const Class * >, PLCore::Event< Buffer & >, PLCore::Event< const Module * >, PLCore::Event< int >, PLCore::Event< Parameter & >, PLCore::Event< GraphPath & >, PLCore::Event< SceneRenderer & >, PLCore::Event< Widget * >, PLCore::Event< PLCore::uint32, const PLMath::Vector2i & >, PLCore::Event< const struct AInputEvent & >, PLCore::Event< Program * >, PLCore::Event< Graph & >, PLCore::Event< Mesh & >, PLCore::Event< AType & >, PLCore::Event< Skeleton & >, PLCore::Event< bool >, PLCore::Event< Texture & >, PLCore::Event< Controller *, PLCore::String >, and PLCore::Event< TabBarEntry * >.
virtual PLCORE_API void PLCore::DynEvent::Emit | ( | const String & | sParams | ) | const [virtual] |
Emit event.
[in] | sParams | Parameters as string |
Reimplemented in PLCore::Event<>, PLCore::Event< T0 >, PLCore::Event< T0, T1 >, PLCore::Event< T0, T1, T2 >, PLCore::Event< T0, T1, T2, T3 >, PLCore::Event< T0, T1, T2, T3, T4 >, PLCore::Event< T0, T1, T2, T3, T4, T5 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15 >, PLCore::Event< Effect & >, PLCore::Event< AbstractToggleButton * >, PLCore::Event< const PLMath::Vector2i & >, PLCore::Event< Material & >, PLCore::Event< const Class * >, PLCore::Event< Buffer & >, PLCore::Event< const Module * >, PLCore::Event< int >, PLCore::Event< Parameter & >, PLCore::Event< GraphPath & >, PLCore::Event< SceneRenderer & >, PLCore::Event< Widget * >, PLCore::Event< PLCore::uint32, const PLMath::Vector2i & >, PLCore::Event< const struct AInputEvent & >, PLCore::Event< Program * >, PLCore::Event< Graph & >, PLCore::Event< Mesh & >, PLCore::Event< AType & >, PLCore::Event< Skeleton & >, PLCore::Event< bool >, PLCore::Event< Texture & >, PLCore::Event< Controller *, PLCore::String >, and PLCore::Event< TabBarEntry * >.
virtual PLCORE_API void PLCore::DynEvent::Emit | ( | const XmlElement & | cElement | ) | const [virtual] |
Emit event.
[in] | cElement | Parameters as XML |
Reimplemented in PLCore::Event<>, PLCore::Event< T0 >, PLCore::Event< T0, T1 >, PLCore::Event< T0, T1, T2 >, PLCore::Event< T0, T1, T2, T3 >, PLCore::Event< T0, T1, T2, T3, T4 >, PLCore::Event< T0, T1, T2, T3, T4, T5 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 >, PLCore::Event< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15 >, PLCore::Event< Effect & >, PLCore::Event< AbstractToggleButton * >, PLCore::Event< const PLMath::Vector2i & >, PLCore::Event< Material & >, PLCore::Event< const Class * >, PLCore::Event< Buffer & >, PLCore::Event< const Module * >, PLCore::Event< int >, PLCore::Event< Parameter & >, PLCore::Event< GraphPath & >, PLCore::Event< SceneRenderer & >, PLCore::Event< Widget * >, PLCore::Event< PLCore::uint32, const PLMath::Vector2i & >, PLCore::Event< const struct AInputEvent & >, PLCore::Event< Program * >, PLCore::Event< Graph & >, PLCore::Event< Mesh & >, PLCore::Event< AType & >, PLCore::Event< Skeleton & >, PLCore::Event< bool >, PLCore::Event< Texture & >, PLCore::Event< Controller *, PLCore::String >, and PLCore::Event< TabBarEntry * >.
SimpleList<DynEventHandler*> PLCore::DynEvent::m_lstHandlers [protected] |
List of event handlers
|