pub struct SurfaceTarget {
pub pick: Rc<ScenePick>,
pub index: usize,
pub outer_clip_bounds: Option<Rect>,
pub outer_clips: Vec<HitClip>,
}Expand description
A mesh surface of a scene, as the hit targets on its content see it: the scene’s pick, which surface it is, and the clips above it.
Fields§
§pick: Rc<ScenePick>Finds the surface and content point a window point shows.
index: usizeThe surface’s index in pick.
outer_clip_bounds: Option<Rect>Axis-aligned bounds of the clips above the surface, in window space.
outer_clips: Vec<HitClip>The clips above the surface, as quads in window space.
Implementations§
Source§impl SurfaceTarget
impl SurfaceTarget
Sourcepub fn window_bounds(
&self,
content_to_local: &ProjectiveTransform,
local: Rect,
) -> Option<Rect>
pub fn window_bounds( &self, content_to_local: &ProjectiveTransform, local: Rect, ) -> Option<Rect>
Where local, a rect of a target’s own space into which
content_to_local maps the surface’s content, shows in the window:
the bounds of a grid of its points in front of the eye; None when
none is.
Auto Trait Implementations§
impl !RefUnwindSafe for SurfaceTarget
impl !Send for SurfaceTarget
impl !Sync for SurfaceTarget
impl !UnwindSafe for SurfaceTarget
impl Freeze for SurfaceTarget
impl Unpin for SurfaceTarget
impl UnsafeUnpin for SurfaceTarget
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