[][src]Struct cairo::Device

pub struct Device(_, _);

Methods

impl Device[src]

pub unsafe fn from_raw_none(ptr: *mut cairo_device_t) -> Device[src]

pub unsafe fn from_raw_borrow(ptr: *mut cairo_device_t) -> Device[src]

pub unsafe fn from_raw_full(ptr: *mut cairo_device_t) -> Device[src]

pub fn to_raw_none(&self) -> *mut cairo_device_t[src]

pub fn create<P: AsRef<Path>>(filename: P) -> Option<Device>[src]

pub fn from_recording_surface(&self, surface: &RecordingSurface) -> Status[src]

pub fn get_mode(&self) -> ScriptMode[src]

pub fn set_mode(&self, mode: ScriptMode)[src]

pub fn surface_create(
    &self,
    content: Content,
    width: f64,
    height: f64
) -> Option<Surface>
[src]

pub fn surface_create_for_target(&self, target: &Surface) -> Option<Surface>[src]

pub fn write_comment(&self, comment: &str)[src]

pub fn status(&self) -> Status[src]

pub fn finish(&self)[src]

pub fn flush(&self)[src]

pub fn get_type(&self) -> DeviceType[src]

pub fn acquire(&self) -> Status[src]

pub fn release(&self)[src]

pub fn observer_elapsed(&self) -> f64[src]

pub fn observer_fill_elapsed(&self) -> f64[src]

pub fn observer_glyphs_elapsed(&self) -> f64[src]

pub fn observer_mask_elapsed(&self) -> f64[src]

pub fn observer_paint_elapsed(&self) -> f64[src]

pub fn observer_stroke_elapsed(&self) -> f64[src]

Trait Implementations

impl AsRef<Device> for Device[src]

impl Clone for Device[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Drop for Device[src]

impl Display for Device[src]

impl Debug for Device[src]

impl FromGlibPtrFull<*mut cairo_device_t> for Device[src]

impl<'a> ToGlibPtr<'a, *mut cairo_device_t> for Device[src]

type Storage = &'a Device

fn to_glib_container(&'a self) -> Stash<'a, P, Self>[src]

Transfer: container. Read more

impl FromGlibPtrNone<*mut cairo_device_t> for Device[src]

impl FromGlibPtrBorrow<*mut cairo_device_t> for Device[src]

impl StaticType for Device[src]

impl<'a> FromValueOptional<'a> for Device[src]

impl SetValue for Device[src]

impl SetValueOptional for Device[src]

Auto Trait Implementations

impl !Send for Device

impl !Sync for Device

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]