Struct cairo::Device [−][src]
pub struct Device(_);
Implementations
script
or dox
only.script
or dox
only.script
or dox
only.script
or dox
only.script
or dox
only.script
or dox
only.script
or dox
only.xlib
or xcb
or dox
only.xlib
or xcb
or dox
only.xlib
or xcb
or dox
only.pub fn set_user_data<T: 'static>(
&self,
key: &'static UserDataKey<T>,
value: Rc<T>
) -> Result<(), Error>
pub fn set_user_data<T: 'static>(
&self,
key: &'static UserDataKey<T>,
value: Rc<T>
) -> Result<(), Error>
Attach user data to self
for the given key
.
Return the user data previously attached to self
with the given key
, if any.
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.
Unattached from self
the user data associated with key
, if any.
If there is no other Rc
strong reference, the data is destroyed.
xcb
or dox
only.xcb
or dox
only.Trait Implementations
impl FromGlibPtrBorrow<*mut cairo_device_t> for Device
This is supported on crate feature use_glib
only.
impl FromGlibPtrBorrow<*mut cairo_device_t> for Device
use_glib
only.Safety Read more
impl FromGlibPtrFull<*mut cairo_device_t> for Device
This is supported on crate feature use_glib
only.
impl FromGlibPtrFull<*mut cairo_device_t> for Device
use_glib
only.Safety Read more
impl FromGlibPtrNone<*mut cairo_device_t> for Device
This is supported on crate feature use_glib
only.
impl FromGlibPtrNone<*mut cairo_device_t> for Device
use_glib
only.Safety Read more
type Checker = GenericValueTypeOrNoneChecker<Self>
type Checker = GenericValueTypeOrNoneChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
Returns the type identifier of Self
.
impl<'a> ToGlibPtr<'a, *mut cairo_device_t> for Device
This is supported on crate feature use_glib
only.
impl<'a> ToGlibPtr<'a, *mut cairo_device_t> for Device
use_glib
only.Convert an Option
to a Value
.
Auto Trait Implementations
impl RefUnwindSafe for Device
impl UnwindSafe for Device
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.