blob: f7e6aa06e11f16ba704756a03c2be5f4f8c772d3 [file]
// 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;
/// PropertyInterface
extension type PropertyInterface._(objc.ObjCObject object$)
implements objc.ObjCObject, objc.NSObject {
/// Constructs a [PropertyInterface] that points to the same underlying object as [other].
PropertyInterface.as(objc.ObjCObject other) : object$ = other {
assert(isA(object$));
}
/// Constructs a [PropertyInterface] that wraps the given raw object pointer.
PropertyInterface.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 [PropertyInterface].
static bool isA(objc.ObjCObject? obj) => obj == null
? false
: _objc_msgSend_19nvye5(
obj.ref.pointer,
_sel_isKindOfClass_,
_class_PropertyInterface,
);
/// alloc
static PropertyInterface alloc() {
final $ret = _objc_msgSend_151sglz(_class_PropertyInterface, _sel_alloc);
return PropertyInterface.fromPointer($ret, retain: false, release: true);
}
/// allocWithZone:
static PropertyInterface allocWithZone(ffi.Pointer<objc.NSZone> zone) {
final $ret = _objc_msgSend_1cwp428(
_class_PropertyInterface,
_sel_allocWithZone_,
zone,
);
return PropertyInterface.fromPointer($ret, retain: false, release: true);
}
/// classReadOnlyProperty
static int getClassReadOnlyProperty() {
return _objc_msgSend_1gcq84o(
_class_PropertyInterface,
_sel_classReadOnlyProperty,
);
}
/// classReadWriteProperty
static int getClassReadWriteProperty() {
return _objc_msgSend_1gcq84o(
_class_PropertyInterface,
_sel_classReadWriteProperty,
);
}
/// instStaticSameName
static int getInstStaticSameName$1() {
return _objc_msgSend_1gcq84o(
_class_PropertyInterface,
_sel_instStaticSameName,
);
}
/// new
static PropertyInterface new$() {
final $ret = _objc_msgSend_151sglz(_class_PropertyInterface, _sel_new);
return PropertyInterface.fromPointer($ret, retain: false, release: true);
}
/// regressGH1268
static objc.NSArray getRegressGH1268() {
final $ret = _objc_msgSend_151sglz(
_class_PropertyInterface,
_sel_regressGH1268,
);
return objc.NSArray.fromPointer($ret, retain: true, release: true);
}
/// regressGH436
static UndefinedTemplate getRegressGH436() {
final $ret = _objc_msgSend_151sglz(
_class_PropertyInterface,
_sel_regressGH436,
);
return UndefinedTemplate.fromPointer($ret, retain: true, release: true);
}
/// setClassReadWriteProperty:
static void setClassReadWriteProperty(int value) {
_objc_msgSend_1bqef4y(
_class_PropertyInterface,
_sel_setClassReadWriteProperty_,
value,
);
}
/// Returns a new instance of PropertyInterface constructed with the default `new` method.
PropertyInterface() : this.as(new$().object$);
}
extension PropertyInterface$Methods on PropertyInterface {
/// doubleProperty
double get doubleProperty {
return objc.useMsgSendVariants
? _objc_msgSend_1ukqyt8Fpret(object$.ref.pointer, _sel_doubleProperty)
: _objc_msgSend_1ukqyt8(object$.ref.pointer, _sel_doubleProperty);
}
/// floatProperty
double get floatProperty {
return objc.useMsgSendVariants
? _objc_msgSend_2cgrxlFpret(object$.ref.pointer, _sel_floatProperty)
: _objc_msgSend_2cgrxl(object$.ref.pointer, _sel_floatProperty);
}
/// init
PropertyInterface init() {
objc.checkOsVersionInternal(
'PropertyInterface.init',
iOS: (false, (2, 0, 0)),
macOS: (false, (10, 0, 0)),
);
final $ret = _objc_msgSend_151sglz(
object$.ref.retainAndReturnPointer(),
_sel_init,
);
return PropertyInterface.fromPointer($ret, retain: false, release: true);
}
/// instStaticSameName
int get instStaticSameName {
return _objc_msgSend_1gcq84o(object$.ref.pointer, _sel_instStaticSameName);
}
/// readOnlyProperty
int get readOnlyProperty {
return _objc_msgSend_1gcq84o(object$.ref.pointer, _sel_readOnlyProperty);
}
/// readWriteProperty
int get readWriteProperty {
return _objc_msgSend_1gcq84o(object$.ref.pointer, _sel_readWriteProperty);
}
/// setDoubleProperty:
set doubleProperty(double value) {
_objc_msgSend_hwm8nu(object$.ref.pointer, _sel_setDoubleProperty_, value);
}
/// setFloatProperty:
set floatProperty(double value) {
_objc_msgSend_v5hmet(object$.ref.pointer, _sel_setFloatProperty_, value);
}
/// setReadWriteProperty:
set readWriteProperty(int value) {
_objc_msgSend_1bqef4y(
object$.ref.pointer,
_sel_setReadWriteProperty_,
value,
);
}
/// setStructProperty:
set structProperty(Vec4 value) {
_objc_msgSend_188ryij(object$.ref.pointer, _sel_setStructProperty_, value);
}
/// structProperty
Vec4 get structProperty {
final $ptr = pkg_ffi.calloc<Vec4>();
objc.useMsgSendVariants
? _objc_msgSend_o6r21bStret(
$ptr,
object$.ref.pointer,
_sel_structProperty,
)
: $ptr.ref = _objc_msgSend_o6r21b(
object$.ref.pointer,
_sel_structProperty,
);
final $finalizable = $ptr.cast<ffi.Uint8>().asTypedList(
ffi.sizeOf<Vec4>(),
finalizer: pkg_ffi.calloc.nativeFree,
);
return ffi.Struct.create<Vec4>($finalizable);
}
}
/// WARNING: UndefinedTemplate is a stub. To generate bindings for this class, include
/// UndefinedTemplate in your config's objc-interfaces list.
///
/// UndefinedTemplate
extension type UndefinedTemplate._(objc.ObjCObject object$)
implements objc.ObjCObject {
/// Constructs a [UndefinedTemplate] that points to the same underlying object as [other].
UndefinedTemplate.as(objc.ObjCObject other) : object$ = other {}
/// Constructs a [UndefinedTemplate] that wraps the given raw object pointer.
UndefinedTemplate.fromPointer(
ffi.Pointer<objc.ObjCObjectImpl> other, {
bool retain = false,
bool release = false,
}) : object$ = objc.ObjCObject(other, retain: retain, release: release) {}
}
final class Vec4 extends ffi.Struct {
@ffi.Double()
external double x;
@ffi.Double()
external double y;
@ffi.Double()
external double z;
@ffi.Double()
external double w;
static ffi.Pointer<Vec4> $allocate(
ffi.Allocator $allocator, {
required double x,
required double y,
required double z,
required double w,
}) => $allocator<Vec4>()
..ref.x = x
..ref.y = y
..ref.z = z
..ref.w = w;
}
late final _class_PropertyInterface = objc.getClass("PropertyInterface");
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_188ryij = objc.msgSendPointer
.cast<
ffi.NativeFunction<
ffi.Void Function(
ffi.Pointer<objc.ObjCObjectImpl>,
ffi.Pointer<objc.ObjCSelector>,
Vec4,
)
>
>()
.asFunction<
void Function(
ffi.Pointer<objc.ObjCObjectImpl>,
ffi.Pointer<objc.ObjCSelector>,
Vec4,
)
>();
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_1ukqyt8 = objc.msgSendPointer
.cast<
ffi.NativeFunction<
ffi.Double Function(
ffi.Pointer<objc.ObjCObjectImpl>,
ffi.Pointer<objc.ObjCSelector>,
)
>
>()
.asFunction<
double Function(
ffi.Pointer<objc.ObjCObjectImpl>,
ffi.Pointer<objc.ObjCSelector>,
)
>();
final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer
.cast<
ffi.NativeFunction<
ffi.Double Function(
ffi.Pointer<objc.ObjCObjectImpl>,
ffi.Pointer<objc.ObjCSelector>,
)
>
>()
.asFunction<
double Function(
ffi.Pointer<objc.ObjCObjectImpl>,
ffi.Pointer<objc.ObjCSelector>,
)
>();
final _objc_msgSend_2cgrxl = objc.msgSendPointer
.cast<
ffi.NativeFunction<
ffi.Float Function(
ffi.Pointer<objc.ObjCObjectImpl>,
ffi.Pointer<objc.ObjCSelector>,
)
>
>()
.asFunction<
double Function(
ffi.Pointer<objc.ObjCObjectImpl>,
ffi.Pointer<objc.ObjCSelector>,
)
>();
final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer
.cast<
ffi.NativeFunction<
ffi.Float Function(
ffi.Pointer<objc.ObjCObjectImpl>,
ffi.Pointer<objc.ObjCSelector>,
)
>
>()
.asFunction<
double Function(
ffi.Pointer<objc.ObjCObjectImpl>,
ffi.Pointer<objc.ObjCSelector>,
)
>();
final _objc_msgSend_hwm8nu = objc.msgSendPointer
.cast<
ffi.NativeFunction<
ffi.Void Function(
ffi.Pointer<objc.ObjCObjectImpl>,
ffi.Pointer<objc.ObjCSelector>,
ffi.Double,
)
>
>()
.asFunction<
void Function(
ffi.Pointer<objc.ObjCObjectImpl>,
ffi.Pointer<objc.ObjCSelector>,
double,
)
>();
final _objc_msgSend_o6r21b = objc.msgSendPointer
.cast<
ffi.NativeFunction<
Vec4 Function(
ffi.Pointer<objc.ObjCObjectImpl>,
ffi.Pointer<objc.ObjCSelector>,
)
>
>()
.asFunction<
Vec4 Function(
ffi.Pointer<objc.ObjCObjectImpl>,
ffi.Pointer<objc.ObjCSelector>,
)
>();
final _objc_msgSend_o6r21bStret = objc.msgSendStretPointer
.cast<
ffi.NativeFunction<
ffi.Void Function(
ffi.Pointer<Vec4>,
ffi.Pointer<objc.ObjCObjectImpl>,
ffi.Pointer<objc.ObjCSelector>,
)
>
>()
.asFunction<
void Function(
ffi.Pointer<Vec4>,
ffi.Pointer<objc.ObjCObjectImpl>,
ffi.Pointer<objc.ObjCSelector>,
)
>();
final _objc_msgSend_v5hmet = objc.msgSendPointer
.cast<
ffi.NativeFunction<
ffi.Void Function(
ffi.Pointer<objc.ObjCObjectImpl>,
ffi.Pointer<objc.ObjCSelector>,
ffi.Float,
)
>
>()
.asFunction<
void Function(
ffi.Pointer<objc.ObjCObjectImpl>,
ffi.Pointer<objc.ObjCSelector>,
double,
)
>();
late final _sel_alloc = objc.registerName("alloc");
late final _sel_allocWithZone_ = objc.registerName("allocWithZone:");
late final _sel_classReadOnlyProperty = objc.registerName(
"classReadOnlyProperty",
);
late final _sel_classReadWriteProperty = objc.registerName(
"classReadWriteProperty",
);
late final _sel_doubleProperty = objc.registerName("doubleProperty");
late final _sel_floatProperty = objc.registerName("floatProperty");
late final _sel_init = objc.registerName("init");
late final _sel_instStaticSameName = objc.registerName("instStaticSameName");
late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:");
late final _sel_new = objc.registerName("new");
late final _sel_readOnlyProperty = objc.registerName("readOnlyProperty");
late final _sel_readWriteProperty = objc.registerName("readWriteProperty");
late final _sel_regressGH1268 = objc.registerName("regressGH1268");
late final _sel_regressGH436 = objc.registerName("regressGH436");
late final _sel_setClassReadWriteProperty_ = objc.registerName(
"setClassReadWriteProperty:",
);
late final _sel_setDoubleProperty_ = objc.registerName("setDoubleProperty:");
late final _sel_setFloatProperty_ = objc.registerName("setFloatProperty:");
late final _sel_setReadWriteProperty_ = objc.registerName(
"setReadWriteProperty:",
);
late final _sel_setStructProperty_ = objc.registerName("setStructProperty:");
late final _sel_structProperty = objc.registerName("structProperty");
typedef instancetype = ffi.Pointer<objc.ObjCObjectImpl>;
typedef Dartinstancetype = objc.ObjCObject;