pub struct VnSnapshotPaint {
pub id: u64,
pub to_unit: [f32; 6],
pub bounds: Bounds<ScaledPixels>,
pub content_mask: ContentMask<ScaledPixels>,
pub opacity: f32,
pub plus_lighter: bool,
pub in_place: bool,
}Expand description
vue-native fork: a snapshot drawn into a box (Scene::vn_insert_snapshot).
Fields§
§id: u64§to_unit: [f32; 6]Device pixel to the box’s unit square, [a, b, tx, c, d, ty];
Scene::vn_resolve_snapshots maps the square onto the capture’s
border box.
bounds: Bounds<ScaledPixels>The device pixels the box covers.
content_mask: ContentMask<ScaledPixels>§opacity: f32§plus_lighter: bool§in_place: boolWhere the capture was taken, ignoring to_unit.
Trait Implementations§
Source§impl Clone for VnSnapshotPaint
impl Clone for VnSnapshotPaint
impl Copy for VnSnapshotPaint
Auto Trait Implementations§
impl Forget for VnSnapshotPaint
impl Freeze for VnSnapshotPaint
impl Move for VnSnapshotPaint
impl RefUnwindSafe for VnSnapshotPaint
impl Send for VnSnapshotPaint
impl Sync for VnSnapshotPaint
impl Unpin for VnSnapshotPaint
impl UnsafeUnpin for VnSnapshotPaint
impl UnwindSafe for VnSnapshotPaint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more