147 uint16_t modifiers,
int click_count = 1,
149 float pressure = 0.5f);
154 uint16_t modifiers,
int click_count,
161 uint16_t modifiers,
int click_count,
231 float scroll_delta_x,
float scroll_delta_y,
239 float scroll_delta_x,
float scroll_delta_y,
267 uint16_t modifiers,
int click_count = 1,
272 uint16_t modifiers,
int click_count,
bool bubble,
286 uint16_t modifiers,
int click_count,
bool bubble,
294 uint16_t modifiers,
int click_count,
bool bubble,
316 std::function<void(
const std::function<
void()>& click_handler,
317 const std::string& clicked_id,
342 uint16_t modifiers,
int click_count,
347 uint16_t modifiers,
int click_count,
355 uint16_t modifiers,
int click_count,
365 uint16_t modifiers,
int click_count,
399 uint16_t modifiers,
int click_count);
Bounded event contracts shared by host ingress and graph-authored nodes.
Definition anticipation_eligibility.hpp:9
Hover-cursor tracking for platform window hosts.
Definition fwd.hpp:27
bool transfer_input_focus(View &root, View *target)
Move input focus within one hosted root while tolerating callbacks that synchronously unmount either ...
void deliver_mouse_drag(View &root, View *target, Point root_pt, uint16_t modifiers, int click_count=1, PointerType pointer_type=PointerType::mouse, float pressure=0.5f)
Deliver one drag tick of an in-flight gesture to the captured target.
bool yield_to_gesture_with_handoff(View &root, View *&drag_target, const MouseEvent &event, int click_count=1)
Apply the host-side gesture gate and close an already-delivered press when a recognizer claims after ...
View * focused_input_under_root(View &root)
Return this root's live focused input.
void dispatch_dom_pointer_event(View &root, View *target, const MouseEvent &event, bool moving, bool bubble=true)
Enter rich + JS pointer delivery from a platform host.
bool should_yield_to_gesture(View &root, const MouseEvent &event)
Feed one pointer event to root's gesture arbiter and report whether the host must now YIELD — i....
bool dispatch_context_menu(View &root, Point root_pos)
Route a right-click at root_pos to the view under it.
void deliver_hover_move(View &root, Point root_pt, uint16_t modifiers=0)
Deliver one BUTTONLESS pointer move — a hover — to the view under root_pt, which is in root-view spac...
MouseButton
Mouse button identifiers.
Definition input_events.hpp:67
void deliver_mouse_up(View &root, View *target, Point root_pt, uint16_t modifiers, int click_count, const MouseUpHost &host)
Deliver a release for an in-flight gesture captured on target.
PointerType
Pointer device type (W3C PointerEvent.pointerType).
Definition input_events.hpp:75
@ mouse
Mouse cursor (default).
Definition input_events.hpp:76
bool deliver_mouse_down(View &root, View *target, Point root_pt, uint16_t modifiers, int click_count=1, bool bubble=true)
Deliver a press to an already-resolved target (the host has done the hit_test, any combo/overlay pre-...
void deliver_gesture_handoff(View &root, View *target, Point root_pt, uint16_t modifiers, int click_count)
Close the press bracket when a recognizer CLAIMS the pointer mid-gesture, after a press was already d...
void deliver_mouse_wheel(View &root, Point root_pt, float scroll_delta_x, float scroll_delta_y, const WheelHost &host)
Route one wheel/scroll tick to the view tree rooted at root.
Point point_to_local(Point root_pos, View *target, View *root)
Convert root_pos (root-local, i.e.
void deliver_mouse_cancel(View &root, View *target, Point root_pt, uint16_t modifiers, int click_count, MouseButton button, const PointerAttributes &pointer={})
Cancel an in-flight gesture through the same identity-safe terminal router as deliver_mouse_up.
The one implementation of Pulp's overlay-dismissal policy.
Optional host-owned continuation check for re-entrant press delivery.
Definition pointer_dispatch.hpp:279
std::function< bool()> should_continue
Definition pointer_dispatch.hpp:280
Rich mouse/pointer event with position, modifiers, button state, pointer ID, and stylus properties.
Definition input_events.hpp:104
Host hooks the portable mouse-up router calls back into.
Definition pointer_dispatch.hpp:301
std::function< void(const std::function< void()> &click_handler, const std::string &clicked_id, uint16_t modifiers)> fire_click
Invoked exactly when the release lands on the SAME view the press captured (released == target,...
Definition pointer_dispatch.hpp:319
Definition geometry.hpp:20
Device identity of the pointer a delivery verb is dispatching, stamped onto every MouseEvent the verb...
Definition pointer_dispatch.hpp:110
float azimuth_angle
Stylus direction around the display plane.
Definition pointer_dispatch.hpp:119
float movement_x
Host-reported X delta since the prior event.
Definition pointer_dispatch.hpp:120
bool has_movement_delta
The host supplied the movement fields.
Definition pointer_dispatch.hpp:122
float pressure
0.0-1.0; 0.5 is the mouse default.
Definition pointer_dispatch.hpp:112
float movement_y
Host-reported Y delta since the prior event.
Definition pointer_dispatch.hpp:121
PointerType type
Definition pointer_dispatch.hpp:111
float altitude_angle
Stylus altitude above the display plane.
Definition pointer_dispatch.hpp:118
int pointer_id
0 = primary pointer, >0 = an additional simultaneous touch.
Definition pointer_dispatch.hpp:117
Host hooks the portable wheel router calls back into.
Definition pointer_dispatch.hpp:199
std::function< void()> request_repaint
Invoked after a wheel event mutates the tree (a scroll pane scrolled, a value widget stepped,...
Definition pointer_dispatch.hpp:205