56 std::shared_ptr<View>
target() {
return _target; }
83 bool _default_prevented =
false;
84 bool _propagation_stopped =
false;
87 std::shared_ptr<View> _target;
88 std::shared_ptr<View> _current_target;
89 long long _timestamp = 0;
@ capturing
Event is not currently in any dispatch phase.
EventUIPhase
UI event dispatch phase.
Definition: UI/Events/event.h:39
bool propagation_stopped() const
Flag if event propagation should stop.
Definition: UI/Events/event.h:71
@ bubbling
Currently being dispatched to the target view.
bool default_prevented() const
Flag if the event default action should be executed after dispatch.
Definition: UI/Events/event.h:62
virtual ~EventUI()
Definition: UI/Events/event.h:50
friend class ViewImpl
Definition: UI/Events/event.h:92
Base class for views participating as a root view in the user interface.
Definition: root_view.h:38
View for an area of the user interface.
Definition: view.h:62
EventUIPhase phase() const
Current active event phase during dispatch.
Definition: UI/Events/event.h:53
Base class for events being dispatched through the view hiarchy.
Definition: UI/Events/event.h:48
std::shared_ptr< View > target()
The target view the event is fired for.
Definition: UI/Events/event.h:56
long long timestamp() const
Timestamp for event in milliseconds since 1970.
Definition: UI/Events/event.h:77
std::shared_ptr< View > current_target()
View the event is currently being dispatched to.
Definition: UI/Events/event.h:59
@ at_target
Capture phase (inverse bubble from root to the target view)
void prevent_default()
Prevent default action from being executed after dispatch.
Definition: UI/Events/event.h:65
void stop_propagation()
Stops event from propagating further.
Definition: UI/Events/event.h:74
void set_timestamp(long long ts)
Set event timestamp.
Definition: UI/Events/event.h:80