#[repr(transparent)]pub struct cp_drawable_state(pub u32);Available on crate feature
drawable only.Expand description
The state of ownership for the drawable.
Use these constants to determine whether the drawable is ready
for you to use. When the drawable is in the cp_drawable_state_rendering
state, you can begin drawing. Other states indicate the
drawable is either busy or not assigned to a frame.
See also Apple’s documentation
Tuple Fields§
§0: u32Implementations§
Source§impl cp_drawable_state
impl cp_drawable_state
Sourcepub const rendering: Self
pub const rendering: Self
A drawable that is assigned to a frame and ready to accept your drawing commands.
Sourcepub const presenting: Self
pub const presenting: Self
A drawable that the compositor is currently displaying onscreen.
Trait Implementations§
Source§impl Clone for cp_drawable_state
impl Clone for cp_drawable_state
Source§fn clone(&self) -> cp_drawable_state
fn clone(&self) -> cp_drawable_state
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for cp_drawable_state
impl Debug for cp_drawable_state
Source§impl Encode for cp_drawable_state
impl Encode for cp_drawable_state
Source§impl Hash for cp_drawable_state
impl Hash for cp_drawable_state
Source§impl Ord for cp_drawable_state
impl Ord for cp_drawable_state
Source§fn cmp(&self, other: &cp_drawable_state) -> Ordering
fn cmp(&self, other: &cp_drawable_state) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for cp_drawable_state
impl PartialEq for cp_drawable_state
Source§impl PartialOrd for cp_drawable_state
impl PartialOrd for cp_drawable_state
Source§impl RefEncode for cp_drawable_state
impl RefEncode for cp_drawable_state
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for cp_drawable_state
impl Eq for cp_drawable_state
impl StructuralPartialEq for cp_drawable_state
Auto Trait Implementations§
impl Freeze for cp_drawable_state
impl RefUnwindSafe for cp_drawable_state
impl Send for cp_drawable_state
impl Sync for cp_drawable_state
impl Unpin for cp_drawable_state
impl UnwindSafe for cp_drawable_state
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.