Struct display_link::cvdisplaylink::DisplayLink
source · pub struct DisplayLink(_);Implementations§
source§impl DisplayLink
impl DisplayLink
sourcepub unsafe fn new() -> Option<Self>
pub unsafe fn new() -> Option<Self>
Apple docs: CVDisplayLinkCreateWithActiveCGDisplays
Methods from Deref<Target = DisplayLinkRef>§
sourcepub unsafe fn set_output_callback(
&mut self,
callback: CVDisplayLinkOutputCallback,
user_info: *mut c_void
)
pub unsafe fn set_output_callback(
&mut self,
callback: CVDisplayLinkOutputCallback,
user_info: *mut c_void
)
Apple docs: CVDisplayLinkSetOutputCallback
sourcepub unsafe fn start(&mut self)
pub unsafe fn start(&mut self)
Apple docs: CVDisplayLinkStart
sourcepub unsafe fn stop(&mut self)
pub unsafe fn stop(&mut self)
Apple docs: CVDisplayLinkStop
Trait Implementations§
source§impl AsRef<DisplayLinkRef> for DisplayLink
impl AsRef<DisplayLinkRef> for DisplayLink
source§fn as_ref(&self) -> &DisplayLinkRef
fn as_ref(&self) -> &DisplayLinkRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<DisplayLinkRef> for DisplayLink
impl Borrow<DisplayLinkRef> for DisplayLink
source§fn borrow(&self) -> &DisplayLinkRef
fn borrow(&self) -> &DisplayLinkRef
Immutably borrows from an owned value. Read more
source§impl Clone for DisplayLink
impl Clone for DisplayLink
source§fn clone(&self) -> DisplayLink
fn clone(&self) -> DisplayLink
Returns a copy 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 DisplayLink
impl Debug for DisplayLink
source§impl Deref for DisplayLink
impl Deref for DisplayLink
§type Target = DisplayLinkRef
type Target = DisplayLinkRef
The resulting type after dereferencing.
source§fn deref(&self) -> &DisplayLinkRef
fn deref(&self) -> &DisplayLinkRef
Dereferences the value.
source§impl DerefMut for DisplayLink
impl DerefMut for DisplayLink
source§fn deref_mut(&mut self) -> &mut DisplayLinkRef
fn deref_mut(&mut self) -> &mut DisplayLinkRef
Mutably dereferences the value.
source§impl Drop for DisplayLink
impl Drop for DisplayLink
source§impl ForeignType for DisplayLink
impl ForeignType for DisplayLink
§type CType = CVDisplayLink
type CType = CVDisplayLink
The raw C type.
§type Ref = DisplayLinkRef
type Ref = DisplayLinkRef
The type representing a reference to this type.
source§unsafe fn from_ptr(ptr: *mut CVDisplayLink) -> DisplayLink
unsafe fn from_ptr(ptr: *mut CVDisplayLink) -> DisplayLink
Constructs an instance of this type from its raw type.
source§fn as_ptr(&self) -> *mut CVDisplayLink
fn as_ptr(&self) -> *mut CVDisplayLink
Returns a raw pointer to the wrapped value.