drawLayer_inContext_ property

ObjCProtocolListenableMethod<void Function(CALayer, CGContextRef)> drawLayer_inContext_
final

drawLayer:inContext:

Implementation

static final drawLayer_inContext_ =
    objc.ObjCProtocolListenableMethod<void Function(CALayer, CGContextRef)>(
      _protocol_CALayerDelegate,
      _sel_drawLayer_inContext_,
      ffi.Native.addressOf<
            ffi.NativeFunction<
              ffi.Void Function(
                ffi.Pointer<objc.ObjCObject>,
                ffi.Pointer<ffi.Void>,
                ffi.Pointer<objc.ObjCObject>,
                CGContextRef,
              )
            >
          >(_NativeBindingBindings_protocolTrampoline_qvcerx)
          .cast(),
      objc.getProtocolMethodSignature(
        _protocol_CALayerDelegate,
        _sel_drawLayer_inContext_,
        isRequired: false,
        isInstanceMethod: true,
      ),
      (void Function(CALayer, CGContextRef) func) =>
          ObjCBlock_ffiVoid_ffiVoid_CALayer_CGContextRef.fromFunction(
            (ffi.Pointer<ffi.Void> _, CALayer arg1, CGContextRef arg2) =>
                func(arg1, arg2),
          ),
      (void Function(CALayer, CGContextRef) func) =>
          ObjCBlock_ffiVoid_ffiVoid_CALayer_CGContextRef.listener(
            (ffi.Pointer<ffi.Void> _, CALayer arg1, CGContextRef arg2) =>
                func(arg1, arg2),
          ),
      (void Function(CALayer, CGContextRef) func) =>
          ObjCBlock_ffiVoid_ffiVoid_CALayer_CGContextRef.blocking(
            (ffi.Pointer<ffi.Void> _, CALayer arg1, CGContextRef arg2) =>
                func(arg1, arg2),
          ),
    );