pub struct DomResponse {
pub dom: Dom,
pub clicked: Option<String>,
pub captured: Vec<(String, Gesture)>,
pub hovered: Option<String>,
pub focused: Option<String>,
pub edited: Vec<(String, String)>,
pub scrolls: Vec<(String, f64)>,
pub key_used: bool,
pub slot_actions: Vec<SlotAction>,
pub moved: Vec<(String, f64, f64)>,
pub resized: Vec<(String, f64, f64)>,
}Expand description
What a dom tree did this frame.
Fields§
§dom: DomThe laid-out tree (rects by id, embed slots, a11y nodes).
clicked: Option<String>The element id clicked this frame (topmost first).
captured: Vec<(String, Gesture)>Gestures captured by the tree’s touch targets (touch-action: none, paint
slots) since the last frame: (element id, gesture), oldest first.
hovered: Option<String>The element id under the pointer.
focused: Option<String>The focused element id.
edited: Vec<(String, String)>Text inputs whose value the user changed this frame: (id, new value).
scrolls: Vec<(String, f64)>The framework-owned scroll containers of the tree (overflow: auto | scroll with
an id, after DomBuilder::dom_scroll) and their scrollTop after this frame,
in tree order. Empty when that opt-in is off.
key_used: boolThe key given to DomBuilder::key was used (an arrow key stepped a number field,
or a focused registered paint slot got it).
slot_actions: Vec<SlotAction>What the registered slot painters reported this frame
(DomBuilder::slot_registry), in paint order.
moved: Vec<(String, f64, f64)>Opt-in dialog drag (DomBuilder::draggable): (id, dx, dy) pointer deltas
this frame while the element holds the press; the app moves its own dialog.
Empty unless the opt-in is used.
resized: Vec<(String, f64, f64)>Opt-in dialog resize (DomBuilder::resizable): (id, dw, dh) pointer deltas
this frame while the grip holds the press; the app resizes its own dialog.
Empty unless the opt-in is used.