pub struct CVDisplayLink(/* private fields */);Implementations§
Source§impl CVDisplayLink
impl CVDisplayLink
pub fn from_cg_displays( display_array: &[CGDirectDisplayID], ) -> Result<CVDisplayLink, CVReturn>
pub fn from_opengl_display_mask( mask: CGOpenGLDisplayMask, ) -> Result<CVDisplayLink, CVReturn>
pub fn from_cg_display( display_id: CGDirectDisplayID, ) -> Result<CVDisplayLink, CVReturn>
pub fn from_active_cg_displays() -> Result<CVDisplayLink, CVReturn>
pub fn set_current_cg_display( &self, display_id: CGDirectDisplayID, ) -> Result<(), CVReturn>
pub unsafe fn set_current_cg_display_from_opengl_context( &self, cgl_context: CGLContextObj, cgl_pixel_format: CGLPixelFormatObj, ) -> Result<(), CVReturn>
pub fn get_current_cg_display(&self) -> CGDirectDisplayID
pub unsafe fn set_output_callback( &self, callback: CVDisplayLinkOutputCallback, user_info: *mut c_void, ) -> Result<(), CVReturn>
pub fn set_output_closure<F>(&self, closure: Option<F>) -> Result<(), CVReturn>where
F: Fn(&CVDisplayLink, &CVTimeStamp, &CVTimeStamp, CVOptionFlags, &mut CVOptionFlags) -> CVReturn + 'static,
pub fn start(&self) -> Result<(), CVReturn>
pub fn stop(&self) -> Result<(), CVReturn>
pub fn get_nominal_output_video_refresh_period(&self) -> CVTime
pub fn get_output_video_latency(&self) -> CVTime
pub fn get_actual_output_video_refresh_period(&self) -> CVTime
pub fn is_running(&self) -> bool
pub fn get_current_time(&self) -> Result<CVTime, CVReturn>
pub fn translate_time(&self, in_time: &CVTime) -> Result<CVTime, CVReturn>
Trait Implementations§
Source§impl Clone for CVDisplayLink
impl Clone for CVDisplayLink
Source§impl Debug for CVDisplayLink
impl Debug for CVDisplayLink
Source§impl Drop for CVDisplayLink
impl Drop for CVDisplayLink
Source§impl PartialEq for CVDisplayLink
impl PartialEq for CVDisplayLink
Source§impl TCFType for CVDisplayLink
impl TCFType for CVDisplayLink
Source§type Ref = *mut __CVDisplayLink
type Ref = *mut __CVDisplayLink
The reference type wrapped inside this type.
Source§fn as_concrete_TypeRef(&self) -> CVDisplayLinkRef
fn as_concrete_TypeRef(&self) -> CVDisplayLinkRef
Returns the object as its concrete
TypeRef.Source§unsafe fn wrap_under_get_rule(reference: CVDisplayLinkRef) -> Self
unsafe fn wrap_under_get_rule(reference: CVDisplayLinkRef) -> Self
Returns an instance of the object, wrapping the underlying
CFTypeRef subclass. Use this
when following Core Foundation’s “Get Rule”. The reference count is bumped.Source§fn as_CFTypeRef(&self) -> CFTypeRef
fn as_CFTypeRef(&self) -> CFTypeRef
Returns the object as a raw
CFTypeRef. The reference count is not adjusted.Source§unsafe fn wrap_under_create_rule(reference: CVDisplayLinkRef) -> Self
unsafe fn wrap_under_create_rule(reference: CVDisplayLinkRef) -> Self
Returns an instance of the object, wrapping the underlying
CFTypeRef subclass. Use this
when following Core Foundation’s “Create Rule”. The reference count is not bumped.Source§fn as_CFType(&self) -> CFType
fn as_CFType(&self) -> CFType
Returns the object as a wrapped
CFType. The reference count is incremented by one.Source§fn into_CFType(self) -> CFTypewhere
Self: Sized,
fn into_CFType(self) -> CFTypewhere
Self: Sized,
Returns the object as a wrapped
CFType. Consumes self and avoids changing the reference
count.Source§fn retain_count(&self) -> isize
fn retain_count(&self) -> isize
Returns the reference count of the object. It is unwise to do anything other than test
whether the return value of this method is greater than zero.
Source§fn instance_of<OtherCFType>(&self) -> boolwhere
OtherCFType: TCFType,
fn instance_of<OtherCFType>(&self) -> boolwhere
OtherCFType: TCFType,
Returns
true if this value is an instance of another type.Source§impl<'a> ToVoid<CVDisplayLink> for &'a CVDisplayLink
impl<'a> ToVoid<CVDisplayLink> for &'a CVDisplayLink
Source§impl ToVoid<CVDisplayLink> for CVDisplayLinkRef
impl ToVoid<CVDisplayLink> for CVDisplayLinkRef
Source§impl ToVoid<CVDisplayLink> for CVDisplayLink
impl ToVoid<CVDisplayLink> for CVDisplayLink
impl ConcreteCFType for CVDisplayLink
impl Eq for CVDisplayLink
Auto Trait Implementations§
impl Freeze for CVDisplayLink
impl RefUnwindSafe for CVDisplayLink
impl !Send for CVDisplayLink
impl !Sync for CVDisplayLink
impl Unpin for CVDisplayLink
impl UnwindSafe for CVDisplayLink
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