Skip to main content

Module input

Module input 

Source
Expand description

入力処理とヒットテスト。クリック位置の要素判定を行う。

Structs§

HitItem
ヒットしたノード情報

Constants§

NO_SCROLL_DOM_ID
Marker returned from scroll_at when a container scrolled but carries no snapshot dom id (so no scroll event can be dispatched to it). Callers can treat any Some(..) as “scrolled” and use this value to skip dispatch.

Functions§

any_custom_node_needs_repaint
Returns whether any custom node in the tree reports a pending repaint.
dismiss_open_popups
Dismisses every open popup whose owner is not under the pointer press.
dispatch_pointer
Dispatches a pointer event to the innermost custom node on the hit path.
dispatch_text_input
Sends an editing event to the focused text input, if one exists.
focus_text_input
Focuses target and clears focus from every other text input.
focused_text_input_is_composing
Returns whether the focused text input has an active IME composition.
hit_custom_node
Returns the innermost custom node on a hit path, if any.
hit_dom_id
Returns the innermost DOM node id on a hit path, if any.
hit_test
scroll_at
Scrolls the innermost scrollable container under (x, y) by (dx, dy).
update_hover
Updates the hover state of custom nodes after a pointer move.

Type Aliases§

HitPath
ヒットパス(子→親の順)