Struct RecordedBackdrop
pub struct RecordedBackdrop {
pub image: ImageData,
pub bounds: Rect,
pub blur_px: f64,
pub sampling: Sampling,
pub cell_px: f64,
pub refraction: Refraction,
pub legible: Legible,
pub layer: u32,
pub below: Scene,
pub ground: AlphaColor<Srgb>,
}Expand description
One surface drawn in the blurred material while a recording was active, in the recording’s coordinates.
Fields§
§image: ImageDataThe placeholder the scene draws for the blurred backdrop.
bounds: RectThe surface’s bounds.
blur_px: f64Blur standard deviation in recording pixels.
sampling: SamplingHow the sample is filtered after the blur.
cell_px: f64The cell’s side in recording pixels, for crate::part_paint::Sampling::Blocky.
refraction: RefractionHow the backdrop is bent, in recording pixels.
legible: LegibleThe range what shows through is compressed into.
layer: u32The layer of the scene the surface was drawn into (see
layer_scene).
below: SceneWhat that scene held before the surface, with the layers still open there ended: a balanced scene of its own.
ground: AlphaColor<Srgb>The opaque panel ground the material tints with.
Implementations§
§impl RecordedBackdrop
impl RecordedBackdrop
pub fn into_region(
self,
rect: Rect,
scale: f64,
below: impl FnOnce(Scene) -> Scene,
) -> BackdropRegion
pub fn into_region( self, rect: Rect, scale: f64, below: impl FnOnce(Scene) -> Scene, ) -> BackdropRegion
This surface’s backdrop as a region of a target that draws it at
rect, scale target pixels per recording pixel, over below
(handed what the recording saw below the surface). The one mapping
from a recording to a region, so a field the pass reads is never
left behind on the way.
Trait Implementations§
§impl Clone for RecordedBackdrop
impl Clone for RecordedBackdrop
§fn clone(&self) -> RecordedBackdrop
fn clone(&self) -> RecordedBackdrop
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for RecordedBackdrop
impl !RefUnwindSafe for RecordedBackdrop
impl Send for RecordedBackdrop
impl Sync for RecordedBackdrop
impl Unpin for RecordedBackdrop
impl UnsafeUnpin for RecordedBackdrop
impl !UnwindSafe for RecordedBackdrop
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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