CairoBackend

Struct CairoBackend 

Source
pub struct CairoBackend { /* private fields */ }

Trait Implementations§

Source§

impl Backend for CairoBackend

Source§

unsafe fn begin_draw(&mut self)

Processing to start drawing (initialization, etc.)
Source§

unsafe fn flush(&mut self)

Processing to finish drawing
Source§

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)

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, )

Draws a ellipse
Source§

unsafe fn draw_rect( &mut self, point1: Point2<f32>, point2: Point2<f32>, r: f32, g: f32, b: f32, a: f32, )

Draws a rectangle
Source§

unsafe fn draw_rounded_rect( &mut self, point1: Point2<f32>, point2: Point2<f32>, radius: f32, r: f32, g: f32, b: f32, a: f32, )

Source§

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.