tiny.sys.apple.objc
Defined in apple.
API (25)
Actions
Public operations.
AutoreleasePool.deinitAutoreleasePool.initaddMethodaddPointerIvarallocateClassPairbooleanclassdisposeClassPairinstancePointerisTruelookupClassregisterClassPairreleaserespondsTo: Whethertargetimplementsoperation, so that optional API can be probed before it is sent.retainselectorsendsetInstancePointer
Types and contracts
Public types and contracts.
Values and defaults
Public values and defaults.
Source
Source: lib/sys/src/apple/objc.zig
zig
const std = @import("std");const builtin = @import("builtin");pub const Class = *opaque {};pub const Ivar = *opaque {};pub const SEL = *opaque {};pub const Id = *anyopaque;pub const BOOL = boolType(builtin.cpu.arch);pub const nil: ?Id = null;extern fn objc_getClass(name: [*:0]const u8) ?Class;extern fn objc_allocateClassPair( superclass: Class, name: [*:0]const u8, extra_bytes: usize,) ?Class;extern fn objc_registerClassPair(class_value: Class) void;extern fn objc_disposeClassPair(class_value: Class) void;extern fn class_addIvar( class_value: Class, name: [*:0]const u8, size: usize, alignment: u8, types: ?[*:0]const u8,) BOOL;extern fn class_addMethod( class_value: Class, operation: SEL, implementation: *const anyopaque, types: [*:0]const u8,) BOOL;extern fn object_setInstanceVariable( object: Id, name: [*:0]const u8, value: ?*anyopaque,) ?Ivar;extern fn object_getInstanceVariable( object: Id, name: [*:0]const u8, value: *?*anyopaque,) ?Ivar;extern fn sel_registerName(name: [*:0]const u8) SEL;extern fn objc_msgSend() void;extern fn objc_msgSend_stret() void;extern fn objc_autoreleasePoolPush() *anyopaque;extern fn objc_autoreleasePoolPop(context: *anyopaque) void;pub const AutoreleasePool = struct { context: *anyopaque, pub fn init() AutoreleasePool { return .{ .context = objc_autoreleasePoolPush() }; } pub fn deinit(self: *AutoreleasePool) void { objc_autoreleasePoolPop(self.context); self.* = undefined; }};pub fn lookupClass(name: [*:0]const u8) ?Class { return objc_getClass(name);}pub fn class(name: [*:0]const u8) ?Id { return @ptrCast(lookupClass(name) orelse return null);}pub fn allocateClassPair(superclass: Class, name: [*:0]const u8) ?Class { return objc_allocateClassPair(superclass, name, 0);}pub fn registerClassPair(class_value: Class) void { objc_registerClassPair(class_value);}pub fn disposeClassPair(class_value: Class) void { objc_disposeClassPair(class_value);}pub fn addPointerIvar(class_value: Class, name: [*:0]const u8) bool { const pointer_alignment: u8 = @intCast(@ctz(@as(usize, @alignOf(*anyopaque)))); return isTrue(class_addIvar( class_value, name, @sizeOf(*anyopaque), pointer_alignment, "^v", ));}pub fn addMethod( class_value: Class, operation: SEL, implementation: *const anyopaque, types: [*:0]const u8,) bool { return isTrue(class_addMethod(class_value, operation, implementation, types));}pub fn setInstancePointer( object: Id, name: [*:0]const u8, value: ?*anyopaque,) bool { return object_setInstanceVariable(object, name, value) != null;}pub fn instancePointer(object: Id, name: [*:0]const u8) ?*anyopaque { var value: ?*anyopaque = null; _ = object_getInstanceVariable(object, name, &value) orelse return null; return value;}pub fn selector(name: [*:0]const u8) SEL { return sel_registerName(name);}pub fn boolean(value: bool) BOOL { return booleanFor(builtin.cpu.arch, value);}pub fn isTrue(value: BOOL) bool { return isTrueFor(builtin.cpu.arch, value);}pub fn retain(target: anytype) @TypeOf(target) { const retained = send(Id, @ptrCast(target), selector("retain"), .{}); return @ptrCast(retained);}pub fn release(target: anytype) void { send(void, @ptrCast(target), selector("release"), .{});}/// Whether `target` implements `operation`, so that optional API can be probed before it is sent.pub fn respondsTo(target: Id, operation: SEL) bool { return isTrue(send(BOOL, target, selector("respondsToSelector:"), .{operation}));}pub fn send(comptime Return: type, target: Id, operation: SEL, arguments: anytype) Return { return dispatch(Return, entryForReturn(Return, builtin.cpu.arch), target, operation, arguments);}const Entry = enum { message, structure,};fn dispatch( comptime Return: type, comptime entry_kind: Entry, target: Id, operation: SEL, arguments: anytype,) Return { const entry = if (comptime entry_kind == .structure) &objc_msgSend_stret else &objc_msgSend; const implementation: *const message(Return, @TypeOf(arguments)) = @ptrCast(entry); return @call(.auto, implementation, .{ target, operation } ++ arguments);}fn boolType(comptime arch: std.Target.Cpu.Arch) type { return switch (arch) { .aarch64 => bool, else => i8, };}fn booleanFor(comptime arch: std.Target.Cpu.Arch, value: bool) boolType(arch) { return switch (arch) { .aarch64 => value, else => @intFromBool(value), };}fn isTrueFor(comptime arch: std.Target.Cpu.Arch, value: boolType(arch)) bool { return switch (arch) { .aarch64 => value, else => value != 0, };}fn entryForReturn(comptime Return: type, comptime arch: std.Target.Cpu.Arch) Entry { return switch (@typeInfo(Return)) { .@"struct" => if (comptime supportedAggregateReturn(Return)) if (arch == .x86_64 and @sizeOf(Return) > 16) .structure else .message else @compileError("Objective-C aggregate returns support only non-empty extern f64 structures"), else => .message, };}fn supportedAggregateReturn(comptime Aggregate: type) bool { const aggregate = switch (@typeInfo(Aggregate)) { .@"struct" => |info| info, else => return false, }; if (aggregate.layout != .@"extern" or aggregate.field_types.len == 0) return false; inline for (aggregate.field_types) |field_type| { switch (@typeInfo(field_type)) { .float => if (field_type != f64) return false, .@"struct" => if (!supportedAggregateReturn(field_type)) return false, else => return false, } } return true;}/// The most explicit arguments one message takes. Metal's longest selectors take nine.const max_message_arguments = 12;/// The C signature of a message that takes `Arguments`, a tuple of explicit argument types, after/// the receiver and selector.fn message(comptime Return: type, comptime Arguments: type) type { const argument_types = @typeInfo(Arguments).@"struct".field_types; if (argument_types.len > max_message_arguments) { @compileError("Objective-C messages support at most twelve explicit arguments"); } var parameter_types: [argument_types.len + 2]type = undefined; parameter_types[0] = Id; parameter_types[1] = SEL; for (argument_types, parameter_types[2..]) |argument_type, *parameter_type| { parameter_type.* = argument_type; } return @Fn(¶meter_types, &@splat(.{}), Return, .{ .@"callconv" = .c });}test "Objective-C ABI scalar and pointer layouts" { try std.testing.expectEqual(@as(usize, 1), @sizeOf(BOOL)); try std.testing.expect(boolType(.aarch64) == bool); try std.testing.expect(boolType(.x86_64) == i8); try std.testing.expectEqual(@sizeOf(usize), @sizeOf(Class)); try std.testing.expectEqual(@sizeOf(usize), @sizeOf(Ivar)); try std.testing.expectEqual(@sizeOf(usize), @sizeOf(SEL)); try std.testing.expectEqual(@sizeOf(usize), @sizeOf(Id)); try std.testing.expectEqual(true, booleanFor(.aarch64, true)); try std.testing.expectEqual(false, booleanFor(.aarch64, false)); try std.testing.expectEqual(@as(i8, 1), booleanFor(.x86_64, true)); try std.testing.expectEqual(@as(i8, 0), booleanFor(.x86_64, false)); try std.testing.expect(isTrueFor(.aarch64, true)); try std.testing.expect(isTrueFor(.x86_64, -1)); try std.testing.expect(isTrue(boolean(true))); try std.testing.expect(!isTrue(boolean(false)));}test "Objective-C message signatures preserve exact C ABI types" { const Signature = message(?Id, struct { u64, BOOL }); const info = @typeInfo(Signature).@"fn"; try std.testing.expectEqual(std.builtin.CallingConvention.c, info.attrs.@"callconv"); try std.testing.expect(info.return_type.? == ?Id); try std.testing.expect(info.param_types[0].? == Id); try std.testing.expect(info.param_types[1].? == SEL); try std.testing.expect(info.param_types[2].? == u64); try std.testing.expect(info.param_types[3].? == BOOL);}test "Objective-C dispatch exposes one message entry API" { try std.testing.expect(!@hasDecl(@This(), "sendStret"));}test "Objective-C autorelease pool has an explicit poll lifetime" { if (comptime builtin.os.tag != .macos) return error.SkipZigTest; var pool = AutoreleasePool.init(); pool.deinit();}const ObjectiveCPointFixture = extern struct { x: f64, y: f64,};const ObjectiveCRectFixture = extern struct { origin: ObjectiveCPointFixture, size: ObjectiveCPointFixture,};const ObjectiveCIntegerPairFixture = extern struct { x: u64, y: u64,};const ObjectiveCNativePointFixture = struct { x: f64, y: f64,};test "Objective-C aggregate entry follows the macOS architecture ABI" { try std.testing.expect(supportedAggregateReturn(ObjectiveCPointFixture)); try std.testing.expect(supportedAggregateReturn(ObjectiveCRectFixture)); try std.testing.expect(!supportedAggregateReturn(ObjectiveCIntegerPairFixture)); try std.testing.expect(!supportedAggregateReturn(ObjectiveCNativePointFixture)); try std.testing.expectEqual(Entry.message, entryForReturn(ObjectiveCPointFixture, .aarch64)); try std.testing.expectEqual(Entry.message, entryForReturn(ObjectiveCRectFixture, .aarch64)); try std.testing.expectEqual(Entry.message, entryForReturn(ObjectiveCPointFixture, .x86_64)); try std.testing.expectEqual(Entry.structure, entryForReturn(ObjectiveCRectFixture, .x86_64));}Source: lib/sys/src/apple/root.zig:11
zig
pub const objc = @import("objc.zig");Complete caller list for apple.objc.boolean
11 direct callers.
tiny.sys.apple.metal.newDepthStencilState[function] atlib/sys/src/apple/metal.zig:547tiny.sys.apple.metal.newIndirectCommandBuffer[function] atlib/sys/src/apple/metal.zig:749tiny.sys.apple.metal.newLayer[function] atlib/sys/src/apple/metal.zig:853tiny.sys.apple.metal.newRenderPipelineState[function] atlib/sys/src/apple/metal.zig:513tiny.sys.apple.metal.newSafeCompileOptions[function] atlib/sys/src/apple/metal.zig:419tiny.sys.apple.metal.newTexture2D[function] atlib/sys/src/apple/metal.zig:436lib.sys.src.apple.objc.test_Objective-C_ABI_scalar_and_pointer_layouts[function] — test source atlib/sys/src/apple/objc.zig:232in nearest public ownertiny.sys.apple.objclib.sys.src.probe.apple.abi.objc.sys_objc_abi_bool[function] — private source atlib/sys/src/probe/apple/abi/objc.zig:6in nearest public ownerlib.sys.src.probe.apple.abi.objclib.windowing.src.cocoa.CocoaBackend.pollEvents[method] — private source atlib/windowing/src/cocoa.zig:418in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.NativeWindow.init[function] — private source atlib/windowing/src/cocoa.zig:272in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.windowShouldCloseCallback[function] — private source atlib/windowing/src/cocoa.zig:82in nearest public ownerlib.windowing.src.cocoa
Complete caller list for apple.objc.class
9 direct callers.
tiny.sys.apple.foundation.AutoreleasePool.init[function] atlib/sys/src/apple/foundation.zig:14tiny.sys.apple.foundation.stringFromBytes[function] atlib/sys/src/apple/foundation.zig:27tiny.sys.apple.gamecontroller.Runtime.init[function] atlib/sys/src/apple/gamecontroller.zig:159lib.sys.src.apple.metal.newObject[function] — private source atlib/sys/src/apple/metal.zig:893in nearest public ownertiny.sys.apple.metaltiny.sys.apple.metal.newTexture2D[function] atlib/sys/src/apple/metal.zig:436tiny.sys.apple.metal.renderPassDescriptor[function] atlib/sys/src/apple/metal.zig:556tiny.sys.apple.metal.vertexDescriptor[function] atlib/sys/src/apple/metal.zig:469lib.windowing.src.cocoa.cls[function] — private source atlib/windowing/src/cocoa.zig:34in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.retainedString[function] — private source atlib/windowing/src/cocoa.zig:335in nearest public ownerlib.windowing.src.cocoa
Complete caller list for apple.objc.isTrue
9 direct callers.
tiny.sys.apple.gamecontroller.Runtime.buttonPressed[method] atlib/sys/src/apple/gamecontroller.zig:207lib.sys.src.apple.gamecontroller.Runtime.responds[method] — private source atlib/sys/src/apple/gamecontroller.zig:395in nearest public ownertiny.sys.apple.gamecontrollertiny.sys.apple.objc.addMethod[function] atlib/sys/src/apple/objc.zig:93tiny.sys.apple.objc.addPointerIvar[function] atlib/sys/src/apple/objc.zig:82tiny.sys.apple.objc.respondsTo[function] atlib/sys/src/apple/objc.zig:138lib.sys.src.apple.objc.test_Objective-C_ABI_scalar_and_pointer_layouts[function] — test source atlib/sys/src/apple/objc.zig:232in nearest public ownertiny.sys.apple.objclib.windowing.src.cocoa.CocoaBackend.isMaximized[method] — private source atlib/windowing/src/cocoa.zig:554in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.setClipboardText[method] — private source atlib/windowing/src/cocoa.zig:573in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.translateKeyDown[method] — private source atlib/windowing/src/cocoa.zig:791in nearest public ownerlib.windowing.src.cocoa
Complete caller list for apple.objc.release
36 direct callers.
lib.gpu.src.runtime.metal.runtime.availability.detectAvailability[function] — private source atlib/gpu/src/runtime/metal/runtime/availability.zig:9in nearest public ownerlib.gpu.src.runtime.metal.runtime.availabilitylib.gpu.src.runtime.metal.runtime.device.Runtime.createKernel[method] — private source atlib/gpu/src/runtime/metal/runtime/device.zig:171in nearest public ownerlib.gpu.src.runtime.metal.runtime.devicelib.gpu.src.runtime.metal.runtime.device.Runtime.deinit[method] — private source atlib/gpu/src/runtime/metal/runtime/device.zig:65in nearest public ownerlib.gpu.src.runtime.metal.runtime.devicelib.gpu.src.runtime.metal.runtime.device.Runtime.init[function] — private source atlib/gpu/src/runtime/metal/runtime/device.zig:50in nearest public ownerlib.gpu.src.runtime.metal.runtime.devicelib.gpu.src.runtime.metal.runtime.device.Runtime.loadMetallib[method] — private source atlib/gpu/src/runtime/metal/runtime/device.zig:153in nearest public ownerlib.gpu.src.runtime.metal.runtime.devicelib.gpu.src.runtime.metal.runtime.device.Runtime.loadMsl[method] — private source atlib/gpu/src/runtime/metal/runtime/device.zig:88in nearest public ownerlib.gpu.src.runtime.metal.runtime.devicelib.gpu.src.runtime.metal.runtime.device.Runtime.newLibrary[method] — private source atlib/gpu/src/runtime/metal/runtime/device.zig:109in nearest public ownerlib.gpu.src.runtime.metal.runtime.devicelib.gpu.src.runtime.metal.runtime.object.DeviceBuffer.deinit[method] — private source atlib/gpu/src/runtime/metal/runtime/object.zig:143in nearest public ownerlib.gpu.src.runtime.metal.runtime.objectlib.gpu.src.runtime.metal.runtime.object.Event.deinit[method] — private source atlib/gpu/src/runtime/metal/runtime/object.zig:77in nearest public ownerlib.gpu.src.runtime.metal.runtime.objectlib.gpu.src.runtime.metal.runtime.object.Event.replaceCommandBuffer[method] — private source atlib/gpu/src/runtime/metal/runtime/object.zig:88in nearest public ownerlib.gpu.src.runtime.metal.runtime.objectlib.gpu.src.runtime.metal.runtime.object.LoadedKernel.deinit[method] — private source atlib/gpu/src/runtime/metal/runtime/object.zig:132in nearest public ownerlib.gpu.src.runtime.metal.runtime.objectlib.gpu.src.runtime.metal.runtime.object.Stream.deinit[method] — private source atlib/gpu/src/runtime/metal/runtime/object.zig:24in nearest public ownerlib.gpu.src.runtime.metal.runtime.objectlib.gpu.src.runtime.metal.runtime.object.Stream.replaceLastCommandBuffer[method] — private source atlib/gpu/src/runtime/metal/runtime/object.zig:31in nearest public ownerlib.gpu.src.runtime.metal.runtime.objectlib.gpu.src.runtime.metal.runtime.raster.Frame.release[method] — private source atlib/gpu/src/runtime/metal/runtime/raster.zig:309in nearest public ownerlib.gpu.src.runtime.metal.runtime.rasterlib.gpu.src.runtime.metal.runtime.raster.Surface.create[function] — private source atlib/gpu/src/runtime/metal/runtime/raster.zig:231in nearest public ownerlib.gpu.src.runtime.metal.runtime.rasterlib.gpu.src.runtime.metal.runtime.raster.Surface.deinit[method] — private source atlib/gpu/src/runtime/metal/runtime/raster.zig:251in nearest public ownerlib.gpu.src.runtime.metal.runtime.rasterlib.gpu.src.runtime.metal.runtime.raster.Surface.present[method] — private source atlib/gpu/src/runtime/metal/runtime/raster.zig:276in nearest public ownerlib.gpu.src.runtime.metal.runtime.rasterlib.gpu.src.runtime.metal.runtime.raster.Texture.deinit[method] — private source atlib/gpu/src/runtime/metal/runtime/raster.zig:44in nearest public ownerlib.gpu.src.runtime.metal.runtime.rasterlib.gpu.src.runtime.metal.runtime.raster.createPipelineState[function] — private source atlib/gpu/src/runtime/metal/runtime/raster.zig:127in nearest public ownerlib.gpu.src.runtime.metal.runtime.rasterlib.gpu.src.runtime.metal.runtime.raster.libraryFunction[function] — private source atlib/gpu/src/runtime/metal/runtime/raster.zig:162in nearest public ownerlib.gpu.src.runtime.metal.runtime.rasterlib.gpu.src.runtime.metal.runtime.raster.transferTexture[function] — private source atlib/gpu/src/runtime/metal/runtime/raster.zig:59in nearest public ownerlib.gpu.src.runtime.metal.runtime.rastertiny.sys.apple.gamecontroller.Controller.release[method] atlib/sys/src/apple/gamecontroller.zig:43tiny.sys.apple.gamecontroller.ControllerList.deinit[method] atlib/sys/src/apple/gamecontroller.zig:62tiny.sys.apple.metal.newDepthStencilState[function] atlib/sys/src/apple/metal.zig:547tiny.sys.apple.metal.newIndirectCommandBuffer[function] atlib/sys/src/apple/metal.zig:749tiny.sys.apple.metal.newRenderPipelineState[function] atlib/sys/src/apple/metal.zig:513tiny.sys.apple.metal.newSamplerState[function] atlib/sys/src/apple/metal.zig:457lib.sys.src.probe.apple.abi.metal.sys_metal_abi_objects[function] — private source atlib/sys/src/probe/apple/abi/metal.zig:28in nearest public ownerlib.sys.src.probe.apple.abi.metallib.windowing.src.cocoa.CocoaBackend.deinit[method] — private source atlib/windowing/src/cocoa.zig:403in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.getClipboardTextAlloc[method] — private source atlib/windowing/src/cocoa.zig:558in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.pollEvents[method] — private source atlib/windowing/src/cocoa.zig:418in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.setClipboardText[method] — private source atlib/windowing/src/cocoa.zig:573in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.setTitle[method] — private source atlib/windowing/src/cocoa.zig:518in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.NativeWindow.deinit[method] — private source atlib/windowing/src/cocoa.zig:316in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.NativeWindow.init[function] — private source atlib/windowing/src/cocoa.zig:272in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.releaseWindow[function] — private source atlib/windowing/src/cocoa.zig:330in nearest public ownerlib.windowing.src.cocoa
Complete caller list for apple.objc.selector
86 direct callers.
tiny.sys.apple.foundation.AutoreleasePool.deinit[method] atlib/sys/src/apple/foundation.zig:21tiny.sys.apple.foundation.AutoreleasePool.init[function] atlib/sys/src/apple/foundation.zig:14tiny.sys.apple.foundation.errorCode[function] atlib/sys/src/apple/foundation.zig:49tiny.sys.apple.foundation.errorDescription[function] atlib/sys/src/apple/foundation.zig:45tiny.sys.apple.foundation.stringFromBytes[function] atlib/sys/src/apple/foundation.zig:27tiny.sys.apple.foundation.utf8[function] atlib/sys/src/apple/foundation.zig:40lib.sys.src.apple.gamecontroller.Selectors.init[function] — private source atlib/sys/src/apple/gamecontroller.zig:115in nearest public ownertiny.sys.apple.gamecontrollertiny.sys.apple.metal.attachLayer[function] atlib/sys/src/apple/metal.zig:865tiny.sys.apple.metal.blitCommandEncoder[function] atlib/sys/src/apple/metal.zig:592tiny.sys.apple.metal.bufferContents[function] atlib/sys/src/apple/metal.zig:413tiny.sys.apple.metal.commandBuffer[function] atlib/sys/src/apple/metal.zig:293tiny.sys.apple.metal.commandBufferError[function] atlib/sys/src/apple/metal.zig:404tiny.sys.apple.metal.commandBufferStatus[function] atlib/sys/src/apple/metal.zig:394tiny.sys.apple.metal.commit[function] atlib/sys/src/apple/metal.zig:386tiny.sys.apple.metal.computeCommandEncoder[function] atlib/sys/src/apple/metal.zig:297tiny.sys.apple.metal.copyBufferToTexture[function] atlib/sys/src/apple/metal.zig:715tiny.sys.apple.metal.copyTextureToBuffer[function] atlib/sys/src/apple/metal.zig:731tiny.sys.apple.metal.detachLayer[function] atlib/sys/src/apple/metal.zig:879tiny.sys.apple.metal.deviceName[function] atlib/sys/src/apple/metal.zig:431tiny.sys.apple.metal.dispatchThreadgroups[function] atlib/sys/src/apple/metal.zig:369tiny.sys.apple.metal.drawIndexedPrimitives[function] atlib/sys/src/apple/metal.zig:672tiny.sys.apple.metal.drawPrimitives[function] atlib/sys/src/apple/metal.zig:656tiny.sys.apple.metal.drawableTexture[function] atlib/sys/src/apple/metal.zig:889tiny.sys.apple.metal.encodeSignalEvent[function] atlib/sys/src/apple/metal.zig:314tiny.sys.apple.metal.encodeWaitForEvent[function] atlib/sys/src/apple/metal.zig:323tiny.sys.apple.metal.endBlitEncoding[function] atlib/sys/src/apple/metal.zig:710tiny.sys.apple.metal.endEncoding[function] atlib/sys/src/apple/metal.zig:382tiny.sys.apple.metal.endRenderEncoding[function] atlib/sys/src/apple/metal.zig:706tiny.sys.apple.metal.executeCommands[function] atlib/sys/src/apple/metal.zig:702tiny.sys.apple.metal.indirectCommandsCarryDepthState[function] atlib/sys/src/apple/metal.zig:776tiny.sys.apple.metal.indirectDrawIndexedPrimitives[function] atlib/sys/src/apple/metal.zig:809tiny.sys.apple.metal.indirectDrawPrimitives[function] atlib/sys/src/apple/metal.zig:793tiny.sys.apple.metal.indirectRenderCommand[function] atlib/sys/src/apple/metal.zig:770tiny.sys.apple.metal.newBuffer[function] atlib/sys/src/apple/metal.zig:240tiny.sys.apple.metal.newCommandQueue[function] atlib/sys/src/apple/metal.zig:232tiny.sys.apple.metal.newComputePipelineState[function] atlib/sys/src/apple/metal.zig:280tiny.sys.apple.metal.newDepthStencilState[function] atlib/sys/src/apple/metal.zig:547tiny.sys.apple.metal.newFunction[function] atlib/sys/src/apple/metal.zig:276tiny.sys.apple.metal.newIndirectCommandBuffer[function] atlib/sys/src/apple/metal.zig:749tiny.sys.apple.metal.newLayer[function] atlib/sys/src/apple/metal.zig:853tiny.sys.apple.metal.newLibraryWithData[function] atlib/sys/src/apple/metal.zig:263tiny.sys.apple.metal.newLibraryWithSource[function] atlib/sys/src/apple/metal.zig:249lib.sys.src.apple.metal.newObject[function] — private source atlib/sys/src/apple/metal.zig:893in nearest public ownertiny.sys.apple.metaltiny.sys.apple.metal.newRenderPipelineState[function] atlib/sys/src/apple/metal.zig:513tiny.sys.apple.metal.newSafeCompileOptions[function] atlib/sys/src/apple/metal.zig:419tiny.sys.apple.metal.newSamplerState[function] atlib/sys/src/apple/metal.zig:457tiny.sys.apple.metal.newSharedEvent[function] atlib/sys/src/apple/metal.zig:236tiny.sys.apple.metal.newTexture2D[function] atlib/sys/src/apple/metal.zig:436tiny.sys.apple.metal.nextDrawable[function] atlib/sys/src/apple/metal.zig:885tiny.sys.apple.metal.presentDrawable[function] atlib/sys/src/apple/metal.zig:596tiny.sys.apple.metal.renderCommandEncoder[function] atlib/sys/src/apple/metal.zig:583tiny.sys.apple.metal.renderPassDescriptor[function] atlib/sys/src/apple/metal.zig:556lib.sys.src.apple.metal.setAttachment[function] — private source atlib/sys/src/apple/metal.zig:576in nearest public ownertiny.sys.apple.metaltiny.sys.apple.metal.setBuffer[function] atlib/sys/src/apple/metal.zig:341tiny.sys.apple.metal.setBytes[function] atlib/sys/src/apple/metal.zig:355tiny.sys.apple.metal.setColorAttachment[function] atlib/sys/src/apple/metal.zig:562tiny.sys.apple.metal.setComputePipelineState[function] atlib/sys/src/apple/metal.zig:332tiny.sys.apple.metal.setDepthAttachment[function] atlib/sys/src/apple/metal.zig:570tiny.sys.apple.metal.setDepthBias[function] atlib/sys/src/apple/metal.zig:608tiny.sys.apple.metal.setDepthStencilState[function] atlib/sys/src/apple/metal.zig:604tiny.sys.apple.metal.setFragmentBuffer[function] atlib/sys/src/apple/metal.zig:634tiny.sys.apple.metal.setFragmentBytes[function] atlib/sys/src/apple/metal.zig:642tiny.sys.apple.metal.setFragmentTexture[function] atlib/sys/src/apple/metal.zig:651tiny.sys.apple.metal.setFrontFacingWinding[function] atlib/sys/src/apple/metal.zig:626tiny.sys.apple.metal.setIndirectFragmentBuffer[function] atlib/sys/src/apple/metal.zig:789tiny.sys.apple.metal.setIndirectPipelineState[function] atlib/sys/src/apple/metal.zig:781tiny.sys.apple.metal.setIndirectVertexBuffer[function] atlib/sys/src/apple/metal.zig:785tiny.sys.apple.metal.setRenderPipelineState[function] atlib/sys/src/apple/metal.zig:600tiny.sys.apple.metal.setScissorRect[function] atlib/sys/src/apple/metal.zig:616tiny.sys.apple.metal.setSignaledValue[function] atlib/sys/src/apple/metal.zig:306tiny.sys.apple.metal.setVertexAttribute[function] atlib/sys/src/apple/metal.zig:474tiny.sys.apple.metal.setVertexBuffer[function] atlib/sys/src/apple/metal.zig:630tiny.sys.apple.metal.setVertexBytes[function] atlib/sys/src/apple/metal.zig:638tiny.sys.apple.metal.setVertexLayout[function] atlib/sys/src/apple/metal.zig:488tiny.sys.apple.metal.setVertexTexture[function] atlib/sys/src/apple/metal.zig:646tiny.sys.apple.metal.setViewport[function] atlib/sys/src/apple/metal.zig:612tiny.sys.apple.metal.signaledValue[function] atlib/sys/src/apple/metal.zig:310lib.sys.src.apple.metal.subscript[function] — private source atlib/sys/src/apple/metal.zig:899in nearest public ownertiny.sys.apple.metaltiny.sys.apple.metal.useResources[function] atlib/sys/src/apple/metal.zig:692tiny.sys.apple.metal.vertexDescriptor[function] atlib/sys/src/apple/metal.zig:469tiny.sys.apple.metal.waitUntilCompleted[function] atlib/sys/src/apple/metal.zig:390tiny.sys.apple.objc.release[function] atlib/sys/src/apple/objc.zig:133tiny.sys.apple.objc.respondsTo[function] atlib/sys/src/apple/objc.zig:138tiny.sys.apple.objc.retain[function] atlib/sys/src/apple/objc.zig:128lib.windowing.src.cocoa.Selectors.init[function] — private source atlib/windowing/src/cocoa.zig:154in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.windowDelegateClass[function] — private source atlib/windowing/src/cocoa.zig:43in nearest public ownerlib.windowing.src.cocoa
Complete caller list for apple.objc.send
125 direct callers.
tiny.sys.apple.foundation.AutoreleasePool.deinit[method] atlib/sys/src/apple/foundation.zig:21tiny.sys.apple.foundation.AutoreleasePool.init[function] atlib/sys/src/apple/foundation.zig:14tiny.sys.apple.foundation.errorCode[function] atlib/sys/src/apple/foundation.zig:49tiny.sys.apple.foundation.errorDescription[function] atlib/sys/src/apple/foundation.zig:45tiny.sys.apple.foundation.stringFromBytes[function] atlib/sys/src/apple/foundation.zig:27tiny.sys.apple.foundation.utf8[function] atlib/sys/src/apple/foundation.zig:40tiny.sys.apple.gamecontroller.ControllerList.at[method] atlib/sys/src/apple/gamecontroller.zig:68lib.sys.src.apple.gamecontroller.Runtime.axisObject[method] — private source atlib/sys/src/apple/gamecontroller.zig:357in nearest public ownertiny.sys.apple.gamecontrollertiny.sys.apple.gamecontroller.Runtime.axisValue[method] atlib/sys/src/apple/gamecontroller.zig:216tiny.sys.apple.gamecontroller.Runtime.buttonPressed[method] atlib/sys/src/apple/gamecontroller.zig:207tiny.sys.apple.gamecontroller.Runtime.controllerName[method] atlib/sys/src/apple/gamecontroller.zig:194tiny.sys.apple.gamecontroller.Runtime.controllers[method] atlib/sys/src/apple/gamecontroller.zig:167tiny.sys.apple.gamecontroller.Runtime.createRetainedSnapshot[method] atlib/sys/src/apple/gamecontroller.zig:221lib.sys.src.apple.gamecontroller.Runtime.directButton[method] — private source atlib/sys/src/apple/gamecontroller.zig:337in nearest public ownertiny.sys.apple.gamecontrollerlib.sys.src.apple.gamecontroller.Runtime.directionButton[method] — private source atlib/sys/src/apple/gamecontroller.zig:347in nearest public ownertiny.sys.apple.gamecontrollertiny.sys.apple.gamecontroller.Runtime.extendedGamepad[method] atlib/sys/src/apple/gamecontroller.zig:184lib.sys.src.apple.gamecontroller.Runtime.responds[method] — private source atlib/sys/src/apple/gamecontroller.zig:395in nearest public ownertiny.sys.apple.gamecontrollertiny.sys.apple.gamecontroller.Runtime.setAxisValue[method] atlib/sys/src/apple/gamecontroller.zig:254tiny.sys.apple.gamecontroller.Runtime.setButtonValue[method] atlib/sys/src/apple/gamecontroller.zig:235lib.sys.src.apple.gamecontroller.Runtime.setDirectionButtonValue[method] — private source atlib/sys/src/apple/gamecontroller.zig:293in nearest public ownertiny.sys.apple.gamecontrollertiny.sys.apple.gamecontroller.Runtime.setDirectionPadValue[method] atlib/sys/src/apple/gamecontroller.zig:271tiny.sys.apple.metal.attachLayer[function] atlib/sys/src/apple/metal.zig:865tiny.sys.apple.metal.blitCommandEncoder[function] atlib/sys/src/apple/metal.zig:592tiny.sys.apple.metal.bufferContents[function] atlib/sys/src/apple/metal.zig:413tiny.sys.apple.metal.commandBuffer[function] atlib/sys/src/apple/metal.zig:293tiny.sys.apple.metal.commandBufferError[function] atlib/sys/src/apple/metal.zig:404tiny.sys.apple.metal.commandBufferStatus[function] atlib/sys/src/apple/metal.zig:394tiny.sys.apple.metal.commit[function] atlib/sys/src/apple/metal.zig:386tiny.sys.apple.metal.computeCommandEncoder[function] atlib/sys/src/apple/metal.zig:297tiny.sys.apple.metal.copyBufferToTexture[function] atlib/sys/src/apple/metal.zig:715tiny.sys.apple.metal.copyTextureToBuffer[function] atlib/sys/src/apple/metal.zig:731tiny.sys.apple.metal.detachLayer[function] atlib/sys/src/apple/metal.zig:879tiny.sys.apple.metal.deviceName[function] atlib/sys/src/apple/metal.zig:431tiny.sys.apple.metal.dispatchThreadgroups[function] atlib/sys/src/apple/metal.zig:369tiny.sys.apple.metal.drawIndexedPrimitives[function] atlib/sys/src/apple/metal.zig:672tiny.sys.apple.metal.drawPrimitives[function] atlib/sys/src/apple/metal.zig:656tiny.sys.apple.metal.drawableTexture[function] atlib/sys/src/apple/metal.zig:889tiny.sys.apple.metal.encodeSignalEvent[function] atlib/sys/src/apple/metal.zig:314tiny.sys.apple.metal.encodeWaitForEvent[function] atlib/sys/src/apple/metal.zig:323tiny.sys.apple.metal.endBlitEncoding[function] atlib/sys/src/apple/metal.zig:710tiny.sys.apple.metal.endEncoding[function] atlib/sys/src/apple/metal.zig:382tiny.sys.apple.metal.endRenderEncoding[function] atlib/sys/src/apple/metal.zig:706tiny.sys.apple.metal.executeCommands[function] atlib/sys/src/apple/metal.zig:702tiny.sys.apple.metal.indirectDrawIndexedPrimitives[function] atlib/sys/src/apple/metal.zig:809tiny.sys.apple.metal.indirectDrawPrimitives[function] atlib/sys/src/apple/metal.zig:793tiny.sys.apple.metal.indirectRenderCommand[function] atlib/sys/src/apple/metal.zig:770tiny.sys.apple.metal.newBuffer[function] atlib/sys/src/apple/metal.zig:240tiny.sys.apple.metal.newCommandQueue[function] atlib/sys/src/apple/metal.zig:232tiny.sys.apple.metal.newComputePipelineState[function] atlib/sys/src/apple/metal.zig:280tiny.sys.apple.metal.newDepthStencilState[function] atlib/sys/src/apple/metal.zig:547tiny.sys.apple.metal.newFunction[function] atlib/sys/src/apple/metal.zig:276tiny.sys.apple.metal.newIndirectCommandBuffer[function] atlib/sys/src/apple/metal.zig:749tiny.sys.apple.metal.newLayer[function] atlib/sys/src/apple/metal.zig:853tiny.sys.apple.metal.newLibraryWithData[function] atlib/sys/src/apple/metal.zig:263tiny.sys.apple.metal.newLibraryWithSource[function] atlib/sys/src/apple/metal.zig:249lib.sys.src.apple.metal.newObject[function] — private source atlib/sys/src/apple/metal.zig:893in nearest public ownertiny.sys.apple.metaltiny.sys.apple.metal.newRenderPipelineState[function] atlib/sys/src/apple/metal.zig:513tiny.sys.apple.metal.newSafeCompileOptions[function] atlib/sys/src/apple/metal.zig:419tiny.sys.apple.metal.newSamplerState[function] atlib/sys/src/apple/metal.zig:457tiny.sys.apple.metal.newSharedEvent[function] atlib/sys/src/apple/metal.zig:236tiny.sys.apple.metal.newTexture2D[function] atlib/sys/src/apple/metal.zig:436tiny.sys.apple.metal.nextDrawable[function] atlib/sys/src/apple/metal.zig:885tiny.sys.apple.metal.presentDrawable[function] atlib/sys/src/apple/metal.zig:596tiny.sys.apple.metal.renderCommandEncoder[function] atlib/sys/src/apple/metal.zig:583tiny.sys.apple.metal.renderPassDescriptor[function] atlib/sys/src/apple/metal.zig:556lib.sys.src.apple.metal.setAttachment[function] — private source atlib/sys/src/apple/metal.zig:576in nearest public ownertiny.sys.apple.metaltiny.sys.apple.metal.setBuffer[function] atlib/sys/src/apple/metal.zig:341tiny.sys.apple.metal.setBytes[function] atlib/sys/src/apple/metal.zig:355tiny.sys.apple.metal.setColorAttachment[function] atlib/sys/src/apple/metal.zig:562tiny.sys.apple.metal.setComputePipelineState[function] atlib/sys/src/apple/metal.zig:332tiny.sys.apple.metal.setDepthAttachment[function] atlib/sys/src/apple/metal.zig:570tiny.sys.apple.metal.setDepthBias[function] atlib/sys/src/apple/metal.zig:608tiny.sys.apple.metal.setDepthStencilState[function] atlib/sys/src/apple/metal.zig:604tiny.sys.apple.metal.setFragmentBuffer[function] atlib/sys/src/apple/metal.zig:634tiny.sys.apple.metal.setFragmentBytes[function] atlib/sys/src/apple/metal.zig:642tiny.sys.apple.metal.setFragmentTexture[function] atlib/sys/src/apple/metal.zig:651tiny.sys.apple.metal.setFrontFacingWinding[function] atlib/sys/src/apple/metal.zig:626tiny.sys.apple.metal.setIndirectFragmentBuffer[function] atlib/sys/src/apple/metal.zig:789tiny.sys.apple.metal.setIndirectPipelineState[function] atlib/sys/src/apple/metal.zig:781tiny.sys.apple.metal.setIndirectVertexBuffer[function] atlib/sys/src/apple/metal.zig:785tiny.sys.apple.metal.setRenderPipelineState[function] atlib/sys/src/apple/metal.zig:600tiny.sys.apple.metal.setScissorRect[function] atlib/sys/src/apple/metal.zig:616tiny.sys.apple.metal.setSignaledValue[function] atlib/sys/src/apple/metal.zig:306tiny.sys.apple.metal.setVertexAttribute[function] atlib/sys/src/apple/metal.zig:474tiny.sys.apple.metal.setVertexBuffer[function] atlib/sys/src/apple/metal.zig:630tiny.sys.apple.metal.setVertexBytes[function] atlib/sys/src/apple/metal.zig:638tiny.sys.apple.metal.setVertexLayout[function] atlib/sys/src/apple/metal.zig:488tiny.sys.apple.metal.setVertexTexture[function] atlib/sys/src/apple/metal.zig:646tiny.sys.apple.metal.setViewport[function] atlib/sys/src/apple/metal.zig:612tiny.sys.apple.metal.signaledValue[function] atlib/sys/src/apple/metal.zig:310lib.sys.src.apple.metal.subscript[function] — private source atlib/sys/src/apple/metal.zig:899in nearest public ownertiny.sys.apple.metaltiny.sys.apple.metal.useResources[function] atlib/sys/src/apple/metal.zig:692tiny.sys.apple.metal.vertexDescriptor[function] atlib/sys/src/apple/metal.zig:469tiny.sys.apple.metal.waitUntilCompleted[function] atlib/sys/src/apple/metal.zig:390tiny.sys.apple.objc.release[function] atlib/sys/src/apple/objc.zig:133tiny.sys.apple.objc.respondsTo[function] atlib/sys/src/apple/objc.zig:138tiny.sys.apple.objc.retain[function] atlib/sys/src/apple/objc.zig:128lib.sys.src.probe.apple.abi.objc.sys_objc_abi_bool[function] — private source atlib/sys/src/probe/apple/abi/objc.zig:6in nearest public ownerlib.sys.src.probe.apple.abi.objclib.sys.src.probe.apple.abi.objc.sys_objc_abi_point[function] — private source atlib/sys/src/probe/apple/abi/objc.zig:10in nearest public ownerlib.sys.src.probe.apple.abi.objclib.sys.src.probe.apple.abi.objc.sys_objc_abi_rect[function] — private source atlib/sys/src/probe/apple/abi/objc.zig:14in nearest public ownerlib.sys.src.probe.apple.abi.objclib.windowing.src.cocoa.CocoaBackend.deinit[method] — private source atlib/windowing/src/cocoa.zig:403in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.getClipboardTextAlloc[method] — private source atlib/windowing/src/cocoa.zig:558in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.getContentScale[method] — private source atlib/windowing/src/cocoa.zig:694in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.init[method] — private source atlib/windowing/src/cocoa.zig:357in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.isCursorOnScreen[method] — private source atlib/windowing/src/cocoa.zig:537in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.isMaximized[method] — private source atlib/windowing/src/cocoa.zig:554in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.maximize[method] — private source atlib/windowing/src/cocoa.zig:546in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.minimize[method] — private source atlib/windowing/src/cocoa.zig:542in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.pollEvents[method] — private source atlib/windowing/src/cocoa.zig:418in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.pushTextInput[method] — private source atlib/windowing/src/cocoa.zig:862in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.restore[method] — private source atlib/windowing/src/cocoa.zig:550in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.setClipboardText[method] — private source atlib/windowing/src/cocoa.zig:573in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.setCursor[method] — private source atlib/windowing/src/cocoa.zig:531in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.setLayerRgba8[method] — private source atlib/windowing/src/cocoa.zig:882in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.setMinSize[method] — private source atlib/windowing/src/cocoa.zig:524in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.setTitle[method] — private source atlib/windowing/src/cocoa.zig:518in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.syncContentSize[method] — private source atlib/windowing/src/cocoa.zig:871in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.translateEvent[method] — private source atlib/windowing/src/cocoa.zig:709in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.translateKeyDown[method] — private source atlib/windowing/src/cocoa.zig:791in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.translateKeyUp[method] — private source atlib/windowing/src/cocoa.zig:810in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.translateModifier[method] — private source atlib/windowing/src/cocoa.zig:821in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.CocoaBackend.translateMouseButton[method] — private source atlib/windowing/src/cocoa.zig:755in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.NativeWindow.init[function] — private source atlib/windowing/src/cocoa.zig:272in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.releaseWindow[function] — private source atlib/windowing/src/cocoa.zig:330in nearest public ownerlib.windowing.src.cocoalib.windowing.src.cocoa.retainedString[function] — private source atlib/windowing/src/cocoa.zig:335in nearest public ownerlib.windowing.src.cocoa
Audit
| Definitions | 26 |
|---|---|
| Public names | 26 |
| Members | 1 |
| Version | 26.7.0 |
| Revision | daab053ee433 |