enum Canvas {
VelloCPU(CanvasData<VelloCPUDrawTarget>),
}
Variants§
VelloCPU(CanvasData<VelloCPUDrawTarget>)
Implementations§
Source§impl Canvas
impl Canvas
fn new( size: Size2D<u64>, compositor_api: CrossProcessCompositorApi, ) -> Option<Self>
fn image_key(&self) -> ImageKey
fn pop_clips(&mut self, clips: usize)
fn fill_text( &mut self, text_bounds: Rect<f64>, text_runs: Vec<TextRun>, fill_or_stroke_style: FillOrStrokeStyle, shadow_options: ShadowOptions, composition_options: CompositionOptions, transform: Transform2D<f64>, )
fn fill_rect( &mut self, rect: &Rect<f32>, style: FillOrStrokeStyle, shadow_options: ShadowOptions, composition_options: CompositionOptions, transform: Transform2D<f64>, )
fn stroke_rect( &mut self, rect: &Rect<f32>, style: FillOrStrokeStyle, line_options: LineOptions, shadow_options: ShadowOptions, composition_options: CompositionOptions, transform: Transform2D<f64>, )
fn fill_path( &mut self, path: &Path, fill_rule: FillRule, style: FillOrStrokeStyle, shadow_options: ShadowOptions, composition_options: CompositionOptions, transform: Transform2D<f64>, )
fn stroke_path( &mut self, path: &Path, style: FillOrStrokeStyle, line_options: LineOptions, shadow_options: ShadowOptions, composition_options: CompositionOptions, transform: Transform2D<f64>, )
fn clear_rect(&mut self, rect: &Rect<f32>, transform: Transform2D<f64>)
fn draw_image( &mut self, snapshot: Snapshot, dest_rect: Rect<f64>, source_rect: Rect<f64>, smoothing_enabled: bool, shadow_options: ShadowOptions, composition_options: CompositionOptions, transform: Transform2D<f64>, )
fn read_pixels(&mut self, read_rect: Option<Rect<u32>>) -> Snapshot
fn clip_path( &mut self, path: &Path, fill_rule: FillRule, transform: Transform2D<f64>, )
fn put_image_data(&mut self, snapshot: Snapshot, rect: Rect<u32>)
fn update_image_rendering(&mut self, canvas_epoch: Option<Epoch>)
fn recreate(&mut self, size: Option<Size2D<u64>>)
Auto Trait Implementations§
impl Freeze for Canvas
impl !RefUnwindSafe for Canvas
impl Send for Canvas
impl !Sync for Canvas
impl Unpin for Canvas
impl !UnwindSafe for Canvas
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> 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 moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert