pub struct RawCanvas<'a> { /* private fields */ }Implementations§
Source§impl RawCanvas<'_>
impl RawCanvas<'_>
pub fn push(&mut self, command: RenderCommand)
pub fn clear(&mut self, color: Color)
pub fn fill_rect(&mut self, rect: Rect, color: Color)
pub fn fill_round_rect(&mut self, rect: Rect, radius: f32, color: Color)
pub fn fill_circle(&mut self, center: Point, radius: f32, color: Color)
pub fn fill_ellipse( &mut self, center: Point, radius_x: f32, radius_y: f32, color: Color, )
pub fn stroke_line( &mut self, start: Point, end: Point, stroke: Stroke, color: Color, )
pub fn draw_text( &mut self, position: Point, text: impl Into<String>, style: TextStyle, color: Color, )
pub fn image_placeholder(&mut self, rect: Rect, color: Color)
pub fn clip_rect(&mut self, rect: Rect)
pub fn save(&mut self)
pub fn restore(&mut self)
pub fn translate(&mut self, dx: f32, dy: f32)
Auto Trait Implementations§
impl<'a> Freeze for RawCanvas<'a>
impl<'a> RefUnwindSafe for RawCanvas<'a>
impl<'a> Send for RawCanvas<'a>
impl<'a> Sync for RawCanvas<'a>
impl<'a> Unpin for RawCanvas<'a>
impl<'a> UnsafeUnpin for RawCanvas<'a>
impl<'a> !UnwindSafe for RawCanvas<'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