pub struct Canvas;
Implementations§
Source§impl Canvas
impl Canvas
pub fn save(&self)
pub fn restore(&self)
pub fn concat(&self, _matrix: &Matrix)
pub fn clip_rect(&self, _rect: Rect, _clip: ClipOp, _: bool)
pub fn draw_image_nine( &self, _image: Image, _center: IRect, _dst: Rect, _filter_mode: FilterMode, _paint: Option<&Paint>, ) -> &Self
pub fn draw_rect(&self, _rect: Rect, _paint: &Paint) -> &Self
pub fn draw_path(&self, _path: &Path, _paint: &Paint) -> &Self
pub fn clip_path( &self, _path: &Path, _op: impl Into<Option<ClipOp>>, _do_anti_alias: impl Into<Option<bool>>, ) -> &Self
pub fn translate(&self, _d: impl Into<Point>) -> &Self
pub fn scale(&self, _: impl Into<Point>)
pub fn clear(&self, _: Color)
pub fn draw_line( &self, _p1: impl Into<Point>, _p2: impl Into<Point>, _paint: &Paint, ) -> &Self
pub fn draw_circle( &self, _center: impl Into<Point>, _radius: f32, _paint: &Paint, ) -> &Self
pub fn save_layer_alpha_f( &self, bounds: impl Into<Option<Rect>>, alpha: f32, ) -> usize
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