pub trait PointerGeometry {
// Required method
fn local_rect(&self, node: NodeId) -> Option<LayoutRect>;
}Expand description
Geometry pointer norms are relative to (X3).
Required Methods§
Sourcefn local_rect(&self, node: NodeId) -> Option<LayoutRect>
fn local_rect(&self, node: NodeId) -> Option<LayoutRect>
node‘s visual box in the events’ coordinate space (scroll offsets and transforms
applied); None when it has none.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".