pub struct CairoBackend { /* private fields */ }Trait Implementations§
Source§impl Backend for CairoBackend
impl Backend for CairoBackend
Source§unsafe fn begin_draw(&mut self)
unsafe fn begin_draw(&mut self)
Processing to start drawing (initialization, etc.)
Source§unsafe fn get_display_size(&mut self) -> (u32, u32)
unsafe fn get_display_size(&mut self) -> (u32, u32)
Get display size
Source§unsafe fn clear(&mut self, r: f32, g: f32, b: f32, a: f32)
unsafe fn clear(&mut self, r: f32, g: f32, b: f32, a: f32)
Fills the window background with a specific color
Source§unsafe fn draw_ellipse(
&mut self,
point: Point2<f32>,
radius: f32,
r: f32,
g: f32,
b: f32,
a: f32,
)
unsafe fn draw_ellipse( &mut self, point: Point2<f32>, radius: f32, r: f32, g: f32, b: f32, a: f32, )
Draws a ellipse
Source§unsafe fn draw_rect(
&mut self,
point1: Point2<f32>,
point2: Point2<f32>,
r: f32,
g: f32,
b: f32,
a: f32,
)
unsafe fn draw_rect( &mut self, point1: Point2<f32>, point2: Point2<f32>, r: f32, g: f32, b: f32, a: f32, )
Draws a rectangle
unsafe fn draw_rounded_rect( &mut self, point1: Point2<f32>, point2: Point2<f32>, radius: f32, r: f32, g: f32, b: f32, a: f32, )
unsafe fn draw_line( &mut self, point1: Point2<f32>, point2: Point2<f32>, stroke: f32, r: f32, g: f32, b: f32, a: f32, )
Auto Trait Implementations§
impl Freeze for CairoBackend
impl !RefUnwindSafe for CairoBackend
impl !Send for CairoBackend
impl !Sync for CairoBackend
impl Unpin for CairoBackend
impl !UnwindSafe for CairoBackend
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