[−][src]Struct cairo::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
) -> Result<Surface, Status>
[src]
&self,
content: Content,
width: f64,
height: f64
) -> Result<Surface, Status>
pub fn surface_create_for_target(
&self,
target: &Surface
) -> Result<Surface, Status>
[src]
&self,
target: &Surface
) -> Result<Surface, Status>
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]
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]
&self,
key: &'static UserDataKey<T>,
value: Rc<T>
)
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]
&self,
key: &'static UserDataKey<T>
) -> Option<Rc<T>>
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]
&self,
key: &'static UserDataKey<T>
) -> Option<NonNull<T>>
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]
unsafe fn from_glib_borrow(ptr: *mut cairo_device_t) -> Device
[src]
impl FromGlibPtrFull<*mut cairo_device_t> for Device
[src]
unsafe fn from_glib_full(ptr: *mut cairo_device_t) -> Device
[src]
impl FromGlibPtrNone<*mut cairo_device_t> for Device
[src]
unsafe fn from_glib_none(ptr: *mut cairo_device_t) -> Device
[src]
impl<'a> FromValueOptional<'a> for Device
[src]
unsafe fn from_value_optional(v: &'a Value) -> Option<Self>
[src]
impl SetValue for Device
[src]
impl SetValueOptional for Device
[src]
unsafe fn set_value_optional(v: &mut Value, s: Option<&Self>)
[src]
impl StaticType for Device
[src]
fn static_type() -> Type
[src]
impl<'a> ToGlibPtr<'a, *mut cairo_device_t> for Device
[src]
type Storage = &'a Device
fn to_glib_none(&'a self) -> Stash<'a, *mut cairo_device_t, Self>
[src]
fn to_glib_full(&self) -> *mut cairo_device_t
[src]
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src]
T: ToValue + SetValue + Send + ?Sized,
fn to_send_value(&self) -> SendValue
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,