pub struct CreateInfo {
pub sink: Box<dyn IVelloSceneSink>,
pub backdrop: Option<VelloBackdrop>,
pub on_finished: Box<dyn FnOnce(&mut dyn IVelloSceneSink)>,
pub scale_drawing_to_dpi: bool,
pub dpi: Vector,
pub rendering_modes: Vec<VelloRenderingMode>,
}Expand description
Context create info.
Fields§
§sink: Box<dyn IVelloSceneSink>The scene the context records into: of the size of the target, in the rendering mode of the target.
backdrop: Option<VelloBackdrop>What the target holds from the frames before, when it holds anything: it stays under the scene.
on_finished: Box<dyn FnOnce(&mut dyn IVelloSceneSink)>Receives the scene when the context is disposed, to render it into the target.
scale_drawing_to_dpi: boolMakes DPI to be applied as a hidden matrix transform.
dpi: VectorDpi for intermediate surfaces.
rendering_modes: Vec<VelloRenderingMode>The rendering modes of intermediate surfaces, in the order they are tried.
Auto Trait Implementations§
impl !RefUnwindSafe for CreateInfo
impl !Send for CreateInfo
impl !Sync for CreateInfo
impl !UnwindSafe for CreateInfo
impl Freeze for CreateInfo
impl Unpin for CreateInfo
impl UnsafeUnpin for CreateInfo
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more