pub struct Drawable(/* private fields */);Methods from Deref<Target = DrawableRef>§
pub fn present(&self)
pub fn drawable_id(&self) -> NSUInteger
pub fn add_presented_handler(&self, block: &Block<(&'_ DrawableRef,), ()>)
pub fn presented_time(&self) -> f64
Trait Implementations§
Source§impl AsMut<DrawableRef> for Drawable
impl AsMut<DrawableRef> for Drawable
Source§fn as_mut(&mut self) -> &mut DrawableRef
fn as_mut(&mut self) -> &mut DrawableRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<DrawableRef> for Drawable
impl AsRef<DrawableRef> for Drawable
Source§fn as_ref(&self) -> &DrawableRef
fn as_ref(&self) -> &DrawableRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<DrawableRef> for Drawable
impl Borrow<DrawableRef> for Drawable
Source§fn borrow(&self) -> &DrawableRef
fn borrow(&self) -> &DrawableRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<DrawableRef> for Drawable
impl BorrowMut<DrawableRef> for Drawable
Source§fn borrow_mut(&mut self) -> &mut DrawableRef
fn borrow_mut(&mut self) -> &mut DrawableRef
Mutably borrows from an owned value. Read more
Source§impl Deref for Drawable
impl Deref for Drawable
Source§type Target = DrawableRef
type Target = DrawableRef
The resulting type after dereferencing.
Source§fn deref(&self) -> &DrawableRef
fn deref(&self) -> &DrawableRef
Dereferences the value.
Source§impl DerefMut for Drawable
impl DerefMut for Drawable
Source§fn deref_mut(&mut self) -> &mut DrawableRef
fn deref_mut(&mut self) -> &mut DrawableRef
Mutably dereferences the value.
Source§impl ForeignType for Drawable
impl ForeignType for Drawable
Source§type CType = MTLDrawable
type CType = MTLDrawable
The raw C type.
Source§type Ref = DrawableRef
type Ref = DrawableRef
The type representing a reference to this type.
Source§unsafe fn from_ptr(ptr: *mut MTLDrawable) -> Drawable
unsafe fn from_ptr(ptr: *mut MTLDrawable) -> Drawable
Constructs an instance of this type from its raw type. Read more
Source§fn as_ptr(&self) -> *mut MTLDrawable
fn as_ptr(&self) -> *mut MTLDrawable
Returns a raw pointer to the wrapped value.
Source§impl From<MetalDrawable> for Drawable
impl From<MetalDrawable> for Drawable
Source§fn from(item: MetalDrawable) -> Self
fn from(item: MetalDrawable) -> Self
Converts to this type from the input type.
impl Send for Drawable
impl Sync for Drawable
Auto Trait Implementations§
impl Freeze for Drawable
impl RefUnwindSafe for Drawable
impl Unpin for Drawable
impl UnwindSafe for Drawable
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)