| // 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; |
| |
| final class CollidingStructName extends ffi.Opaque {} |
| |
| /// _Renamed |
| extension type Renamed._(objc.ObjCObject object$) |
| implements objc.ObjCObject, objc.NSObject { |
| /// Constructs a [Renamed] that points to the same underlying object as [other]. |
| Renamed.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [Renamed] that wraps the given raw object pointer. |
| Renamed.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 [Renamed]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__Renamed, |
| ); |
| |
| /// alloc |
| static Renamed alloc() { |
| final $ret = _objc_msgSend_151sglz(_class__Renamed, _sel_alloc); |
| return Renamed.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static Renamed allocWithZone(ffi.Pointer<objc.NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class__Renamed, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return Renamed.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static Renamed new$() { |
| final $ret = _objc_msgSend_151sglz(_class__Renamed, _sel_new); |
| return Renamed.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// Returns a new instance of Renamed constructed with the default `new` method. |
| Renamed() : this.as(new$().object$); |
| } |
| |
| extension Renamed$Methods on Renamed { |
| /// CollidingStructName |
| int CollidingStructName$1() { |
| return _objc_msgSend_1gcq84o(object$.ref.pointer, _sel_CollidingStructName); |
| } |
| |
| /// init |
| Renamed init() { |
| objc.checkOsVersionInternal( |
| '_Renamed.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| object$.ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return Renamed.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// property |
| int get property { |
| return _objc_msgSend_1gcq84o(object$.ref.pointer, _sel_property); |
| } |
| |
| /// renamedMethod:otherArg: |
| int fooBarBaz(int x, {required int y}) { |
| return _objc_msgSend_1q0lyci( |
| object$.ref.pointer, |
| _sel_renamedMethod_otherArg_, |
| x, |
| y, |
| ); |
| } |
| |
| /// renamedProperty |
| int get reProp { |
| return _objc_msgSend_1gcq84o(object$.ref.pointer, _sel_renamedProperty); |
| } |
| |
| /// setProperty: |
| set property(int value) { |
| _objc_msgSend_1bqef4y(object$.ref.pointer, _sel_setProperty_, value); |
| } |
| |
| /// setRenamedProperty: |
| set reProp(int value) { |
| _objc_msgSend_1bqef4y(object$.ref.pointer, _sel_setRenamedProperty_, value); |
| } |
| |
| /// toString |
| objc.NSString toString$1() { |
| final $ret = _objc_msgSend_151sglz(object$.ref.pointer, _sel_toString); |
| return objc.NSString.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| late final _class__Renamed = objc.getClass("_Renamed"); |
| 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_1bqef4y = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Int32, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| 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>, |
| ) |
| >(); |
| final _objc_msgSend_1gcq84o = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Int32 Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_1q0lyci = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Int32 Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Int32, |
| ffi.Int32, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| int, |
| ) |
| >(); |
| late final _sel_CollidingStructName = objc.registerName("CollidingStructName"); |
| 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"); |
| late final _sel_property = objc.registerName("property"); |
| late final _sel_renamedMethod_otherArg_ = objc.registerName( |
| "renamedMethod:otherArg:", |
| ); |
| late final _sel_renamedProperty = objc.registerName("renamedProperty"); |
| late final _sel_setProperty_ = objc.registerName("setProperty:"); |
| late final _sel_setRenamedProperty_ = objc.registerName("setRenamedProperty:"); |
| late final _sel_toString = objc.registerName("toString"); |
| typedef instancetype = ffi.Pointer<objc.ObjCObjectImpl>; |
| typedef Dartinstancetype = objc.ObjCObject; |