#include <omgui/event.h>
Inherits omgui::SlotBase.
The type F must be copyable and define bool operator()(const E&).
Public Types | |
| typedef E | event_type |
| typedef F | function_type |
Public Member Functions | |
| void | add_ref () |
| FunctorSlot (const function_type &f) | |
| bool | operator() (const Event &e) |
| void | release () |
Private Attributes | |
| function_type | func |
| typedef E omgui::FunctorSlot< E, F >::event_type |
| typedef F omgui::FunctorSlot< E, F >::function_type |
| omgui::FunctorSlot< E, F >::FunctorSlot | ( | const function_type & | f | ) | [inline] |
| void omgui::RefCounted::add_ref | ( | ) | [virtual, inherited] |
Implements omgui::RefCountable.
| bool omgui::FunctorSlot< E, F >::operator() | ( | const Event & | e | ) | [inline, virtual] |
Invoke the slot
Implements omgui::SlotBase.
| void omgui::RefCounted::release | ( | ) | [virtual, inherited] |
Implements omgui::RefCountable.
function_type omgui::FunctorSlot< E, F >::func [private] |