pub struct StateRegion {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
pub path: Vec<usize>,
}Expand description
An absolutely-positioned box whose styling depends on pointer state
(:hover / :active), carrying the tree path that identifies it to the
builder. Emitted only for nodes some pointer-state rule could match, so a
document with no such rules produces none.
Fields§
§x: f32§y: f32§width: f32§height: f32§path: Vec<usize>The node’s child-index path from the root, the same identity the binding registry uses.
Implementations§
Trait Implementations§
Source§impl Clone for StateRegion
impl Clone for StateRegion
Source§fn clone(&self) -> StateRegion
fn clone(&self) -> StateRegion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StateRegion
impl RefUnwindSafe for StateRegion
impl Send for StateRegion
impl Sync for StateRegion
impl Unpin for StateRegion
impl UnsafeUnpin for StateRegion
impl UnwindSafe for StateRegion
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