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