Base class for events being dispatched through the view hiarchy. More...
#include <event.h>
Public Member Functions | |
| virtual | ~EventUI () |
| std::shared_ptr< View > | current_target () |
| View the event is currently being dispatched to. | |
| bool | default_prevented () const |
| Flag if the event default action should be executed after dispatch. | |
| EventUIPhase | phase () const |
| Current active event phase during dispatch. | |
| void | prevent_default () |
| Prevent default action from being executed after dispatch. | |
| bool | propagation_stopped () const |
| Flag if event propagation should stop. | |
| void | set_timestamp (long long ts) |
| Set event timestamp. | |
| void | stop_propagation () |
| Stops event from propagating further. | |
| std::shared_ptr< View > | target () |
| The target view the event is fired for. | |
| long long | timestamp () const |
| Timestamp for event in milliseconds since 1970. | |
Friends | |
| class | View |
| class | ViewImpl |
| class | ViewTree |
Base class for events being dispatched through the view hiarchy.
|
inlinevirtual |
|
inline |
View the event is currently being dispatched to.
|
inline |
Flag if the event default action should be executed after dispatch.
|
inline |
Current active event phase during dispatch.
|
inline |
Prevent default action from being executed after dispatch.
|
inline |
Flag if event propagation should stop.
|
inline |
Set event timestamp.
|
inline |
Stops event from propagating further.
|
inline |
The target view the event is fired for.
|
inline |
Timestamp for event in milliseconds since 1970.
|
friend |
References View.
Referenced by clan::KeyEvent::pointer_pos(), clan::PointerEvent::pos(), clan::PointerEvent::set_pos(), and View.