pub struct SurfaceGeometry<'a> {
pub target: &'a Rc<SurfaceTarget>,
pub content_to_local: ProjectiveTransform,
pub clip_bounds: Option<Rect>,
pub clips: &'a [HitClip],
}Expand description
Where a hit target on a mesh surface lies on the surface’s content.
Fields§
§target: &'a Rc<SurfaceTarget>The surface the target is on.
content_to_local: ProjectiveTransformMaps the surface’s content into the node’s local space.
clip_bounds: Option<Rect>Axis-aligned bounds of the clips within the surface, in content
space, or None when none clips.
clips: &'a [HitClip]The clips within the surface, as quads in content space.
Implementations§
Source§impl SurfaceGeometry<'_>
impl SurfaceGeometry<'_>
Sourcepub fn window_bounds(&self, local: Rect) -> Option<Rect>
pub fn window_bounds(&self, local: Rect) -> Option<Rect>
Where local, a rect of the target’s own space, shows in the window.
Trait Implementations§
Source§impl<'a> Clone for SurfaceGeometry<'a>
impl<'a> Clone for SurfaceGeometry<'a>
impl<'a> Copy for SurfaceGeometry<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SurfaceGeometry<'a>
impl<'a> !Send for SurfaceGeometry<'a>
impl<'a> !Sync for SurfaceGeometry<'a>
impl<'a> !UnwindSafe for SurfaceGeometry<'a>
impl<'a> Freeze for SurfaceGeometry<'a>
impl<'a> Unpin for SurfaceGeometry<'a>
impl<'a> UnsafeUnpin for SurfaceGeometry<'a>
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