// Generated API outline. Implementation bodies omitted.
#nullable enable
namespace Xui.GPU.Hardware.Metal
{
using NativeMetal = global::Xui.Runtime.IOS.Metal;
using System;
///
/// Apple Metal hardware GPU device implementation.
/// Provides hardware-accelerated shader compilation and rendering on macOS and iOS.
///
///
/// This backend uses the Metal framework for rendering and the Metal shader compiler
/// for MSL shader compilation. Supports offscreen readback targets and native MTKView presentation targets.
///
public sealed partial class IOSGpuDevice : IGpuResourceDevice
{
/// Gets the name of this GPU backend (e.g., "D3D11", "Metal").
public string BackendName { get; }
/// Gets whether this device has been disposed.
public bool IsDisposed { get; }
///
/// Creates a new Metal GPU device using the system default device.
///
/// Thrown if no Metal device is available.
public IOSGpuDevice();
///
/// Compiles a vertex shader from native shader source code.
///
/// The shader source (HLSL for D3D11, MSL for Metal).
/// The name of the entry point function.
/// A compiled vertex shader.
public IGpuVertexShader CompileVertexShader(string source, string entryPoint);
///
/// Compiles a fragment (pixel) shader from native shader source code.
///
/// The shader source (HLSL for D3D11, MSL for Metal).
/// The name of the entry point function.
/// A compiled fragment shader.
public IGpuFragmentShader CompileFragmentShader(string source, string entryPoint);
///
/// Creates a render target texture.
///
/// Width in pixels.
/// Height in pixels.
/// A render target that can be used with a command list.
public IGpuRenderTarget CreateRenderTarget(int width, int height);
///
/// Creates a command list for recording rendering commands.
///
public IGpuCommandList CreateCommandList();
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose();
}
}
namespace Xui.GPU.Hardware.Metal
{
using NativeMetal = global::Xui.Runtime.IOS.Metal;
using System.Collections.Generic;
using System;
using Xui.GPU.Shaders.Types;
///
/// Apple Metal hardware GPU device implementation.
/// Provides hardware-accelerated shader compilation and rendering on macOS and iOS.
///
///
/// This backend uses the Metal framework for rendering and the Metal shader compiler
/// for MSL shader compilation. Supports offscreen readback targets and native MTKView presentation targets.
///
public sealed partial class IOSGpuDevice
{
/// Uploads premultiplied RGBA8 mip levels, largest first, with tightly packed rows.
public unsafe IGpuTexture CreateSampledTexture(int width, int height, IReadOnlyList mipLevels);
/// Uploads immutable vertices once. The caller owns the returned buffer.
public unsafe IGpuVertexBuffer CreateVertexBuffer(ReadOnlySpan vertices, int stride);
}
}
namespace Xui.Runtime.IOS
{
using System.Runtime.InteropServices;
using System;
using static Xui.Runtime.IOS.Foundation;
using static Xui.Runtime.IOS.ObjC;
public static partial class CoreAnimation
{
public partial class CADisplayLink : NSObject
{
[StructLayout(LayoutKind.Sequential)]
public readonly struct FrameRateRange
{
public FrameRateRange(float minimum, float maximum, float preferred);
public float Minimum { get; }
public float Maximum { get; }
public float Preferred { get; }
}
public static new readonly Class Class;
public static readonly Sel TimestampSel;
public static readonly Sel TargetTimestampSel;
public static readonly Sel SetPreferredFramesPerSecondSel;
public static readonly Sel SetPreferredFrameRateRangeSel;
public static readonly Sel DisplayLinkWithTargetSelector;
public static readonly Sel AddToRunLoopForModeSel;
public static readonly Sel RemoveFromRunLoopForModeSel;
public CADisplayLink(nint id);
public TimeSpan Timestamp { get; }
public TimeSpan TargetTimestamp { get; }
/// Sets the preferred display-link callback frequency in hertz.
public int PreferredFramesPerSecond { set; }
///
/// Requests an iOS 15+ callback-rate range. The system treats this as a
/// preference, and may still select a lower rate for power, thermal, or
/// accessibility policy.
///
public FrameRateRange PreferredFrameRateRange { set; }
public void AddToRunLoopForMode(NSRunLoop runloop, NSRunLoop.Mode mode);
public void RemoveToRunLoopForMode(NSRunLoop runloop, NSRunLoop.Mode mode);
public static CADisplayLink DisplayLink(nint target, nint selector);
}
}
}
namespace Xui.Runtime.IOS
{
using System.Runtime.InteropServices;
public static partial class CoreAnimation
{
public const string CoreAnimationLib = "/System/Library/Frameworks/QuartzCore.framework/QuartzCore";
public static readonly nint Lib;
}
public static partial class CoreFoundation
{
public enum CFNumberType : long
{
SInt8 = 1,
SInt16 = 2,
SInt32 = 3,
SInt64 = 4,
Float32 = 5,
Float64 = 6,
Char = 7,
Short = 8,
Int = 9,
Long = 10,
LongLong = 11,
Float = 12,
Double = 13,
CFIndex = 14,
NSInteger = 15,
CGFloat = 16,
Max = 16
}
}
public static partial class CoreGraphics
{
public ref partial struct CGColorRef
{
public readonly nint Self;
public CGColorRef(nint self);
public static CGColorRef RGBA(NFloat red, NFloat green, NFloat blue, NFloat alpha);
public void Dispose();
public static implicit operator nint(CGColorRef cfColorRef);
}
}
public static partial class CoreGraphics
{
public ref partial struct CGColorSpaceRef
{
public readonly nint Self;
public static CGColorSpaceRef CreateDeviceRGB();
public CGColorSpaceRef(nint self);
public void Dispose();
public static implicit operator nint(CGColorSpaceRef cfColorRef);
}
}
public static partial class CoreGraphics
{
public ref partial struct CGContextRef
{
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextRelease(nint self);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextSetRGBFillColor(nint cgContextRef, NFloat red, NFloat green, NFloat blue, NFloat alpha);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextSetRGBStrokeColor(nint cgContextRef, NFloat red, NFloat green, NFloat blue, NFloat alpha);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextSetLineWidth(nint cgContextRef, NFloat width);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextFillRect(nint cgContextRef, CGRect rect);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextStrokeRect(nint cgContextRef, CGRect rect);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextAddPath(nint cgContextRef, nint cgPathRef);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextMoveToPoint(nint cgContextRef, NFloat x, NFloat y);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextAddLineToPoint(nint cgContextRef, NFloat x, NFloat y);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextAddRect(nint cgContextRef, CGRect cgRect);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextAddArc(nint cgContextRef, NFloat x, NFloat y, NFloat radius, NFloat startAngle, NFloat endAngle, int clockwise);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextAddArcToPoint(nint cgContextRef, NFloat x1, NFloat y1, NFloat x2, NFloat y2, NFloat radius);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextAddQuadCurveToPoint(nint c, NFloat cpx, NFloat cpy, NFloat x, NFloat y);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextAddCurveToPoint(nint c, NFloat cp1x, NFloat cp1y, NFloat cp2x, NFloat cp2y, NFloat x, NFloat y);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextBeginPath(nint cgContextRef);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextClosePath(nint cgContextRef);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextClip(nint cgContextRef);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextClipToRect(nint c, CGRect rect);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextEOClip(nint cgContextRef);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextSetAlpha(nint cgContextRef, NFloat alpha);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextSetLineCap(nint cgContextRef, CGLineCap cap);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextSetLineJoin(nint cgContextRef, CGLineJoin join);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextSetMiterLimit(nint cgContextRef, NFloat limit);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextFillPath(nint cgContextRef);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextEOFillPath(nint cgContextRef);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextStrokePath(nint cgContextRef);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextDrawLinearGradient(nint cgContextRef, nint cgGradientRef, CGPoint startPoint, CGPoint endPoint, uint options = 3);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextDrawRadialGradient(nint cgContextRef, nint cgGradientRef, CGPoint startCenter, NFloat startRadius, CGPoint endCenter, NFloat endRadius, uint options = 3);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextDrawImage(nint cgContextRef, CGRect rect, nint image);
[LibraryImport(CoreGraphicsLib)]
public static partial CGRect CGContextGetClipBoundingBox(nint cgContextRef);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextReplacePathWithStrokedPath(nint cgContextRef);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextSaveGState(nint cgContextRef);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextRestoreGState(nint cgContextRef);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextConcatCTM(nint cgContextRef, CGAffineTransform transform);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextSetLineDash(nint c, NFloat phase, ref NFloat cgFloatArrPtr, nint count);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextSetLineDash(nint c, NFloat phase, nint cgFloatArrPtr, nint count);
[LibraryImport(CoreGraphicsLib)]
public static partial CGAffineTransform CGContextGetCTM(nint cgContextRef);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextRotateCTM(nint cgContextRef, NFloat angle);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextScaleCTM(nint cgContextRef, NFloat sx, NFloat sy);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextTranslateCTM(nint cgContextRef, NFloat tx, NFloat ty);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextSetTextDrawingMode(nint cgContextRef, CGTextDrawingMode mode);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextBeginTransparencyLayer(nint cgContextRef, nint auxiliaryInfo);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextEndTransparencyLayer(nint cgContextRef);
[LibraryImport(CoreGraphicsLib)]
public static partial void CGContextSetBlendMode(nint cgContextRef, CGBlendMode blendMode);
[LibraryImport(CoreGraphicsLib)]
public static partial nint UIGraphicsGetCurrentContext();
public readonly nint Self;
public CGContextRef(nint self);
public CGAffineTransform Transform { get; }
public NFloat Alpha { set; }
public CGLineCap LineCap { set; }
public CGLineJoin LineJoin { set; }
public CGAffineTransform CTM { get; }
public void SetRGBFillColor(NFloat red, NFloat green, NFloat blue, NFloat alpha);
public void SetRGBStrokeColor(NFloat red, NFloat green, NFloat blue, NFloat alpha);
public void SetLineWidth(NFloat width);
public void SetMiterLimit(NFloat limit);
public void FillRect(CGRect rect);
public void StrokeRect(CGRect rect);
public void AddPath(CGPathRef path);
public void AddRect(CGRect rect);
public void MoveToPoint(NFloat x, NFloat y);
public void LineToPoint(NFloat x, NFloat y);
public void AddArc(NFloat x, NFloat y, NFloat radius, NFloat startAngle, NFloat endAngle, bool clockwise);
public void AddArcToPoint(NFloat x1, NFloat y1, NFloat x2, NFloat y2, NFloat radius);
public void CGContextAddQuadCurveToPoint(NFloat cpx, NFloat cpy, NFloat x, NFloat y);
public void CGContextAddCurveToPoint(NFloat cp1x, NFloat cp1y, NFloat cp2x, NFloat cp2y, NFloat x, NFloat y);
public void BeginPath();
public void ClosePath();
public void Clip();
public void EOClip();
public void EOFillPath();
public void FillPath();
public void StrokePath();
public void DrawLinearGradient(CGGradientRef gradient, CGPoint startPoint, CGPoint endPoint);
public void DrawRadialGradient(CGGradientRef gradient, CGPoint startCenter, NFloat startRadius, CGPoint endCenter, NFloat endRadius);
public void SaveGState();
public void RestoreGState();
public void ReplacePathWithStrokedPath();
public void ConcatCTM(CGAffineTransform transform);
public void RotateCTM(NFloat angle);
public void ScaleCTM(NFloat sx, NFloat sy);
public void TranslateCTM(NFloat tx, NFloat ty);
public static implicit operator nint(CGContextRef path);
public void Dispose();
}
}
public static partial class CoreGraphics
{
public ref partial struct CGMutablePathRef
{
public readonly nint Self;
public CGMutablePathRef(nint self);
public CGMutablePathRef();
public void MoveTo(NFloat x, NFloat y);
public void LineTo(NFloat x, NFloat y);
public void Close();
public void Dispose();
public static implicit operator nint(CGMutablePathRef cfColorRef);
}
}
public static partial class CoreGraphics
{
public ref partial struct CGPathRef
{
public readonly nint Self;
[LibraryImport(CoreGraphicsLib)]
public static partial nint CGPathCreateWithRoundedRect(CGRect rect, NFloat cornerWidth, NFloat cornerHeight, nint cgAffineTransformPtr = 0);
[LibraryImport(CoreGraphicsLib)]
public static partial nint CGPathCreateWithRoundedRect(CGRect rect, NFloat cornerWidth, NFloat cornerHeight, ref CGAffineTransform transform);
public static CGPathRef CreateWithRoundedRect(CGRect rect, NFloat radius);
public CGPathRef(nint self);
public void Dispose();
public static implicit operator nint(CGPathRef cfColorRef);
}
}
public static partial class CoreGraphics
{
public const string CoreGraphicsLib = "/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics";
public static readonly nint Lib;
}
public static partial class CoreText
{
public const string CoreTextLib = "/System/Library/Frameworks/CoreText.framework/CoreText";
public static readonly nint Lib;
[LibraryImport(CoreTextLib)]
public static partial nint NSSelectorFromString(nint selector);
[LibraryImport(CoreTextLib)]
[return: MarshalAs(UnmanagedType.I1)]
public static partial bool CTFontManagerRegisterFontsForURL(nint fontUrl, uint scope, out nint error);
}
public static partial class Foundation
{
public const string FoundationLib = "/System/Library/Frameworks/Foundation.framework/Foundation";
public static readonly nint Lib;
[LibraryImport(FoundationLib)]
public static partial nint NSStringFromClass(nint cls);
[LibraryImport(FoundationLib)]
public static partial nint NSClassFromString(nint name);
}
public static partial class Foundation
{
public partial class NSAttributedString
{
public class Key : NSString
{
public static readonly Key BackgroundColor;
public static readonly Key BaselineOffset;
public static readonly Key Font;
public static readonly Key ForegroundColor;
public static readonly Key GlyphInfo;
public static readonly Key Kern;
public static readonly Key Ligature;
public static readonly Key ParagraphStyle;
public static readonly Key StrikethroughColor;
public static readonly Key StrikethroughStyle;
public static readonly Key StrokeColor;
public static readonly Key StrokeWidth;
public static readonly Key Superscript;
public static readonly Key Tracking;
public static readonly Key UnderlineColor;
public static readonly Key UnderlineStyle;
public static readonly Key WritingDirection;
}
}
}
public static partial class ImageIO
{
public const string ImageIOLib = "/System/Library/Frameworks/ImageIO.framework/ImageIO";
public static readonly nint Lib;
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static partial class Metal
{
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static partial class ObjC
{
public class NSObject : Ref
{
public static readonly Class Class;
public static readonly Sel AutoreleaseSel;
public NSObject(nint id);
public virtual NSObject Autorelease();
}
}
public static partial class UIKit
{
public struct UIEdgeInsets
{
public NFloat Top;
public NFloat Left;
public NFloat Bottom;
public NFloat Right;
}
}
}
namespace Xui.Runtime.IOS
{
public static unsafe partial class CoreAnimation
{
public unsafe partial class CADisplayLink
{
}
}
public static unsafe partial class CoreFoundation
{
public unsafe partial class CFDataRef
{
}
}
public static unsafe partial class CoreFoundation
{
public unsafe partial class CFDataRef
{
}
}
public static unsafe partial class CoreFoundation
{
public unsafe ref partial struct CFMutableArrayRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", EntryPoint = "CFArrayCreateMutable", ExactSpelling = true)]
public static extern partial nint CFArrayCreateMutable(nint allocator, nint capacity, nint callbacks);
}
}
public static unsafe partial class CoreFoundation
{
public unsafe ref partial struct CFMutableArrayRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", EntryPoint = "CFArrayAppendValue", ExactSpelling = true)]
public static extern partial void CFArrayAppendValue(nint cfMutableArrayRef, nint value);
}
}
public static unsafe partial class CoreFoundation
{
public unsafe ref partial struct CFMutableDictionaryRef
{
}
}
public static unsafe partial class CoreFoundation
{
public unsafe ref partial struct CFMutableDictionaryRef
{
}
}
public static unsafe partial class CoreFoundation
{
public unsafe ref partial struct CFNumberRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", EntryPoint = "CFNumberCreate", ExactSpelling = true)]
public static extern partial nint CFNumberCreate(nint allocator, global::Xui.Runtime.IOS.CoreFoundation.CFNumberType theType, uint valuePtr);
}
}
public static unsafe partial class CoreFoundation
{
public unsafe ref partial struct CFNumberRef
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial nint CFNumberCreate(nint allocator, global::Xui.Runtime.IOS.CoreFoundation.CFNumberType theType, ref int valuePtr);
}
}
public static unsafe partial class CoreFoundation
{
public unsafe ref partial struct CFNumberRef
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial nint CFNumberCreate(nint allocator, global::Xui.Runtime.IOS.CoreFoundation.CFNumberType theType, ref global::System.Runtime.InteropServices.NFloat valuePtr);
}
}
public static unsafe partial class CoreFoundation
{
public unsafe ref partial struct CFSetRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", EntryPoint = "CFSetGetCount", ExactSpelling = true)]
public static extern partial nint CFSetGetCount(nint cfSetRef);
}
}
public static unsafe partial class CoreFoundation
{
public unsafe ref partial struct CFSetRef
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial nint CFSetGetValues(global::Xui.Runtime.IOS.CoreFoundation.CFSetRef theSet, ref nint arrayOfValuePtrs);
}
}
public static unsafe partial class CoreFoundation
{
public unsafe ref partial struct CFURLRef
{
}
}
public static unsafe partial class CoreFoundation
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", EntryPoint = "CFRelease", ExactSpelling = true)]
public static extern partial void CFRelease(nint obj);
}
public static unsafe partial class CoreFoundation
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", EntryPoint = "CFGetRetainCount", ExactSpelling = true)]
public static extern partial nint CFGetRetainCount(nint obj);
}
public static unsafe partial class CoreFoundation
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", EntryPoint = "CFHash", ExactSpelling = true)]
public static extern partial nuint CFHash(nint cf);
}
public static unsafe partial class CoreFoundation
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial bool CFEqual(nint cf1, nint cf2);
}
public static unsafe partial class CoreFoundation
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial string CFStringGetCStringPtr(nint obj);
}
public static unsafe partial class CoreFoundation
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", EntryPoint = "CFStringGetCString", ExactSpelling = true)]
public static extern partial nint CFStringGetCString(nint obj);
}
public static unsafe partial class CoreFoundation
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", EntryPoint = "CFRetain", ExactSpelling = true)]
public static extern partial nint CFRetain(nint obj);
}
public static unsafe partial class CoreFoundation
{
}
public static unsafe partial class CoreFoundation
{
}
public static partial class CoreGraphics
{
public enum CGBlendMode : int
{
Normal = 0,
SourceIn = 18,
}
}
public static partial class CoreGraphics
{
///
/// This is not 64 bit on 64 bit architecture, it is defined as int32_t.
///
public enum CGTextDrawingMode : int
{
Fill = 0,
Stroke = 1,
FillStroke = 2,
Invisible = 3,
FillClip = 4,
StrokeClip = 5,
FillStrokeClip = 6,
Clip = 7,
}
}
public static partial class CoreGraphics
{
///
/// This is not 64 bit on 64 bit architecture, it is defined as int32_t.
///
public enum CGLineCap : int
{
Butt = 0,
Round = 1,
Square = 2
}
}
public static partial class CoreGraphics
{
///
/// This is not 64 bit on 64 bit architecture, it is defined as int32_t.
///
public enum CGLineJoin : int
{
Miter = 0,
Round = 1,
Bevel = 2
}
}
public static unsafe partial class CoreGraphics
{
///
/// Affine transformation matrix in the form:
///
/// | A B 0 |
/// | C D 0 |
/// | Tx Ty 1 |
///
/// Transforming a vector:
///
/// | A B 0 |
/// [x' y' 1] = [x y 1] * | C D 0 |
/// | Tx Ty 1 |
///
public unsafe partial struct CGAffineTransform
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGAffineTransformInvert", ExactSpelling = true)]
public static extern partial global::Xui.Runtime.IOS.CoreGraphics.CGAffineTransform CGAffineTransformInvert(global::Xui.Runtime.IOS.CoreGraphics.CGAffineTransform t);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGColorRef
{
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGColorRef
{
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGColorSpaceRef
{
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGColorSpaceRef
{
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextRelease", ExactSpelling = true)]
public static extern partial void CGContextRelease(nint self);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextSetRGBFillColor", ExactSpelling = true)]
public static extern partial void CGContextSetRGBFillColor(nint cgContextRef, global::System.Runtime.InteropServices.NFloat red, global::System.Runtime.InteropServices.NFloat green, global::System.Runtime.InteropServices.NFloat blue, global::System.Runtime.InteropServices.NFloat alpha);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextSetRGBStrokeColor", ExactSpelling = true)]
public static extern partial void CGContextSetRGBStrokeColor(nint cgContextRef, global::System.Runtime.InteropServices.NFloat red, global::System.Runtime.InteropServices.NFloat green, global::System.Runtime.InteropServices.NFloat blue, global::System.Runtime.InteropServices.NFloat alpha);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextSetLineWidth", ExactSpelling = true)]
public static extern partial void CGContextSetLineWidth(nint cgContextRef, global::System.Runtime.InteropServices.NFloat width);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextFillRect", ExactSpelling = true)]
public static extern partial void CGContextFillRect(nint cgContextRef, global::Xui.Runtime.IOS.CoreGraphics.CGRect rect);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextStrokeRect", ExactSpelling = true)]
public static extern partial void CGContextStrokeRect(nint cgContextRef, global::Xui.Runtime.IOS.CoreGraphics.CGRect rect);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextAddPath", ExactSpelling = true)]
public static extern partial void CGContextAddPath(nint cgContextRef, nint cgPathRef);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextMoveToPoint", ExactSpelling = true)]
public static extern partial void CGContextMoveToPoint(nint cgContextRef, global::System.Runtime.InteropServices.NFloat x, global::System.Runtime.InteropServices.NFloat y);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextAddLineToPoint", ExactSpelling = true)]
public static extern partial void CGContextAddLineToPoint(nint cgContextRef, global::System.Runtime.InteropServices.NFloat x, global::System.Runtime.InteropServices.NFloat y);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextAddRect", ExactSpelling = true)]
public static extern partial void CGContextAddRect(nint cgContextRef, global::Xui.Runtime.IOS.CoreGraphics.CGRect cgRect);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextAddArc", ExactSpelling = true)]
public static extern partial void CGContextAddArc(nint cgContextRef, global::System.Runtime.InteropServices.NFloat x, global::System.Runtime.InteropServices.NFloat y, global::System.Runtime.InteropServices.NFloat radius, global::System.Runtime.InteropServices.NFloat startAngle, global::System.Runtime.InteropServices.NFloat endAngle, int clockwise);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextAddArcToPoint", ExactSpelling = true)]
public static extern partial void CGContextAddArcToPoint(nint cgContextRef, global::System.Runtime.InteropServices.NFloat x1, global::System.Runtime.InteropServices.NFloat y1, global::System.Runtime.InteropServices.NFloat x2, global::System.Runtime.InteropServices.NFloat y2, global::System.Runtime.InteropServices.NFloat radius);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextAddQuadCurveToPoint", ExactSpelling = true)]
public static extern partial void CGContextAddQuadCurveToPoint(nint c, global::System.Runtime.InteropServices.NFloat cpx, global::System.Runtime.InteropServices.NFloat cpy, global::System.Runtime.InteropServices.NFloat x, global::System.Runtime.InteropServices.NFloat y);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextAddCurveToPoint", ExactSpelling = true)]
public static extern partial void CGContextAddCurveToPoint(nint c, global::System.Runtime.InteropServices.NFloat cp1x, global::System.Runtime.InteropServices.NFloat cp1y, global::System.Runtime.InteropServices.NFloat cp2x, global::System.Runtime.InteropServices.NFloat cp2y, global::System.Runtime.InteropServices.NFloat x, global::System.Runtime.InteropServices.NFloat y);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextBeginPath", ExactSpelling = true)]
public static extern partial void CGContextBeginPath(nint cgContextRef);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextClosePath", ExactSpelling = true)]
public static extern partial void CGContextClosePath(nint cgContextRef);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextClip", ExactSpelling = true)]
public static extern partial void CGContextClip(nint cgContextRef);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextClipToRect", ExactSpelling = true)]
public static extern partial void CGContextClipToRect(nint c, global::Xui.Runtime.IOS.CoreGraphics.CGRect rect);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextEOClip", ExactSpelling = true)]
public static extern partial void CGContextEOClip(nint cgContextRef);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextSetAlpha", ExactSpelling = true)]
public static extern partial void CGContextSetAlpha(nint cgContextRef, global::System.Runtime.InteropServices.NFloat alpha);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextSetLineCap", ExactSpelling = true)]
public static extern partial void CGContextSetLineCap(nint cgContextRef, global::Xui.Runtime.IOS.CoreGraphics.CGLineCap cap);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextSetLineJoin", ExactSpelling = true)]
public static extern partial void CGContextSetLineJoin(nint cgContextRef, global::Xui.Runtime.IOS.CoreGraphics.CGLineJoin join);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextSetMiterLimit", ExactSpelling = true)]
public static extern partial void CGContextSetMiterLimit(nint cgContextRef, global::System.Runtime.InteropServices.NFloat limit);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextFillPath", ExactSpelling = true)]
public static extern partial void CGContextFillPath(nint cgContextRef);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextEOFillPath", ExactSpelling = true)]
public static extern partial void CGContextEOFillPath(nint cgContextRef);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextStrokePath", ExactSpelling = true)]
public static extern partial void CGContextStrokePath(nint cgContextRef);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextDrawLinearGradient", ExactSpelling = true)]
public static extern partial void CGContextDrawLinearGradient(nint cgContextRef, nint cgGradientRef, global::Xui.Runtime.IOS.CoreGraphics.CGPoint startPoint, global::Xui.Runtime.IOS.CoreGraphics.CGPoint endPoint, uint options);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextDrawRadialGradient", ExactSpelling = true)]
public static extern partial void CGContextDrawRadialGradient(nint cgContextRef, nint cgGradientRef, global::Xui.Runtime.IOS.CoreGraphics.CGPoint startCenter, global::System.Runtime.InteropServices.NFloat startRadius, global::Xui.Runtime.IOS.CoreGraphics.CGPoint endCenter, global::System.Runtime.InteropServices.NFloat endRadius, uint options);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextDrawImage", ExactSpelling = true)]
public static extern partial void CGContextDrawImage(nint cgContextRef, global::Xui.Runtime.IOS.CoreGraphics.CGRect rect, nint image);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextGetClipBoundingBox", ExactSpelling = true)]
public static extern partial global::Xui.Runtime.IOS.CoreGraphics.CGRect CGContextGetClipBoundingBox(nint cgContextRef);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextReplacePathWithStrokedPath", ExactSpelling = true)]
public static extern partial void CGContextReplacePathWithStrokedPath(nint cgContextRef);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextSaveGState", ExactSpelling = true)]
public static extern partial void CGContextSaveGState(nint cgContextRef);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextRestoreGState", ExactSpelling = true)]
public static extern partial void CGContextRestoreGState(nint cgContextRef);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextConcatCTM", ExactSpelling = true)]
public static extern partial void CGContextConcatCTM(nint cgContextRef, global::Xui.Runtime.IOS.CoreGraphics.CGAffineTransform transform);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial void CGContextSetLineDash(nint c, global::System.Runtime.InteropServices.NFloat phase, ref global::System.Runtime.InteropServices.NFloat cgFloatArrPtr, nint count);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextSetLineDash", ExactSpelling = true)]
public static extern partial void CGContextSetLineDash(nint c, global::System.Runtime.InteropServices.NFloat phase, nint cgFloatArrPtr, nint count);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextGetCTM", ExactSpelling = true)]
public static extern partial global::Xui.Runtime.IOS.CoreGraphics.CGAffineTransform CGContextGetCTM(nint cgContextRef);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextRotateCTM", ExactSpelling = true)]
public static extern partial void CGContextRotateCTM(nint cgContextRef, global::System.Runtime.InteropServices.NFloat angle);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextScaleCTM", ExactSpelling = true)]
public static extern partial void CGContextScaleCTM(nint cgContextRef, global::System.Runtime.InteropServices.NFloat sx, global::System.Runtime.InteropServices.NFloat sy);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextTranslateCTM", ExactSpelling = true)]
public static extern partial void CGContextTranslateCTM(nint cgContextRef, global::System.Runtime.InteropServices.NFloat tx, global::System.Runtime.InteropServices.NFloat ty);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextSetTextDrawingMode", ExactSpelling = true)]
public static extern partial void CGContextSetTextDrawingMode(nint cgContextRef, global::Xui.Runtime.IOS.CoreGraphics.CGTextDrawingMode mode);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextBeginTransparencyLayer", ExactSpelling = true)]
public static extern partial void CGContextBeginTransparencyLayer(nint cgContextRef, nint auxiliaryInfo);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextEndTransparencyLayer", ExactSpelling = true)]
public static extern partial void CGContextEndTransparencyLayer(nint cgContextRef);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGContextSetBlendMode", ExactSpelling = true)]
public static extern partial void CGContextSetBlendMode(nint cgContextRef, global::Xui.Runtime.IOS.CoreGraphics.CGBlendMode blendMode);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGContextRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "UIGraphicsGetCurrentContext", ExactSpelling = true)]
public static extern partial nint UIGraphicsGetCurrentContext();
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGDataProviderRef
{
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGDataProviderRef
{
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGGradientRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGGradientRelease", ExactSpelling = true)]
public static extern partial void CGGradientRelease(nint self);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGGradientRef
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial nint CGGradientCreateWithColorComponents(nint cgColorSpaceRef, ref global::System.Runtime.InteropServices.NFloat componentsArrPtr, ref global::System.Runtime.InteropServices.NFloat locationsArrPtr, nint count);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGImageRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGImageRelease", ExactSpelling = true)]
public static extern partial void CGImageRelease(nint image);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGImageRef
{
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGImageRef
{
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGImageRef
{
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGImageRef
{
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGMutablePathRef
{
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGMutablePathRef
{
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGMutablePathRef
{
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGMutablePathRef
{
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGPathRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", EntryPoint = "CGPathCreateWithRoundedRect", ExactSpelling = true)]
public static extern partial nint CGPathCreateWithRoundedRect(global::Xui.Runtime.IOS.CoreGraphics.CGRect rect, global::System.Runtime.InteropServices.NFloat cornerWidth, global::System.Runtime.InteropServices.NFloat cornerHeight, nint cgAffineTransformPtr);
}
}
public static unsafe partial class CoreGraphics
{
public unsafe ref partial struct CGPathRef
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial nint CGPathCreateWithRoundedRect(global::Xui.Runtime.IOS.CoreGraphics.CGRect rect, global::System.Runtime.InteropServices.NFloat cornerWidth, global::System.Runtime.InteropServices.NFloat cornerHeight, ref global::Xui.Runtime.IOS.CoreGraphics.CGAffineTransform transform);
}
}
public static unsafe partial class CoreGraphics
{
}
public static unsafe partial class CoreGraphics
{
}
public static unsafe partial class CoreGraphics
{
}
public static unsafe partial class CoreGraphics
{
}
public static unsafe partial class CoreGraphics
{
}
public static unsafe partial class CoreGraphics
{
}
public static unsafe partial class CoreGraphics
{
}
public static unsafe partial class CoreGraphics
{
}
public static unsafe partial class CoreGraphics
{
}
public static unsafe partial class CoreGraphics
{
}
public static unsafe partial class CoreGraphics
{
}
public static unsafe partial class CoreGraphics
{
}
public static unsafe partial class CoreGraphics
{
}
public static unsafe partial class CoreGraphics
{
}
public static unsafe partial class CoreGraphics
{
}
public static unsafe partial class CoreText
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreText.framework/CoreText", EntryPoint = "NSSelectorFromString", ExactSpelling = true)]
public static extern partial nint NSSelectorFromString(nint selector);
}
public static unsafe partial class CoreText
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial bool CTFontManagerRegisterFontsForURL(nint fontUrl, uint scope, out nint error);
}
public static unsafe partial class CoreText
{
public unsafe ref partial struct CTFontDescriptorRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreText.framework/CoreText", EntryPoint = "CTFontDescriptorCreateWithAttributes", ExactSpelling = true)]
public static extern partial nint CTFontDescriptorCreateWithAttributes(nint cfDictionaryRefAttributes);
}
}
public static unsafe partial class CoreText
{
public unsafe ref partial struct CTFontDescriptorRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreText.framework/CoreText", EntryPoint = "CTFontDescriptorCreateWithNameAndSize", ExactSpelling = true)]
public static extern partial nint CTFontDescriptorCreateWithNameAndSize(nint cfStringRefName, global::System.Runtime.InteropServices.NFloat size);
}
}
public static unsafe partial class CoreText
{
public unsafe ref partial struct CTFontRef
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial nint CTFontCreateWithFontDescriptorAndOptions(nint ctFontDescriptorRefDescriptor, global::System.Runtime.InteropServices.NFloat size, ref global::Xui.Runtime.IOS.CoreGraphics.CGAffineTransform matrix, nint ctFontOptions);
}
}
public static unsafe partial class CoreText
{
public unsafe ref partial struct CTFontRef
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/CoreText.framework/CoreText", EntryPoint = "CTFontCreateWithFontDescriptorAndOptions", ExactSpelling = true)]
public static extern partial nint CTFontCreateWithFontDescriptorAndOptions(nint ctFontDescriptorRefDescriptor, global::System.Runtime.InteropServices.NFloat size, nint matrixPtr, nint ctFontOptions);
}
}
public static unsafe partial class CoreText
{
public unsafe ref partial struct CTFontRef
{
}
}
public static unsafe partial class CoreText
{
public unsafe ref partial struct CTFontRef
{
}
}
public static unsafe partial class CoreText
{
public unsafe ref partial struct CTFontRef
{
}
}
public static unsafe partial class CoreText
{
public unsafe ref partial struct CTFontRef
{
}
}
public static unsafe partial class CoreText
{
public unsafe ref partial struct CTFontRef
{
}
}
public static unsafe partial class CoreText
{
public unsafe ref partial struct CTFontRef
{
}
}
public static unsafe partial class CoreText
{
public unsafe ref partial struct CTFontRef
{
}
}
public static unsafe partial class CoreText
{
public unsafe ref partial struct CTFontRef
{
}
}
public static unsafe partial class CoreText
{
public unsafe ref partial struct CTFontRef
{
}
}
public static unsafe partial class CoreText
{
public unsafe ref partial struct CTLineRef
{
}
}
public static unsafe partial class CoreText
{
public unsafe ref partial struct CTLineRef
{
}
}
public static unsafe partial class CoreText
{
public unsafe ref partial struct CTLineRef
{
}
}
public static unsafe partial class Foundation
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/Foundation.framework/Foundation", EntryPoint = "NSStringFromClass", ExactSpelling = true)]
public static extern partial nint NSStringFromClass(nint cls);
}
public static unsafe partial class Foundation
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/Foundation.framework/Foundation", EntryPoint = "NSClassFromString", ExactSpelling = true)]
public static extern partial nint NSClassFromString(nint name);
}
public static unsafe partial class Foundation
{
public unsafe partial class NSString
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend", ExactSpelling = true)]
public static extern partial void objc_msgSend(nint nsString, nint sel, global::Xui.Runtime.IOS.CoreGraphics.CGPoint position, nint attributes);
}
}
public static unsafe partial class ImageIO
{
public unsafe ref partial struct CGImageSourceRef
{
}
}
public static unsafe partial class ImageIO
{
public unsafe ref partial struct CGImageSourceRef
{
}
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static unsafe partial class Metal
{
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static unsafe partial class Metal
{
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static unsafe partial class Metal
{
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static unsafe partial class Metal
{
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static unsafe partial class Metal
{
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static unsafe partial class Metal
{
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static unsafe partial class Metal
{
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static unsafe partial class Metal
{
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static unsafe partial class Metal
{
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static unsafe partial class Metal
{
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static unsafe partial class Metal
{
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static unsafe partial class Metal
{
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static unsafe partial class Metal
{
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static unsafe partial class Metal
{
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static unsafe partial class Metal
{
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static unsafe partial class Metal
{
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static unsafe partial class Metal
{
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static unsafe partial class Metal
{
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static unsafe partial class Metal
{
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static unsafe partial class Metal
{
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static unsafe partial class Metal
{
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static unsafe partial class Metal
{
}
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static unsafe partial class Metal
{
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static partial class ObjC
{
///
/// Abstracts C# interactions with an Objective-C selector.
///
public struct Super
{
public nint receiver;
public nint super_class;
public Super(nint receiver, nint super_class);
}
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "object_getClass", ExactSpelling = true)]
public static extern partial nint object_getClass(nint instance);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial nint objc_getClass(string name);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend", ExactSpelling = true)]
public static extern partial nint objc_msgSend_retIntPtr(nint obj, nint sel);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial string objc_msgSend_retCStr(nint obj, nint sel);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend", ExactSpelling = true)]
public static extern partial nuint objc_msgSend_retNUInt(nint obj, nint sel);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend", ExactSpelling = true)]
public static extern partial global::System.Runtime.InteropServices.NFloat objc_msgSend_retNFloat(nint obj, nint sel);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend", ExactSpelling = true)]
public static extern partial float objc_msgSend_retFloat(nint obj, nint sel);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend", ExactSpelling = true)]
public static extern partial nint objc_msgSend_retIntPtr(nint obj, nint sel, nint id1);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend", ExactSpelling = true)]
public static extern partial nint objc_msgSend_retIntPtr(nint obj, nint sel, nint id1, nint id2);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend", ExactSpelling = true)]
public static extern partial double objc_msgSend_retDouble(nint obj, nint sel);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend", ExactSpelling = true)]
public static extern partial int objc_msgSend_retInt(nint obj, nint sel);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend", ExactSpelling = true)]
public static unsafe extern partial global::Xui.Runtime.IOS.CoreGraphics.CGSize objc_msgSend_retCGSize(nint obj, nint sel, nint id1);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend", ExactSpelling = true)]
public static extern partial void objc_msgSend(nint obj, nint sel);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend", ExactSpelling = true)]
public static extern partial void objc_msgSend(nint obj, nint sel, global::System.Runtime.InteropServices.NFloat v);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend", ExactSpelling = true)]
public static extern partial void objc_msgSend(nint obj, nint sel, nuint v);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend", ExactSpelling = true)]
public static extern partial void objc_msgSend(nint obj, nint sel, nint a1, uint v2);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend", ExactSpelling = true)]
public static extern partial void objc_msgSend(nint obj, nint sel, nint a1, nint v2);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial void objc_msgSend(nint obj, nint sel, bool v1);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend", ExactSpelling = true)]
public static extern partial void objc_msgSend(nint obj, nint sel, nint id1);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend", ExactSpelling = true)]
public static extern partial void objc_msgSend(nint obj, nint sel, nint a1, nint a2, nint a3, nint a4);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial void objc_msgSendSuper(ref global::Xui.Runtime.IOS.ObjC.Super obj, nint sel);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial void objc_msgSendSuper(ref global::Xui.Runtime.IOS.ObjC.Super obj, nint sel, nint id1);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend", ExactSpelling = true)]
public static extern partial void objc_msgSend(nint obj, nint sel, int id1);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial nint objc_getProtocol(string name);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial bool class_addProtocol(nint objcclass, nint name);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial string class_getName(nint objcclass);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial bool objc_msgSend_retBool(nint obj, nint sel);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial bool objc_msgSend_retBool(nint obj, nint sel, int int1);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial bool objc_msgSend_retBool(nint obj, nint sel, nint int1);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_allocateClassPair", ExactSpelling = true)]
public static extern partial nint objc_allocateClassPair(nint superclass, nint name, nuint extrabytes);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_registerClassPair", ExactSpelling = true)]
public static extern partial void objc_registerClassPair(nint @class);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial nint sel_registerName(string cfstring);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static unsafe partial bool class_addMethod(nint objcclass, nint name, global::Xui.Runtime.IOS.ObjC.IdSelId_Bool fun, string types);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static unsafe partial bool class_addMethod(nint objcclass, nint name, global::Xui.Runtime.IOS.ObjC.IdSelIdId_Bool fun, string types);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static unsafe partial bool class_addMethod(nint objcclass, nint name, global::Xui.Runtime.IOS.ObjC.IdSel_Void fun, string types);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static unsafe partial bool class_addMethod(nint objcclass, nint name, global::Xui.Runtime.IOS.ObjC.IdSel_Id fun, string types);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static unsafe partial bool class_addMethod(nint objcclass, nint name, global::Xui.Runtime.IOS.ObjC.IdSelId_Void fun, string types);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static unsafe partial bool class_addMethod(nint objcclass, nint name, global::Xui.Runtime.IOS.ObjC.IdSelIdId_Void fun, string types);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static unsafe partial bool class_addMethod(nint objcclass, nint name, global::Xui.Runtime.IOS.ObjC.IdSelIdId_Id fun, string types);
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
}
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static unsafe partial class ObjC
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static unsafe partial bool class_addMethod(nint objcclass, nint name, global::Xui.Runtime.IOS.ObjC.IdSel_Bool fun, string types);
}
public static partial class UIKit
{
public partial class UIEvent
{
public enum EventSubtype : int
{
None = 0,
MotionShake = 1,
RemoteControlPlay = 100,
RemoteControlPause = 101,
RemoteControlStop = 102,
RemoteControlTogglePlayPause = 103,
RemoteControlNextTrack = 104,
RemoteControlPreviousTrack = 105,
RemoteControlBeginSeekingBackward = 106,
RemoteControlEndSeekingBackward = 107,
RemoteControlBeginSeekingForward = 108,
RemoteControlEndSeekingForward = 109,
}
}
}
public static partial class UIKit
{
public partial class UITouch
{
public enum Phase : int
{
Began = 0,
Moved = 1,
Stationary = 2,
Ended = 3,
Cancelled = 4,
RegionEntered = 5,
RegionMoved = 6,
RegionExited = 7,
}
}
}
public static unsafe partial class UIKit
{
public unsafe ref partial struct UIColorRef
{
}
}
public static unsafe partial class UIKit
{
}
public static unsafe partial class UIKit
{
}
public static unsafe partial class UIKit
{
}
public static unsafe partial class UIKit
{
}
public static unsafe partial class UIKit
{
}
public static unsafe partial class UIKit
{
}
public static unsafe partial class UIKit
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/UIKit.framework/UIKit", EntryPoint = "UIApplicationMain", ExactSpelling = true)]
public static extern partial int UIApplicationMain(int argc, nint argv, nint principalClassName, nint delegateClassName);
}
public static unsafe partial class UIKit
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/UIKit.framework/UIKit", EntryPoint = "NSSelectorFromString", ExactSpelling = true)]
public static extern partial nint NSSelectorFromString(nint selector);
}
public static unsafe partial class UIKit
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial bool UIAccessibilityIsReduceMotionEnabled();
}
public static unsafe partial class UIKit
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial bool UIAccessibilityDarkerSystemColorsEnabled();
}
public static unsafe partial class UIKit
{
[global::System.Runtime.InteropServices.DllImportAttribute("/System/Library/Frameworks/UIKit.framework/UIKit", EntryPoint = "UIGraphicsGetCurrentContext", ExactSpelling = true)]
public static extern partial nint UIGraphicsGetCurrentContext();
}
public static unsafe partial class UIKit
{
/// Owned iOS 17+ native text loupe. Dispose on the UI thread when the gesture ends.
public unsafe partial struct UITextLoupeSessionPtr
{
}
}
public static unsafe partial class UIKit
{
/// Owned iOS 17+ native text loupe. Dispose on the UI thread when the gesture ends.
public unsafe partial struct UITextLoupeSessionPtr
{
}
}
public static unsafe partial class UIKit
{
public unsafe partial class UITouch
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend", ExactSpelling = true)]
public static extern partial global::Xui.Runtime.IOS.CoreGraphics.CGPoint objc_msgSend_retCGPoint(nint obj, nint sel, nint view);
}
}
public static unsafe partial class UIKit
{
public unsafe partial class UIView
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend", ExactSpelling = true)]
public static unsafe extern partial global::Xui.Runtime.IOS.UIKit.UIEdgeInsets objc_msgSend_retUIEdgeInsets(nint obj, nint sel);
}
}
public static unsafe partial class UIKit
{
public unsafe partial class UIView
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend", ExactSpelling = true)]
public static unsafe extern partial global::Xui.Runtime.IOS.CoreGraphics.CGRect objc_msgSend_retCGRect(nint obj, nint sel);
}
}
public static unsafe partial class UIKit
{
public unsafe partial class UIView
{
[global::System.Runtime.InteropServices.DllImportAttribute("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend", ExactSpelling = true)]
public static unsafe extern partial global::Xui.Runtime.IOS.CoreGraphics.CGRect objc_msgSend(nint obj, nint sel, global::Xui.Runtime.IOS.CoreGraphics.CGRect rect);
}
}
}
namespace Xui.Runtime.IOS
{
using System.Runtime.InteropServices;
using static Xui.Runtime.IOS.ObjC;
public static partial class CoreFoundation
{
public partial class CFArray : NSObject
{
public struct CallBacks
{
public nint Version;
public nint Retain;
public nint Release;
public nint CopyDescription;
public nint Equal;
}
}
}
}
namespace Xui.Runtime.IOS
{
using static Xui.Runtime.IOS.ObjC;
public static partial class CoreFoundation
{
public partial class CFArray : NSObject
{
public static new readonly Class Class;
public CFArray(nint id);
}
}
public static partial class CoreFoundation
{
public partial class CFDictionary : NSObject
{
public struct ValueCallBacks
{
public nint Version;
public nint Retain;
public nint Release;
public nint CopyDescription;
public nint Equal;
}
}
}
public static partial class CoreFoundation
{
public partial class CFDictionary : NSObject
{
public static new readonly Class Class;
public CFDictionary(nint id);
}
}
public static partial class Foundation
{
public partial class NSAttributedString : NSObject
{
public static new readonly Class Class;
public static readonly Sel InitWithStringAttributesSel;
public NSAttributedString(nint self);
public NSAttributedString();
}
}
public static partial class UIKit
{
public partial class UIEvent
{
public enum EventType : int
{
Touches = 0,
Motion = 1,
RemoteControl = 2,
Presses = 3,
Scroll = 10,
Hover = 11,
Transform = 14,
}
}
}
public static partial class UIKit
{
public partial class UIEvent : NSObject
{
public static new readonly Class Class;
public static readonly Prop.NInt TypeProp;
public static readonly Prop.NInt SubtypeProp;
public static readonly Prop.NInt AllTouchesProp;
public UIEvent(nint id);
public UIEvent();
public EventType Type { get; }
public EventSubtype Subtype { get; }
}
}
public static partial class UIKit
{
/// Owned UIKit impact generator, retained for reuse with one style.
public sealed class UIImpactFeedbackGenerator : NSObject
{
public static new readonly Class Class;
public enum FeedbackStyle : long
{
Light,
Medium,
Heavy,
Soft,
Rigid
}
public UIImpactFeedbackGenerator(FeedbackStyle style);
public void Prepare();
public void ImpactOccurred();
}
}
public static partial class UIKit
{
/// Owned, reusable UIKit notification feedback generator.
public sealed class UINotificationFeedbackGenerator : NSObject
{
public static new readonly Class Class;
public enum FeedbackType : long
{
Success,
Warning,
Error
}
public UINotificationFeedbackGenerator();
public void Prepare();
public void NotificationOccurred(FeedbackType type);
}
}
public static partial class UIKit
{
public partial class UIResponder : NSObject
{
public static new readonly Class Class;
public static readonly Sel becomeFirstResponderSel;
public UIResponder();
public UIResponder(nint id);
public bool BecomeFirstResponder();
/// Refreshes keyboard traits when the focused Xui text client changes.
public void ReloadInputViews();
}
}
public static partial class UIKit
{
/// A borrowed screen reference. Does not retain or release the native screen.
public readonly ref struct UIScreenRef
{
public readonly nint Self;
public UIScreenRef(nint self);
/// The highest refresh rate supported by this screen, in hertz.
public nint MaximumFramesPerSecond { get; }
}
}
public static partial class UIKit
{
/// Owned, reusable UIKit selection feedback generator.
public sealed class UISelectionFeedbackGenerator : NSObject
{
public static new readonly Class Class;
public UISelectionFeedbackGenerator();
public void Prepare();
public void SelectionChanged();
}
}
public static partial class UIKit
{
public partial class UITouch : NSObject
{
public enum TouchType : int
{
Direct = 0,
Indirect = 1,
Pencil = 2,
IndirectPointer = 3,
}
}
}
public static partial class UIKit
{
public partial class UIViewController : UIResponder
{
public static new readonly Class Class;
public static readonly Prop.NInt ViewProp;
public UIViewController();
public UIViewController(nint id);
public void SetNeedsStatusBarAppearanceUpdate();
public UIView View { get; set; }
}
}
}
namespace Xui.Runtime.IOS
{
using System.Runtime.InteropServices;
using System;
public static partial class CoreFoundation
{
public partial class CFDataRef : IDisposable
{
public readonly nint Self;
public CFDataRef(nint self);
public CFDataRef(string? str);
public unsafe ReadOnlySpan AsSpan();
public void Dispose();
public static implicit operator nint(CFDataRef cfDataRef);
}
}
public static partial class CoreFoundation
{
public ref partial struct CFSetRef : IDisposable
{
[LibraryImport(CoreFoundationLib)]
public static partial nint CFSetGetCount(nint cfSetRef);
[LibraryImport(CoreFoundationLib)]
public static partial nint CFSetGetValues(CFSetRef theSet, ref nint arrayOfValuePtrs);
public readonly nint Self;
public CFSetRef(nint self);
public nint Count { get; }
public void Dispose();
///
/// https://developer.apple.com/documentation/corefoundation/1520437-cfsetgetvalues?language=objc
/// Follows the creation rule, so you need to release the objects.
///
public void GetValues(ref nint nintArrPtr);
public static implicit operator nint(CFSetRef cfSetRef);
}
}
public static partial class CoreFoundation
{
public ref partial struct CFURLRef : IDisposable
{
public readonly nint Self;
public CFURLRef(nint self);
public static CFURLRef CreateWithFileSystemPath(nint path);
public void Dispose();
public static implicit operator nint(CFURLRef value);
}
}
public static partial class CoreGraphics
{
public ref partial struct CGDataProviderRef : IDisposable
{
public readonly nint Self;
public CGDataProviderRef(nint self);
public static CGDataProviderRef CreateWithData(nint data, nuint size, nint releaseCallback = 0);
public void Dispose();
public static implicit operator nint(CGDataProviderRef value);
}
}
public static partial class CoreGraphics
{
public ref partial struct CGImageRef : IDisposable
{
[LibraryImport(CoreGraphicsLib)]
public static partial void CGImageRelease(nint image);
public readonly nint Self;
public CGImageRef(nint self);
public nuint Width { get; }
public nuint Height { get; }
public static CGImageRef CreateWithImageInRect(nint image, CGRect rect);
public static CGImageRef Create(nuint width, nuint height, nuint bitsPerComponent, nuint bitsPerPixel, nuint bytesPerRow, nint colorSpace, CGBitmapInfo bitmapInfo, nint provider, bool shouldInterpolate = true);
public void Dispose();
public static implicit operator nint(CGImageRef value);
}
}
}
namespace Xui.Runtime.IOS
{
using static Xui.Runtime.IOS.CoreFoundation.CFDictionary;
using static Xui.Runtime.IOS.ObjC;
public static partial class CoreFoundation
{
public partial class CFDictionary : NSObject
{
public struct KeyCallBacks
{
public nint Version;
public nint Retain;
public nint Release;
public nint CopyDescription;
public nint Equal;
public nint Hash;
}
}
}
}
namespace Xui.Runtime.IOS
{
using System.Runtime.InteropServices;
using static Xui.Runtime.IOS.CoreFoundation.CFArray;
public static partial class CoreFoundation
{
public ref partial struct CFMutableArrayRef
{
[LibraryImport(CoreFoundationLib)]
public static partial nint CFArrayCreateMutable(nint allocator, nint capacity, nint callbacks);
[LibraryImport(CoreFoundationLib)]
public static partial void CFArrayAppendValue(nint cfMutableArrayRef, nint value);
public delegate void ReleaseCallBack(nint allocator, nint value);
public delegate void RetainCallBack(nint allocator, nint value);
public static readonly nint CallBacks;
public readonly nint Self;
public CFMutableArrayRef();
public void Add(nint value);
public void Dispose();
public static implicit operator nint(CFMutableArrayRef arr);
}
}
}
namespace Xui.Runtime.IOS
{
using System.Runtime.InteropServices;
using static Xui.Runtime.IOS.CoreFoundation.CFDictionary;
public static partial class CoreFoundation
{
public ref partial struct CFMutableDictionaryRef
{
public static readonly nint KeyCallBacks;
public static readonly nint ValueCallBacks;
public readonly nint Self;
public CFMutableDictionaryRef();
public void SetValue(nint key, nint value);
public void Dispose();
public static implicit operator nint(CFMutableDictionaryRef arr);
}
}
}
namespace Xui.Runtime.IOS
{
using System.Runtime.InteropServices;
using static Xui.Runtime.IOS.CoreFoundation;
public static partial class CoreFoundation
{
public ref partial struct CFNumberRef
{
[LibraryImport(CoreFoundationLib)]
public static partial nint CFNumberCreate(nint allocator, CFNumberType theType, uint valuePtr);
[LibraryImport(CoreFoundationLib)]
public static partial nint CFNumberCreate(nint allocator, CFNumberType theType, ref int valuePtr);
[LibraryImport(CoreFoundationLib)]
public static partial nint CFNumberCreate(nint allocator, CFNumberType theType, ref NFloat valuePtr);
public readonly nint Self;
public CFNumberRef(nint self);
public CFNumberRef(NFloat value);
public CFNumberRef(int value);
public void Dispose();
public static implicit operator nint(CFNumberRef cfColorRef);
}
}
}
namespace Xui.Runtime.IOS
{
using System;
public static partial class CoreFoundation
{
public ref struct CFStringRef : IDisposable
{
public readonly nint Self;
public CFStringRef(nint self);
public CFStringRef(string? str);
public CFStringRef(ReadOnlySpan str);
public void Dispose();
public static implicit operator nint(CFStringRef cfStringRef);
public static implicit operator string? (CFStringRef cfStringRef);
}
}
public static partial class CoreGraphics
{
[Flags]
public enum CGBitmapInfo : uint
{
AlphaPremultipliedFirst = 2,
ByteOrder32Little = 2 << 12,
}
}
public static partial class CoreGraphics
{
/// Long-lived CoreGraphics image owned by an iOS image resource.
public sealed class CGImage : IDisposable
{
public CGImage(nint pointer);
public uint Width { get; }
public uint Height { get; }
public static implicit operator nint(CGImage? image);
public void Dispose();
}
}
public class ObjCException : Exception
{
public ObjCException(string? message);
}
}
namespace Xui.Runtime.IOS
{
using System.Runtime.InteropServices;
using System;
using static Xui.Runtime.IOS.ObjC;
public static partial class CoreFoundation
{
public const string CoreFoundationLib = "/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation";
public static readonly nint Lib;
public static readonly Sel UTF8StringSel;
[LibraryImport(CoreFoundationLib)]
public static partial void CFRelease(nint obj);
[LibraryImport(CoreFoundationLib)]
public static partial nint CFGetRetainCount(nint obj);
[LibraryImport(CoreFoundationLib)]
public static partial nuint CFHash(nint cf);
[LibraryImport(CoreFoundationLib)]
[return: MarshalAs(UnmanagedType.I1)]
public static partial bool CFEqual(nint cf1, nint cf2);
[LibraryImport(CoreFoundationLib)]
[return: MarshalAs(UnmanagedType.LPUTF8Str)]
public static partial string CFStringGetCStringPtr(nint obj);
[LibraryImport(CoreFoundationLib)]
public static partial nint CFStringGetCString(nint obj);
[LibraryImport(CoreFoundationLib)]
public static partial nint CFRetain(nint obj);
///
/// Creates a CFStringRef from C# string.
/// You need to manually release after use.
///
///
public static nint CFString(string? str);
public static string? ToString(nint cfStringRef);
public static unsafe nint CFString(ReadOnlySpan str);
}
}
namespace Xui.Runtime.IOS
{
using System.Runtime.InteropServices;
using Xui.Core.Math2D;
public static partial class CoreGraphics
{
///
/// Affine transformation matrix in the form:
///
/// | A B 0 |
/// | C D 0 |
/// | Tx Ty 1 |
///
/// Transforming a vector:
///
/// | A B 0 |
/// [x' y' 1] = [x y 1] * | C D 0 |
/// | Tx Ty 1 |
///
public partial struct CGAffineTransform
{
[LibraryImport(CoreGraphicsLib)]
public static partial CGAffineTransform CGAffineTransformInvert(CGAffineTransform t);
public static readonly CGAffineTransform Identity;
public NFloat A, B, C, D, Tx, Ty;
public CGAffineTransform(NFloat a, NFloat b, NFloat c, NFloat d, NFloat tx, NFloat ty);
public CGAffineTransform Invert { get; }
public static implicit operator CGAffineTransform(Xui.Core.Math2D.AffineTransform t);
public static implicit operator Xui.Core.Math2D.AffineTransform(CGAffineTransform t);
}
}
public static partial class CoreGraphics
{
public struct CGPoint
{
public NFloat X;
public NFloat Y;
public CGPoint(NFloat x, NFloat y);
public static implicit operator CGPoint(Point point);
public static implicit operator Point(CGPoint point);
}
}
public static partial class CoreGraphics
{
public struct CGRect
{
public CGPoint Origin;
public CGSize Size;
public CGRect(NFloat x, NFloat y, NFloat width, NFloat height);
public CGRect(CGPoint origin, CGSize size);
public static implicit operator Rect(CGRect rect);
public static implicit operator CGRect(Rect rect);
}
}
public static partial class CoreGraphics
{
public struct CGSize
{
public NFloat Width;
public NFloat Height;
public CGSize(NFloat width, NFloat height);
public static implicit operator Vector(CGSize size);
}
}
}
namespace Xui.Runtime.IOS
{
using System.Runtime.InteropServices;
using System;
using Xui.Core.Canvas.Filter;
using Xui.Core.Canvas;
public static partial class CoreGraphics
{
public ref partial struct CGGradientRef
{
[LibraryImport(CoreGraphicsLib)]
public static partial void CGGradientRelease(nint self);
[LibraryImport(CoreGraphicsLib)]
public static partial nint CGGradientCreateWithColorComponents(nint cgColorSpaceRef, ref NFloat componentsArrPtr, ref NFloat locationsArrPtr, nint count);
public readonly nint Self;
public CGGradientRef(nint self);
public CGGradientRef(ReadOnlySpan gradient);
public void Dispose();
public static implicit operator nint(CGGradientRef cfColorRef);
}
}
}
namespace Xui.Runtime.IOS
{
using System.Runtime.InteropServices;
using System;
using Xui.Core.Canvas.Symbols;
using Xui.Core.Canvas;
public static partial class CoreGraphics
{
}
}
namespace Xui.Runtime.IOS
{
using System.Runtime.InteropServices;
using static Xui.Runtime.IOS.Foundation;
public static partial class CoreText
{
public partial class CTFontDescriptor
{
public class FontAttributes : NSString
{
public static readonly FontAttributes URL;
public static readonly FontAttributes Name;
public static readonly FontAttributes DisplayName;
public static readonly FontAttributes FamilyName;
public static readonly FontAttributes StyleName;
public static readonly FontAttributes Traits;
public static readonly FontAttributes Variant;
public static readonly FontAttributes Size;
public static readonly FontAttributes Matrix;
public static readonly FontAttributes CascadeList;
public static readonly FontAttributes CharacterSet;
public static readonly FontAttributes Languages;
public static readonly FontAttributes BaselineAdjust;
public static readonly FontAttributes MacintoshEncodings;
public static readonly FontAttributes Features;
public static readonly FontAttributes FeatureSettings;
public static readonly FontAttributes FixedAdvance;
public static readonly FontAttributes FontOrientation;
public static readonly FontAttributes FontFormat;
public static readonly FontAttributes RegistrationScope;
public static readonly FontAttributes Priority;
public static readonly FontAttributes Enabled;
public static readonly FontAttributes Downloadable;
public static readonly FontAttributes Downloaded;
}
}
}
public static partial class CoreText
{
public partial class CTFontDescriptor
{
public class FontTrait : NSString
{
///
/// CFNumberRef.
///
public static readonly FontTrait Symbolic;
///
/// Normalized font weight. CFNumberRef, from -1 to 1, where 0 is normal.
///
public static readonly FontTrait Weight;
///
/// CFNumberRef spacing, from -1.0 to 1.0 where -1 is condensed, 0 is regular.
///
public static readonly FontTrait Width;
///
/// CFNumberRef spacing, from -1.0 to 1.0 where -1 is condensed, 0 is regular. (like oblique)
///
public static readonly FontTrait Slant;
}
}
}
public static partial class CoreText
{
public partial class CTFontDescriptor
{
public enum SymbolicTrait : uint
{
Italic = (1 << 0),
Bold = (1 << 1),
Expanded = (1 << 5),
Condensed = (1 << 6),
MonoSpace = (1 << 10),
Vertical = (1 << 11),
UIOptimized = (1 << 12),
ColorGlyphs = (1 << 13),
Composite = (1 << 14),
}
}
}
}
namespace Xui.Runtime.IOS
{
using System.Runtime.InteropServices;
using System;
using static Xui.Runtime.IOS.CoreFoundation;
using static Xui.Runtime.IOS.CoreGraphics;
public static partial class CoreText
{
public ref partial struct CTFontDescriptorRef : IDisposable
{
public readonly nint Self;
[LibraryImport(CoreTextLib)]
public static partial nint CTFontDescriptorCreateWithAttributes(nint cfDictionaryRefAttributes);
[LibraryImport(CoreTextLib)]
public static partial nint CTFontDescriptorCreateWithNameAndSize(nint cfStringRefName, NFloat size);
public CTFontDescriptorRef(nint self);
public CTFontDescriptorRef(string name);
public static CTFontDescriptorRef WithAttributes(nint attributes);
public void Dispose();
public static implicit operator nint(CTFontDescriptorRef ctFontRef);
}
}
public static partial class CoreText
{
public ref partial struct CTLineRef : IDisposable
{
public readonly nint Self;
public CTLineRef(nint self);
public static CTLineRef Create(nint attributedString);
public void Dispose();
public static implicit operator nint(CTLineRef r);
public (NFloat Ascent, NFloat Descent, NFloat Leading) GetVerticalMetrics();
public CGRect GetBounds(BoundsOptions options = BoundsOptions.UseOpticalBounds);
public NFloat GetWidth();
///
/// Platform-safe flags controlling how CTLine bounds are calculated.
/// Matches CTLineBoundsOptions from CoreText.
/// (nuint)
///
[Flags]
public enum BoundsOptions : uint
{
ExcludeTypographicLeading = 1 << 0,
ExcludeTypographicShifts = 1 << 1,
UseHangingPunctuation = 1 << 2,
UseGlyphPathBounds = 1 << 3,
UseOpticalBounds = 1 << 4,
IncludeLanguageExtents = 1 << 5
}
}
}
public static partial class ImageIO
{
public ref partial struct CGImageSourceRef : IDisposable
{
public readonly nint Self;
public CGImageSourceRef(nint self);
public static CGImageSourceRef CreateWithURL(nint url);
public CGImageRef CreateImageAtIndex(nuint index = 0);
public void Dispose();
public static implicit operator nint(CGImageSourceRef value);
}
}
}
namespace Xui.Runtime.IOS
{
using System.Buffers.Binary;
using System.Runtime.InteropServices;
using System.Security.Cryptography.X509Certificates;
using System;
using Xui.Core.Canvas;
using static Xui.Runtime.IOS.CoreFoundation;
using static Xui.Runtime.IOS.CoreGraphics;
using static Xui.Runtime.IOS.ObjC;
public static partial class CoreText
{
public ref partial struct CTFontRef : IDisposable
{
[LibraryImport(CoreTextLib)]
public static partial nint CTFontCreateWithFontDescriptorAndOptions(nint ctFontDescriptorRefDescriptor, NFloat size, ref CGAffineTransform matrix, nint ctFontOptions);
[LibraryImport(CoreTextLib)]
public static partial nint CTFontCreateWithFontDescriptorAndOptions(nint ctFontDescriptorRefDescriptor, NFloat size, nint matrixPtr, nint ctFontOptions);
public readonly nint Self;
public CTFontRef(nint self);
public CTFontRef(nint ctFontDescriptorRefDescriptor, NFloat size, ref CGAffineTransform matrix, nint ctFontOptions);
public CTFontRef(nint ctFontDescriptorRefDescriptor, nint ctFontOptions);
public NFloat Ascent { get; }
public NFloat Descent { get; }
public NFloat Leading { get; }
public NFloat CapHeight { get; }
public NFloat XHeight { get; }
public uint UnitsPerEm { get; }
public NFloat PointSize { get; }
public CGRect BoundingBox { get; }
public FontMetrics FontMetrics { get; }
public bool TryGetBaselineFromBslnTable(out short hanging, out short ideographic);
public bool TryGetFontBoundingBox(out short yMin, out short yMax);
public bool TryGetEmAscentDescentFromHhea(out short ascent, out short descent);
public void Dispose();
public static implicit operator nint(CTFontRef ctFontRef);
}
}
}
namespace Xui.Runtime.IOS
{
using System;
using static Xui.Runtime.IOS.CoreFoundation;
using static Xui.Runtime.IOS.ObjC;
public static partial class Foundation
{
public ref struct NSAttributedStringRef : IDisposable
{
public readonly nint Self;
public NSAttributedStringRef(CFStringRef text, CFMutableDictionaryRef attributes);
public void Dispose();
public static implicit operator nint(NSAttributedStringRef str);
}
}
}
namespace Xui.Runtime.IOS
{
using System.Runtime.InteropServices;
using static Xui.Runtime.IOS.CoreFoundation;
using static Xui.Runtime.IOS.CoreGraphics;
using static Xui.Runtime.IOS.ObjC;
public static partial class Foundation
{
public partial class NSRunLoop : NSObject
{
public class Mode : NSString
{
public static readonly Mode Common;
public static readonly Mode Default;
}
}
}
public static partial class Foundation
{
public partial class NSRunLoop : NSObject
{
public static new readonly Class Class;
public static readonly Prop.NInt MainRunLoopProp;
public NSRunLoop(nint id);
public static NSRunLoop MainRunLoop { get; }
}
}
public static partial class Foundation
{
public partial class NSString : NSObject
{
public static new readonly Class Class;
public static readonly Sel DrawAtPointWithAttributesSel;
public static readonly Sel SizeWithAttributesSel;
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
public static partial void objc_msgSend(nint nsString, nint sel, CGPoint position, nint attributes);
public NSString(nint id);
public NSString(string text);
}
}
}
namespace Xui.Runtime.IOS
{
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System;
public static class Marshalling
{
public static void Set(nint objCInstance, object cSharpInstance);
///
/// Used to get the C# instance responsible for an Objective-C instance.
///
public static T Get(nint objCInstance);
public static void Delete(nint id);
public static T? ObjCToCSharpNullable(nint objCInstance)
where T : class;
public static T ObjCToCSharp(nint objCInstance);
///
/// Registers a class wrapper for Objective-C instances.
/// It is recommended you construct the complete object graph in C#,
/// and have C# instances responsible for the Objecitve-C counterparts,
/// with complete ownership including lifespan.
///
/// In some cases, like dealing with singletons however, you will get Objective-C
/// instances constructed by the runtime, and the method here will allow registering factories.
///
/// However wrapped instances will often retain the native one,
/// and you will need to device an per-case plan how to deal with the lifetime of these.
///
public static void SetClassWrapper(nint objCClass, Func factory);
}
}
namespace Xui.Runtime.IOS
{
using System.Runtime.InteropServices;
using System;
using Xui.GPU.Shaders.Types;
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static partial class Metal
{
}
}
namespace Xui.Runtime.IOS
{
using System.Runtime.InteropServices;
using Xui.GPU.Shaders.Types;
///
/// Thin P/Invoke wrappers for the Apple Metal framework.
/// Uses Objective-C runtime and Metal API for hardware-accelerated rendering.
///
public static partial class Metal
{
}
}
namespace Xui.Runtime.IOS
{
using System.Collections.Generic;
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static partial class ObjC
{
///
/// Abstracts operations on Objective-C Class object.
///
public class Class
{
public static readonly Sel AllocSel;
public static readonly Sel InitSel;
public Class(nint lib, string name);
public Class(string name, nint id);
public string Name { get; }
public nint Id { get; }
public nint New();
public nint Alloc();
///
/// Creates a runtime derived class.
/// Under the hood calls into objc_allocateClassPair
/// https://developer.apple.com/documentation/objectivec/1418559-objc_allocateclasspair?language=objc
///
///
///
public Builder Extend(string name, nuint extraBytes = 0);
public static implicit operator nint(Class cls);
}
}
}
namespace Xui.Runtime.IOS
{
using System.Runtime.InteropServices;
using System;
using static Xui.Runtime.IOS.CoreFoundation;
using static Xui.Runtime.IOS.CoreGraphics;
using static Xui.Runtime.IOS.Foundation;
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public partial class ObjC
{
public class Builder
{
public Builder(Class super, string name, nuint extraBytes = 0);
public Builder AddProtocol(Protocol protocol);
public unsafe Builder AddMethod(string selector, ObjC.IdSel_Bool method);
public unsafe Builder AddMethod(string selector, ObjC.IdSelId_Void method);
public unsafe Builder AddMethod(string selector, ObjC.IdSelId_Bool method);
public unsafe Builder AddMethod(string selector, ObjC.IdSelIdId_Bool method);
public unsafe Builder AddMethod(string selector, ObjC.IdSel_Void method);
public unsafe Builder AddMethod(string selector, ObjC.IdSel_Id method);
public unsafe Builder AddMethod(string selector, ObjC.IdSelIdId_Void method);
public unsafe Builder AddMethod(string selector, ObjC.IdSelIdId_Id method);
public unsafe Builder AddMethod(string selector, ObjC.IdSelCGRect_Void method);
public Builder AddMethod(string selector, Delegate method, string encoding);
public Builder AddValueStorage(string name, nuint size);
public Class Register();
public static implicit operator nint(Builder cls);
}
}
}
namespace Xui.Runtime.IOS
{
using System.Runtime.InteropServices;
using static Xui.Runtime.IOS.CoreGraphics;
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static partial class ObjC
{
public const string LibObjCLib = "/usr/lib/libobjc.dylib";
public static readonly nint Lib;
[LibraryImport(LibObjCLib, EntryPoint = "object_getClass")]
public static partial nint object_getClass(nint instance);
public static string? object_getClassName(nint instance);
[LibraryImport(LibObjCLib, EntryPoint = "objc_getClass")]
public static partial nint objc_getClass([MarshalAs(UnmanagedType.LPStr)] string name);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
public static partial nint objc_msgSend_retIntPtr(nint obj, nint sel);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
[return: MarshalAs(UnmanagedType.LPStr)]
public static partial string objc_msgSend_retCStr(nint obj, nint sel);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
public static partial nuint objc_msgSend_retNUInt(nint obj, nint sel);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
public static partial NFloat objc_msgSend_retNFloat(nint obj, nint sel);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
public static partial float objc_msgSend_retFloat(nint obj, nint sel);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
public static partial nint objc_msgSend_retIntPtr(nint obj, nint sel, nint id1);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
public static partial nint objc_msgSend_retIntPtr(nint obj, nint sel, nint id1, nint id2);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
public static partial double objc_msgSend_retDouble(nint obj, nint sel);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
public static partial int objc_msgSend_retInt(nint obj, nint sel);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
public static unsafe partial CGSize objc_msgSend_retCGSize(nint obj, nint sel, nint id1);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
public static partial void objc_msgSend(nint obj, nint sel);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
public static partial void objc_msgSend(nint obj, nint sel, NFloat v);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
public static partial void objc_msgSend(nint obj, nint sel, nuint v);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
public static partial void objc_msgSend(nint obj, nint sel, nint a1, uint v2);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
public static partial void objc_msgSend(nint obj, nint sel, nint a1, nint v2);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
public static partial void objc_msgSend(nint obj, nint sel, [MarshalAs(UnmanagedType.I1)] bool v1);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
public static partial void objc_msgSend(nint obj, nint sel, nint id1);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
public static partial void objc_msgSend(nint obj, nint sel, nint a1, nint a2, nint a3, nint a4);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSendSuper")]
public static partial void objc_msgSendSuper(ref Super obj, nint sel);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSendSuper")]
public static partial void objc_msgSendSuper(ref Super obj, nint sel, nint id1);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
public static partial void objc_msgSend(nint obj, nint sel, int id1);
[LibraryImport(LibObjCLib)]
public static partial nint objc_getProtocol([MarshalAs(UnmanagedType.LPStr)] string name);
[LibraryImport(LibObjCLib)]
[return: MarshalAs(UnmanagedType.I1)]
public static partial bool class_addProtocol(nint objcclass, nint name);
[LibraryImport(LibObjCLib)]
[return: MarshalAs(UnmanagedType.LPStr)]
public static partial string class_getName(nint objcclass);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
[return: MarshalAs(UnmanagedType.I1)]
public static partial bool objc_msgSend_retBool(nint obj, nint sel);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
[return: MarshalAs(UnmanagedType.I1)]
public static partial bool objc_msgSend_retBool(nint obj, nint sel, int int1);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
[return: MarshalAs(UnmanagedType.I1)]
public static partial bool objc_msgSend_retBool(nint obj, nint sel, nint int1);
[LibraryImport(LibObjCLib)]
public static partial nint objc_allocateClassPair(nint superclass, nint name, nuint extrabytes);
[LibraryImport(LibObjCLib)]
public static partial void objc_registerClassPair(nint @class);
[LibraryImport(LibObjCLib)]
public static partial nint sel_registerName([MarshalAs(UnmanagedType.LPStr)] string cfstring);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate bool SelfSelId_RetBool_Callback(nint self, nint sel, nint sender);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void SelfSel_Callback(nint self, nint sel);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate bool SelfSelIdId_RetBool_Callback(nint self, nint sel, nint id1, nint id2);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void SelfSelId_Callback(nint self, nint sel, nint sender);
[LibraryImport(LibObjCLib, EntryPoint = "class_addMethod")]
[return: MarshalAs(UnmanagedType.I1)]
public static unsafe partial bool class_addMethod(nint objcclass, nint name, [MarshalAs(UnmanagedType.FunctionPtr)] IdSelId_Bool fun, [MarshalAs(UnmanagedType.LPStr)] string types);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate bool IdSelId_Bool(nint self, nint sel, nint v1);
[LibraryImport(LibObjCLib, EntryPoint = "class_addMethod")]
[return: MarshalAs(UnmanagedType.I1)]
public static unsafe partial bool class_addMethod(nint objcclass, nint name, [MarshalAs(UnmanagedType.FunctionPtr)] IdSelIdId_Bool fun, [MarshalAs(UnmanagedType.LPStr)] string types);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate bool IdSelIdId_Bool(nint self, nint sel, nint v1, nint v2);
[LibraryImport(LibObjCLib, EntryPoint = "class_addMethod")]
[return: MarshalAs(UnmanagedType.I1)]
public static unsafe partial bool class_addMethod(nint objcclass, nint name, [MarshalAs(UnmanagedType.FunctionPtr)] IdSel_Void fun, [MarshalAs(UnmanagedType.LPStr)] string types);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate void IdSel_Void(nint self, nint sel);
[LibraryImport(LibObjCLib, EntryPoint = "class_addMethod")]
[return: MarshalAs(UnmanagedType.I1)]
public static unsafe partial bool class_addMethod(nint objcclass, nint name, [MarshalAs(UnmanagedType.FunctionPtr)] IdSel_Id fun, [MarshalAs(UnmanagedType.LPStr)] string types);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate nint IdSel_Id(nint self, nint sel);
[LibraryImport(LibObjCLib, EntryPoint = "class_addMethod")]
[return: MarshalAs(UnmanagedType.I1)]
public static unsafe partial bool class_addMethod(nint objcclass, nint name, [MarshalAs(UnmanagedType.FunctionPtr)] IdSelId_Void fun, [MarshalAs(UnmanagedType.LPStr)] string types);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate void IdSelId_Void(nint self, nint sel, nint v1);
[LibraryImport(LibObjCLib, EntryPoint = "class_addMethod")]
[return: MarshalAs(UnmanagedType.I1)]
public static unsafe partial bool class_addMethod(nint objcclass, nint name, [MarshalAs(UnmanagedType.FunctionPtr)] IdSelIdId_Void fun, [MarshalAs(UnmanagedType.LPStr)] string types);
[LibraryImport(LibObjCLib, EntryPoint = "class_addMethod")]
[return: MarshalAs(UnmanagedType.I1)]
public static unsafe partial bool class_addMethod(nint objcclass, nint name, [MarshalAs(UnmanagedType.FunctionPtr)] IdSelIdId_Id fun, [MarshalAs(UnmanagedType.LPStr)] string types);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate void IdSelIdId_Void(nint self, nint sel, nint v1, nint v2);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate nint IdSelIdId_Id(nint self, nint sel, nint v1, nint v2);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate void IdSelCGRect_Void(nint self, nint sel, CGRect rect);
[LibraryImport(LibObjCLib, EntryPoint = "class_addMethod")]
[return: MarshalAs(UnmanagedType.I1)]
public static unsafe partial bool class_addMethod(nint objcclass, nint name, [MarshalAs(UnmanagedType.FunctionPtr)] IdSel_Bool fun, [MarshalAs(UnmanagedType.LPStr)] string types);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate bool IdSel_Bool(nint self, nint sel);
}
public static partial class UIKit
{
public ref partial struct UITouchRef
{
public readonly nint Self;
public UITouchRef(nint self);
public NFloat Radius { get; }
public UITouch.Phase Phase { get; }
public CGPoint LocationInView(UIView? view);
public CGPoint PreviousLocationInView(UIView? view);
public void Dispose();
public static implicit operator nint(UITouchRef uiEventRef);
}
}
}
namespace Xui.Runtime.IOS
{
using System.Dynamic;
using System.Runtime.InteropServices;
using static Xui.Runtime.IOS.CoreFoundation;
using static Xui.Runtime.IOS.UIKit;
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static partial class ObjC
{
public struct Prop
{
public readonly Sel GetSel;
public readonly Sel SetSel;
public Prop(string get, string set);
public struct Bool
{
public Bool(string get, string set);
public bool Get(nint id);
public void Set(nint id, bool value);
}
public struct NInt
{
public NInt(string get, string set);
public nint Get(nint id);
public void Set(nint id, nint value);
}
public struct NUInt
{
public NUInt(string get, string set);
public nuint Get(nint id);
public void Set(nint id, nuint value);
}
public struct String
{
public String(string get, string set);
public string? Get(nint id);
public void Set(nint id, string? value);
}
}
}
}
namespace Xui.Runtime.IOS
{
using static Xui.Runtime.IOS.CoreFoundation;
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static partial class ObjC
{
///
/// Abstracts operations on Objective-C Class object.
///
public class Protocol
{
public Protocol(string name);
public Protocol(nint lib, string name);
public Protocol(string name, nint id);
public string Name { get; }
public nint Id { get; }
public static implicit operator nint(Protocol protocol);
}
}
}
namespace Xui.Runtime.IOS
{
using System.Diagnostics;
using System;
using static Xui.Runtime.IOS.CoreFoundation;
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static partial class ObjC
{
///
/// Abstracts C# interactions with an Objective-C reference counted instance.
///
public abstract class Ref : IDisposable
{
protected nint Id { get; }
protected Ref(nint id);
public void Dispose();
public static implicit operator nint(Ref cls);
}
}
}
namespace Xui.Runtime.IOS
{
using static Xui.Runtime.IOS.CoreFoundation;
using static Xui.Runtime.IOS.UIKit;
///
/// Objective-C Runtime.
/// Exposing functions from "/usr/lib/libobjc.A.dylib"
/// https://developer.apple.com/documentation/objectivec/objective-c_runtime
///
public static partial class ObjC
{
///
/// Abstracts C# interactions with an Objective-C selector.
///
public class Sel
{
public Sel(nint lib, string name);
public Sel(string name);
public Sel(string name, nint id);
public nint Selector { get; }
public static Sel RegisterName(string name);
public static implicit operator nint(Sel sel);
}
}
}
namespace Xui.Runtime.IOS
{
using System.Runtime.InteropServices;
using Xui.Core.Canvas;
using static Xui.Runtime.IOS.ObjC;
public static partial class UIKit
{
public ref partial struct UIColorRef
{
public static readonly Class Class;
public readonly nint Self;
public UIColorRef(nint self);
public UIColorRef(Color color);
public UIColorRef(NFloat red, NFloat green, NFloat blue, NFloat alpha);
public void Dispose();
public static implicit operator nint(UIColorRef nsColorRef);
}
}
}
namespace Xui.Runtime.IOS
{
using System.Runtime.InteropServices;
using static Xui.Runtime.IOS.CoreGraphics;
using static Xui.Runtime.IOS.ObjC;
public static partial class UIKit
{
}
public static partial class UIKit
{
public const string UIKitLib = "/System/Library/Frameworks/UIKit.framework/UIKit";
public static readonly nint Lib;
public static readonly Protocol UIApplicationDelegate;
public static readonly Protocol UITextInput;
public static readonly Protocol UIKeyInput;
public static readonly Protocol UITextInputTraits;
public static readonly Protocol UITextInputDelegate;
[LibraryImport(UIKitLib)]
public static partial int UIApplicationMain(int argc, nint argv, nint principalClassName, nint delegateClassName);
[LibraryImport(UIKitLib)]
public static partial nint NSSelectorFromString(nint selector);
[LibraryImport(UIKitLib)]
[return: MarshalAs(UnmanagedType.I1)]
public static partial bool UIAccessibilityIsReduceMotionEnabled();
[LibraryImport(UIKitLib)]
[return: MarshalAs(UnmanagedType.I1)]
public static partial bool UIAccessibilityDarkerSystemColorsEnabled();
[LibraryImport(UIKitLib, EntryPoint = "UIGraphicsGetCurrentContext")]
public static partial nint UIGraphicsGetCurrentContext();
}
public static partial class UIKit
{
public partial class UITouch : NSObject
{
public static new readonly Class Class;
public static readonly Sel LocationInViewSel;
public static readonly Sel PreviousLocationInViewSel;
public static readonly Prop.NInt PhaseProp;
public static readonly Sel MajorRadiusSel;
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
public static partial CGPoint objc_msgSend_retCGPoint(nint obj, nint sel, nint view);
public UITouch(nint id);
public UITouch();
public NFloat Radius { get; }
public CGPoint LocationInView(UIView? view);
public CGPoint PreviousLocationInView(UIView? view);
public Phase GetPhase();
}
}
}
namespace Xui.Runtime.IOS
{
using static Xui.Runtime.IOS.CoreFoundation;
using static Xui.Runtime.IOS.ObjC;
using static Xui.Runtime.IOS.UIKit.UIEvent;
public static partial class UIKit
{
public ref partial struct UIEventRef
{
public readonly nint Self;
public UIEventRef(nint self);
public EventType Type { get; }
public EventSubtype Subtype { get; }
public CFSetRef AllTouches { get; }
public void Dispose();
public static implicit operator nint(UIEventRef uiEventRef);
}
}
}
namespace Xui.Runtime.IOS
{
using System.Runtime.InteropServices;
using System;
using static Xui.Runtime.IOS.CoreFoundation;
using static Xui.Runtime.IOS.CoreGraphics;
using static Xui.Runtime.IOS.ObjC;
public static partial class UIKit
{
/// Owned iOS 17+ native text loupe. Dispose on the UI thread when the gesture ends.
public partial struct UITextLoupeSessionPtr : IDisposable
{
public static bool IsSupported { get; }
public readonly bool IsActive { get; }
public static UITextLoupeSessionPtr Begin(CGPoint point, UIView view);
public readonly void Move(CGPoint point, CGRect caret);
public void Dispose();
}
}
}
namespace Xui.Runtime.IOS
{
using System.Runtime.InteropServices;
using Xui.Core.Math2D;
using static Xui.Runtime.IOS.CoreGraphics;
using static Xui.Runtime.IOS.ObjC;
public static partial class UIKit
{
public partial class UIView : UIResponder
{
public static new readonly Class Class;
public static readonly Sel SetNeedsDisplaySel;
public static readonly Sel SafeAreaInsetsSel;
public static readonly Sel TraitCollectionSel;
public static readonly Sel FrameSel;
public static readonly Sel SetFrameSel;
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
public static unsafe partial UIEdgeInsets objc_msgSend_retUIEdgeInsets(nint obj, nint sel);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
public static unsafe partial CGRect objc_msgSend_retCGRect(nint obj, nint sel);
[LibraryImport(LibObjCLib, EntryPoint = "objc_msgSend")]
public static unsafe partial CGRect objc_msgSend(nint obj, nint sel, CGRect rect);
public UIView();
public UIView(nint id);
public bool ClearsContextBeforeDrawing { get; set; }
/// Whether this view receives simultaneous touch contacts.
public bool MultipleTouchEnabled { get; set; }
public void SetNeedsDisplay();
public UIEdgeInsets SafeAreaInsets { get; }
/// Borrowed UITraitCollection for this view's current UIKit environment.
public nint TraitCollection { get; }
public CGRect Frame { get; set; }
}
}
}
namespace Xui.Runtime.IOS
{
using static Xui.Runtime.IOS.CoreGraphics;
using static Xui.Runtime.IOS.ObjC;
public static partial class UIKit
{
public partial class UIWindow : UIView
{
public static new readonly Class Class;
public static readonly Sel MakeKeyAndVisibleSel;
public static readonly Prop.NInt RootViewControllerProp;
public static readonly Prop.NInt BackgroundColorProp;
public static readonly Prop.NInt ScreenProp;
public UIWindow();
public UIWindow(nint id);
public UIViewController RootViewController { get; set; }
/// Borrowed UIScreen associated with this window.
public nint Screen { get; }
public void MakeKeyAndVisible();
}
}
}
namespace Xui.Runtime.IOS.Actual
{
using static Xui.Runtime.IOS.CoreFoundation;
using static Xui.Runtime.IOS.ObjC;
using static Xui.Runtime.IOS.UIKit;
public class IOSDefaultResponder : UIResponder
{
public static new readonly Class Class;
public IOSDefaultResponder(IOSWindow window);
public bool CanBecomeFirstResponder { get; }
public nint NextResponder { get; set; }
protected internal IOSWindow Window { get; }
}
}
namespace Xui.Runtime.IOS.Actual
{
using System.Runtime.InteropServices;
using Xui.Core.Canvas;
using Xui.Core.Math2D;
using static Xui.Runtime.IOS.CoreGraphics;
public partial class IOSDrawingContext
{
}
}
namespace Xui.Runtime.IOS.Actual
{
using System.Runtime.CompilerServices;
using System;
using Xui.Core.Canvas.Symbols;
using Xui.Core.Canvas;
using static Xui.Runtime.IOS.CoreGraphics;
public partial class IOSDrawingContext
{
/// Compiles once to Quartz vector instructions and reuses them at any zoom.
public void DrawSymbol(SymbolContent content);
}
}
namespace Xui.Runtime.IOS.Actual
{
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System;
using Xui.Core.Canvas.Composition.Graphics;
using Xui.Core.Canvas.Filter;
using Xui.Core.Canvas;
using Xui.Core.Math2D;
using Xui.Runtime.IOS;
using static Xui.Runtime.IOS.CoreFoundation;
using static Xui.Runtime.IOS.CoreGraphics;
using static Xui.Runtime.IOS.CoreText;
using static Xui.Runtime.IOS.Foundation;
using static Xui.Runtime.IOS.UIKit;
public partial class IOSDrawingContext : IContext
{
public CompositionGroup Group(scoped in GroupOptions options);
public void EndGroup();
public void SetFilter();
public void SetFilter(Brightness brightness);
public IOSDrawingContext(IFontSource? fontSource = null);
public TextAlign TextAlign { get; set; }
public TextBaseline TextBaseline { get; set; }
public IOSDrawingContext Bind();
public void SetLineDash(ReadOnlySpan segments);
public void Dispose();
}
}
namespace Xui.Runtime.IOS.Actual
{
using System;
public class IOSPlatform : Xui.Core.Actual.IRuntime
{
public IOSPlatform();
public Xui.Core.Actual.IDispatcher MainDispatcher { get; }
public Xui.Core.Actual.IRunLoop CreateRunloop(Xui.Core.Abstract.Application applicationAbstract);
public Xui.Core.Actual.IWindow CreateWindow(Xui.Core.Abstract.IWindow windowAbstract, IServiceProvider applicationServices);
}
}
namespace Xui.Runtime.IOS.Actual
{
using System.Runtime.InteropServices;
using static Xui.Runtime.IOS.ObjC;
using static Xui.Runtime.IOS.UIKit;
public class IOSRootViewController : UIViewController
{
public static new readonly Class Class;
public IOSRootViewController(IOSWindow window);
protected internal IOSWindow Window { get; }
}
}
namespace Xui.Runtime.IOS.Actual
{
using System.Threading;
using System;
using static Xui.Runtime.IOS.CoreFoundation;
public class IOSRunLoop : Xui.Core.Actual.IRunLoop, Xui.Core.Actual.IDispatcher
{
protected Xui.Core.Abstract.Application Application { get; }
public IOSRunLoop(Xui.Core.Abstract.Application application);
public void Post(Action callback);
public static bool ApplicationDidFinishLaunchingWithOptions(nint self, nint sel, nint app, nint opt);
public int Run();
public void Quit();
}
}
namespace Xui.Runtime.IOS.Actual
{
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Threading;
using System;
using Xui.Core.Math2D;
using Xui.Core.UI.Input;
using Xui.Core.UI;
using static Xui.Runtime.IOS.CoreFoundation;
using static Xui.Runtime.IOS.CoreGraphics;
using static Xui.Runtime.IOS.ObjC;
using static Xui.Runtime.IOS.UIKit;
using static Xui.Runtime.IOS.UITextInputValues;
/// UIKit text input backed by the focused Xui editor, with native selection interaction.
public sealed unsafe class IOSSoftKeyboard : UIView
{
public static new readonly Class Class;
public IOSSoftKeyboard(IOSWindow window);
public nint NextResponder { get; set; }
}
}
namespace Xui.Runtime.IOS.Actual
{
using System.Diagnostics;
using System.Threading;
using System;
public class IOSSynchronizationContext : SynchronizationContext
{
public IOSSynchronizationContext(IOSRunLoop iOSRunLoop);
public override void OperationStarted();
public override void OperationCompleted();
public override void Post(SendOrPostCallback d, object? state);
public override void Send(SendOrPostCallback d, object? state);
public override int Wait(nint[] waitHandles, bool waitAll, int millisecondsTimeout);
public override System.Threading.SynchronizationContext CreateCopy();
}
}
namespace Xui.Runtime.IOS.Actual
{
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System;
using Xui.Core.Abstract.Events;
using Xui.Core.Canvas.Composition.Commands;
using Xui.Core.Canvas.Composition.Graphics;
using Xui.Core.Canvas;
using Xui.Core.DI;
using Xui.Core.Math2D;
using static Xui.Runtime.IOS.CoreAnimation;
using static Xui.Runtime.IOS.CoreGraphics;
using static Xui.Runtime.IOS.Foundation;
using static Xui.Runtime.IOS.ObjC;
using static Xui.Runtime.IOS.UIKit;
public class IOSWindow : UIWindow, Xui.Core.Actual.IWindow, Xui.Core.Actual.IStatusBar, Xui.Core.Actual.ITextMagnifier, Xui.Core.Actual.ITextInputSession
{
public static Sel AnimationFrameSel;
public static new readonly Class Class;
[MonoPInvokeCallback(typeof(IdSelId_Void))]
public static void SendEvent(nint self, nint sel, nint uiEvent);
[MonoPInvokeCallback(typeof(IdSelId_Void))]
public static void AnimationFrame(nint self, nint sel, nint caDisplayLink);
public IServiceProvider NextServiceProvider { get; }
public ITextMeasureContext TextMeasureContext { get; }
public IOSWindow(Xui.Core.Abstract.IWindow @abstract, IServiceProvider nextServiceProvider);
public bool RequireKeyboard { get; set; }
public string Title { get; set; }
public Xui.Core.Abstract.IWindow Abstract { get; }
protected IOSSoftKeyboard SoftKeyboard { get; }
protected IOSDefaultResponder DefaultResponder { get; }
public void Invalidate();
public Xui.Core.Actual.StatusBarAppearance Appearance { get; set; }
}
}
namespace Xui.Runtime.IOS.Actual
{
using System.Diagnostics;
using System.Runtime.InteropServices;
using Xui.Core.Math2D;
using static Xui.Runtime.IOS.CoreGraphics;
using static Xui.Runtime.IOS.ObjC;
using static Xui.Runtime.IOS.UIKit;
public class IOSWindowRootView : UIView
{
public static new readonly Class Class;
[MonoPInvokeCallback(typeof(IdSelCGRect_Void))]
public static void DrawRect(nint self, nint sel, CGRect rect);
[MonoPInvokeCallback(typeof(IdSel_Void))]
public static void SafeAreaInsetsDidChange(nint self, nint sel);
[MonoPInvokeCallback(typeof(IdSelId_Void))]
public static void TraitCollectionDidChange(nint self, nint sel, nint previousTraits);
[MonoPInvokeCallback(typeof(IdSel_Void))]
public static void LayoutSubviews(nint self, nint sel);
public IOSWindowRootView(IOSWindow window);
protected internal IOSWindow Window { get; }
public new void SetNeedsDisplay();
protected void SafeAreaInsetsDidChange(nint sel);
protected void TraitCollectionDidChange(nint sel, nint previousTraits);
protected void LayoutSubviews(nint sel);
}
}