[][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 Drop for Device[src]

impl AsRef<Device> for Device[src]

impl Clone for Device[src]

impl Display for Device[src]

impl Debug for Device[src]

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

type Storage = &'a Device

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

impl FromGlibPtrFull<*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

impl Unpin for Device

impl UnwindSafe for Device

impl RefUnwindSafe for Device

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

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

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