[][src]Struct cairo::Device

pub struct Device(_);

Implementations

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) -> Borrowed<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
) -> Result<(), Error>
[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
) -> Result<Surface, Error>
[src]

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

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

pub fn finish(&self)[src]

pub fn flush(&self)[src]

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

pub fn acquire(&self) -> Result<DeviceAcquireGuard<'_>, Error>[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]

pub fn debug_cap_xrender_version(&self, major_version: i32, minor_version: i32)[src]

pub fn debug_get_precision(&self) -> i32[src]

pub fn debug_set_precision(&self, precision: i32)[src]

pub fn set_user_data<T: 'static>(
    &self,
    key: &'static UserDataKey<T>,
    value: Rc<T>
)
[src]

Attach user data to self for the given key.

pub fn get_user_data<T: 'static>(
    &self,
    key: &'static UserDataKey<T>
) -> Option<Rc<T>>
[src]

Return the user data previously attached to self with the given key, if any.

pub fn get_user_data_ptr<T: 'static>(
    &self,
    key: &'static UserDataKey<T>
) -> Option<NonNull<T>>
[src]

Return the user data previously attached to self with the given key, if any, without incrementing the reference count.

The pointer is valid when it is returned from this method, until the cairo object that self represents is destroyed or remove_user_data or set_user_data is called with the same key.

pub fn remove_user_data<T: 'static>(&self, key: &'static UserDataKey<T>)[src]

Unattach from self the user data associated with key, if any. If there is no other Rc strong reference, the data is destroyed.

impl Device[src]

pub fn get_connection(&self) -> XCBConnection[src]

pub fn debug_cap_xshm_version(&self, major_version: i32, minor_version: i32)[src]

Trait Implementations

impl Clone for Device[src]

impl Debug for Device[src]

impl Display for Device[src]

impl Drop for Device[src]

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

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

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

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

impl SetValue for Device[src]

impl SetValueOptional for Device[src]

impl StaticType for Device[src]

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

type Storage = &'a Device

Auto Trait Implementations

impl RefUnwindSafe for Device

impl !Send for Device

impl !Sync for Device

impl Unpin for Device

impl UnwindSafe for Device

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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

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.