pub struct NoRenderer;Expand description
A dummy renderer. This can be used for executing graphics commands without a graphical backend available.
Trait Implementations§
Source§impl Renderer for NoRenderer
impl Renderer for NoRenderer
Source§type Font = NoRendererFont
type Font = NoRendererFont
The font type used for rendering text. May be
() if text rendering isn’t supported.Source§fn pop(&mut self)
fn pop(&mut self)
Pops the topmost transform matrix and clip region off the stack and overwrites the current transform matrix
with it.
Source§fn clip(&mut self, _: Rect)
fn clip(&mut self, _: Rect)
Updates the clip region to the intersection of the current clip region and the provided rectangle.
Initially, the clip region spans the whole window. This only allows for shrinking the clip region in size.
The only way to increase its size is to use
push() and pop(). Read moreSource§fn fill(&mut self, _: Rect, _: Color, _: f32)
fn fill(&mut self, _: Rect, _: Color, _: f32)
Draws a fill for the provided rectangle, with the given color and corner radius.
Source§fn outline(&mut self, _: Rect, _: Color, _: f32, _: f32)
fn outline(&mut self, _: Rect, _: Color, _: f32, _: f32)
Draws an outline for the provided rectangle, with the given color, corner radius, and thickness.
Auto Trait Implementations§
impl Freeze for NoRenderer
impl RefUnwindSafe for NoRenderer
impl Send for NoRenderer
impl Sync for NoRenderer
impl Unpin for NoRenderer
impl UnwindSafe for NoRenderer
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