Skip to content

Instantly share code, notes, and snippets.

@tj-devel709
Created July 15, 2019 21:25
Show Gist options
  • Save tj-devel709/101db4d6df4ffe34ca403f841320a9b7 to your computer and use it in GitHub Desktop.
Save tj-devel709/101db4d6df4ffe34ca403f841320a9b7 to your computer and use it in GitHub Desktop.
//
// Auto-generated from generator.cs, do not edit
//
// We keep references to objects, so warning 414 is expected
#pragma warning disable 414
using System;
using System.Drawing;
using System.Diagnostics;
using System.ComponentModel;
using System.Threading.Tasks;
using System.Runtime.InteropServices;
using UIKit;
using GLKit;
using Metal;
using CoreML;
using MapKit;
using Photos;
using ModelIO;
using SceneKit;
using Contacts;
using Security;
using Messages;
using AudioUnit;
using CoreVideo;
using CoreMedia;
using QuickLook;
using CoreImage;
using SpriteKit;
using Foundation;
using CoreMotion;
using ObjCRuntime;
using AddressBook;
using MediaPlayer;
using GameplayKit;
using CoreGraphics;
using CoreLocation;
using AVFoundation;
using NewsstandKit;
using FileProvider;
using CoreAnimation;
using CoreFoundation;
namespace GameController {
[Register("GCMotion", true)]
[Introduced (PlatformName.iOS, 8,0, PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,10, PlatformArchitecture.Arch64)]
[Introduced (PlatformName.TvOS, 13,0, PlatformArchitecture.All)]
public unsafe partial class GCMotion : NSObject {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static readonly IntPtr class_ptr = Class.GetHandle ("GCMotion");
public override IntPtr ClassHandle { get { return class_ptr; } }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[EditorBrowsable (EditorBrowsableState.Advanced)]
protected GCMotion (NSObjectFlag t) : base (t)
{
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[EditorBrowsable (EditorBrowsableState.Advanced)]
protected internal GCMotion (IntPtr handle) : base (handle)
{
}
[Export ("setAttitude:")]
[Introduced (PlatformName.TvOS, 13,0, PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,15, PlatformArchitecture.Arch64)]
[Introduced (PlatformName.iOS, 13,0, PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual void SetAttitude (GCQuaternion attitude)
{
#if ARCH_32
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
#else
if (IsDirectBinding) {
global::ObjCRuntime.Messaging.void_objc_msgSend_GCQuaternion (this.Handle, Selector.GetHandle ("setAttitude:"), attitude);
} else {
global::ObjCRuntime.Messaging.void_objc_msgSendSuper_GCQuaternion (this.SuperHandle, Selector.GetHandle ("setAttitude:"), attitude);
}
#endif
}
[Export ("setGravity:")]
[Introduced (PlatformName.TvOS, 13,0, PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,15, PlatformArchitecture.Arch64)]
[Introduced (PlatformName.iOS, 13,0, PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual void SetGravity (GCAcceleration gravity)
{
#if ARCH_32
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
#else
if (IsDirectBinding) {
global::ObjCRuntime.Messaging.void_objc_msgSend_GCAcceleration (this.Handle, Selector.GetHandle ("setGravity:"), gravity);
} else {
global::ObjCRuntime.Messaging.void_objc_msgSendSuper_GCAcceleration (this.SuperHandle, Selector.GetHandle ("setGravity:"), gravity);
}
#endif
}
[Export ("setRotationRate:")]
[Introduced (PlatformName.TvOS, 13,0, PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,15, PlatformArchitecture.Arch64)]
[Introduced (PlatformName.iOS, 13,0, PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual void SetRotationRate (GCRotationRate rotationRate)
{
#if ARCH_32
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
#else
if (IsDirectBinding) {
global::ObjCRuntime.Messaging.void_objc_msgSend_GCRotationRate (this.Handle, Selector.GetHandle ("setRotationRate:"), rotationRate);
} else {
global::ObjCRuntime.Messaging.void_objc_msgSendSuper_GCRotationRate (this.SuperHandle, Selector.GetHandle ("setRotationRate:"), rotationRate);
}
#endif
}
[Export ("setStateFromMotion:")]
[Introduced (PlatformName.TvOS, 13,0, PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,15, PlatformArchitecture.Arch64)]
[Introduced (PlatformName.iOS, 13,0, PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual void SetState (GCMotion motion)
{
#if ARCH_32
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
#else
if (motion == null)
throw new ArgumentNullException ("motion");
if (IsDirectBinding) {
global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setStateFromMotion:"), motion.Handle);
} else {
global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setStateFromMotion:"), motion.Handle);
}
#endif
}
[Export ("setUserAcceleration:")]
[Introduced (PlatformName.TvOS, 13,0, PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,15, PlatformArchitecture.Arch64)]
[Introduced (PlatformName.iOS, 13,0, PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual void SetUserAcceleration (GCAcceleration userAcceleration)
{
#if ARCH_32
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
#else
if (IsDirectBinding) {
global::ObjCRuntime.Messaging.void_objc_msgSend_GCAcceleration (this.Handle, Selector.GetHandle ("setUserAcceleration:"), userAcceleration);
} else {
global::ObjCRuntime.Messaging.void_objc_msgSendSuper_GCAcceleration (this.SuperHandle, Selector.GetHandle ("setUserAcceleration:"), userAcceleration);
}
#endif
}
[Obsolete ("Use the 'ValueChangedHandler' property.", false)]
[EditorBrowsable (EditorBrowsableState.Never)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual void SetValueChangedHandler ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V51))]global::System.Action<GCMotion> handler)
{
ValueChangedHandler = handler;;
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.TvOS, 11,0, PlatformArchitecture.All)]
public virtual global::OpenTK.Quaterniond Attitude {
[Introduced (PlatformName.TvOS, 11,0, PlatformArchitecture.All)]
[Export ("attitude", ArgumentSemantic.UnsafeUnretained)]
get {
global::OpenTK.Quaterniond ret;
if (IsDirectBinding) {
if (Runtime.Arch == Arch.DEVICE) {
if (IntPtr.Size == 8) {
ret = global::ObjCRuntime.Messaging.Quaterniond_objc_msgSend (this.Handle, Selector.GetHandle ("attitude"));
} else {
global::ObjCRuntime.Messaging.Quaterniond_objc_msgSend_stret (out ret, this.Handle, Selector.GetHandle ("attitude"));
}
} else if (IntPtr.Size == 8) {
global::ObjCRuntime.Messaging.Quaterniond_objc_msgSend_stret (out ret, this.Handle, Selector.GetHandle ("attitude"));
} else {
global::ObjCRuntime.Messaging.Quaterniond_objc_msgSend_stret (out ret, this.Handle, Selector.GetHandle ("attitude"));
}
} else {
if (Runtime.Arch == Arch.DEVICE) {
if (IntPtr.Size == 8) {
ret = global::ObjCRuntime.Messaging.Quaterniond_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("attitude"));
} else {
global::ObjCRuntime.Messaging.Quaterniond_objc_msgSendSuper_stret (out ret, this.SuperHandle, Selector.GetHandle ("attitude"));
}
} else if (IntPtr.Size == 8) {
global::ObjCRuntime.Messaging.Quaterniond_objc_msgSendSuper_stret (out ret, this.SuperHandle, Selector.GetHandle ("attitude"));
} else {
global::ObjCRuntime.Messaging.Quaterniond_objc_msgSendSuper_stret (out ret, this.SuperHandle, Selector.GetHandle ("attitude"));
}
}
return ret;
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
object __mt_Controller_var;
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual GCController Controller {
[Export ("controller", ArgumentSemantic.UnsafeUnretained)]
get {
GCController ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObject<GCController> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("controller")));
} else {
ret = Runtime.GetNSObject<GCController> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("controller")));
}
MarkDirty ();
__mt_Controller_var = ret;
return ret;
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual global::OpenTK.Vector3d Gravity {
[Export ("gravity", ArgumentSemantic.UnsafeUnretained)]
get {
global::OpenTK.Vector3d ret;
if (IsDirectBinding) {
if (Runtime.Arch == Arch.DEVICE) {
if (IntPtr.Size == 8) {
ret = global::ObjCRuntime.Messaging.Vector3d_objc_msgSend (this.Handle, Selector.GetHandle ("gravity"));
} else {
global::ObjCRuntime.Messaging.Vector3d_objc_msgSend_stret (out ret, this.Handle, Selector.GetHandle ("gravity"));
}
} else if (IntPtr.Size == 8) {
global::ObjCRuntime.Messaging.Vector3d_objc_msgSend_stret (out ret, this.Handle, Selector.GetHandle ("gravity"));
} else {
global::ObjCRuntime.Messaging.Vector3d_objc_msgSend_stret (out ret, this.Handle, Selector.GetHandle ("gravity"));
}
} else {
if (Runtime.Arch == Arch.DEVICE) {
if (IntPtr.Size == 8) {
ret = global::ObjCRuntime.Messaging.Vector3d_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("gravity"));
} else {
global::ObjCRuntime.Messaging.Vector3d_objc_msgSendSuper_stret (out ret, this.SuperHandle, Selector.GetHandle ("gravity"));
}
} else if (IntPtr.Size == 8) {
global::ObjCRuntime.Messaging.Vector3d_objc_msgSendSuper_stret (out ret, this.SuperHandle, Selector.GetHandle ("gravity"));
} else {
global::ObjCRuntime.Messaging.Vector3d_objc_msgSendSuper_stret (out ret, this.SuperHandle, Selector.GetHandle ("gravity"));
}
}
return ret;
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.TvOS, 11,0, PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,13, PlatformArchitecture.Arch64)]
public virtual bool HasAttitudeAndRotationRate {
[Introduced (PlatformName.TvOS, 11,0, PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,13, PlatformArchitecture.Arch64)]
[Export ("hasAttitudeAndRotationRate")]
get {
#if ARCH_32
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
#else
if (IsDirectBinding) {
return global::ObjCRuntime.Messaging.bool_objc_msgSend (this.Handle, Selector.GetHandle ("hasAttitudeAndRotationRate"));
} else {
return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("hasAttitudeAndRotationRate"));
}
#endif
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.TvOS, 11,0, PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,13, PlatformArchitecture.All)]
public virtual global::OpenTK.Vector3d RotationRate {
[Introduced (PlatformName.TvOS, 11,0, PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,13, PlatformArchitecture.All)]
[Export ("rotationRate", ArgumentSemantic.UnsafeUnretained)]
get {
#if ARCH_32
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
#else
global::OpenTK.Vector3d ret;
if (IsDirectBinding) {
if (Runtime.Arch == Arch.DEVICE) {
if (IntPtr.Size == 8) {
ret = global::ObjCRuntime.Messaging.Vector3d_objc_msgSend (this.Handle, Selector.GetHandle ("rotationRate"));
} else {
global::ObjCRuntime.Messaging.Vector3d_objc_msgSend_stret (out ret, this.Handle, Selector.GetHandle ("rotationRate"));
}
} else if (IntPtr.Size == 8) {
global::ObjCRuntime.Messaging.Vector3d_objc_msgSend_stret (out ret, this.Handle, Selector.GetHandle ("rotationRate"));
} else {
global::ObjCRuntime.Messaging.Vector3d_objc_msgSend_stret (out ret, this.Handle, Selector.GetHandle ("rotationRate"));
}
} else {
if (Runtime.Arch == Arch.DEVICE) {
if (IntPtr.Size == 8) {
ret = global::ObjCRuntime.Messaging.Vector3d_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("rotationRate"));
} else {
global::ObjCRuntime.Messaging.Vector3d_objc_msgSendSuper_stret (out ret, this.SuperHandle, Selector.GetHandle ("rotationRate"));
}
} else if (IntPtr.Size == 8) {
global::ObjCRuntime.Messaging.Vector3d_objc_msgSendSuper_stret (out ret, this.SuperHandle, Selector.GetHandle ("rotationRate"));
} else {
global::ObjCRuntime.Messaging.Vector3d_objc_msgSendSuper_stret (out ret, this.SuperHandle, Selector.GetHandle ("rotationRate"));
}
}
return ret;
#endif
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual global::OpenTK.Vector3d UserAcceleration {
[Export ("userAcceleration", ArgumentSemantic.UnsafeUnretained)]
get {
global::OpenTK.Vector3d ret;
if (IsDirectBinding) {
if (Runtime.Arch == Arch.DEVICE) {
if (IntPtr.Size == 8) {
ret = global::ObjCRuntime.Messaging.Vector3d_objc_msgSend (this.Handle, Selector.GetHandle ("userAcceleration"));
} else {
global::ObjCRuntime.Messaging.Vector3d_objc_msgSend_stret (out ret, this.Handle, Selector.GetHandle ("userAcceleration"));
}
} else if (IntPtr.Size == 8) {
global::ObjCRuntime.Messaging.Vector3d_objc_msgSend_stret (out ret, this.Handle, Selector.GetHandle ("userAcceleration"));
} else {
global::ObjCRuntime.Messaging.Vector3d_objc_msgSend_stret (out ret, this.Handle, Selector.GetHandle ("userAcceleration"));
}
} else {
if (Runtime.Arch == Arch.DEVICE) {
if (IntPtr.Size == 8) {
ret = global::ObjCRuntime.Messaging.Vector3d_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("userAcceleration"));
} else {
global::ObjCRuntime.Messaging.Vector3d_objc_msgSendSuper_stret (out ret, this.SuperHandle, Selector.GetHandle ("userAcceleration"));
}
} else if (IntPtr.Size == 8) {
global::ObjCRuntime.Messaging.Vector3d_objc_msgSendSuper_stret (out ret, this.SuperHandle, Selector.GetHandle ("userAcceleration"));
} else {
global::ObjCRuntime.Messaging.Vector3d_objc_msgSendSuper_stret (out ret, this.SuperHandle, Selector.GetHandle ("userAcceleration"));
}
}
return ret;
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::System.Action<GCMotion> ValueChangedHandler {
[return: DelegateProxy (typeof (ObjCRuntime.Trampolines.SDActionArity1V51))]
[Export ("valueChangedHandler", ArgumentSemantic.Copy)]
get {
IntPtr ret;
if (IsDirectBinding) {
ret = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("valueChangedHandler"));
} else {
ret = global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("valueChangedHandler"));
}
return global::ObjCRuntime.Trampolines.NIDActionArity1V51.Create (ret);
}
[param: BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V51))]
[Export ("setValueChangedHandler:", ArgumentSemantic.Copy)]
set {
BlockLiteral *block_ptr_value;
BlockLiteral block_value;
block_value = new BlockLiteral ();
block_ptr_value = &block_value;
block_value.SetupBlockUnsafe (Trampolines.SDActionArity1V51.Handler, value);
if (IsDirectBinding) {
global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setValueChangedHandler:"), (IntPtr) block_ptr_value);
} else {
global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setValueChangedHandler:"), (IntPtr) block_ptr_value);
}
block_ptr_value->CleanupBlock ();
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
protected override void Dispose (bool disposing)
{
base.Dispose (disposing);
if (Handle == IntPtr.Zero) {
__mt_Controller_var = null;
}
}
} /* class GCMotion */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment