Sleeping Wombat GUI
0.100
swGUI
|
Derived template class for delegates. More...
#include <DelegateContainer.h>
Public Types | |
typedef EventDelegate< EventArgType > | DelegateType |
Public Member Functions | |
DelegatesContainer (EventType type) | |
virtual | ~DelegatesContainer ()=default |
void | operator+= (DelegateType delegate) |
void | AddDelegate (DelegateType delegate) |
bool | RemoveDelegate (DelegateType delegate) |
bool | Exists (DelegateType delegate) |
bool | IsEmpty () const |
virtual void | CallDelegates (UIElement *sender, IEventArgs *arguments) override |
Invokes delegates functions. More... | |
Public Member Functions inherited from sw::gui::DelegatesContainerBase | |
DelegatesContainerBase (EventType eventID) | |
virtual | ~DelegatesContainerBase ()=default |
EventType | GetEventType () |
Call this function to check event type holded by derived class. More... | |
DelegatesContainerBase * | GetNextContainer () |
Gets next element on linked list. More... | |
void | AddContainer (DelegatesContainerBaseOPtr &&container) |
Adds container on the end of list. More... | |
void | RemoveNext () |
Removed element following this object. More... | |
DelegatesContainerBaseOPtr | StealRestOfList () |
Steal list following this. More... | |
Private Attributes | |
std::vector< DelegateType > | m_delegates |
Delegates for EventType defined in DelegatesContainerBase. More... | |
Derived template class for delegates.
Check description in DelegatesContainerBase.
typedef EventDelegate< EventArgType > sw::gui::DelegatesContainer< EventArgType >::DelegateType |
|
inlineexplicit |
|
virtualdefault |
|
inline |
|
inlineoverridevirtual |
Invokes delegates functions.
Implements sw::gui::DelegatesContainerBase.
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Delegates for EventType defined in DelegatesContainerBase.