Function CVDisplayLinkSetOutputHandler

Source
pub unsafe extern "C-unwind" fn CVDisplayLinkSetOutputHandler(
    display_link: &CVDisplayLink,
    handler: CVDisplayLinkOutputHandler,
) -> CVReturn
👎Deprecated: use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)
Available on crate features CVBase and CVReturn and block2 and CVDisplayLink only.
Expand description

Set the renderer output callback block

The DisplayLink will invoke this block whenever it wants you to output a frame. You can only have a block or a callback function; not both.

Parameter displayLink: target CVDisplayLinkRef

Parameter handler: CVDisplayLinkOutputHandler block

Returns: CVReturn. kCVReturnSuccess if successful.