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;
Currently being dispatched to the target view.
Base class for managing a tree of views.
Definition: view_tree.h:42
EventUIPhase phase() const
Current active event phase during dispatch.
Definition: event.h:53
void set_timestamp(long long ts)
Set event timestamp.
Definition: event.h:80
std::shared_ptr< View > target()
The target view the event is fired for.
Definition: event.h:56
std::shared_ptr< View > current_target()
View the event is currently being dispatched to.
Definition: event.h:59
EventUIPhase
UI event dispatch phase.
Definition: event.h:38
Base class for events being dispatched through the view hiarchy.
Definition: event.h:47
bool propagation_stopped() const
Flag if event propagation should stop.
Definition: event.h:71
virtual ~EventUI()
Definition: event.h:50
void prevent_default()
Prevent default action from being executed after dispatch.
Definition: event.h:65
View for an area of the user interface.
Definition: view.h:68
bool default_prevented() const
Flag if the event default action should be executed after dispatch.
Definition: event.h:62
long long timestamp() const
Timestamp for event in milliseconds since 1970.
Definition: event.h:77
Event is not currently in any dispatch phase.
friend class ViewImpl
Definition: event.h:92
void stop_propagation()
Stops event from propagating further.
Definition: event.h:74
Capture phase (inverse bubble from root to the target view)
Definition: Application/application.h:35