pub unsafe extern "C-unwind" fn CGBitmapContextCreateAdaptive(
width: usize,
height: usize,
auxiliary_info: Option<&CFDictionary>,
on_resolve: Option<&DynBlock<dyn Fn(NonNull<CGContentInfo>, NonNull<CGBitmapParameters>) -> bool>>,
on_allocate: Option<&DynBlock<dyn Fn(NonNull<CGContentInfo>, NonNull<CGBitmapParameters>) -> *mut CGRenderingBufferProvider>>,
on_free: Option<&DynBlock<dyn Fn(NonNull<CGRenderingBufferProvider>, NonNull<CGContentInfo>, NonNull<CGBitmapParameters>)>>,
on_error: Option<&DynBlock<dyn Fn(NonNull<CFError>, NonNull<CGContentInfo>, NonNull<CGBitmapParameters>)>>,
) -> Option<CFRetained<CGContext>>Available on crate features
CGBitmapContext and CGColorSpace and CGContext and CGImage and CGRenderingBufferProvider and block2 only.Expand description
§Safety
auxiliary_infogenerics must be of the correct type.on_allocateblock’s return must be a valid pointer or null.