pub struct SkiaRenderer<'a> { /* private fields */ }Expand description
Draws one frame of a Ui onto a Skia canvas.
Implementations§
Trait Implementations§
Source§impl Renderer for SkiaRenderer<'_>
impl Renderer for SkiaRenderer<'_>
fn fill_rect(&mut self, rect: Rect, radius: Corners<f32>, color: Color)
Source§fn border(
&mut self,
rect: Rect,
widths: Sides<f32>,
colors: Sides<Color>,
radius: Corners<f32>,
)
fn border( &mut self, rect: Rect, widths: Sides<f32>, colors: Sides<Color>, radius: Corners<f32>, )
A border drawn inside
rect, one width and colour per side.Source§fn text(&mut self, text: &str, spec: &FontSpec, top_left: Point, color: Color)
fn text(&mut self, text: &str, spec: &FontSpec, top_left: Point, color: Color)
A single line of text, its line box starting at
top_left. The
backend places the baseline inside the line box the same way
Fonts::measure measured it.fn pop_clip(&mut self)
Source§fn push_opacity(&mut self, opacity: f32)
fn push_opacity(&mut self, opacity: f32)
Draws everything until the matching
pop_opacity
through a layer with the given opacity.fn pop_opacity(&mut self)
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SkiaRenderer<'a>
impl<'a> !Send for SkiaRenderer<'a>
impl<'a> !Sync for SkiaRenderer<'a>
impl<'a> !UnwindSafe for SkiaRenderer<'a>
impl<'a> Freeze for SkiaRenderer<'a>
impl<'a> Unpin for SkiaRenderer<'a>
impl<'a> UnsafeUnpin for SkiaRenderer<'a>
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