| // AUTO GENERATED FILE, DO NOT EDIT. |
| // |
| // Generated by `package:ffigen`. |
| // ignore_for_file: type=lint, unused_import |
| import 'dart:ffi' as ffi; |
| import 'package:objective_c/objective_c.dart' as objc; |
| import 'package:ffi/ffi.dart' as pkg_ffi; |
| |
| /// IsInstanceBaseClass |
| extension type IsInstanceBaseClass._(objc.ObjCObject object$) |
| implements objc.ObjCObject, objc.NSObject { |
| /// Constructs a [IsInstanceBaseClass] that points to the same underlying object as [other]. |
| IsInstanceBaseClass.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [IsInstanceBaseClass] that wraps the given raw object pointer. |
| IsInstanceBaseClass.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [IsInstanceBaseClass]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_IsInstanceBaseClass, |
| ); |
| |
| /// alloc |
| static IsInstanceBaseClass alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_IsInstanceBaseClass, _sel_alloc); |
| return IsInstanceBaseClass.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static IsInstanceBaseClass allocWithZone(ffi.Pointer<objc.NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_IsInstanceBaseClass, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return IsInstanceBaseClass.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static IsInstanceBaseClass new$() { |
| final $ret = _objc_msgSend_151sglz(_class_IsInstanceBaseClass, _sel_new); |
| return IsInstanceBaseClass.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// Returns a new instance of IsInstanceBaseClass constructed with the default `new` method. |
| IsInstanceBaseClass() : this.as(new$().object$); |
| } |
| |
| extension IsInstanceBaseClass$Methods on IsInstanceBaseClass { |
| /// init |
| IsInstanceBaseClass init() { |
| objc.checkOsVersionInternal( |
| 'IsInstanceBaseClass.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| object$.ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return IsInstanceBaseClass.fromPointer($ret, retain: false, release: true); |
| } |
| } |
| |
| /// IsInstanceChildClass |
| extension type IsInstanceChildClass._(objc.ObjCObject object$) |
| implements objc.ObjCObject, IsInstanceBaseClass { |
| /// Constructs a [IsInstanceChildClass] that points to the same underlying object as [other]. |
| IsInstanceChildClass.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [IsInstanceChildClass] that wraps the given raw object pointer. |
| IsInstanceChildClass.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [IsInstanceChildClass]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_IsInstanceChildClass, |
| ); |
| |
| /// alloc |
| static IsInstanceChildClass alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_IsInstanceChildClass, _sel_alloc); |
| return IsInstanceChildClass.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static IsInstanceChildClass allocWithZone(ffi.Pointer<objc.NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_IsInstanceChildClass, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return IsInstanceChildClass.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static IsInstanceChildClass new$() { |
| final $ret = _objc_msgSend_151sglz(_class_IsInstanceChildClass, _sel_new); |
| return IsInstanceChildClass.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// Returns a new instance of IsInstanceChildClass constructed with the default `new` method. |
| IsInstanceChildClass() : this.as(new$().object$); |
| } |
| |
| extension IsInstanceChildClass$Methods on IsInstanceChildClass { |
| /// init |
| IsInstanceChildClass init() { |
| objc.checkOsVersionInternal( |
| 'IsInstanceChildClass.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| object$.ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return IsInstanceChildClass.fromPointer($ret, retain: false, release: true); |
| } |
| } |
| |
| /// IsInstanceUnrelatedClass |
| extension type IsInstanceUnrelatedClass._(objc.ObjCObject object$) |
| implements objc.ObjCObject, objc.NSObject { |
| /// Constructs a [IsInstanceUnrelatedClass] that points to the same underlying object as [other]. |
| IsInstanceUnrelatedClass.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [IsInstanceUnrelatedClass] that wraps the given raw object pointer. |
| IsInstanceUnrelatedClass.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [IsInstanceUnrelatedClass]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_IsInstanceUnrelatedClass, |
| ); |
| |
| /// alloc |
| static IsInstanceUnrelatedClass alloc() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_IsInstanceUnrelatedClass, |
| _sel_alloc, |
| ); |
| return IsInstanceUnrelatedClass.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// allocWithZone: |
| static IsInstanceUnrelatedClass allocWithZone(ffi.Pointer<objc.NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_IsInstanceUnrelatedClass, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return IsInstanceUnrelatedClass.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// new |
| static IsInstanceUnrelatedClass new$() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_IsInstanceUnrelatedClass, |
| _sel_new, |
| ); |
| return IsInstanceUnrelatedClass.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Returns a new instance of IsInstanceUnrelatedClass constructed with the default `new` method. |
| IsInstanceUnrelatedClass() : this.as(new$().object$); |
| } |
| |
| extension IsInstanceUnrelatedClass$Methods on IsInstanceUnrelatedClass { |
| /// init |
| IsInstanceUnrelatedClass init() { |
| objc.checkOsVersionInternal( |
| 'IsInstanceUnrelatedClass.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| object$.ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return IsInstanceUnrelatedClass.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| } |
| |
| late final _class_IsInstanceBaseClass = objc.getClass("IsInstanceBaseClass"); |
| late final _class_IsInstanceChildClass = objc.getClass("IsInstanceChildClass"); |
| late final _class_IsInstanceUnrelatedClass = objc.getClass( |
| "IsInstanceUnrelatedClass", |
| ); |
| final _objc_msgSend_151sglz = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_19nvye5 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1cwp428 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.NSZone>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.NSZone>, |
| ) |
| >(); |
| late final _sel_alloc = objc.registerName("alloc"); |
| late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); |
| late final _sel_init = objc.registerName("init"); |
| late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); |
| late final _sel_new = objc.registerName("new"); |
| typedef instancetype = ffi.Pointer<objc.ObjCObjectImpl>; |
| typedef Dartinstancetype = objc.ObjCObject; |