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,
}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).
Trait Implementations§
Source§impl Clone for DomResponse
impl Clone for DomResponse
Source§impl Debug for DomResponse
impl Debug for DomResponse
Auto Trait Implementations§
impl Forget for DomResponse
impl Freeze for DomResponse
impl Move for DomResponse
impl RefUnwindSafe for DomResponse
impl Send for DomResponse
impl Sync for DomResponse
impl Unpin for DomResponse
impl UnsafeUnpin for DomResponse
impl UnwindSafe for DomResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more