Unnamed: 0
int64
0
0
repo_id
stringlengths
5
186
file_path
stringlengths
15
223
content
stringlengths
1
32.8M
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/Kernel.framework/Headers/IOKit
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/Kernel.framework/Headers/IOKit/avc/IOFireWireAVCUserClientCommon.h
/* * Copyright (c) 1998-2001 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * The contents of this file constitute Original Code as defined in and * are subject to the Apple Public Source License Version 1.1 (the * "License"). You may not use this file except in compliance with the * License. Please obtain a copy of the License at * http://www.apple.com/publicsource and read it before using this file. * * This Original Code and all software distributed under the License are * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the * License for the specific language governing rights and limitations * under the License. * * @APPLE_LICENSE_HEADER_END@ */ #ifndef _IOKIT_IOFIREWIREAVCUSERCLIENTCOMMON_H_ #define _IOKIT_IOFIREWIREAVCUSERCLIENTCOMMON_H_ #include <IOKit/avc/IOFireWireAVCConsts.h> #define kIOFireWireAVCLibConnection 13 enum IOFWAVCUserClientCommandCodes { kIOFWAVCUserClientOpen, // kIOUCScalarIScalarO 0,0 kIOFWAVCUserClientClose, // kIOUCScalarIScalarO 0,0 kIOFWAVCUserClientOpenWithSessionRef, // kIOUCScalarIScalarO 1,0 kIOFWAVCUserClientGetSessionRef, // kIOUCScalarIScalarO 0,1 kIOFWAVCUserClientAVCCommand, // kIOUCStructIStructO -1,-1 kIOFWAVCUserClientAVCCommandInGen, // kIOUCStructIStructO -1,-1 kIOFWAVCUserClientUpdateAVCCommandTimeout, // kIOUCScalarIScalarO 0,0 kIOFWAVCUserClientMakeP2PInputConnection, // KIOUCScalarIScalarO 1, 0 kIOFWAVCUserClientBreakP2PInputConnection, // KIOUCScalarIScalarO 1, 0 kIOFWAVCUserClientMakeP2POutputConnection, // KIOUCScalarIScalarO 1, 0 kIOFWAVCUserClientBreakP2POutputConnection, // KIOUCScalarIScalarO 1, 0 kIOFWAVCUserClientCreateAsyncAVCCommand, // kIOUCStructIStructO -1,-1 kIOFWAVCUserClientSubmitAsyncAVCCommand, // kIOUCScalarIScalarO 1, 0 kIOFWAVCUserClientCancelAsyncAVCCommand, // kIOUCScalarIScalarO 1, 0 kIOFWAVCUserClientReleaseAsyncAVCCommand, // kIOUCScalarIScalarO 1, 0 kIOFWAVCUserClientReinitAsyncAVCCommand, // // kIOUCScalarIStructI 1, -1 kIOFWAVCUserClientNumCommands }; enum IOFWAVCUserClientAsyncCommandCodes { kIOFWAVCUserClientInstallAsyncAVCCommandCallback = kIOFWAVCUserClientNumCommands, // kIOUCScalarIScalarO 1, 1 kIOFWAVCUserClientNumAsyncCommands }; enum IOFWAVCProtocolUserClientCommandCodes { kIOFWAVCProtocolUserClientSendAVCResponse, // kIOUCScalarIStructI 2, -1 kIOFWAVCProtocolUserClientFreeInputPlug, // kIOUCScalarIScalarO 1, 0 kIOFWAVCProtocolUserClientReadInputPlug, // kIOUCScalarIScalarO 1, 1 kIOFWAVCProtocolUserClientUpdateInputPlug, // kIOUCScalarIScalarO 3, 0 kIOFWAVCProtocolUserClientFreeOutputPlug, // kIOUCScalarIScalarO 1, 0 kIOFWAVCProtocolUserClientReadOutputPlug, // kIOUCScalarIScalarO 1, 1 kIOFWAVCProtocolUserClientUpdateOutputPlug, // kIOUCScalarIScalarO 3, 0 kIOFWAVCProtocolUserClientReadOutputMasterPlug, // kIOUCScalarIScalarO 0, 1 kIOFWAVCProtocolUserClientUpdateOutputMasterPlug, // kIOUCScalarIScalarO 2, 0 kIOFWAVCProtocolUserClientReadInputMasterPlug, // kIOUCScalarIScalarO 0, 1 kIOFWAVCProtocolUserClientUpdateInputMasterPlug, // kIOUCScalarIScalarO 2, 0 kIOFWAVCProtocolUserClientPublishAVCUnitDirectory, // kIOUCScalarIScalarO 0, 0 kIOFWAVCProtocolUserClientSetSubunitPlugSignalFormat, // kIOUCScalarIScalarO 4, 0 kIOFWAVCProtocolUserClientGetSubunitPlugSignalFormat, // kIOUCScalarIScalarO 3, 1 kIOFWAVCProtocolUserClientConnectTargetPlugs, // kIOUCStructIStructO kIOFWAVCProtocolUserClientDisconnectTargetPlugs, // kIOUCScalarIScalarO 6, 0 kIOFWAVCProtocolUserClientGetTargetPlugConnection, // kIOUCStructIStructO kIOFWAVCProtocolUserClientAVCRequestNotHandled, // kIOUCScalarIStructI 4, -1 kIOFWAVCProtocolUserClientNumCommands }; enum IOFWAVCProtocolUserClientAsyncCommandCodes { kIOFWAVCProtocolUserClientSetAVCRequestCallback = kIOFWAVCProtocolUserClientNumCommands, // kIOUCScalarIScalarO 2, 0 kIOFWAVCProtocolUserClientAllocateInputPlug, // kIOUCScalarIScalarO 1, 1 kIOFWAVCProtocolUserClientAllocateOutputPlug, // kIOUCScalarIScalarO 1, 1 kIOFWAVCProtocolUserClientInstallAVCCommandHandler, // kIOUCScalarIScalarO 4, 0 kIOFWAVCProtocolUserClientAddSubunit, // kIOUCScalarIScalarO 5, 1 kIOFWAVCProtocolUserClientNumAsyncCommands }; typedef struct _AVCConnectTargetPlugsInParams { UInt32 sourceSubunitTypeAndID; IOFWAVCPlugTypes sourcePlugType; UInt32 sourcePlugNum; UInt32 destSubunitTypeAndID; IOFWAVCPlugTypes destPlugType; UInt32 destPlugNum; Boolean lockConnection; Boolean permConnection; }AVCConnectTargetPlugsInParams; typedef struct _AVCConnectTargetPlugsOutParams { UInt32 sourcePlugNum; UInt32 destPlugNum; }AVCConnectTargetPlugsOutParams; typedef struct _AVCGetTargetPlugConnectionInParams { UInt32 subunitTypeAndID; IOFWAVCPlugTypes plugType; UInt32 plugNum; }AVCGetTargetPlugConnectionInParams; typedef struct _AVCGetTargetPlugConnectionOutParams { UInt32 connectedSubunitTypeAndID; IOFWAVCPlugTypes connectedPlugType; UInt32 connectedPlugNum; Boolean lockConnection; Boolean permConnection; }AVCGetTargetPlugConnectionOutParams; #define kAsyncCmdSharedBufInterimRespOffset 0 #define kAsyncCmdSharedBufFinalRespOffset 512 #endif // _IOKIT_IOFIREWIREAVCUSERCLIENTCOMMON_H_
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/Kernel.framework/Headers/IOKit
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/Kernel.framework/Headers/IOKit/avc/IOFireWireAVCTargetSpace.h
/* * Copyright (c) 2003 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * The contents of this file constitute Original Code as defined in and * are subject to the Apple Public Source License Version 1.1 (the * "License"). You may not use this file except in compliance with the * License. Please obtain a copy of the License at * http://www.apple.com/publicsource and read it before using this file. * * This Original Code and all software distributed under the License are * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the * License for the specific language governing rights and limitations * under the License. * * @APPLE_LICENSE_HEADER_END@ */ /* * * IOFireWireAVCTargetSpace.h * * Class to centralize the AVC Target mode support * */ #ifndef _IOKIT_IOFIREWIREAVCTARGETSPACE_H #define _IOKIT_IOFIREWIREAVCTARGETSPACE_H #include <IOKit/IOUserClient.h> #include <IOKit/IOBufferMemoryDescriptor.h> #include <IOKit/firewire/IOFWAddressSpace.h> #include <IOKit/firewire/IOLocalConfigDirectory.h> #include <IOKit/avc/IOFireWireAVCConsts.h> #include <IOKit/avc/IOFireWireAVCUserClientCommon.h> class IOFireWireAVCProtocolUserClient; class AVCCommandHandlerInfo; class AVCSubunitInfo; typedef void (*IOFireWireAVCTargetCommandHandlerCallback)(const AVCCommandHandlerInfo *pCmdInfo, UInt32 generation, UInt16 nodeID, const void *command, UInt32 cmdLen, IOFWSpeed &speed, UInt32 handlerSearchIndex); typedef void (*IOFireWireAVCSubunitPlugHandlerCallback)(const AVCSubunitInfo *pSubunitInfo, IOFWAVCSubunitPlugMessages plugMessage, IOFWAVCPlugTypes plugType, UInt32 plugNum, UInt32 messageParams, UInt32 generation, UInt16 nodeID); /*! @class AVCCommandHandlerInfo @abstract internal class to manage installed command handlers */ class AVCCommandHandlerInfo : public OSObject { OSDeclareDefaultStructors(AVCCommandHandlerInfo) public: IOFireWireAVCProtocolUserClient * userClient; IOFireWireAVCTargetCommandHandlerCallback callBack; OSAsyncReference64 asyncRef; UInt32 subUnitTypeAndID; UInt32 opCode; uint64_t userCallBack; uint64_t userRefCon; }; typedef struct _AVCSubunitPlugRecord { UInt32 plugSignalFormat; UInt32 connectionCount; }AVCSubunitPlugRecord; /*! @class AVCSubunitInfo @abstract internal class to manage installed subunits */ class AVCSubunitInfo : public OSObject { OSDeclareDefaultStructors(AVCSubunitInfo) bool init(); void free(); public: static AVCSubunitInfo *create(); IOFireWireAVCProtocolUserClient * userClient; IOFireWireAVCSubunitPlugHandlerCallback callBack; OSAsyncReference64 asyncRef; UInt32 subunitTypeAndID; UInt32 numSourcePlugs; UInt32 numDestPlugs; uint64_t userCallBack; uint64_t userRefCon; AVCSubunitPlugRecord *sourcePlugRecords; AVCSubunitPlugRecord *destPlugRecords; }; typedef struct _AVCUnitPlugRecord { UInt32 connectionCount; }AVCUnitPlugRecord; typedef struct _AVCUnitPlugs { UInt32 numIsochInPlugs; UInt32 numIsochOutPlugs; UInt32 numExternalInPlugs; UInt32 numExternalOutPlugs; AVCUnitPlugRecord isochInPlugRecord[kAVCMaxNumPlugs]; AVCUnitPlugRecord isochOutPlugRecord[kAVCMaxNumPlugs]; AVCUnitPlugRecord externalInPlugRecord[kAVCMaxNumPlugs]; AVCUnitPlugRecord externalOutPlugRecord[kAVCMaxNumPlugs]; }AVCUnitPlugs; /*! @class UCInfo @abstract internal class to manage multiple protocol user clients */ class UCInfo : public OSObject { OSDeclareDefaultStructors(UCInfo) public: IOFireWireAVCProtocolUserClient *fUserClient; }; /*! @class AVCConnectionRecord @abstract internal class to manage AVC connections */ class AVCConnectionRecord : public OSObject { OSDeclareDefaultStructors(AVCConnectionRecord) public: UInt32 sourceSubunitTypeAndID; IOFWAVCPlugTypes sourcePlugType; UInt32 sourcePlugNum; UInt32 destSubunitTypeAndID; IOFWAVCPlugTypes destPlugType; UInt32 destPlugNum; bool lockConnection; bool permConnection; }; /*! @class IOFireWireAVCTargetSpace @abstract object to centralize the AVC Target mode support */ class IOFireWireAVCTargetSpace : public IOFWPseudoAddressSpace { OSDeclareDefaultStructors(IOFireWireAVCTargetSpace) protected: UInt32 fBuf[512]; UInt32 fActivations; IOFireWireController *fController; IOLocalConfigDirectory * fAVCLocalConfigDirectory; OSArray * fUserClients; OSArray * fCommandHandlers; OSArray * fSubunits; OSArray * fConnectionRecords; AVCUnitPlugs fUnitPlugs; IORecursiveLock * fLock; /*! @struct ExpansionData @discussion This structure will be used to expand the capablilties of the class in the future. */ struct ExpansionData { }; /*! @var reserved Reserved for future use. (Internal use only) */ ExpansionData *reserved; virtual UInt32 doWrite(UInt16 nodeID, IOFWSpeed &speed, FWAddress addr, UInt32 len, const void *buf, IOFWRequestRefCon refcon); IOReturn targetSendAVCResponse(UInt32 generation, UInt16 nodeID, IOBufferMemoryDescriptor *pBufMemDesc, UInt32 size); // Internal AVC Target Command Handlers IOReturn handleUnitInfoCommand(UInt16 nodeID, UInt32 generation, const char *buf, UInt32 len); IOReturn handleSubUnitInfoCommand(UInt16 nodeID, UInt32 generation, const char *buf, UInt32 len); IOReturn handlePlugInfoCommand(UInt16 nodeID, UInt32 generation, const char *buf, UInt32 len); IOReturn handlePowerCommand(UInt16 nodeID, UInt32 generation, const char *buf, UInt32 len); IOReturn handleConnectCommand(UInt16 nodeID, UInt32 generation, const char *buf, UInt32 len); IOReturn handleDisconnectCommand(UInt16 nodeID, UInt32 generation, const char *buf, UInt32 len); IOReturn handleInputPlugSignalFormatCommand(UInt16 nodeID, UInt32 generation, const char *buf, UInt32 len); IOReturn handleOutputPlugSignalFormatCommand(UInt16 nodeID, UInt32 generation, const char *buf, UInt32 len); IOReturn handleConnectionsCommand(UInt16 nodeID, UInt32 generation, const char *buf, UInt32 len); IOReturn handleSignalSourceCommand(UInt16 nodeID, UInt32 generation, const char *buf, UInt32 len); UInt32 subUnitOfTypeCount(UInt32 type); AVCSubunitInfo *getSubunitInfo(UInt32 subunitTypeAndID); bool canConnectDestPlug(UInt32 destSubunitTypeAndID, IOFWAVCPlugTypes destPlugType, UInt32 *destPlugNum); public: // Activate/Deactivate Functions virtual IOReturn activateWithUserClient(IOFireWireAVCProtocolUserClient *userClient); virtual void deactivateWithUserClient(IOFireWireAVCProtocolUserClient *userClient); /*! @function init @abstract initializes the IOFireWireAVCTargetSpace object */ virtual bool init(IOFireWireController *controller); /*! @function getAVCTargetSpace @abstract returns the IOFireWireAVCTargetSpace object for the given FireWire bus @param bus The FireWire bus */ static IOFireWireAVCTargetSpace *getAVCTargetSpace(IOFireWireController *controller); /*! @function publishAVCUnitDirectory @abstract Creates a local AVC Unit directory if it doesn't already exist */ virtual IOReturn publishAVCUnitDirectory(void); virtual IOReturn installAVCCommandHandler(IOFireWireAVCProtocolUserClient *userClient, IOFireWireAVCTargetCommandHandlerCallback callBack, OSAsyncReference64 asyncRef, UInt32 subUnitTypeAndID, UInt32 opCode, uint64_t userCallBack, uint64_t userRefCon); virtual IOReturn addSubunit(IOFireWireAVCProtocolUserClient *userClient, IOFireWireAVCSubunitPlugHandlerCallback callBack, OSAsyncReference64 asyncRef, UInt32 subunitType, UInt32 numSourcePlugs, UInt32 numDestPlugs, uint64_t userCallBack, uint64_t userRefCon, UInt32 *subUnitID); virtual IOReturn setSubunitPlugSignalFormat(IOFireWireAVCProtocolUserClient *userClient, UInt32 subunitTypeAndID, IOFWAVCPlugTypes plugType, UInt32 plugNum, UInt32 signalFormat); virtual IOReturn getSubunitPlugSignalFormat(IOFireWireAVCProtocolUserClient *userClient, UInt32 subunitTypeAndID, IOFWAVCPlugTypes plugType, UInt32 plugNum, UInt32 *pSignalFormat); virtual IOReturn connectTargetPlugs(IOFireWireAVCProtocolUserClient *userClient, AVCConnectTargetPlugsInParams *inParams, AVCConnectTargetPlugsOutParams *outParams); virtual IOReturn disconnectTargetPlugs(IOFireWireAVCProtocolUserClient *userClient, UInt32 sourceSubunitTypeAndID, IOFWAVCPlugTypes sourcePlugType, UInt32 sourcePlugNum, UInt32 destSubunitTypeAndID, IOFWAVCPlugTypes destPlugType, UInt32 destPlugNum); virtual IOReturn getTargetPlugConnection(IOFireWireAVCProtocolUserClient *userClient, AVCGetTargetPlugConnectionInParams *inParams, AVCGetTargetPlugConnectionOutParams *outParams); virtual IOReturn findAVCRequestHandler(IOFireWireAVCProtocolUserClient *userClient, UInt32 generation, UInt16 nodeID, IOFWSpeed speed, UInt32 handlerSearchIndex, const char *pCmdBuf, UInt32 cmdLen); virtual void pcrModified(IOFWAVCPlugTypes plugType, UInt32 plugNum, UInt32 newValue); private: OSMetaClassDeclareReservedUnused(IOFireWireAVCTargetSpace, 0); OSMetaClassDeclareReservedUnused(IOFireWireAVCTargetSpace, 1); OSMetaClassDeclareReservedUnused(IOFireWireAVCTargetSpace, 2); OSMetaClassDeclareReservedUnused(IOFireWireAVCTargetSpace, 3); }; #endif /*_IOKIT_IOFIREWIREAVCTARGETSPACE_H */
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/Kernel.framework/Headers/IOKit
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/Kernel.framework/Headers/IOKit/avc/IOFireWireAVCRequestSpace.h
/* * Copyright (c) 2001 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * The contents of this file constitute Original Code as defined in and * are subject to the Apple Public Source License Version 1.1 (the * "License"). You may not use this file except in compliance with the * License. Please obtain a copy of the License at * http://www.apple.com/publicsource and read it before using this file. * * This Original Code and all software distributed under the License are * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the * License for the specific language governing rights and limitations * under the License. * * @APPLE_LICENSE_HEADER_END@ */ /* * * IOFireWirePCRSpace.h * * Class to multiplex access to the FCP request address. */ #ifndef _IOKIT_IOFIREWIREAVCREQUESTSPACE_H #define _IOKIT_IOFIREWIREAVCREQUESTSPACE_H #endif /* _IOKIT_IOFIREWIREAVCREQUESTSPACE_H */
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/Kernel.framework/Headers/IOKit
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/Kernel.framework/Headers/IOKit/ndrvsupport/IONDRVLibraries.h
#ifndef __IONDRVLIBRARIES__ #define __IONDRVLIBRARIES__ #include <libkern/OSByteOrder.h> #include <libkern/OSAtomic.h> #include <IOKit/ndrvsupport/IOMacOSTypes.h> #include <IOKit/graphics/IOGraphicsTypes.h> #ifdef __cplusplus extern "C" { #endif /* NameRegistry error codes */ enum { nrLockedErr = -2536, nrNotEnoughMemoryErr = -2537, nrInvalidNodeErr = -2538, nrNotFoundErr = -2539, nrNotCreatedErr = -2540, nrNameErr = -2541, nrNotSlotDeviceErr = -2542, nrDataTruncatedErr = -2543, nrPowerErr = -2544, nrPowerSwitchAbortErr = -2545, nrTypeMismatchErr = -2546, nrNotModifiedErr = -2547, nrOverrunErr = -2548, nrResultCodeBase = -2549, nrPathNotFound = -2550, /* a path component lookup failed */ nrPathBufferTooSmall = -2551, /* buffer for path is too small */ nrInvalidEntryIterationOp = -2552, /* invalid entry iteration operation */ nrPropertyAlreadyExists = -2553, /* property already exists */ nrIterationDone = -2554, /* iteration operation is done */ nrExitedIteratorScope = -2555, /* outer scope of iterator was exited */ nrTransactionAborted = -2556, /* transaction was aborted */ gestaltUndefSelectorErr = -5551 /*undefined selector was passed to Gestalt*/ }; enum { kNVRAMProperty = 0x00000020, // matches NR }; /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef _IOKIT_IOSERVICE_H typedef struct IOService IOService; #endif IOReturn _IONDRVLibrariesInitialize( IOService * provider ); IOReturn _IONDRVLibrariesFinalize( IOService * provider ); #ifndef kAAPLRegEntryIDKey #define kAAPLRegEntryIDKey "AAPL,RegEntryID" #endif /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /******************************************************************************* * * Foundation Types * */ /* Value of a property */ typedef void * RegPropertyValue; /* Length of property value */ typedef UInt32 RegPropertyValueSize; /*******************************************************************************/ /******************************************************************************* * * Root Entry Name Definitions (Applies to all Names in the RootNameSpace) * * + Names are a colon-separated list of name components. Name components * may not themselves contain colons. * + Names are presented as null-terminated ASCII character strings. * + Names follow similar parsing rules to Apple file system absolute * and relative paths. However the '::' parent directory syntax is * not currently supported. */ /* Max length of Entry Name */ enum { kRegCStrMaxEntryNameLength = 47 }; /* Entry Names are single byte ASCII */ typedef char RegCStrEntryName; typedef char * RegCStrEntryNamePtr; /* length of RegCStrEntryNameBuf = kRegCStrMaxEntryNameLength+1*/ typedef char RegCStrEntryNameBuf[48]; typedef char RegCStrPathName; typedef UInt32 RegPathNameSize; enum { kRegPathNameSeparator = ':', /* 0x3A */ kRegEntryNameTerminator = 0x00, /* '\0' */ kRegPathNameTerminator = 0x00 /* '\0' */ }; /******************************************************************************* * * Property Name and ID Definitions * (Applies to all Properties Regardless of NameSpace) */ enum { kRegMaximumPropertyNameLength = 31, /* Max length of Property Name */ kRegPropertyNameTerminator = 0x00 /* '\0' */ }; typedef char RegPropertyNameBuf[32]; typedef char RegPropertyName; typedef char * RegPropertyNamePtr; enum { kRegMaxPropertyNameLength = kRegMaximumPropertyNameLength }; /******************************************************************************* * * Iteration Operations * * These specify direction when traversing the name relationships */ typedef UInt32 RegIterationOp; typedef RegIterationOp RegEntryIterationOp; enum { /* Absolute locations*/ kRegIterRoot = 0x00000002, /* "Upward" Relationships */ kRegIterParents = 0x00000003, /* include all parent(s) of entry */ /* "Downward" Relationships*/ kRegIterChildren = 0x00000004, /* include all children */ kRegIterSubTrees = 0x00000005, /* include all sub trees of entry */ kRegIterDescendants = 0x00000005, /* include all descendants of entry */ /* "Horizontal" Relationships */ kRegIterSibling = 0x00000006, /* include all siblings */ /* Keep doing the same thing*/ kRegIterContinue = 0x00000001 }; /******************************************************************************* * * Name Entry and Property Modifiers * * * * Modifiers describe special characteristics of names * and properties. Modifiers might be supported for * some names and not others. * * Device Drivers should not rely on functionality * specified as a modifier. */ typedef UInt32 RegModifiers; typedef RegModifiers RegEntryModifiers; typedef RegModifiers RegPropertyModifiers; enum { kRegNoModifiers = 0x00000000, /* no entry modifiers in place */ kRegUniversalModifierMask = 0x0000FFFF, /* mods to all entries */ kRegNameSpaceModifierMask = 0x00FF0000, /* mods to all entries within namespace */ kRegModifierMask = (RegModifiers)0xFF000000 /* mods to just this entry */ }; /* Universal Property Modifiers */ enum { kRegPropertyValueIsSavedToNVRAM = 0x00000020, /* property is non-volatile (saved in NVRAM) */ kRegPropertyValueIsSavedToDisk = 0x00000040 /* property is non-volatile (saved on disk) */ }; typedef size_t Size; #ifndef _IOKIT_IOREGISTRYENTRY_H typedef struct IORegistryIterator IORegistryIterator; typedef struct OSIterator OSIterator; #endif /* _IOKIT_IOREGISTRYENTRY_H */ typedef IORegistryIterator * RegEntryIter; typedef OSIterator * RegPropertyIter; OSStatus RegistryEntryIDCopy( const RegEntryID * entryID, RegEntryID * to ); OSStatus RegistryEntryIDInit( RegEntryID * entryID ); Boolean RegistryEntryIDCompare( const RegEntryID * id1, const RegEntryID * id2); OSStatus RegistryPropertyGetSize( const RegEntryID * entryID, const RegPropertyName * propertyName, RegPropertyValueSize * propertySize); OSStatus RegistryPropertyGet( const RegEntryID * entryID, const RegPropertyName * propertyName, void * propertyValue, RegPropertyValueSize * propertySize); OSStatus RegistryPropertyCreate( const RegEntryID * entryID, const RegPropertyName * propertyName, const void * propertyValue, RegPropertyValueSize propertySize); OSStatus RegistryPropertyDelete( const RegEntryID * entryID, const RegPropertyName * propertyName); OSStatus RegistryPropertySet( const RegEntryID * entryID, const RegPropertyName * propertyName, const void * propertyValue, RegPropertyValueSize propertySize); OSStatus RegistryPropertyGetMod( const RegEntryID * entry, const RegPropertyName * name, RegPropertyModifiers * modifiers); OSStatus RegistryPropertySetMod( const RegEntryID * entry, const RegPropertyName * name, RegPropertyModifiers modifiers); OSStatus RegistryPropertyIterateCreate( const RegEntryID * entry, RegPropertyIter * cookie); OSStatus RegistryPropertyIterateDispose( RegPropertyIter * cookie); OSStatus RegistryPropertyIterate( RegPropertyIter * cookie, RegPropertyName * foundProperty, Boolean * done); OSStatus RegistryEntryIterateCreate( RegEntryIter * cookie); OSStatus RegistryEntryIterateDispose( RegEntryIter * cookie); OSStatus RegistryEntryIterate( RegEntryIter * cookie, RegEntryIterationOp relationship, RegEntryID * foundEntry, Boolean * done); OSStatus RegistryCStrEntryToName( const RegEntryID * entryID, RegEntryID * parentEntry, RegCStrEntryName * nameComponent, Boolean * done ); OSStatus RegistryCStrEntryLookup( const RegEntryID * parentEntry, const RegCStrPathName * path, RegEntryID * newEntry); OSStatus RegistryEntryIDDispose(RegEntryID * entryID); /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ enum { paramErr = -50, /*error in user parameter list*/ noHardwareErr = -200, /*Sound Manager Error Returns*/ notEnoughHardwareErr = -201, /*Sound Manager Error Returns*/ userCanceledErr = -128, qErr = -1, /*queue element not found during deletion*/ vTypErr = -2, /*invalid queue element*/ corErr = -3, /*core routine number out of range*/ unimpErr = -4, /*unimplemented core routine*/ SlpTypeErr = -5, /*invalid queue element*/ seNoDB = -8, /*no debugger installed to handle debugger command*/ controlErr = -17, /*I/O System Errors*/ statusErr = -18, /*I/O System Errors*/ readErr = -19, /*I/O System Errors*/ writErr = -20, /*I/O System Errors*/ badUnitErr = -21, /*I/O System Errors*/ unitEmptyErr = -22, /*I/O System Errors*/ openErr = -23, /*I/O System Errors*/ closErr = -24, /*I/O System Errors*/ dRemovErr = -25, /*tried to remove an open driver*/ dInstErr = -26, /*DrvrInstall couldn't find driver in resources*/ badCksmErr = -69, /*addr mark checksum didn't check*/ }; enum { durationMicrosecond = -1, /* Microseconds are negative*/ durationMillisecond = 1, /* Milliseconds are positive*/ durationSecond = 1000, /* 1000 * durationMillisecond*/ durationMinute = 60000, /* 60 * durationSecond,*/ durationHour = 3600000, /* 60 * durationMinute,*/ durationDay = 86400000, /* 24 * durationHour,*/ durationNoWait = 0, /* don't block*/ durationForever = 0x7FFFFFFF /* no time limit*/ }; #ifndef NULL #if !defined(__cplusplus) && (defined(__SC__) || defined(THINK_C)) /* Symantec C compilers (but not C++) want NULL and nil to be (void*)0 */ #define NULL ((void *) 0) #else /* in case int is 16-bits, make sure NULL is 32-bits */ #define NULL 0L #endif #endif #ifndef nil #define nil NULL #endif enum { clutType = 0, /*0 if lookup table*/ fixedType = 1, /*1 if fixed table*/ directType = 2, /*2 if direct values*/ RGBDirect = 16 /* 16 & 32 bits/pixel pixelType value */ }; typedef UInt32 * UInt32Ptr; typedef struct IOHardwareCursorDescriptor HardwareCursorDescriptorRec; typedef HardwareCursorDescriptorRec * HardwareCursorDescriptorPtr; typedef struct IOHardwareCursorInfo HardwareCursorInfoRec; typedef HardwareCursorInfoRec * HardwareCursorInfoPtr; typedef ResType InterruptServiceType; typedef struct _VSLService * InterruptServiceIDType; typedef InterruptServiceIDType * InterruptServiceIDPtr; enum { kVBLInterruptServiceType = 'vbl ', kHBLInterruptServiceType = 'hbl ', kFrameInterruptServiceType = 'fram', kConnectInterruptServiceType = 'dci ', /* Renamed -- Use kFBCheckInterruptServiceType*/ kFBConnectInterruptServiceType = kConnectInterruptServiceType, /* Demand to check configuration (Hardware unchanged)*/ kFBChangedInterruptServiceType = 'chng', /* Demand to rebuild (Hardware has reinitialized on dependent change)*/ kFBOfflineInterruptServiceType = 'remv', /* Demand to remove framebuffer (Hardware not available on dependent change -- but must not buserror)*/ kFBOnlineInterruptServiceType = 'add ' /* Notice that hardware is available (after being removed)*/ }; enum { kVSLClamshellStateGestaltType = 'clam', }; OSErr VSLNewInterruptService( RegEntryID * serviceDevice, InterruptServiceType serviceType, InterruptServiceIDPtr serviceID); OSErr VSLDisposeInterruptService(InterruptServiceIDType serviceID); OSErr VSLDoInterruptService(InterruptServiceIDType serviceID); Boolean VSLPrepareCursorForHardwareCursor( void * cursorRef, IOHardwareCursorDescriptor * hardwareDescriptor, IOHardwareCursorInfo * hwCursorInfo); enum { /* Version Release Stage Codes */ developStage = 0x20, alphaStage = 0x40, betaStage = 0x60, finalStage = 0x80 }; /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ typedef struct OpaqueIOCommandID* IOCommandID; typedef UInt32 IOCommandKind; typedef UInt32 IOCommandCode; /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifdef __cplusplus } #endif #endif /* __IONDRVLIBRARIES__ */
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/Kernel.framework/Headers/IOKit
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/Kernel.framework/Headers/IOKit/ndrvsupport/IONDRVSupport.h
/* * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * The contents of this file constitute Original Code as defined in and * are subject to the Apple Public Source License Version 1.1 (the * "License"). You may not use this file except in compliance with the * License. Please obtain a copy of the License at * http://www.apple.com/publicsource and read it before using this file. * * This Original Code and all software distributed under the License are * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the * License for the specific language governing rights and limitations * under the License. * * @APPLE_LICENSE_HEADER_END@ */ #ifndef __IONDRVSUPPORT__ #define __IONDRVSUPPORT__ #include <libkern/OSTypes.h> #ifdef __cplusplus extern "C" { #endif #define kIONDRVIgnoreKey "AAPL,iokit-ignore-ndrv" #define kIONDRVForXKey "AAPL,iokit-ndrv" struct IOTVector { void * pc; UInt32 toc; }; typedef struct IOTVector IOTVector; #ifdef __cplusplus } #endif #endif /* __IONDRVSUPPORT__ */
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/Kernel.framework/Headers/IOKit
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/Kernel.framework/Headers/IOKit/ndrvsupport/IOMacOSTypes.h
/* * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * The contents of this file constitute Original Code as defined in and * are subject to the Apple Public Source License Version 1.1 (the * "License"). You may not use this file except in compliance with the * License. Please obtain a copy of the License at * http://www.apple.com/publicsource and read it before using this file. * * This Original Code and all software distributed under the License are * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the * License for the specific language governing rights and limitations * under the License. * * @APPLE_LICENSE_HEADER_END@ */ /* * Copyright (c) 1997 Apple Computer, Inc. * * * HISTORY * * sdouglas 22 Oct 97 - first checked in. * sdouglas 21 July 98 - start IOKit */ /* File: Types.h Contains: Basic Macintosh data types. Version: Technology: PowerSurge 1.0.2. Package: Universal Interfaces 2.1.2 on ETO #20 Copyright: � 1984-1995 by Apple Computer, Inc. All rights reserved. Bugs?: If you find a problem with this file, use the Apple Bug Reporter stack. Include the file and version information (from above) in the problem description and send to: Internet: [email protected] AppleLink: APPLE.BUGS */ #ifndef _IOKIT_IOMACOSTYPES_H #define _IOKIT_IOMACOSTYPES_H #ifndef __MACTYPES__ #include <IOKit/IOTypes.h> #ifdef __cplusplus extern "C" { #endif #ifndef __LP64__ #pragma options align=mac68k #endif #ifndef NULL #if !defined(__cplusplus) && (defined(__SC__) || defined(THINK_C)) #define NULL ((void *) 0) #else #define NULL 0 #endif #endif enum { noErr = 0 }; typedef unsigned char Byte; typedef signed char SignedByte; typedef UInt16 UniChar; typedef char *Ptr; typedef Ptr *Handle; typedef UInt32 Fixed; typedef Fixed *FixedPtr; typedef UInt32 Fract; typedef Fract *FractPtr; /* enum { false, true }; #if !__option(bool) #ifndef true #define true 1 #endif #ifndef false #define false 0 #endif #endif typedef unsigned char Boolean; */ typedef short OSErr; typedef unsigned int FourCharCode; typedef FourCharCode OSType; typedef FourCharCode ResType; typedef OSType *OSTypePtr; typedef ResType *ResTypePtr; struct Rect { short top; short left; short bottom; short right; }; typedef struct Rect Rect; typedef Rect *RectPtr; // Quickdraw.i /* kVariableLengthArray is used in array bounds to specify a variable length array. It is ususally used in variable length structs when the last field is an array of any size. Before ANSI C, we used zero as the bounds of variable length array, but that is illegal in ANSI C. Example: struct FooList { short listLength; Foo elements[kVariableLengthArray]; }; */ enum { kVariableLengthArray = 1 }; /* Numeric version part of 'vers' resource */ struct NumVersion { UInt8 majorRev; /*1st part of version number in BCD*/ UInt8 minorAndBugRev; /*2nd & 3rd part of version number share a byte*/ UInt8 stage; /*stage code: dev, alpha, beta, final*/ UInt8 nonRelRev; /*revision level of non-released version*/ }; typedef struct NumVersion NumVersion; typedef struct OpaqueRef *KernelID; typedef UInt8 *BytePtr; typedef IOByteCount ByteCount; typedef IOItemCount ItemCount; typedef void *LogicalAddress; #if !defined(__LP64__) typedef void *PhysicalAddress; #endif typedef UInt32 PBVersion; typedef SInt32 Duration; #define kInvalidID 0 enum { kNilOptions = 0 }; typedef unsigned char Str31[32]; /* From: File: DriverFamilyMatching.i <18> Copyright: � 1995-1996 by Apple Computer, Inc., all rights reserved. */ //############################################## // Well known properties in the Name Registry //############################################## #define kPropertyName "name" #define kPropertyCompatible "compatible" #define kPropertyDriverPtr "driver-ptr" #define kPropertyDriverDesc "driver-description" #define kPropertyReg "reg" #define kPropertyAAPLAddress "AAPL,address" #define kPropertyMatching "matching" //######################################################### // Descriptor for Drivers and NDRVs //######################################################### /* Driver Typing Information Used to Match Drivers With Devices */ struct DriverType { Str31 nameInfoStr; /* Driver Name/Info String*/ NumVersion version; /* Driver Version Number*/ }; typedef struct DriverType DriverType; typedef DriverType * DriverTypePtr; /* OS Runtime Information Used to Setup and Maintain a Driver's Runtime Environment */ typedef IOOptionBits RuntimeOptions; enum { kDriverIsLoadedUponDiscovery = 0x00000001, /* auto-load driver when discovered*/ kDriverIsOpenedUponLoad = 0x00000002, /* auto-open driver when loaded*/ kDriverIsUnderExpertControl = 0x00000004, /* I/O expert handles loads/opens*/ kDriverIsConcurrent = 0x00000008, /* supports concurrent requests*/ kDriverQueuesIOPB = 0x00000010, /* device manager doesn't queue IOPB*/ kDriverIsLoadedAtBoot = 0x00000020, /* Driver is loaded at the boot time */ kDriverIsForVirtualDevice = 0x00000040, /* Driver is for a virtual Device */ kDriverSupportDMSuspendAndResume = 0x00000080 /* Driver supports Device Manager Suspend and Resume command */ }; struct DriverOSRuntime { RuntimeOptions driverRuntime; /* Options for OS Runtime*/ Str31 driverName; /* Driver's name to the OS*/ UInt32 driverDescReserved[8]; /* Reserved area*/ }; typedef struct DriverOSRuntime DriverOSRuntime; typedef DriverOSRuntime * DriverOSRuntimePtr; /* OS Service Information Used To Declare What APIs a Driver Supports */ typedef UInt32 ServiceCount; struct DriverServiceInfo { OSType serviceCategory; /* Service Category Name*/ OSType serviceType; /* Type within Category*/ NumVersion serviceVersion; /* Version of service*/ }; typedef struct DriverServiceInfo DriverServiceInfo; typedef DriverServiceInfo * DriverServiceInfoPtr; struct DriverOSService { ServiceCount nServices; /* Number of Services Supported*/ DriverServiceInfo service[1]; /* The List of Services (at least one)*/ }; typedef struct DriverOSService DriverOSService; typedef DriverOSService * DriverOSServicePtr; /* Categories */ enum { kServiceCategoryDisplay = 'disp', /* Display Manager*/ kServiceCategoryOpenTransport = 'otan', /* Open Transport*/ kServiceCategoryBlockStorage = 'blok', /* Block Storage*/ kServiceCategoryNdrvDriver = 'ndrv', /* Generic Native Driver*/ kServiceCategoryScsiSIM = 'scsi', /* SCSI */ kServiceCategoryFileManager = 'file', /* File Manager */ kServiceCategoryIDE = 'ide-', /* ide */ kServiceCategoryADB = 'adb-', /* adb */ kServiceCategoryPCI = 'pci-', /* pci bus */ /* Nu Bus */ kServiceCategoryDFM = 'dfm-', /* DFM */ kServiceCategoryMotherBoard = 'mrbd', /* mother Board */ kServiceCategoryKeyboard = 'kybd', /* Keyboard */ kServiceCategoryPointing = 'poit', /* Pointing */ kServiceCategoryRTC = 'rtc-', /* RTC */ kServiceCategoryNVRAM = 'nram', /* NVRAM */ kServiceCategorySound = 'sond', /* Sound (1/3/96 MCS) */ kServiceCategoryPowerMgt = 'pgmt', /* Power Management */ kServiceCategoryGeneric = 'genr' /* Generic Service Category to receive general Events */ }; /* Ndrv ServiceCategory Types */ enum { kNdrvTypeIsGeneric = 'genr', /* generic*/ kNdrvTypeIsVideo = 'vido', /* video*/ kNdrvTypeIsBlockStorage = 'blok', /* block storage*/ kNdrvTypeIsNetworking = 'netw', /* networking*/ kNdrvTypeIsSerial = 'serl', /* serial*/ kNdrvTypeIsParallel = 'parl', /* parallel */ kNdrvTypeIsSound = 'sond', /* sound*/ kNdrvTypeIsBusBridge = 'brdg' }; typedef UInt32 DriverDescVersion; /* The Driver Description */ enum { kInitialDriverDescriptor = 0, kVersionOneDriverDescriptor = 1 }; enum { kTheDescriptionSignature = 'mtej', kDriverDescriptionSignature = 'pdes' }; struct DriverDescription { OSType driverDescSignature; /* Signature field of this structure*/ DriverDescVersion driverDescVersion; /* Version of this data structure*/ DriverType driverType; /* Type of Driver*/ DriverOSRuntime driverOSRuntimeInfo; /* OS Runtime Requirements of Driver*/ DriverOSService driverServices; /* Apple Service API Membership*/ }; typedef struct DriverDescription DriverDescription; typedef DriverDescription * DriverDescriptionPtr; #ifndef __LP64__ #pragma options align=reset #endif #ifdef __cplusplus } #endif #endif /* __MACTYPES__ */ #ifndef __QUICKDRAW__ #ifdef __cplusplus extern "C" { #endif #ifndef __LP64__ #pragma options align=mac68k #endif struct RGBColor { unsigned short red; /*magnitude of red component*/ unsigned short green; /*magnitude of green component*/ unsigned short blue; /*magnitude of blue component*/ }; typedef struct RGBColor RGBColor; typedef RGBColor *RGBColorPtr; typedef RGBColorPtr *RGBColorHdl; struct ColorSpec { short value; /*index or other value*/ RGBColor rgb; /*true color*/ }; typedef struct ColorSpec ColorSpec; typedef ColorSpec *ColorSpecPtr; struct GammaTbl { short gVersion; /*gamma version number*/ short gType; /*gamma data type*/ short gFormulaSize; /*Formula data size*/ short gChanCnt; /*number of channels of data*/ short gDataCnt; /*number of values/channel*/ short gDataWidth; /*bits/corrected value (data packed to next larger byte size)*/ short gFormulaData[1]; /*data for formulas followed by gamma values*/ }; typedef struct GammaTbl GammaTbl; typedef GammaTbl *GammaTblPtr; struct RegEntryID { void * opaque[4]; }; typedef struct RegEntryID RegEntryID; typedef RegEntryID * RegEntryIDPtr; /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ struct IONDRVControlParameters { UInt8 __reservedA[0x1a]; UInt16 code; void * params; UInt8 __reservedB[0x12]; }; enum { kIONDRVOpenCommand = 128 + 0, kIONDRVCloseCommand = 128 + 1, kIONDRVReadCommand = 128 + 2, kIONDRVWriteCommand = 128 + 3, kIONDRVControlCommand = 128 + 4, kIONDRVStatusCommand = 128 + 5, kIONDRVKillIOCommand = 128 + 6, kIONDRVInitializeCommand = 128 + 7, /* init driver and device*/ kIONDRVFinalizeCommand = 128 + 8, /* shutdown driver and device*/ kIONDRVReplaceCommand = 128 + 9, /* replace an old driver*/ kIONDRVSupersededCommand = 128 + 10 /* prepare to be replaced by a new driver*/ }; enum { kIONDRVSynchronousIOCommandKind = 0x00000001, kIONDRVAsynchronousIOCommandKind = 0x00000002, kIONDRVImmediateIOCommandKind = 0x00000004 }; /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef __LP64__ #pragma options align=reset #endif #ifdef __cplusplus } #endif #endif /* __QUICKDRAW__ */ #endif /* _IOKIT_IOMACOSTYPES_H */
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/Kernel.framework/Headers/IOKit
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/Kernel.framework/Headers/IOKit/ndrvsupport/IOMacOSVideo.h
/* * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * The contents of this file constitute Original Code as defined in and * are subject to the Apple Public Source License Version 1.1 (the * "License"). You may not use this file except in compliance with the * License. Please obtain a copy of the License at * http://www.apple.com/publicsource and read it before using this file. * * This Original Code and all software distributed under the License are * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the * License for the specific language governing rights and limitations * under the License. * * @APPLE_LICENSE_HEADER_END@ */ /* File: Video.h Contains: Video Driver Interfaces. Copyright: (c) 1986-2000 by Apple Computer, Inc., all rights reserved Bugs?: For bug reports, consult the following page on the World Wide Web: http://developer.apple.com/bugreporter/ */ #ifndef __IOMACOSVIDEO__ #define __IOMACOSVIDEO__ #define PRAGMA_STRUCT_ALIGN 1 #define FOUR_CHAR_CODE(x) (x) #include <IOKit/ndrvsupport/IOMacOSTypes.h> #ifdef __cplusplus extern "C" { #endif #ifndef __LP64__ #pragma options align=mac68k #endif enum { mBaseOffset = 1, /*Id of mBaseOffset.*/ mRowBytes = 2, /*Video sResource parameter Id's */ mBounds = 3, /*Video sResource parameter Id's */ mVersion = 4, /*Video sResource parameter Id's */ mHRes = 5, /*Video sResource parameter Id's */ mVRes = 6, /*Video sResource parameter Id's */ mPixelType = 7, /*Video sResource parameter Id's */ mPixelSize = 8, /*Video sResource parameter Id's */ mCmpCount = 9, /*Video sResource parameter Id's */ mCmpSize = 10, /*Video sResource parameter Id's */ mPlaneBytes = 11, /*Video sResource parameter Id's */ mVertRefRate = 14, /*Video sResource parameter Id's */ mVidParams = 1, /*Video parameter block id.*/ mTable = 2, /*Offset to the table.*/ mPageCnt = 3, /*Number of pages*/ mDevType = 4, /*Device Type*/ oneBitMode = 128, /*Id of OneBitMode Parameter list.*/ twoBitMode = 129, /*Id of TwoBitMode Parameter list.*/ fourBitMode = 130, /*Id of FourBitMode Parameter list.*/ eightBitMode = 131 /*Id of EightBitMode Parameter list.*/ }; enum { sixteenBitMode = 132, /*Id of SixteenBitMode Parameter list.*/ thirtyTwoBitMode = 133, /*Id of ThirtyTwoBitMode Parameter list.*/ firstVidMode = 128, /*The new, better way to do the above. */ secondVidMode = 129, /* QuickDraw only supports six video */ thirdVidMode = 130, /* at this time. */ fourthVidMode = 131, fifthVidMode = 132, sixthVidMode = 133, spGammaDir = 64, spVidNamesDir = 65 }; typedef UInt32 AVIDType; typedef AVIDType DisplayIDType; typedef IODisplayModeID DisplayModeID; typedef UInt16 DepthMode; typedef UInt32 VideoDeviceType; typedef UInt32 GammaTableID; /* csTimingFormat values in VDTimingInfo */ /* look in the declaration rom for timing info */ enum { kDeclROMtables = FOUR_CHAR_CODE('decl'), kDetailedTimingFormat = FOUR_CHAR_CODE('arba') /* Timing is a detailed timing*/ }; /* Size of a block of EDID (Extended Display Identification Data) */ enum { kDDCBlockSize = 128 }; /* ddcBlockType constants*/ enum { kDDCBlockTypeEDID = 0 /* EDID block type. */ }; /* ddcFlags constants*/ enum { kDDCForceReadBit = 0, /* Force a new read of the EDID. */ kDDCForceReadMask = (1 << kDDCForceReadBit) /* Mask for kddcForceReadBit. */ }; /* Timing mode constants for Display Manager MultiMode support Corresponding .h equates are in Video.h .a equates are in Video.a .r equates are in DepVideoEqu.r The second enum is the old names (for compatibility). The first enum is the new names. */ enum { timingInvalid = 0, /* Unknown timing... force user to confirm. */ timingInvalid_SM_T24 = 8, /* Work around bug in SM Thunder24 card.*/ timingApple_FixedRateLCD = 42, /* Lump all fixed-rate LCDs into one category.*/ timingApple_512x384_60hz = 130, /* 512x384 (60 Hz) Rubik timing. */ timingApple_560x384_60hz = 135, /* 560x384 (60 Hz) Rubik-560 timing. */ timingApple_640x480_67hz = 140, /* 640x480 (67 Hz) HR timing. */ timingApple_640x400_67hz = 145, /* 640x400 (67 Hz) HR-400 timing. */ timingVESA_640x480_60hz = 150, /* 640x480 (60 Hz) VGA timing. */ timingVESA_640x480_72hz = 152, /* 640x480 (72 Hz) VGA timing. */ timingVESA_640x480_75hz = 154, /* 640x480 (75 Hz) VGA timing. */ timingVESA_640x480_85hz = 158, /* 640x480 (85 Hz) VGA timing. */ timingGTF_640x480_120hz = 159, /* 640x480 (120 Hz) VESA Generalized Timing Formula */ timingApple_640x870_75hz = 160, /* 640x870 (75 Hz) FPD timing.*/ timingApple_640x818_75hz = 165, /* 640x818 (75 Hz) FPD-818 timing.*/ timingApple_832x624_75hz = 170, /* 832x624 (75 Hz) GoldFish timing.*/ timingVESA_800x600_56hz = 180, /* 800x600 (56 Hz) SVGA timing. */ timingVESA_800x600_60hz = 182, /* 800x600 (60 Hz) SVGA timing. */ timingVESA_800x600_72hz = 184, /* 800x600 (72 Hz) SVGA timing. */ timingVESA_800x600_75hz = 186, /* 800x600 (75 Hz) SVGA timing. */ timingVESA_800x600_85hz = 188, /* 800x600 (85 Hz) SVGA timing. */ timingVESA_1024x768_60hz = 190, /* 1024x768 (60 Hz) VESA 1K-60Hz timing. */ timingVESA_1024x768_70hz = 200, /* 1024x768 (70 Hz) VESA 1K-70Hz timing. */ timingVESA_1024x768_75hz = 204, /* 1024x768 (75 Hz) VESA 1K-75Hz timing (very similar to timingApple_1024x768_75hz). */ timingVESA_1024x768_85hz = 208, /* 1024x768 (85 Hz) VESA timing. */ timingApple_1024x768_75hz = 210, /* 1024x768 (75 Hz) Apple 19" RGB. */ timingApple_1152x870_75hz = 220, /* 1152x870 (75 Hz) Apple 21" RGB. */ timingAppleNTSC_ST = 230, /* 512x384 (60 Hz, interlaced, non-convolved). */ timingAppleNTSC_FF = 232, /* 640x480 (60 Hz, interlaced, non-convolved). */ timingAppleNTSC_STconv = 234, /* 512x384 (60 Hz, interlaced, convolved). */ timingAppleNTSC_FFconv = 236, /* 640x480 (60 Hz, interlaced, convolved). */ timingApplePAL_ST = 238, /* 640x480 (50 Hz, interlaced, non-convolved). */ timingApplePAL_FF = 240, /* 768x576 (50 Hz, interlaced, non-convolved). */ timingApplePAL_STconv = 242, /* 640x480 (50 Hz, interlaced, convolved). */ timingApplePAL_FFconv = 244, /* 768x576 (50 Hz, interlaced, convolved). */ timingVESA_1280x960_75hz = 250, /* 1280x960 (75 Hz) */ timingVESA_1280x960_60hz = 252, /* 1280x960 (60 Hz) */ timingVESA_1280x960_85hz = 254, /* 1280x960 (85 Hz) */ timingVESA_1280x1024_60hz = 260, /* 1280x1024 (60 Hz) */ timingVESA_1280x1024_75hz = 262, /* 1280x1024 (75 Hz) */ timingVESA_1280x1024_85hz = 268, /* 1280x1024 (85 Hz) */ timingVESA_1600x1200_60hz = 280, /* 1600x1200 (60 Hz) VESA timing. */ timingVESA_1600x1200_65hz = 282, /* 1600x1200 (65 Hz) VESA timing. */ timingVESA_1600x1200_70hz = 284, /* 1600x1200 (70 Hz) VESA timing. */ timingVESA_1600x1200_75hz = 286, /* 1600x1200 (75 Hz) VESA timing (pixel clock is 189.2 Mhz dot clock). */ timingVESA_1600x1200_80hz = 288, /* 1600x1200 (80 Hz) VESA timing (pixel clock is 216>? Mhz dot clock) - proposed only. */ timingVESA_1600x1200_85hz = 289, /* 1600x1200 (85 Hz) VESA timing (pixel clock is 229.5 Mhz dot clock). */ timingVESA_1792x1344_60hz = 296, /* 1792x1344 (60 Hz) VESA timing (204.75 Mhz dot clock). */ timingVESA_1792x1344_75hz = 298, /* 1792x1344 (75 Hz) VESA timing (261.75 Mhz dot clock). */ timingVESA_1856x1392_60hz = 300, /* 1856x1392 (60 Hz) VESA timing (218.25 Mhz dot clock). */ timingVESA_1856x1392_75hz = 302, /* 1856x1392 (75 Hz) VESA timing (288 Mhz dot clock). */ timingVESA_1920x1440_60hz = 304, /* 1920x1440 (60 Hz) VESA timing (234 Mhz dot clock). */ timingVESA_1920x1440_75hz = 306, /* 1920x1440 (75 Hz) VESA timing (297 Mhz dot clock). */ timingSMPTE240M_60hz = 400, /* 60Hz V, 33.75KHz H, interlaced timing, 16:9 aspect, typical resolution of 1920x1035. */ timingFilmRate_48hz = 410, /* 48Hz V, 25.20KHz H, non-interlaced timing, typical resolution of 640x480. */ timingSony_1600x1024_76hz = 500, /* 1600x1024 (76 Hz) Sony timing (pixel clock is 170.447 Mhz dot clock). */ timingSony_1920x1080_60hz = 510, /* 1920x1080 (60 Hz) Sony timing (pixel clock is 159.84 Mhz dot clock). */ timingSony_1920x1080_72hz = 520, /* 1920x1080 (72 Hz) Sony timing (pixel clock is 216.023 Mhz dot clock). */ timingSony_1920x1200_76hz = 540, /* 1900x1200 (76 Hz) Sony timing (pixel clock is 243.20 Mhz dot clock). */ timingApple_0x0_0hz_Offline = 550 /* Indicates that this timing will take the display off-line and remove it from the system. */ }; /* Deprecated timing names.*/ enum { timingApple12 = timingApple_512x384_60hz, timingApple12x = timingApple_560x384_60hz, timingApple13 = timingApple_640x480_67hz, timingApple13x = timingApple_640x400_67hz, timingAppleVGA = timingVESA_640x480_60hz, timingApple15 = timingApple_640x870_75hz, timingApple15x = timingApple_640x818_75hz, timingApple16 = timingApple_832x624_75hz, timingAppleSVGA = timingVESA_800x600_56hz, timingApple1Ka = timingVESA_1024x768_60hz, timingApple1Kb = timingVESA_1024x768_70hz, timingApple19 = timingApple_1024x768_75hz, timingApple21 = timingApple_1152x870_75hz, timingSony_1900x1200_74hz = 530, /* 1900x1200 (74 Hz) Sony timing (pixel clock is 236.25 Mhz dot clock). */ timingSony_1900x1200_76hz = timingSony_1920x1200_76hz /* 1900x1200 (76 Hz) Sony timing (pixel clock is 245.48 Mhz dot clock). */ }; /* csConnectFlags values in VDDisplayConnectInfo */ enum { kAllModesValid = 0, /* All modes not trimmed by primary init are good close enough to try */ kAllModesSafe = 1, /* All modes not trimmed by primary init are know to be safe */ kReportsTagging = 2, /* Can detect tagged displays (to identify smart monitors) */ kHasDirectConnection = 3, /* True implies that driver can talk directly to device (e.g. serial data link via sense lines) */ kIsMonoDev = 4, /* Says whether there's an RGB (0) or Monochrome (1) connection. */ kUncertainConnection = 5, /* There may not be a display (no sense lines?). */ kTaggingInfoNonStandard = 6, /* Set when csConnectTaggedType/csConnectTaggedData are non-standard (i.e., not the Apple CRT sense codes). */ kReportsDDCConnection = 7, /* Card can do ddc (set kHasDirectConnect && kHasDDCConnect if you actually found a ddc display). */ kHasDDCConnection = 8, /* Card has ddc connect now. */ kConnectionInactive = 9, /* Set when the connection is NOT currently active (generally used in a multiconnection environment). */ kDependentConnection = 10, /* Set when some ascpect of THIS connection depends on another (will generally be set in a kModeSimulscan environment). */ kBuiltInConnection = 11, /* Set when connection is KNOWN to be built-in (this is not the same as kHasDirectConnection). */ kOverrideConnection = 12, /* Set when the reported connection is not the true one, but is one that has been forced through a SetConnection call */ kFastCheckForDDC = 13, /* Set when all 3 are true: 1) sense codes indicate DDC display could be attached 2) attempted fast check 3) DDC failed */ kReportsHotPlugging = 14, /* Detects and reports hot pluggging on connector (via VSL also implies DDC will be up to date w/o force read) */ kStereoSyncConnection = 15 /* Connection supports stereo sync signalling */ }; /* csDisplayType values in VDDisplayConnectInfo */ enum { kUnknownConnect = 1, /* Not sure how we'll use this, but seems like a good idea. */ kPanelConnect = 2, /* For use with fixed-in-place LCD panels. */ kPanelTFTConnect = 2, /* Alias for kPanelConnect */ kFixedModeCRTConnect = 3, /* For use with fixed-mode (i.e., very limited range) displays. */ kMultiModeCRT1Connect = 4, /* 320x200 maybe, 12" maybe, 13" (default), 16" certain, 19" maybe, 21" maybe */ kMultiModeCRT2Connect = 5, /* 320x200 maybe, 12" maybe, 13" certain, 16" (default), 19" certain, 21" maybe */ kMultiModeCRT3Connect = 6, /* 320x200 maybe, 12" maybe, 13" certain, 16" certain, 19" default, 21" certain */ kMultiModeCRT4Connect = 7, /* Expansion to large multi mode (not yet used) */ kModelessConnect = 8, /* Expansion to modeless model (not yet used) */ kFullPageConnect = 9, /* 640x818 (to get 8bpp in 512K case) and 640x870 (these two only) */ kVGAConnect = 10, /* 640x480 VGA default -- question everything else */ kNTSCConnect = 11, /* NTSC ST (default), FF, STconv, FFconv */ kPALConnect = 12, /* PAL ST (default), FF, STconv, FFconv */ kHRConnect = 13, /* Straight-6 connect -- 640x480 and 640x400 (to get 8bpp in 256K case) (these two only) */ kPanelFSTNConnect = 14, /* For use with fixed-in-place LCD FSTN (aka "Supertwist") panels */ kMonoTwoPageConnect = 15, /* 1152x870 Apple color two-page display */ kColorTwoPageConnect = 16, /* 1152x870 Apple B&W two-page display */ kColor16Connect = 17, /* 832x624 Apple B&W two-page display */ kColor19Connect = 18, /* 1024x768 Apple B&W two-page display */ kGenericCRT = 19, /* Indicates nothing except that connection is CRT in nature. */ kGenericLCD = 20, /* Indicates nothing except that connection is LCD in nature. */ kDDCConnect = 21, /* DDC connection, always set kHasDDCConnection */ kNoConnect = 22 /* No display is connected - load sensing or similar level of hardware detection is assumed (used by resident drivers that support hot plugging when nothing is currently connected) */ }; /* csTimingFlags values in VDTimingInfoRec */ enum { kModeValid = 0, /* Says that this mode should NOT be trimmed. */ kModeSafe = 1, /* This mode does not need confirmation */ kModeDefault = 2, /* This is the default mode for this type of connection */ kModeShowNow = 3, /* This mode should always be shown (even though it may require a confirm) */ kModeNotResize = 4, /* This mode should not be used to resize the display (eg. mode selects a different connector on card) */ kModeRequiresPan = 5, /* This mode has more pixels than are actually displayed */ kModeInterlaced = 6, /* This mode is interlaced (single pixel lines look bad). */ kModeShowNever = 7, /* This mode should not be shown in the user interface. */ kModeSimulscan = 8, /* Indicates that more than one display connection can be driven from a single framebuffer controller. */ kModeNotPreset = 9, /* Indicates that the timing is not a factory preset for the current display (geometry may need correction) */ kModeBuiltIn = 10, /* Indicates that the display mode is for the built-in connect only (on multiconnect devices like the PB 3400) Only the driver is quieried */ kModeStretched = 11, /* Indicates that the display mode will be stretched/distorted to match the display aspect ratio */ kModeNotGraphicsQuality = 12, /* Indicates that the display mode is not the highest quality (eg. stretching artifacts). Intended as a hint */ kModeValidateAgainstDisplay = 13 /* Indicates that this mode should be validated against the display EDID */ }; /* csDepthFlags in VDVideoParametersInfoRec */ enum { kDepthDependent = 0, /* Says that this depth mode may cause dependent changes in other framebuffers (and . */ kDepthDependentMask = (1 << kDepthDependent) /* mask for kDepthDependent */ }; /* csResolutionFlags bit flags for VDResolutionInfoRec */ enum { kResolutionHasMultipleDepthSizes = 0 /* Says that this mode has different csHorizontalPixels, csVerticalLines at different depths (usually slightly larger at lower depths) */ }; enum { /* Power Mode constants for VDPowerStateRec.powerState. Note the numeric order does not match the power state order */ kAVPowerOff = 0, /* Power fully off*/ kAVPowerStandby = 1, kAVPowerSuspend = 2, kAVPowerOn = 3, kHardwareSleep = 128, kHardwareWake = 129, kHardwareWakeFromSuspend = 130, kHardwareWakeToDoze = 131, kHardwareWakeToDozeFromSuspend = 132, kHardwarePark = 133, kHardwareDrive = 134 }; /* Reduced perf level, for GetPowerState, SetPowerState*/ enum { kPowerStateReducedPowerMask = 0x00000300, kPowerStateFullPower = 0x00000000, kPowerStateReducedPower1 = 0x00000100, kPowerStateReducedPower2 = 0x00000200, kPowerStateReducedPower3 = 0x00000300 }; enum { /* Power Mode masks and bits for VDPowerStateRec.powerFlags. */ kPowerStateNeedsRefresh = 0, /* When leaving this power mode, a display will need refreshing */ kPowerStateSleepAwareBit = 1, /* if gestaltPCCardDockingSelectorFix, Docking mgr checks this bit before checking kPowerStateSleepAllowedBit */ kPowerStateSleepForbiddenBit = 2, /* if kPowerStateSleepAwareBit, Docking mgr checks this bit before sleeping */ kPowerStateSleepCanPowerOffBit = 3, /* supports power down sleep (ie PCI power off)*/ kPowerStateSleepNoDPMSBit = 4, /* Bug #2425210. Do not use DPMS with this display.*/ kPowerStateSleepWaketoDozeBit = 5, /* Supports Wake to Doze */ kPowerStateSleepWakeNeedsProbeBit = 6, /* Does not sense connection changes on wake */ kPowerStateNeedsRefreshMask = (1 << kPowerStateNeedsRefresh), kPowerStateSleepAwareMask = (1 << kPowerStateSleepAwareBit), kPowerStateSleepForbiddenMask = (1 << kPowerStateSleepForbiddenBit), kPowerStateSleepCanPowerOffMask = (1 << kPowerStateSleepCanPowerOffBit), kPowerStateSleepNoDPMSMask = (1 << kPowerStateSleepNoDPMSBit), kPowerStateSleepWaketoDozeMask = (1 << kPowerStateSleepWaketoDozeBit), kPowerStateSleepWakeNeedsProbeMask = (1 << kPowerStateSleepWakeNeedsProbeBit), kPowerStateSupportsReducedPower1Bit = 10, kPowerStateSupportsReducedPower2Bit = 11, kPowerStateSupportsReducedPower3Bit = 12, kPowerStateSupportsReducedPower1BitMask = (1 << 10), kPowerStateSupportsReducedPower2BitMask = (1 << 11), kPowerStateSupportsReducedPower3BitMask = (1 << 12) }; enum { /* Control Codes */ cscReset = 0, cscKillIO = 1, cscSetMode = 2, cscSetEntries = 3, cscSetGamma = 4, cscGrayPage = 5, cscGrayScreen = 5, cscSetGray = 6, cscSetInterrupt = 7, cscDirectSetEntries = 8, cscSetDefaultMode = 9, cscSwitchMode = 10, /* Takes a VDSwitchInfoPtr */ cscSetSync = 11, /* Takes a VDSyncInfoPtr */ cscSavePreferredConfiguration = 16, /* Takes a VDSwitchInfoPtr */ cscSetHardwareCursor = 22, /* Takes a VDSetHardwareCursorPtr */ cscDrawHardwareCursor = 23, /* Takes a VDDrawHardwareCursorPtr */ cscSetConvolution = 24, /* Takes a VDConvolutionInfoPtr */ cscSetPowerState = 25, /* Takes a VDPowerStatePtr */ cscPrivateControlCall = 26, /* Takes a VDPrivateSelectorDataRec*/ cscSetMultiConnect = 28, /* From a GDI point of view, this call should be implemented completely in the HAL and not at all in the core.*/ cscSetClutBehavior = 29, /* Takes a VDClutBehavior */ cscSetDetailedTiming = 31, /* Takes a VDDetailedTimingPtr */ cscDoCommunication = 33, /* Takes a VDCommunicationPtr */ cscProbeConnection = 34, /* Takes nil pointer */ /* (may generate a kFBConnectInterruptServiceType service interrupt) */ cscSetScaler = 36, /* Takes a VDScalerPtr */ cscSetMirror = 37, /* Takes a VDMirrorPtr*/ cscSetFeatureConfiguration = 38, /* Takes a VDConfigurationPtr*/ cscUnusedCall = 127 /* This call used to expand the scrn resource. Its imbedded data contains more control info */ }; enum { /* Status Codes */ cscGetMode = 2, cscGetEntries = 3, cscGetPageCnt = 4, cscGetPages = 4, /* This is what C&D 2 calls it. */ cscGetPageBase = 5, cscGetBaseAddr = 5, /* This is what C&D 2 calls it. */ cscGetGray = 6, cscGetInterrupt = 7, cscGetGamma = 8, cscGetDefaultMode = 9, cscGetCurMode = 10, /* Takes a VDSwitchInfoPtr */ cscGetSync = 11, /* Takes a VDSyncInfoPtr */ cscGetConnection = 12, /* Return information about the connection to the display */ cscGetModeTiming = 13, /* Return timing info for a mode */ cscGetModeBaseAddress = 14, /* Return base address information about a particular mode */ cscGetScanProc = 15, /* QuickTime scan chasing routine */ cscGetPreferredConfiguration = 16, /* Takes a VDSwitchInfoPtr */ cscGetNextResolution = 17, /* Takes a VDResolutionInfoPtr */ cscGetVideoParameters = 18, /* Takes a VDVideoParametersInfoPtr */ cscGetGammaInfoList = 20, /* Takes a VDGetGammaListPtr */ cscRetrieveGammaTable = 21, /* Takes a VDRetrieveGammaPtr */ cscSupportsHardwareCursor = 22, /* Takes a VDSupportsHardwareCursorPtr */ cscGetHardwareCursorDrawState = 23, /* Takes a VDHardwareCursorDrawStatePtr */ cscGetConvolution = 24, /* Takes a VDConvolutionInfoPtr */ cscGetPowerState = 25, /* Takes a VDPowerStatePtr */ cscPrivateStatusCall = 26, /* Takes a VDPrivateSelectorDataRec*/ cscGetDDCBlock = 27, /* Takes a VDDDCBlockRec */ cscGetMultiConnect = 28, /* From a GDI point of view, this call should be implemented completely in the HAL and not at all in the core.*/ cscGetClutBehavior = 29, /* Takes a VDClutBehavior */ cscGetTimingRanges = 30, /* Takes a VDDisplayTimingRangePtr */ cscGetDetailedTiming = 31, /* Takes a VDDetailedTimingPtr */ cscGetCommunicationInfo = 32, /* Takes a VDCommunicationInfoPtr */ cscGetScalerInfo = 35, /* Takes a VDScalerInfoPtr */ cscGetScaler = 36, /* Takes a VDScalerPtr */ cscGetMirror = 37, /* Takes a VDMirrorPtr*/ cscGetFeatureConfiguration = 38, /* Takes a VDConfigurationPtr*/ cscGetFeatureList = 39 }; /* Bit definitions for the Get/Set Sync call*/ enum { kDisableHorizontalSyncBit = 0, kDisableVerticalSyncBit = 1, kDisableCompositeSyncBit = 2, kEnableSyncOnBlue = 3, kEnableSyncOnGreen = 4, kEnableSyncOnRed = 5, kNoSeparateSyncControlBit = 6, kTriStateSyncBit = 7, kHorizontalSyncMask = 0x01, kVerticalSyncMask = 0x02, kCompositeSyncMask = 0x04, kDPMSSyncMask = 0x07, kTriStateSyncMask = 0x80, kSyncOnBlueMask = 0x08, kSyncOnGreenMask = 0x10, kSyncOnRedMask = 0x20, kSyncOnMask = 0x38 }; enum { /* Power Mode constants for translating DPMS modes to Get/SetSync calls. */ kDPMSSyncOn = 0, kDPMSSyncStandby = 1, kDPMSSyncSuspend = 2, kDPMSSyncOff = 7 }; /* Bit definitions for the Get/Set Convolution call*/ enum { kConvolved = 0, kLiveVideoPassThru = 1, kConvolvedMask = 0x01, kLiveVideoPassThruMask = 0x02 }; struct VPBlock { UInt32 vpBaseOffset; /*Offset to page zero of video RAM (From minorBaseOS).*/ #if __LP64__ UInt32 vpRowBytes; /*Width of each row of video memory.*/ #else SInt16 vpRowBytes; /*Width of each row of video memory.*/ #endif Rect vpBounds; /*BoundsRect for the video display (gives dimensions).*/ SInt16 vpVersion; /*PixelMap version number.*/ SInt16 vpPackType; UInt32 vpPackSize; UInt32 vpHRes; /*Horizontal resolution of the device (pixels per inch).*/ UInt32 vpVRes; /*Vertical resolution of the device (pixels per inch).*/ SInt16 vpPixelType; /*Defines the pixel type.*/ SInt16 vpPixelSize; /*Number of bits in pixel.*/ SInt16 vpCmpCount; /*Number of components in pixel.*/ SInt16 vpCmpSize; /*Number of bits per component*/ UInt32 vpPlaneBytes; /*Offset from one plane to the next.*/ }; typedef struct VPBlock VPBlock; typedef VPBlock * VPBlockPtr; struct VDEntryRecord { Ptr csTable; /* pointer to color table entry=value, r,g,b:INTEGER*/ }; typedef struct VDEntryRecord VDEntryRecord; typedef VDEntryRecord * VDEntRecPtr; /* Parm block for SetGray control call */ struct VDGrayRecord { Boolean csMode; /*Same as GDDevType value (0=color, 1=mono)*/ SInt8 filler; }; typedef struct VDGrayRecord VDGrayRecord; typedef VDGrayRecord * VDGrayPtr; /* Parm block for SetInterrupt call */ struct VDFlagRecord { SInt8 csMode; SInt8 filler; }; typedef struct VDFlagRecord VDFlagRecord; typedef VDFlagRecord * VDFlagRecPtr; /* Parm block for SetEntries control call */ struct VDSetEntryRecord { ColorSpec * csTable; /*Pointer to an array of color specs*/ SInt16 csStart; /*Which spec in array to start with, or -1*/ SInt16 csCount; /*Number of color spec entries to set*/ }; typedef struct VDSetEntryRecord VDSetEntryRecord; typedef VDSetEntryRecord * VDSetEntryPtr; /* Parm block for SetGamma control call */ struct VDGammaRecord { Ptr csGTable; /*pointer to gamma table*/ }; typedef struct VDGammaRecord VDGammaRecord; typedef VDGammaRecord * VDGamRecPtr; struct VDSwitchInfoRec { DepthMode csMode; /* mode depth*/ DisplayModeID csData; /* functional sResource of mode*/ UInt16 csPage; /* page to switch in*/ Ptr csBaseAddr; /* base address of page (return value)*/ uintptr_t csReserved; /* Reserved (set to 0) */ }; typedef struct VDSwitchInfoRec VDSwitchInfoRec; typedef VDSwitchInfoRec * VDSwitchInfoPtr; struct VDTimingInfoRec { DisplayModeID csTimingMode; /* timing mode (a la InitGDevice) */ uintptr_t csTimingReserved; /* reserved */ UInt32 csTimingFormat; /* what format is the timing info */ UInt32 csTimingData; /* data supplied by driver */ UInt32 csTimingFlags; /* mode within device */ }; typedef struct VDTimingInfoRec VDTimingInfoRec; typedef VDTimingInfoRec * VDTimingInfoPtr; struct VDDisplayConnectInfoRec { UInt16 csDisplayType; /* Type of display connected */ UInt8 csConnectTaggedType; /* type of tagging */ UInt8 csConnectTaggedData; /* tagging data */ UInt32 csConnectFlags; /* tell us about the connection */ uintptr_t csDisplayComponent; /* if the card has a direct connection to the display, it returns the display component here (FUTURE) */ uintptr_t csConnectReserved; /* reserved */ }; typedef struct VDDisplayConnectInfoRec VDDisplayConnectInfoRec; typedef VDDisplayConnectInfoRec * VDDisplayConnectInfoPtr; struct VDMultiConnectInfoRec { UInt32 csDisplayCountOrNumber; /* For GetMultiConnect, returns count n of 1..n connections; otherwise, indicates the ith connection.*/ VDDisplayConnectInfoRec csConnectInfo; /* Standard VDDisplayConnectionInfo for connection i.*/ }; typedef struct VDMultiConnectInfoRec VDMultiConnectInfoRec; typedef VDMultiConnectInfoRec * VDMultiConnectInfoPtr; /* RawSenseCode This abstract data type is not exactly abstract. Rather, it is merely enumerated constants for the possible raw sense code values when 'standard' sense code hardware is implemented. For 'standard' sense code hardware, the raw sense is obtained as follows: o Instruct the frame buffer controller NOT to actively drive any of the monitor sense lines o Read the state of the monitor sense lines 2, 1, and 0. (2 is the MSB, 0 the LSB) IMPORTANT Note: When the 'kTaggingInfoNonStandard' bit of 'csConnectFlags' is FALSE, then these constants are valid 'csConnectTaggedType' values in 'VDDisplayConnectInfo' */ typedef UInt8 RawSenseCode; enum { kRSCZero = 0, kRSCOne = 1, kRSCTwo = 2, kRSCThree = 3, kRSCFour = 4, kRSCFive = 5, kRSCSix = 6, kRSCSeven = 7 }; /* ExtendedSenseCode This abstract data type is not exactly abstract. Rather, it is merely enumerated constants for the values which are possible when the extended sense algorithm is applied to hardware which implements 'standard' sense code hardware. For 'standard' sense code hardware, the extended sense code algorithm is as follows: (Note: as described here, sense line 'A' corresponds to '2', 'B' to '1', and 'C' to '0') o Drive sense line 'A' low and read the values of 'B' and 'C'. o Drive sense line 'B' low and read the values of 'A' and 'C'. o Drive sense line 'C' low and read the values of 'A' and 'B'. In this way, a six-bit number of the form BC/AC/AB is generated. IMPORTANT Note: When the 'kTaggingInfoNonStandard' bit of 'csConnectFlags' is FALSE, then these constants are valid 'csConnectTaggedData' values in 'VDDisplayConnectInfo' */ typedef UInt8 ExtendedSenseCode; enum { kESCZero21Inch = 0x00, /* 21" RGB */ kESCOnePortraitMono = 0x14, /* Portrait Monochrome */ kESCTwo12Inch = 0x21, /* 12" RGB */ kESCThree21InchRadius = 0x31, /* 21" RGB (Radius) */ kESCThree21InchMonoRadius = 0x34, /* 21" Monochrome (Radius) */ kESCThree21InchMono = 0x35, /* 21" Monochrome */ kESCFourNTSC = 0x0A, /* NTSC */ kESCFivePortrait = 0x1E, /* Portrait RGB */ kESCSixMSB1 = 0x03, /* MultiScan Band-1 (12" thru 1Six") */ kESCSixMSB2 = 0x0B, /* MultiScan Band-2 (13" thru 19") */ kESCSixMSB3 = 0x23, /* MultiScan Band-3 (13" thru 21") */ kESCSixStandard = 0x2B, /* 13"/14" RGB or 12" Monochrome */ kESCSevenPAL = 0x00, /* PAL */ kESCSevenNTSC = 0x14, /* NTSC */ kESCSevenVGA = 0x17, /* VGA */ kESCSeven16Inch = 0x2D, /* 16" RGB (GoldFish) */ kESCSevenPALAlternate = 0x30, /* PAL (Alternate) */ kESCSeven19Inch = 0x3A, /* Third-Party 19" */ kESCSevenDDC = 0x3E, /* DDC display */ kESCSevenNoDisplay = 0x3F /* No display connected */ }; /* DepthMode This abstract data type is used to to reference RELATIVE pixel depths. Its definition is largely derived from its past usage, analogous to 'xxxVidMode' Bits per pixel DOES NOT directly map to 'DepthMode' For example, on some graphics hardware, 'kDepthMode1' may represent 1 BPP, whereas on other hardware, 'kDepthMode1' may represent 8BPP. DepthMode IS considered to be ordinal, i.e., operations such as <, >, ==, etc. behave as expected. The values of the constants which comprise the set are such that 'kDepthMode4 < kDepthMode6' behaves as expected. */ enum { kDepthMode1 = 128, kDepthMode2 = 129, kDepthMode3 = 130, kDepthMode4 = 131, kDepthMode5 = 132, kDepthMode6 = 133 }; enum { kFirstDepthMode = 128, /* These constants are obsolete, and just included */ kSecondDepthMode = 129, /* for clients that have converted to the above */ kThirdDepthMode = 130, /* kDepthModeXXX constants. */ kFourthDepthMode = 131, kFifthDepthMode = 132, kSixthDepthMode = 133 }; struct VDPageInfo { DepthMode csMode; /* mode within device*/ DisplayModeID csData; /* data supplied by driver*/ SInt16 csPage; /* page to switch in*/ Ptr csBaseAddr; /* base address of page*/ }; typedef struct VDPageInfo VDPageInfo; typedef VDPageInfo * VDPgInfoPtr; struct VDSizeInfo { SInt16 csHSize; /* desired/returned h size*/ SInt16 csHPos; /* desired/returned h position*/ SInt16 csVSize; /* desired/returned v size*/ SInt16 csVPos; /* desired/returned v position*/ }; typedef struct VDSizeInfo VDSizeInfo; typedef VDSizeInfo * VDSzInfoPtr; struct VDSettings { SInt16 csParamCnt; /* number of params*/ SInt16 csBrightMax; /* max brightness*/ SInt16 csBrightDef; /* default brightness*/ SInt16 csBrightVal; /* current brightness*/ SInt16 csCntrstMax; /* max contrast*/ SInt16 csCntrstDef; /* default contrast*/ SInt16 csCntrstVal; /* current contrast*/ SInt16 csTintMax; /* max tint*/ SInt16 csTintDef; /* default tint*/ SInt16 csTintVal; /* current tint*/ SInt16 csHueMax; /* max hue*/ SInt16 csHueDef; /* default hue*/ SInt16 csHueVal; /* current hue*/ SInt16 csHorizDef; /* default horizontal*/ SInt16 csHorizVal; /* current horizontal*/ SInt16 csHorizMax; /* max horizontal*/ SInt16 csVertDef; /* default vertical*/ SInt16 csVertVal; /* current vertical*/ SInt16 csVertMax; /* max vertical*/ }; typedef struct VDSettings VDSettings; typedef VDSettings * VDSettingsPtr; struct VDDefMode { UInt8 csID; SInt8 filler; }; typedef struct VDDefMode VDDefMode; typedef VDDefMode * VDDefModePtr; struct VDSyncInfoRec { UInt8 csMode; UInt8 csFlags; }; typedef struct VDSyncInfoRec VDSyncInfoRec; typedef VDSyncInfoRec * VDSyncInfoPtr; /* All displayModeID values from 0x80000000 to 0xFFFFFFFF and 0x00 are reserved for Apple Computer. */ /* Constants for the cscGetNextResolution call */ enum { kDisplayModeIDCurrent = 0x00, /* Reference the Current DisplayModeID */ kDisplayModeIDInvalid = (IODisplayModeID)0xFFFFFFFF, /* A bogus DisplayModeID in all cases */ kDisplayModeIDFindFirstResolution = (IODisplayModeID)0xFFFFFFFE, /* Used in cscGetNextResolution to reset iterator */ kDisplayModeIDNoMoreResolutions = (IODisplayModeID)0xFFFFFFFD, /* Used in cscGetNextResolution to indicate End Of List */ kDisplayModeIDFindFirstProgrammable = (IODisplayModeID)0xFFFFFFFC, /* Used in cscGetNextResolution to find unused programmable timing */ kDisplayModeIDBootProgrammable = (IODisplayModeID)0xFFFFFFFB, /* This is the ID given at boot time by the OF driver to a programmable timing */ kDisplayModeIDReservedBase = (IODisplayModeID)0x80000000 /* Lowest (unsigned) DisplayModeID reserved by Apple */ }; /* Constants for the GetGammaInfoList call */ enum { kGammaTableIDFindFirst = (GammaTableID)0xFFFFFFFE, /* Get the first gamma table ID */ kGammaTableIDNoMoreTables = (GammaTableID)0xFFFFFFFD, /* Used to indicate end of list */ kGammaTableIDSpecific = 0x00 /* Return the info for the given table id */ }; /* Constants for GetMultiConnect call*/ enum { kGetConnectionCount = 0xFFFFFFFF, /* Used to get the number of possible connections in a "multi-headed" framebuffer environment.*/ kActivateConnection = (0 << kConnectionInactive), /* Used for activating a connection (csConnectFlags value).*/ kDeactivateConnection = (1 << kConnectionInactive) /* Used for deactivating a connection (csConnectFlags value.)*/ }; /* VDCommunicationRec.csBusID values*/ enum { kVideoDefaultBus = 0 }; /* VDCommunicationInfoRec.csBusType values*/ enum { kVideoBusTypeInvalid = 0, kVideoBusTypeI2C = 1, kVideoBusTypeDisplayPort = 2 }; /* VDCommunicationRec.csSendType and VDCommunicationRec.csReplyType values*/ enum { kVideoNoTransactionType = 0, /* No transaction*/ kVideoNoTransactionTypeMask = (1 << kVideoNoTransactionType), kVideoSimpleI2CType = 1, /* Simple I2C message*/ kVideoSimpleI2CTypeMask = (1 << kVideoSimpleI2CType), kVideoDDCciReplyType = 2, /* DDC/ci message (with imbedded length)*/ kVideoDDCciReplyTypeMask = (1 << kVideoDDCciReplyType), kVideoCombinedI2CType = 3, /* Combined format I2C R/~W transaction*/ kVideoCombinedI2CTypeMask = (1 << kVideoCombinedI2CType), kVideoDisplayPortNativeType = 4, /* DisplayPort Native */ kVideoDisplayPortNativeTypeMask = (1 << kVideoDisplayPortNativeType) }; // VDCommunicationRec.csCommFlags and VDCommunicationInfoRec.csSupportedCommFlags enum { kVideoReplyMicroSecDelayBit = 0, /* If bit set, the driver should delay csMinReplyDelay micro seconds between send and receive*/ kVideoReplyMicroSecDelayMask = (1 << kVideoReplyMicroSecDelayBit), kVideoUsageAddrSubAddrBit = 1, /* If bit set, the driver understands to use the lower 16 bits of the address field as two 8 bit values (address/subaddress) for the I2C transaction*/ kVideoUsageAddrSubAddrMask = (1 << kVideoUsageAddrSubAddrBit) }; struct VDResolutionInfoRec { DisplayModeID csPreviousDisplayModeID; /* ID of the previous resolution in a chain */ DisplayModeID csDisplayModeID; /* ID of the next resolution */ UInt32 csHorizontalPixels; /* # of pixels in a horizontal line at the max depth */ UInt32 csVerticalLines; /* # of lines in a screen at the max depth */ Fixed csRefreshRate; /* Vertical Refresh Rate in Hz */ DepthMode csMaxDepthMode; /* 0x80-based number representing max bit depth */ UInt32 csResolutionFlags; /* Reserved - flag bits */ uintptr_t csReserved; /* Reserved */ }; typedef struct VDResolutionInfoRec VDResolutionInfoRec; typedef VDResolutionInfoRec * VDResolutionInfoPtr; struct VDVideoParametersInfoRec { DisplayModeID csDisplayModeID; /* the ID of the resolution we want info on */ DepthMode csDepthMode; /* The bit depth we want the info on (0x80 based) */ VPBlockPtr csVPBlockPtr; /* Pointer to a video parameter block */ UInt32 csPageCount; /* Number of pages supported by the resolution */ VideoDeviceType csDeviceType; /* Device Type: Direct, Fixed or CLUT; */ UInt32 csDepthFlags; /* Flags */ }; typedef struct VDVideoParametersInfoRec VDVideoParametersInfoRec; typedef VDVideoParametersInfoRec * VDVideoParametersInfoPtr; struct VDGammaInfoRec { GammaTableID csLastGammaID; /* the ID of the previous gamma table */ GammaTableID csNextGammaID; /* the ID of the next gamma table */ Ptr csGammaPtr; /* Ptr to a gamma table data */ uintptr_t csReserved; /* Reserved */ }; typedef struct VDGammaInfoRec VDGammaInfoRec; typedef VDGammaInfoRec * VDGammaInfoPtr; struct VDGetGammaListRec { GammaTableID csPreviousGammaTableID; /* ID of the previous gamma table */ GammaTableID csGammaTableID; /* ID of the gamma table following csPreviousDisplayModeID */ UInt32 csGammaTableSize; /* Size of the gamma table in bytes */ char * csGammaTableName; /* Gamma table name (c-string) */ }; typedef struct VDGetGammaListRec VDGetGammaListRec; typedef VDGetGammaListRec * VDGetGammaListPtr; struct VDRetrieveGammaRec { GammaTableID csGammaTableID; /* ID of gamma table to retrieve */ GammaTbl * csGammaTablePtr; /* Location to copy desired gamma to */ }; typedef struct VDRetrieveGammaRec VDRetrieveGammaRec; typedef VDRetrieveGammaRec * VDRetrieveGammaPtr; struct VDSetHardwareCursorRec { void * csCursorRef; /* reference to cursor data */ UInt32 csReserved1; /* reserved for future use */ UInt32 csReserved2; /* should be ignored */ }; typedef struct VDSetHardwareCursorRec VDSetHardwareCursorRec; typedef VDSetHardwareCursorRec * VDSetHardwareCursorPtr; struct VDDrawHardwareCursorRec { SInt32 csCursorX; /* x coordinate */ SInt32 csCursorY; /* y coordinate */ UInt32 csCursorVisible; /* true if cursor is must be visible */ UInt32 csReserved1; /* reserved for future use */ UInt32 csReserved2; /* should be ignored */ }; typedef struct VDDrawHardwareCursorRec VDDrawHardwareCursorRec; typedef VDDrawHardwareCursorRec * VDDrawHardwareCursorPtr; struct VDSupportsHardwareCursorRec { UInt32 csSupportsHardwareCursor; /* true if hardware cursor is supported */ UInt32 csReserved1; /* reserved for future use */ UInt32 csReserved2; /* must be zero */ }; typedef struct VDSupportsHardwareCursorRec VDSupportsHardwareCursorRec; typedef VDSupportsHardwareCursorRec * VDSupportsHardwareCursorPtr; struct VDHardwareCursorDrawStateRec { SInt32 csCursorX; /* x coordinate */ SInt32 csCursorY; /* y coordinate */ UInt32 csCursorVisible; /* true if cursor is visible */ UInt32 csCursorSet; /* true if cursor successfully set by last set control call */ UInt32 csReserved1; /* reserved for future use */ UInt32 csReserved2; /* must be zero */ }; typedef struct VDHardwareCursorDrawStateRec VDHardwareCursorDrawStateRec; typedef VDHardwareCursorDrawStateRec * VDHardwareCursorDrawStatePtr; struct VDConvolutionInfoRec { DisplayModeID csDisplayModeID; /* the ID of the resolution we want info on */ DepthMode csDepthMode; /* The bit depth we want the info on (0x80 based) */ UInt32 csPage; UInt32 csFlags; UInt32 csReserved; }; typedef struct VDConvolutionInfoRec VDConvolutionInfoRec; typedef VDConvolutionInfoRec * VDConvolutionInfoPtr; struct VDPowerStateRec { UInt32 powerState; UInt32 powerFlags; uintptr_t powerReserved1; uintptr_t powerReserved2; }; typedef struct VDPowerStateRec VDPowerStateRec; typedef VDPowerStateRec * VDPowerStatePtr; /* Private Data to video drivers. In versions of MacOS with multiple address spaces (System 8), the OS must know the extent of parameters in order to move them between the caller and driver. The old private-selector model for video drivers does not have this information so: For post-7.x Systems private calls should be implemented using the cscPrivateCall */ struct VDPrivateSelectorDataRec { LogicalAddress privateParameters; /* Caller's parameters*/ ByteCount privateParametersSize; /* Size of data sent from caller to driver*/ LogicalAddress privateResults; /* Caller's return area. Can be nil, or same as privateParameters.*/ ByteCount privateResultsSize; /* Size of data driver returns to caller. Can be nil, or same as privateParametersSize.*/ }; typedef struct VDPrivateSelectorDataRec VDPrivateSelectorDataRec; struct VDPrivateSelectorRec { UInt32 reserved; /* Reserved (set to 0). */ VDPrivateSelectorDataRec data[1]; }; typedef struct VDPrivateSelectorRec VDPrivateSelectorRec; struct VDDDCBlockRec { UInt32 ddcBlockNumber; /* Input -- DDC EDID (Extended Display Identification Data) number (1-based) */ ResType ddcBlockType; /* Input -- DDC block type (EDID/VDIF) */ UInt32 ddcFlags; /* Input -- DDC Flags*/ UInt32 ddcReserved; /* Reserved */ Byte ddcBlockData[128]; /* Output -- DDC EDID/VDIF data (kDDCBlockSize) */ }; typedef struct VDDDCBlockRec VDDDCBlockRec; typedef VDDDCBlockRec * VDDDCBlockPtr; enum { /* timingSyncConfiguration*/ kSyncInterlaceMask = (1 << 7), kSyncAnalogCompositeMask = 0, kSyncAnalogCompositeSerrateMask = (1 << 2), kSyncAnalogCompositeRGBSyncMask = (1 << 1), kSyncAnalogBipolarMask = (1 << 3), kSyncAnalogBipolarSerrateMask = (1 << 2), kSyncAnalogBipolarSRGBSyncMask = (1 << 1), kSyncDigitalCompositeMask = (1 << 4), kSyncDigitalCompositeSerrateMask = (1 << 2), kSyncDigitalCompositeMatchHSyncMask = (1 << 2), kSyncDigitalSeperateMask = (1 << 4) + (1 << 3), kSyncDigitalVSyncPositiveMask = (1 << 2), kSyncDigitalHSyncPositiveMask = (1 << 1) }; struct VDDisplayTimingRangeRec { UInt32 csRangeSize; /* Init to sizeof(VDDisplayTimingRangeRec) */ UInt32 csRangeType; /* Init to 0 */ UInt32 csRangeVersion; /* Init to 0 */ UInt32 csRangeReserved; /* Init to 0 */ UInt32 csRangeBlockIndex; /* Requested block (first index is 0)*/ UInt32 csRangeGroup; /* set to 0 */ UInt32 csRangeBlockCount; /* # blocks */ UInt32 csRangeFlags; /* dependent video */ UInt64 csMinPixelClock; /* Min dot clock in Hz */ UInt64 csMaxPixelClock; /* Max dot clock in Hz */ UInt32 csMaxPixelError; /* Max dot clock error */ UInt32 csTimingRangeSyncFlags; UInt32 csTimingRangeSignalLevels; UInt32 csTimingRangeSupportedSignalConfigs; UInt32 csMinFrameRate; /* Hz */ UInt32 csMaxFrameRate; /* Hz */ UInt32 csMinLineRate; /* Hz */ UInt32 csMaxLineRate; /* Hz */ UInt32 csMaxHorizontalTotal; /* Clocks - Maximum total (active + blanking) */ UInt32 csMaxVerticalTotal; /* Clocks - Maximum total (active + blanking) */ UInt32 csMaxTotalReserved1; /* Reserved */ UInt32 csMaxTotalReserved2; /* Reserved */ /* Some cards require that some timing elements*/ /* be multiples of a "character size" (often 8*/ /* clocks). The "xxxxCharSize" fields document*/ /* those requirements.*/ UInt8 csCharSizeHorizontalActive; /* Character size */ UInt8 csCharSizeHorizontalBlanking; /* Character size */ UInt8 csCharSizeHorizontalSyncOffset; /* Character size */ UInt8 csCharSizeHorizontalSyncPulse; /* Character size */ UInt8 csCharSizeVerticalActive; /* Character size */ UInt8 csCharSizeVerticalBlanking; /* Character size */ UInt8 csCharSizeVerticalSyncOffset; /* Character size */ UInt8 csCharSizeVerticalSyncPulse; /* Character size */ UInt8 csCharSizeHorizontalBorderLeft; /* Character size */ UInt8 csCharSizeHorizontalBorderRight; /* Character size */ UInt8 csCharSizeVerticalBorderTop; /* Character size */ UInt8 csCharSizeVerticalBorderBottom; /* Character size */ UInt8 csCharSizeHorizontalTotal; /* Character size for active + blanking */ UInt8 csCharSizeVerticalTotal; /* Character size for active + blanking */ UInt16 csCharSizeReserved1; /* Reserved (Init to 0) */ UInt32 csMinHorizontalActiveClocks; UInt32 csMaxHorizontalActiveClocks; UInt32 csMinHorizontalBlankingClocks; UInt32 csMaxHorizontalBlankingClocks; UInt32 csMinHorizontalSyncOffsetClocks; UInt32 csMaxHorizontalSyncOffsetClocks; UInt32 csMinHorizontalPulseWidthClocks; UInt32 csMaxHorizontalPulseWidthClocks; UInt32 csMinVerticalActiveClocks; UInt32 csMaxVerticalActiveClocks; UInt32 csMinVerticalBlankingClocks; UInt32 csMaxVerticalBlankingClocks; UInt32 csMinVerticalSyncOffsetClocks; UInt32 csMaxVerticalSyncOffsetClocks; UInt32 csMinVerticalPulseWidthClocks; UInt32 csMaxVerticalPulseWidthClocks; UInt32 csMinHorizontalBorderLeft; UInt32 csMaxHorizontalBorderLeft; UInt32 csMinHorizontalBorderRight; UInt32 csMaxHorizontalBorderRight; UInt32 csMinVerticalBorderTop; UInt32 csMaxVerticalBorderTop; UInt32 csMinVerticalBorderBottom; UInt32 csMaxVerticalBorderBottom; UInt32 csMaxNumLinks; /* number of links, if zero, assume link 1 */ UInt32 csMinLink0PixelClock; /* min pixel clock for link 0 (kHz) */ UInt32 csMaxLink0PixelClock; /* max pixel clock for link 0 (kHz) */ UInt32 csMinLink1PixelClock; /* min pixel clock for link 1 (kHz) */ UInt32 csMaxLink1PixelClock; /* max pixel clock for link 1 (kHz) */ UInt32 csReserved6; /* Reserved (Init to 0)*/ UInt32 csReserved7; /* Reserved (Init to 0)*/ UInt32 csReserved8; /* Reserved (Init to 0)*/ }; typedef struct VDDisplayTimingRangeRec VDDisplayTimingRangeRec; typedef VDDisplayTimingRangeRec * VDDisplayTimingRangePtr; enum { /* csDisplayModeState*/ kDMSModeReady = 0, /* Display Mode ID is configured and ready*/ kDMSModeNotReady = 1, /* Display Mode ID is is being programmed*/ kDMSModeFree = 2 /* Display Mode ID is not associated with a timing*/ }; /* Video driver Errors -10930 to -10959 */ enum { kTimingChangeRestrictedErr = -10930, kVideoI2CReplyPendingErr = -10931, kVideoI2CTransactionErr = -10932, kVideoI2CBusyErr = -10933, kVideoI2CTransactionTypeErr = -10934, kVideoBufferSizeErr = -10935, kVideoCannotMirrorErr = -10936 }; enum { /* csTimingRangeSignalLevels*/ kRangeSupportsSignal_0700_0300_Bit = 0, kRangeSupportsSignal_0714_0286_Bit = 1, kRangeSupportsSignal_1000_0400_Bit = 2, kRangeSupportsSignal_0700_0000_Bit = 3, kRangeSupportsSignal_0700_0300_Mask = (1 << kRangeSupportsSignal_0700_0300_Bit), kRangeSupportsSignal_0714_0286_Mask = (1 << kRangeSupportsSignal_0714_0286_Bit), kRangeSupportsSignal_1000_0400_Mask = (1 << kRangeSupportsSignal_1000_0400_Bit), kRangeSupportsSignal_0700_0000_Mask = (1 << kRangeSupportsSignal_0700_0000_Bit) }; enum { /* csSignalConfig*/ kDigitalSignalBit = 0, /* Do not set. Mac OS does not currently support arbitrary digital timings*/ kAnalogSetupExpectedBit = 1, /* Analog displays - display expects a blank-to-black setup or pedestal. See VESA signal standards.*/ kInterlacedCEA861SyncModeBit = 2, kDigitalSignalMask = (1 << kDigitalSignalBit), kAnalogSetupExpectedMask = (1 << kAnalogSetupExpectedBit), kInterlacedCEA861SyncModeMask = (1 << kInterlacedCEA861SyncModeBit) }; enum { /* csSignalLevels for analog*/ kAnalogSignalLevel_0700_0300 = 0, kAnalogSignalLevel_0714_0286 = 1, kAnalogSignalLevel_1000_0400 = 2, kAnalogSignalLevel_0700_0000 = 3 }; enum { /* csTimingRangeSyncFlags*/ kRangeSupportsSeperateSyncsBit = 0, kRangeSupportsSyncOnGreenBit = 1, kRangeSupportsCompositeSyncBit = 2, kRangeSupportsVSyncSerrationBit = 3, kRangeSupportsSeperateSyncsMask = (1 << kRangeSupportsSeperateSyncsBit), kRangeSupportsSyncOnGreenMask = (1 << kRangeSupportsSyncOnGreenBit), kRangeSupportsCompositeSyncMask = (1 << kRangeSupportsCompositeSyncBit), kRangeSupportsVSyncSerrationMask = (1 << kRangeSupportsVSyncSerrationBit) }; enum { /* csHorizontalSyncConfig and csVerticalSyncConfig*/ kSyncPositivePolarityBit = 0, /* Digital separate sync polarity for analog interfaces (0 => negative polarity)*/ kSyncPositivePolarityMask = (1 << kSyncPositivePolarityBit) }; /* For timings with kDetailedTimingFormat.*/ struct VDDetailedTimingRec { UInt32 csTimingSize; /* Init to sizeof(VDDetailedTimingRec)*/ UInt32 csTimingType; /* Init to 0*/ UInt32 csTimingVersion; /* Init to 0*/ UInt32 csTimingReserved; /* Init to 0*/ DisplayModeID csDisplayModeID; /* Init to 0*/ UInt32 csDisplayModeSeed; /* */ UInt32 csDisplayModeState; /* Display Mode state*/ UInt32 csDisplayModeAlias; /* Mode to use when programmed.*/ UInt32 csSignalConfig; UInt32 csSignalLevels; UInt64 csPixelClock; /* Hz*/ UInt64 csMinPixelClock; /* Hz - With error what is slowest actual clock */ UInt64 csMaxPixelClock; /* Hz - With error what is fasted actual clock */ UInt32 csHorizontalActive; /* Pixels*/ UInt32 csHorizontalBlanking; /* Pixels*/ UInt32 csHorizontalSyncOffset; /* Pixels*/ UInt32 csHorizontalSyncPulseWidth; /* Pixels*/ UInt32 csVerticalActive; /* Lines*/ UInt32 csVerticalBlanking; /* Lines*/ UInt32 csVerticalSyncOffset; /* Lines*/ UInt32 csVerticalSyncPulseWidth; /* Lines*/ UInt32 csHorizontalBorderLeft; /* Pixels*/ UInt32 csHorizontalBorderRight; /* Pixels*/ UInt32 csVerticalBorderTop; /* Lines*/ UInt32 csVerticalBorderBottom; /* Lines*/ UInt32 csHorizontalSyncConfig; UInt32 csHorizontalSyncLevel; /* Future use (init to 0)*/ UInt32 csVerticalSyncConfig; UInt32 csVerticalSyncLevel; /* Future use (init to 0)*/ UInt32 csNumLinks; /* number of links, if 0 = assume link - 0 */ UInt32 csReserved2; /* Init to 0*/ UInt32 csReserved3; /* Init to 0*/ UInt32 csReserved4; /* Init to 0*/ UInt32 csReserved5; /* Init to 0*/ UInt32 csReserved6; /* Init to 0*/ UInt32 csReserved7; /* Init to 0*/ UInt32 csReserved8; /* Init to 0*/ }; typedef struct VDDetailedTimingRec VDDetailedTimingRec; typedef VDDetailedTimingRec * VDDetailedTimingPtr; /* csScalerFeatures */ enum { kScaleStretchOnlyMask = (1<<0), /* True means the driver cannot add borders to avoid non-square pixels */ kScaleCanUpSamplePixelsMask = (1<<1), /* True means timings with more active clocks than pixels (ie 640x480 pixels on a 1600x1200 timing) */ kScaleCanDownSamplePixelsMask = (1<<2), /* True means timings with fewer active clocks than pixels (ie 1600x1200 pixels on a 640x480 timing) */ kScaleCanScaleInterlacedMask = (1<<3), /* True means can scale an interlaced timing */ kScaleCanSupportInsetMask = (1<<4), /* True means can scale a timing with insets */ kScaleCanRotateMask = (1<<5), /* True means can rotate image */ kScaleCanBorderInsetOnlyMask = (1<<6) /* True means can scale a timing with insets */ }; /* csScalerFlags */ enum { kScaleStretchToFitMask = 0x00000001, /* True means the driver should avoid borders and allow non-square pixels */ kScaleRotateFlagsMask = 0x000000f0, kScaleSwapAxesMask = 0x00000010, kScaleInvertXMask = 0x00000020, kScaleInvertYMask = 0x00000040, kScaleRotate0Mask = 0x00000000, kScaleRotate90Mask = kScaleSwapAxesMask | kScaleInvertXMask, kScaleRotate180Mask = kScaleInvertXMask | kScaleInvertYMask, kScaleRotate270Mask = kScaleSwapAxesMask | kScaleInvertYMask }; typedef UInt32 VDClutBehavior; typedef VDClutBehavior * VDClutBehaviorPtr; enum { kSetClutAtSetEntries = 0, /* SetEntries behavior is to update clut during SetEntries call*/ kSetClutAtVBL = 1 /* SetEntries behavior is to upate clut at next vbl*/ }; struct VDCommunicationRec { SInt32 csBusID; /* kVideoDefaultBus for single headed cards.*/ UInt32 csCommFlags; /* Always zero*/ UInt32 csMinReplyDelay; /* Minimum delay between send and reply transactions (units depend on csCommFlags)*/ UInt32 csReserved2; /* Always zero*/ UInt32 csSendAddress; /* Usually I2C address (eg 0x6E)*/ UInt32 csSendType; /* See kVideoSimpleI2CType etc.*/ LogicalAddress csSendBuffer; /* Pointer to the send buffer*/ ByteCount csSendSize; /* Number of bytes to send*/ UInt32 csReplyAddress; /* Address from which to read (eg 0x6F for kVideoDDCciReplyType I2C address)*/ UInt32 csReplyType; /* See kVideoDDCciReplyType etc.*/ LogicalAddress csReplyBuffer; /* Pointer to the reply buffer*/ ByteCount csReplySize; /* Max bytes to reply (size of csReplyBuffer)*/ UInt32 csReserved3; UInt32 csReserved4; UInt32 csReserved5; /* Always zero*/ UInt32 csReserved6; /* Always zero*/ }; typedef struct VDCommunicationRec VDCommunicationRec; typedef VDCommunicationRec * VDCommunicationPtr; struct VDCommunicationInfoRec { SInt32 csBusID; /* kVideoDefaultBus for single headed cards. */ UInt32 csBusType; /* See kVideoBusI2C etc.*/ SInt32 csMinBus; /* Minimum bus (usually kVideoDefaultBus). Used to probe additional busses*/ SInt32 csMaxBus; /* Max bus (usually kVideoDefaultBus). Used to probe additional busses*/ UInt32 csSupportedTypes; /* Bit field for first 32 supported transaction types. Eg. 0x07 => support for kVideoNoTransactionType, kVideoSimpleI2CType and kVideoDDCciReplyType.*/ UInt32 csSupportedCommFlags; /* Return the flags csCommFlags understood by this driver. */ UInt32 csReserved2; /* Always zero*/ UInt32 csReserved3; /* Always zero*/ UInt32 csReserved4; /* Always zero*/ UInt32 csReserved5; /* Always zero*/ UInt32 csReserved6; /* Always zero*/ UInt32 csReserved7; /* Always zero*/ }; typedef struct VDCommunicationInfoRec VDCommunicationInfoRec; typedef VDCommunicationInfoRec * VDCommunicationInfoPtr; struct VDScalerRec { UInt32 csScalerSize; /* Init to sizeof(VDScalerRec) */ UInt32 csScalerVersion; /* Init to 0 */ UInt32 csReserved1; /* Init to 0 */ UInt32 csReserved2; /* Init to 0 */ DisplayModeID csDisplayModeID; /* Display Mode ID modified by this call. */ UInt32 csDisplayModeSeed; /* */ UInt32 csDisplayModeState; /* Display Mode state */ UInt32 csReserved3; /* Init to 0 */ UInt32 csScalerFlags; /* Init to 0 */ UInt32 csHorizontalPixels; /* Graphics system addressable pixels */ UInt32 csVerticalPixels; /* Graphics system addressable lines */ UInt32 csHorizontalInset; /* Border pixels for underscan */ UInt32 csVerticalInset; /* Border lines for underscan */ UInt32 csReserved6; /* Init to 0 */ UInt32 csReserved7; /* Init to 0 */ UInt32 csReserved8; /* Init to 0 */ }; typedef struct VDScalerRec VDScalerRec; typedef VDScalerRec *VDScalerPtr; struct VDScalerInfoRec { UInt32 csScalerInfoSize; /* Init to sizeof(VDScalerInfoRec) */ UInt32 csScalerInfoVersion; /* Init to 0 */ UInt32 csReserved1; /* Init to 0 */ UInt32 csReserved2; /* Init to 0 */ UInt32 csScalerFeatures; /* Feature flags */ UInt32 csMaxHorizontalPixels; /* limit to horizontal scaled pixels */ UInt32 csMaxVerticalPixels; /* limit to vertical scaled pixels */ UInt32 csReserved3; /* Init to 0 */ UInt32 csReserved4; /* Init to 0 */ UInt32 csReserved5; /* Init to 0 */ UInt32 csReserved6; /* Init to 0 */ UInt32 csReserved7; /* Init to 0 */ }; typedef struct VDScalerInfoRec VDScalerInfoRec; typedef VDScalerInfoRec *VDScalerInfoPtr; enum { /* csMirrorFeatures*/ kMirrorSameDepthOnlyMirrorMask = (1 << 0), /* Commonly true - Mirroring can only be done if the displays are the same bitdepth*/ kMirrorSameSizeOnlyMirrorMask = (1 << 1), /* Commonly false - Mirroring can only be done if the displays are the same size*/ kMirrorSameTimingOnlyMirrorMask = (1 << 2), /* Sometimes true - Mirroring can only be done if the displays are the same timing*/ kMirrorCommonGammaMask = (1 << 3) /* Sometimes true - Only one gamma correction LUT.*/ }; enum { /* csMirrorSupportedFlags and csMirrorFlags*/ kMirrorCanMirrorMask = (1 << 0), /* Set means we can HW mirrored right now (uses csMirrorEntryID)*/ kMirrorAreMirroredMask = (1 << 1), /* Set means we are HW mirrored right now (uses csMirrorEntryID)*/ kMirrorUnclippedMirrorMask = (1 << 2), /* Set means mirrored displays are not clipped to their intersection*/ kMirrorHAlignCenterMirrorMask = (1 << 3), /* Set means mirrored displays can/should be centered horizontally*/ kMirrorVAlignCenterMirrorMask = (1 << 4), /* Set means mirrored displays can/should be centered vertically*/ kMirrorCanChangePixelFormatMask = (1 << 5), /* Set means mirrored the device should change the pixel format of mirrored displays to allow mirroring.*/ kMirrorCanChangeTimingMask = (1 << 6), /* Set means mirrored the device should change the timing of mirrored displays to allow mirroring.*/ kMirrorClippedMirrorMask = (1 << 7) /* Set means mirrored displays are clipped to their intersection (driver handles blacking and base address adjustment)*/ }; struct VDMirrorRec { UInt32 csMirrorSize; /* Init to sizeof(VDMirrorRec)*/ UInt32 csMirrorVersion; /* Init to 0*/ RegEntryID csMirrorRequestID; /* Input RegEntryID to check for mirroring support and state*/ RegEntryID csMirrorResultID; /* Output RegEntryID of the next mirrored device*/ UInt32 csMirrorFeatures; /* Output summary features of the driver*/ UInt32 csMirrorSupportedFlags; /* Output configuration options supported by the driver*/ UInt32 csMirrorFlags; /* Output configuration options active now*/ UInt32 csReserved1; /* Init to 0*/ UInt32 csReserved2; /* Init to 0*/ UInt32 csReserved3; /* Init to 0*/ UInt32 csReserved4; /* Init to 0*/ UInt32 csReserved5; /* Init to 0*/ }; typedef struct VDMirrorRec VDMirrorRec; typedef VDMirrorRec * VDMirrorPtr; struct VDConfigurationRec { UInt32 csConfigFeature; /* input what feature to config - always input*/ UInt32 csConfigSupport; /* output support value - always output*/ uintptr_t csConfigValue; /* input/output feature value - input on Control(), output on Status()*/ uintptr_t csReserved1; uintptr_t csReserved2; }; typedef struct VDConfigurationRec VDConfigurationRec; typedef VDConfigurationRec * VDConfigurationPtr; enum { kDVIPowerSwitchFeature = (1 << 0), /* Used for csConfigFeature*/ kDVIPowerSwitchSupportMask = (1 << 0), /* Read-only*/ kDVIPowerSwitchActiveMask = (1 << 0), /* Read/write for csConfigValue*/ }; struct VDConfigurationFeatureListRec { OSType * csConfigFeatureList; ItemCount csNumConfigFeatures; uintptr_t csReserved1; uintptr_t csReserved2; }; typedef struct VDConfigurationFeatureListRec VDConfigurationFeatureListRec; typedef VDConfigurationFeatureListRec * VDConfigurationFeatureListRecPtr; #ifndef __LP64__ #pragma options align=reset #endif #ifdef __cplusplus } #endif #endif /* __IOMACOSVIDEO__ */
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/Kernel.framework/Headers/IOKit
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/Kernel.framework/Headers/IOKit/ndrvsupport/IONDRVFramebuffer.h
/* * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * The contents of this file constitute Original Code as defined in and * are subject to the Apple Public Source License Version 1.1 (the * "License"). You may not use this file except in compliance with the * License. Please obtain a copy of the License at * http://www.apple.com/publicsource and read it before using this file. * * This Original Code and all software distributed under the License are * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the * License for the specific language governing rights and limitations * under the License. * * @APPLE_LICENSE_HEADER_END@ */ /* * Copyright (c) 1997-1998 Apple Computer, Inc. * * * HISTORY * * sdouglas 22 Oct 97 - first checked in. * sdouglas 24 Jul 98 - start IOKit. * sdouglas 15 Dec 98 - cpp. * */ #ifndef _IOKIT_IONDRVFRAMEBUFFER_H #define _IOKIT_IONDRVFRAMEBUFFER_H #include <IOKit/graphics/IOFramebuffer.h> #include <IOKit/ndrvsupport/IOMacOSVideo.h> #include <IOKit/ndrvsupport/IONDRVSupport.h> #define kIONDRVDisableKey "AAPL,disable-ndrv" class IONDRVFramebuffer : public IOFramebuffer { OSDeclareDefaultStructors(IONDRVFramebuffer) protected: /* Reserved for future use. (Internal use only) */ struct ExpansionData { }; ExpansionData * reserved; protected: IOService * fNub; class IONDRV * fNdrv; // current configuration IODisplayModeID currentDisplayMode; IOIndex currentDepth; IOIndex currentPage; UInt8 __reservedE; IOPhysicalAddress __resv_was_physicalFramebuffer; IOMemoryDescriptor * vramRange; UInt8 gammaWidth; UInt8 __reservedD; UInt8 lastGrayMode; VDClutBehavior lastClutSetting; UInt8 __reservedC; bool consoleDevice; UInt32 powerState; UInt32 ndrvState; SInt32 ndrvEnter; OSArray * detailedTimings; UInt32 detailedTimingsSeed; UInt32 * detailedTimingsCurrent; IODeviceMemory * vramMemory; VDResolutionInfoRec cachedVDResolution; struct _VSLService * vslServices; UInt32 accessFlags; unsigned int shouldDoI2CPower:1; unsigned int online:1; unsigned int avJackState:1; unsigned int grayMode:1; unsigned int platformSleep:1; unsigned int forceReadEDID:1; unsigned int supportsProbe:1; unsigned int __reservedB:25; IOService * fDevice; UInt32 __reservedA[29]; private: struct IONDRVFramebufferPrivate * __private; public: virtual IOReturn doDriverIO( UInt32 commandID, void * contents, UInt32 commandCode, UInt32 commandKind ); private: OSMetaClassDeclareReservedUsed(IONDRVFramebuffer, 0); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 1); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 2); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 3); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 4); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 5); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 6); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 7); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 8); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 9); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 10); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 11); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 12); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 13); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 14); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 15); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 16); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 17); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 18); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 19); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 20); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 21); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 22); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 23); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 24); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 25); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 26); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 27); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 28); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 29); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 30); OSMetaClassDeclareReservedUnused(IONDRVFramebuffer, 31); private: void initForPM ( void ); virtual unsigned long maxCapabilityForDomainState( IOPMPowerFlags domainState ) APPLE_KEXT_OVERRIDE; virtual unsigned long initialPowerStateForDomainState( IOPMPowerFlags domainState ) APPLE_KEXT_OVERRIDE; virtual unsigned long powerStateForDomainState( IOPMPowerFlags domainState ) APPLE_KEXT_OVERRIDE; virtual IOReturn checkDriver( void ); virtual UInt32 iterateAllModes( IODisplayModeID * displayModeIDs ); virtual IOReturn getResInfoForMode( IODisplayModeID modeID, IODisplayModeInformation * theInfo ); virtual IOReturn getResInfoForArbMode( IODisplayModeID modeID, IODisplayModeInformation * theInfo ); IOReturn getResInfoForDetailed( IODisplayModeID modeID, VDDetailedTimingRec * detailed, IODisplayModeInformation * info ); IOIndex mapDepthIndex( IODisplayModeID modeID, IOIndex depth, bool fromDepthMode ); virtual IOReturn validateDisplayMode( IODisplayModeID mode, IOOptionBits flags, VDDetailedTimingRec ** detailed ); virtual IOReturn setDetailedTiming( IODisplayModeID mode, IOOptionBits options, void * description, IOByteCount descripSize ); virtual void getCurrentConfiguration( void ); static const IOTVector * _undefinedSymbolHandler( void * obj, const char * libraryName, const char * symbolName ); static bool _videoJackStateChangeHandler( void * target, void * ref, IOService * newService, IONotifier * notifier ); static void _avProbeAction( OSObject * p0, IOTimerEventSource * evtSrc ); void displayI2CPower( bool enable ); IOReturn ndrvSetPowerState( UInt32 newState ); IOReturn ndrvUpdatePowerState( void ); IOReturn ndrvSetDisplayPowerState( UInt32 newState ); static IOReturn _probeAction( IONDRVFramebuffer * fb, IOOptionBits options ); bool searchOfflineMode( IODisplayModeID * offlineMode ); IOReturn processConnectChange( uintptr_t * value ); IOReturn setMirror( IONDRVFramebuffer * other ); IOReturn setConnectionFlags( void ); bool getOnlineState( void ); IOReturn ndrvGetSetFeature( UInt32 feature, uintptr_t newValue, uintptr_t * currentValue ); static IOReturn _doControl( IONDRVFramebuffer * fb, UInt32 code, void * params ); static IOReturn _doStatus( IONDRVFramebuffer * fb, UInt32 code, void * params ); static IOReturn extControl( OSObject * owner, void * code, void * params ); static IOReturn extStatus( OSObject * owner, void * code, void * params ); IOReturn createI2C( void ); void setInfoProperties( void ); public: virtual IOReturn doControl( UInt32 code, void * params ); virtual IOReturn doStatus( UInt32 code, void * params ); public: virtual IOService * probe( IOService * provider, SInt32 * score ) APPLE_KEXT_OVERRIDE; virtual bool start( IOService * provider ) APPLE_KEXT_OVERRIDE; virtual void stop( IOService * provider ) APPLE_KEXT_OVERRIDE; virtual void free( void ) APPLE_KEXT_OVERRIDE; virtual IOReturn setProperties( OSObject * properties ) APPLE_KEXT_OVERRIDE; virtual IOReturn requestProbe( IOOptionBits options ) APPLE_KEXT_OVERRIDE; virtual IOReturn enableController( void ) APPLE_KEXT_OVERRIDE; virtual IODeviceMemory * makeSubRange( IOPhysicalAddress64 start, IOPhysicalLength64 length ); virtual IODeviceMemory * getApertureRange( IOPixelAperture aperture ) APPLE_KEXT_OVERRIDE; virtual IODeviceMemory * getVRAMRange( void ) APPLE_KEXT_OVERRIDE; virtual IODeviceMemory * findVRAM( void ); virtual bool isConsoleDevice( void ) APPLE_KEXT_OVERRIDE; virtual const IOTVector * undefinedSymbolHandler( const char * libraryName, const char * symbolName ); virtual const char * getPixelFormats( void ) APPLE_KEXT_OVERRIDE; // Array of supported display modes virtual IOItemCount getDisplayModeCount( void ) APPLE_KEXT_OVERRIDE; virtual IOReturn getDisplayModes( IODisplayModeID * allDisplayModes ) APPLE_KEXT_OVERRIDE; // Info about a display mode virtual IOReturn getInformationForDisplayMode( IODisplayModeID displayMode, IODisplayModeInformation * info ) APPLE_KEXT_OVERRIDE; // Mask of pixel formats available in mode and depth virtual UInt64 getPixelFormatsForDisplayMode( IODisplayModeID displayMode, IOIndex depth ) APPLE_KEXT_OVERRIDE; virtual IOReturn getPixelInformation( IODisplayModeID displayMode, IOIndex depth, IOPixelAperture aperture, IOPixelInformation * pixelInfo ) APPLE_KEXT_OVERRIDE; // Framebuffer info virtual IOReturn setupForCurrentConfig( void ) APPLE_KEXT_OVERRIDE; // Current display mode and depth virtual IOReturn getCurrentDisplayMode( IODisplayModeID * displayMode, IOIndex * depth ) APPLE_KEXT_OVERRIDE; // Set display mode and depth virtual IOReturn setDisplayMode( IODisplayModeID displayMode, IOIndex depth ) APPLE_KEXT_OVERRIDE; // For pages virtual IOReturn setApertureEnable( IOPixelAperture aperture, IOOptionBits enable ) APPLE_KEXT_OVERRIDE; virtual IOReturn setStartupDisplayMode( IODisplayModeID displayMode, IOIndex depth ) APPLE_KEXT_OVERRIDE; virtual IOReturn getStartupDisplayMode( IODisplayModeID * displayMode, IOIndex * depth ) APPLE_KEXT_OVERRIDE; //// CLUTs virtual IOReturn setCLUTWithEntries( IOColorEntry * colors, UInt32 index, UInt32 numEntries, IOOptionBits options ) APPLE_KEXT_OVERRIDE; //// Gamma virtual IOReturn setGammaTable( UInt32 channelCount, UInt32 dataCount, UInt32 dataWidth, void * data, bool syncToVBL ) APPLE_KEXT_OVERRIDE; virtual IOReturn setGammaTable( UInt32 channelCount, UInt32 dataCount, UInt32 dataWidth, void * data ) APPLE_KEXT_OVERRIDE; //// Display mode timing information virtual IOReturn getTimingInfoForDisplayMode( IODisplayModeID displayMode, IOTimingInformation * info ) APPLE_KEXT_OVERRIDE; //// Detailed timing information virtual IOReturn validateDetailedTiming( void * description, IOByteCount descripSize ) APPLE_KEXT_OVERRIDE; virtual IOReturn setDetailedTimings( OSArray * array ) APPLE_KEXT_OVERRIDE; //// Controller attributes virtual IOReturn setAttribute( IOSelect attribute, uintptr_t value ) APPLE_KEXT_OVERRIDE; virtual IOReturn getAttribute( IOSelect attribute, uintptr_t * value ) APPLE_KEXT_OVERRIDE; //// Connections virtual IOItemCount getConnectionCount( void ) APPLE_KEXT_OVERRIDE; virtual IOReturn getAttributeForConnection( IOIndex connectIndex, IOSelect attribute, uintptr_t * value ) APPLE_KEXT_OVERRIDE; virtual IOReturn setAttributeForConnection( IOIndex connectIndex, IOSelect attribute, uintptr_t info ) APPLE_KEXT_OVERRIDE; // Apple sensing virtual IOReturn getAppleSense( IOIndex connectIndex, UInt32 * senseType, UInt32 * primary, UInt32 * extended, UInt32 * displayType ) APPLE_KEXT_OVERRIDE; virtual IOReturn connectFlags( IOIndex connectIndex, IODisplayModeID displayMode, IOOptionBits * flags ) APPLE_KEXT_OVERRIDE; //// IOHighLevelDDCSense virtual bool hasDDCConnect( IOIndex connectIndex ) APPLE_KEXT_OVERRIDE; virtual IOReturn getDDCBlock( IOIndex connectIndex, UInt32 blockNumber, IOSelect blockType, IOOptionBits options, UInt8 * data, IOByteCount * length ) APPLE_KEXT_OVERRIDE; //// Interrupts virtual IOReturn registerForInterruptType( IOSelect interruptType, IOFBInterruptProc proc, OSObject * target, void * ref, void ** interruptRef ) APPLE_KEXT_OVERRIDE; virtual IOReturn unregisterInterrupt( void * interruptRef ) APPLE_KEXT_OVERRIDE; virtual IOReturn setInterruptState( void * interruptRef, UInt32 state ) APPLE_KEXT_OVERRIDE; //// HW Cursors virtual IOReturn setCursorImage( void * cursorImage ) APPLE_KEXT_OVERRIDE; virtual IOReturn setCursorState( SInt32 x, SInt32 y, bool visible ) APPLE_KEXT_OVERRIDE; //// I2C calls virtual IOReturn doI2CRequest( UInt32 bus, IOI2CBusTiming * timing, IOI2CRequest * request ) APPLE_KEXT_OVERRIDE; //// VSL calls static OSStatus VSLNewInterruptService( void * entryID, UInt32 serviceType, _VSLService ** serviceID ); static OSStatus VSLDisposeInterruptService( _VSLService * serviceID ); static OSStatus VSLDoInterruptService( _VSLService * serviceID ); static Boolean VSLPrepareCursorForHardwareCursor( void * cursorRef, IOHardwareCursorDescriptor * hwDesc, IOHardwareCursorInfo * hwCursorInfo ); }; #endif /* ! _IOKIT_IONDRVFRAMEBUFFER_H */
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/Kernel.framework/Headers
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/Kernel.framework/Headers/kextd/kextd_mach.h
#ifndef _kextd_kernel_request_user_ #define _kextd_kernel_request_user_ /* Module kextd_kernel_request */ #include <string.h> #include <mach/ndr.h> #include <mach/boolean.h> #include <mach/kern_return.h> #include <mach/notify.h> #include <mach/mach_types.h> #include <mach/message.h> #include <mach/mig_errors.h> #include <mach/port.h> /* BEGIN MIG_STRNCPY_ZEROFILL CODE */ #if defined(__has_include) #if __has_include(<mach/mig_strncpy_zerofill_support.h>) #ifndef USING_MIG_STRNCPY_ZEROFILL #define USING_MIG_STRNCPY_ZEROFILL #endif #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ #ifdef __cplusplus extern "C" { #endif extern int mig_strncpy_zerofill(char *dest, const char *src, int len) __attribute__((weak_import)); #ifdef __cplusplus } #endif #endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ #endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */ #endif /* __has_include */ /* END MIG_STRNCPY_ZEROFILL CODE */ #if (__MigKernelSpecificCode) || (_MIG_KERNEL_SPECIFIC_CODE_) #include <kern/ipc_mig.h> #endif /* __MigKernelSpecificCode */ #ifdef AUTOTEST #ifndef FUNCTION_PTR_T #define FUNCTION_PTR_T typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); typedef struct { char *name; function_ptr_t function; } function_table_entry; typedef function_table_entry *function_table_t; #endif /* FUNCTION_PTR_T */ #endif /* AUTOTEST */ #ifndef kextd_kernel_request_MSG_COUNT #define kextd_kernel_request_MSG_COUNT 1 #endif /* kextd_kernel_request_MSG_COUNT */ #include <Availability.h> #include <mach/std_types.h> #include <mach/mig.h> #include <mach/mig.h> #include <mach/mach_types.h> #ifdef __BeforeMigUserHeader __BeforeMigUserHeader #endif /* __BeforeMigUserHeader */ #include <sys/cdefs.h> __BEGIN_DECLS /* SimpleRoutine kextd_ping */ #ifdef mig_external mig_external #else extern #endif /* mig_external */ kern_return_t kextd_ping ( mach_port_t server ); __END_DECLS /********************** Caution **************************/ /* The following data types should be used to calculate */ /* maximum message sizes only. The actual message may be */ /* smaller, and the position of the arguments within the */ /* message layout may vary from what is presented here. */ /* For example, if any of the arguments are variable- */ /* sized, and less than the maximum is sent, the data */ /* will be packed tight in the actual message to reduce */ /* the presence of holes. */ /********************** Caution **************************/ /* typedefs for all requests */ #ifndef __Request__kextd_kernel_request_subsystem__defined #define __Request__kextd_kernel_request_subsystem__defined #ifdef __MigPackStructs #pragma pack(push, 4) #endif typedef struct { mach_msg_header_t Head; } __Request__kextd_ping_t __attribute__((unused)); #ifdef __MigPackStructs #pragma pack(pop) #endif #endif /* !__Request__kextd_kernel_request_subsystem__defined */ /* union of all requests */ #ifndef __RequestUnion__kextd_kernel_request_subsystem__defined #define __RequestUnion__kextd_kernel_request_subsystem__defined union __RequestUnion__kextd_kernel_request_subsystem { __Request__kextd_ping_t Request_kextd_ping; }; #endif /* !__RequestUnion__kextd_kernel_request_subsystem__defined */ /* typedefs for all replies */ #ifndef __Reply__kextd_kernel_request_subsystem__defined #define __Reply__kextd_kernel_request_subsystem__defined #ifdef __MigPackStructs #pragma pack(push, 4) #endif typedef struct { mach_msg_header_t Head; NDR_record_t NDR; kern_return_t RetCode; } __Reply__kextd_ping_t __attribute__((unused)); #ifdef __MigPackStructs #pragma pack(pop) #endif #endif /* !__Reply__kextd_kernel_request_subsystem__defined */ /* union of all replies */ #ifndef __ReplyUnion__kextd_kernel_request_subsystem__defined #define __ReplyUnion__kextd_kernel_request_subsystem__defined union __ReplyUnion__kextd_kernel_request_subsystem { __Reply__kextd_ping_t Reply_kextd_ping; }; #endif /* !__RequestUnion__kextd_kernel_request_subsystem__defined */ #ifndef subsystem_to_name_map_kextd_kernel_request #define subsystem_to_name_map_kextd_kernel_request \ { "kextd_ping", 77000 } #endif #ifdef __AfterMigUserHeader __AfterMigUserHeader #endif /* __AfterMigUserHeader */ #endif /* _kextd_kernel_request_user_ */
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/ColorSync.framework/ColorSync.tbd
--- !tapi-tbd tbd-version: 4 targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] uuids: - target: x86_64-macos value: 1D7882A8-3FD1-3683-80CC-26B8A6C5E354 - target: x86_64-maccatalyst value: 1D7882A8-3FD1-3683-80CC-26B8A6C5E354 - target: arm64-macos value: 00000000-0000-0000-0000-000000000000 - target: arm64-maccatalyst value: 00000000-0000-0000-0000-000000000000 - target: arm64e-macos value: 5F6FAA66-A021-3C97-A88C-CEEE5BAB6013 - target: arm64e-maccatalyst value: 5F6FAA66-A021-3C97-A88C-CEEE5BAB6013 install-name: '/System/Library/Frameworks/ColorSync.framework/Versions/A/ColorSync' current-version: 4.7 exports: - targets: [ arm64e-macos, x86_64-macos, x86_64-maccatalyst, arm64e-maccatalyst, arm64-macos, arm64-maccatalyst ] symbols: [ '$ld$install_name$os10.10$/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices', '$ld$install_name$os10.11$/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices', '$ld$install_name$os10.12$/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices', '$ld$install_name$os10.4$/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices', '$ld$install_name$os10.5$/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices', '$ld$install_name$os10.6$/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices', '$ld$install_name$os10.7$/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices', '$ld$install_name$os10.8$/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices', '$ld$install_name$os10.9$/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices', _CGDisplayCreateUUIDFromDisplayID, _CGDisplayGetDisplayIDFromUUID, _CMProfileFromColorSyncProfile, _ColorSyncCodeFragmentGetMD5, _ColorSyncConvertDoubleXYZFromD50, _ColorSyncConvertDoubleXYZToD50, _ColorSyncConvertXYZToXYZWithChromaticAdaptationMatrix, _ColorSyncCreateCodeFragment, _ColorSyncCreateCodeFragmentPriv, _ColorSyncCreateGammaTablesFromVCGT, _ColorSyncCreateInputPoppyProfile, _ColorSyncCreateOutputPoppyProfile, _ColorSyncCreateOutputPoppyProfileForRGBData, _ColorSyncCreateSignatureFromFourCharCode, _ColorSyncCreateUUIDFromUInt32, _ColorSyncDataCanBeIgnoredOnSRGBDevice, _ColorSyncDeviceCopyDeviceInfo, _ColorSyncDeviceCopyDeviceRegistrationInfo, _ColorSyncDeviceSetCustomProfiles, _ColorSyncDisplayServicesUpdateProfiles, _ColorSyncGetAdaptationMtx, _ColorSyncGetDisplayTransferFormulaFromVCGT, _ColorSyncGetFourCharCodeFromSignature, _ColorSyncGetMainDisplayID, _ColorSyncGetUInt32FromUUID, _ColorSyncIterateDeviceProfiles, _ColorSyncIterateInstalledProfiles, _ColorSyncIterateInstalledProfilesWithOptions, _ColorSyncMakeProfile, _ColorSyncMatrixGetFunction, _ColorSyncMatrixGetInputRange, _ColorSyncMatrixGetOptions, _ColorSyncMatrixGetOutputRange, _ColorSyncMatrixGetProperties, _ColorSyncMatrixGetTypeID, _ColorSyncNxMGetFunction, _ColorSyncNxMGetInputRange, _ColorSyncNxMGetOptions, _ColorSyncNxMGetOutputRange, _ColorSyncNxMGetProperties, _ColorSyncNxMGetTypeID, _ColorSyncProfileContainsTag, _ColorSyncProfileCopyASCIIDescriptionString, _ColorSyncProfileCopyData, _ColorSyncProfileCopyDescriptionString, _ColorSyncProfileCopyHeader, _ColorSyncProfileCopyLocalizedDescriptionString, _ColorSyncProfileCopyLocalizedStringDictionary, _ColorSyncProfileCopyTag, _ColorSyncProfileCopyTagSignatures, _ColorSyncProfileCreate, _ColorSyncProfileCreateDeviceProfile, _ColorSyncProfileCreateDisplayTransferTablesFromVCGT, _ColorSyncProfileCreateLink, _ColorSyncProfileCreateMutable, _ColorSyncProfileCreateMutableCopy, _ColorSyncProfileCreateSanitizedCopy, _ColorSyncProfileCreateWithDisplayID, _ColorSyncProfileCreateWithName, _ColorSyncProfileCreateWithURL, _ColorSyncProfileEstimateGamma, _ColorSyncProfileEstimateGammaWithDisplayID, _ColorSyncProfileFromCMProfile, _ColorSyncProfileGetData, _ColorSyncProfileGetDisplayTransferFormulaFromVCGT, _ColorSyncProfileGetMD5, _ColorSyncProfileGetTypeID, _ColorSyncProfileGetURL, _ColorSyncProfileInstall, _ColorSyncProfileIsHLGBased, _ColorSyncProfileIsMatrixBased, _ColorSyncProfileIsPQBased, _ColorSyncProfileIsWideGamut, _ColorSyncProfileProducesMatrixTransform, _ColorSyncProfileRemoveTag, _ColorSyncProfileSetDescriptionTag, _ColorSyncProfileSetHeader, _ColorSyncProfileSetLocalizedStringDictionary, _ColorSyncProfileSetParametricTRCTag, _ColorSyncProfileSetTag, _ColorSyncProfileStreamPS2Definition, _ColorSyncProfileUninstall, _ColorSyncProfileUsesITU_R709OETF, _ColorSyncProfileVerify, _ColorSyncProfileWriteToFile, _ColorSyncPureGammaOriginalTRC, _ColorSyncRegisterDevice, _ColorSyncSwapProfileHeader, _ColorSyncTRCGetFunction, _ColorSyncTRCGetGammaID, _ColorSyncTRCGetInputRange, _ColorSyncTRCGetOptions, _ColorSyncTRCGetOutputRange, _ColorSyncTRCGetProperties, _ColorSyncTRCGetTypeID, _ColorSyncTransformConvert, _ColorSyncTransformCopyProperty, _ColorSyncTransformCreate, _ColorSyncTransformCreateWithName, _ColorSyncTransformGetProfileSequence, _ColorSyncTransformGetTypeID, _ColorSyncTransformIterate, _ColorSyncTransformSetProperty, _ColorSyncUnregisterDevice, _ColorSyncVerifyAdobeRGBData, _ColorSyncVerifyCoreVideo709Data, _ColorSyncVerifyDisplayP3Data, _ColorSyncVerifyDisplayP3ITU709Data, _ColorSyncVerifyGenericGrayGamma2_2Data, _ColorSyncVerifyGenericLabData, _ColorSyncVerifyICC_DataByName, _ColorSyncVerifySRGBData, _kColorSyncACESCGLinearProfile, _kColorSyncAdobeRGB1998Profile, _kColorSyncBadDescription, _kColorSyncBestQuality, _kColorSyncBlackPointCompensation, _kColorSyncCameraDeviceClass, _kColorSyncConversion1DLut, _kColorSyncConversion3DLut, _kColorSyncConversionBPC, _kColorSyncConversionChannelID, _kColorSyncConversionGridPoints, _kColorSyncConversionInpChan, _kColorSyncConversionMatrix, _kColorSyncConversionNDLut, _kColorSyncConversionOutChan, _kColorSyncConversionParamCurve0, _kColorSyncConversionParamCurve1, _kColorSyncConversionParamCurve2, _kColorSyncConversionParamCurve3, _kColorSyncConversionParamCurve4, _kColorSyncConversionParamHLGInvOETF, _kColorSyncConversionParamHLGOETF, _kColorSyncConversionParamPQEOTF, _kColorSyncConversionParamPQInvEOTF, _kColorSyncConvertQuality, _kColorSyncConvertThreadCount, _kColorSyncConvertUseExtendedRange, _kColorSyncConvertUseVectorUnit, _kColorSyncCoreVideo709Profile, _kColorSyncCustomProfiles, _kColorSyncDCIP3Profile, _kColorSyncDeviceClass, _kColorSyncDeviceDefaultProfileID, _kColorSyncDeviceDescription, _kColorSyncDeviceDescriptions, _kColorSyncDeviceHostScope, _kColorSyncDeviceID, _kColorSyncDeviceModeDescription, _kColorSyncDeviceModeDescriptions, _kColorSyncDeviceProfileID, _kColorSyncDeviceProfileIsCurrent, _kColorSyncDeviceProfileIsDefault, _kColorSyncDeviceProfileIsFactory, _kColorSyncDeviceProfileURL, _kColorSyncDeviceProfilesNotification, _kColorSyncDeviceRegisteredNotification, _kColorSyncDeviceUnregisteredNotification, _kColorSyncDeviceUserScope, _kColorSyncDisplayDeviceClass, _kColorSyncDisplayDeviceProfilesNotification, _kColorSyncDisplayP3Profile, _kColorSyncDisplayP3_709OETFProfile, _kColorSyncDisplayP3_HLGProfile, _kColorSyncDisplayP3_PQProfile, _kColorSyncDoNotValidateProfiles, _kColorSyncDraftQuality, _kColorSyncExtendedRange, _kColorSyncFactoryProfiles, _kColorSyncFixedPointRange, _kColorSyncGenericCMYKProfile, _kColorSyncGenericGrayGamma22Profile, _kColorSyncGenericGrayProfile, _kColorSyncGenericLabProfile, _kColorSyncGenericRGBProfile, _kColorSyncGenericXYZProfile, _kColorSyncITUR2020Profile, _kColorSyncITUR2020_HLGProfile, _kColorSyncITUR2020_PQProfile, _kColorSyncITUR2100_HLGProfile, _kColorSyncITUR2100_PQProfile, _kColorSyncITUR709Profile, _kColorSyncMainDisplayProfile, _kColorSyncMaxProfileDataSize, _kColorSyncMissingDescription, _kColorSyncNormalQuality, _kColorSyncPerceptualStandardRGBProfile, _kColorSyncPreferredCMM, _kColorSyncPrinterDeviceClass, _kColorSyncProfile, _kColorSyncProfileASCIIDescription, _kColorSyncProfileCacheSeed, _kColorSyncProfileClass, _kColorSyncProfileColorSpace, _kColorSyncProfileComputerDomain, _kColorSyncProfileDescription, _kColorSyncProfileHeader, _kColorSyncProfileHostScope, _kColorSyncProfileMD5Digest, _kColorSyncProfilePCS, _kColorSyncProfileRepositoryChangeNotification, _kColorSyncProfileURL, _kColorSyncProfileUserDomain, _kColorSyncProfileUserScope, _kColorSyncROMMRGBProfile, _kColorSyncRegistrationUpdateWindowServer, _kColorSyncRenderingIntent, _kColorSyncRenderingIntentAbsolute, _kColorSyncRenderingIntentPerceptual, _kColorSyncRenderingIntentRelative, _kColorSyncRenderingIntentSaturation, _kColorSyncRenderingIntentUseProfileHeader, _kColorSyncSRGBProfile, _kColorSyncScannerDeviceClass, _kColorSyncSigAToB0Tag, _kColorSyncSigAToB1Tag, _kColorSyncSigAToB2Tag, _kColorSyncSigAbstractClass, _kColorSyncSigBToA0Tag, _kColorSyncSigBToA1Tag, _kColorSyncSigBToA2Tag, _kColorSyncSigBlueColorantTag, _kColorSyncSigBlueTRCTag, _kColorSyncSigCmykData, _kColorSyncSigColorSpaceClass, _kColorSyncSigCopyrightTag, _kColorSyncSigDeviceMfgDescTag, _kColorSyncSigDeviceModelDescTag, _kColorSyncSigDisplayClass, _kColorSyncSigGamutTag, _kColorSyncSigGrayData, _kColorSyncSigGrayTRCTag, _kColorSyncSigGreenColorantTag, _kColorSyncSigGreenTRCTag, _kColorSyncSigInputClass, _kColorSyncSigLabData, _kColorSyncSigLinkClass, _kColorSyncSigMediaBlackPointTag, _kColorSyncSigMediaWhitePointTag, _kColorSyncSigNamedColor2Tag, _kColorSyncSigNamedColorClass, _kColorSyncSigOutputClass, _kColorSyncSigPreview0Tag, _kColorSyncSigPreview1Tag, _kColorSyncSigPreview2Tag, _kColorSyncSigProfileDescriptionTag, _kColorSyncSigProfileSequenceDescTag, _kColorSyncSigRedColorantTag, _kColorSyncSigRedTRCTag, _kColorSyncSigRgbData, _kColorSyncSigTechnologyTag, _kColorSyncSigViewingCondDescTag, _kColorSyncSigViewingConditionsTag, _kColorSyncSigXYZData, _kColorSyncTransformAdobeRGBTosRGB, _kColorSyncTransformCodeFragmentMD5, _kColorSyncTransformCodeFragmentType, _kColorSyncTransformCreator, _kColorSyncTransformDeviceToDevice, _kColorSyncTransformDeviceToPCS, _kColorSyncTransformDeviceToSceneLinearPCS, _kColorSyncTransformDisplayLinearToPCS, _kColorSyncTransformDstSpace, _kColorSyncTransformFullConversionData, _kColorSyncTransformGammaID, _kColorSyncTransformGamutCheck, _kColorSyncTransformInfo, _kColorSyncTransformPCSToDevice, _kColorSyncTransformPCSToDisplayLinear, _kColorSyncTransformPCSToPCS, _kColorSyncTransformPCSToSceneLinear, _kColorSyncTransformParametricConversionData, _kColorSyncTransformProfileSequnce, _kColorSyncTransformPureGammaOriginalTRC, _kColorSyncTransformSceneLinearPCSToDevice, _kColorSyncTransformSceneLinearToPCS, _kColorSyncTransformSimplifiedConversionData, _kColorSyncTransformSrcSpace, _kColorSyncTransformTRCSize, _kColorSyncTransformTag, _kColorSyncWaitForCacheReply ] - targets: [ arm64e-macos, x86_64-macos, arm64-macos ] symbols: [ _ColorSyncCMMCopyCMMIdentifier, _ColorSyncCMMCopyLocalizedName, _ColorSyncCMMCreate, _ColorSyncCMMGetBundle, _ColorSyncCMMGetTypeID, _ColorSyncIterateInstalledCMMs, _kCMMApplyTransformProcName, _kCMMCreateTransformPropertyProcName, _kCMMInitializeLinkProfileProcName, _kCMMInitializeTransformProcName ] ...
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/ColorSync.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/ColorSync.framework/Headers/ColorSyncCMM.h
/* * ColorSync - ColorSyncCMM.h * Copyright (c) 2008 Apple Inc. * All rights reserved. */ #ifndef __COLORSYNCCMM__ #define __COLORSYNCCMM__ #if !defined(__swift__) #ifdef __cplusplus extern "C" { #endif #include <ColorSync/ColorSyncProfile.h> #include <ColorSync/ColorSyncTransform.h> /* * Notes: * - Color conversions are performed by a Color Management Module (CMM) which is a plugin to ColorSync. * - ColorSync contains Apple CMM, which is not replaceable, but third parties can install their own CMMs * - ColorSync provides access to installed CMMs as well as those that can be part of the application bundle. * - CMM can be selected and specified as a preferred CMM per color transform created by the application * - if the third party CMM fails to perform a task, Apple CMM will take it over * - ColorSyncCMMRef is a light weight wrapper of CFBundleRef * - See /Developer/Examples/ColorSync/DemoCMM */ typedef struct CF_BRIDGED_TYPE(id) ColorSyncCMM* ColorSyncCMMRef; CF_IMPLICIT_BRIDGING_ENABLED CF_ASSUME_NONNULL_BEGIN CSEXTERN_DESKTOP CFTypeID ColorSyncCMMGetTypeID(void) CS_AVAILABLE_PUBLIC_DESKTOP(10.4); /* * returns the CFTypeID for ColorSyncCMMs. */ CSEXTERN_DESKTOP ColorSyncCMMRef __nullable ColorSyncCMMCreate(CFBundleRef cmmBundle) CS_AVAILABLE_PUBLIC_DESKTOP(10.4); CSEXTERN_DESKTOP CFBundleRef __nullable ColorSyncCMMGetBundle(ColorSyncCMMRef) CS_AVAILABLE_PUBLIC_DESKTOP(10.4); // will return NULL for built-in Apple CMM CSEXTERN_DESKTOP CFStringRef __nullable ColorSyncCMMCopyLocalizedName(ColorSyncCMMRef) CS_AVAILABLE_PUBLIC_DESKTOP(10.4); // needed to get the name of built-in CMM CSEXTERN_DESKTOP CFStringRef __nullable ColorSyncCMMCopyCMMIdentifier(ColorSyncCMMRef) CS_AVAILABLE_PUBLIC_DESKTOP(10.4); // needed to get the identifier of built-in CMM typedef bool (*ColorSyncCMMIterateCallback)(ColorSyncCMMRef cmm, void* userInfo) CS_AVAILABLE_PUBLIC_DESKTOP(10.4); /* * Note: If the ColorSyncCMMIterateCallback returns false, the iteration stops * */ CSEXTERN_DESKTOP void ColorSyncIterateInstalledCMMs (ColorSyncCMMIterateCallback callBack, void* __nullable userInfo) CS_AVAILABLE_PUBLIC_DESKTOP(10.4); /* * callBack - pointer to a client provided function * user Info - (optional) pointer to the userIndo to be passed to the callback * */ /* * ========================================================================================== * This part defines the interface for developers of third party CMMs for ColorSync. * ========================================================================================== */ typedef bool (*CMMInitializeLinkProfileProc) (ColorSyncMutableProfileRef, CFArrayRef profileInfo, CFDictionaryRef __nullable options); typedef bool (*CMMInitializeTransformProc) (ColorSyncTransformRef, CFArrayRef profileInfo, CFDictionaryRef __nullable options); typedef bool (*CMMApplyTransformProc)(ColorSyncTransformRef transform, size_t width, size_t height, size_t dstPlanes, void* __nonnull * __nonnull dst, ColorSyncDataDepth dstDepth, ColorSyncDataLayout dstFormat, size_t dstBytesPerRow, size_t srcPlanes, const void* __nonnull* __nonnull src, ColorSyncDataDepth srcDepth, ColorSyncDataLayout srcFormat, size_t srcBytesPerRow, CFDictionaryRef __nullable options); typedef CFTypeRef __nullable (*CMMCreateTransformPropertyProc)(ColorSyncTransformRef __nullable transform, CFTypeRef key, CFDictionaryRef __nullable options); CSEXTERN_DESKTOP CFStringRef kCMMInitializeLinkProfileProcName CS_AVAILABLE_PUBLIC_DESKTOP(10.4); /* CMMInitializeLinkProfileProcName */ CSEXTERN_DESKTOP CFStringRef kCMMInitializeTransformProcName CS_AVAILABLE_PUBLIC_DESKTOP(10.4); /* CMMInitializeTransformProcName */ CSEXTERN_DESKTOP CFStringRef kCMMApplyTransformProcName CS_AVAILABLE_PUBLIC_DESKTOP(10.4); /* CMMApplyTransformProcName */ CSEXTERN_DESKTOP CFStringRef kCMMCreateTransformPropertyProcName CS_AVAILABLE_PUBLIC_DESKTOP(10.4); /* CMMCreateTransformPropertyProcName */ /* * Following keys are expected to be present in the CMM bundle info dictionary: * * Standard Mac OS X bundle keys: * kCFBundleExecutableKey * kCFBundleIdentifierKey * kCFBundleVersionKey * kCFBundleNameKey * * CMM specific keys: * kCMMInitializeLinkProfileProcName - CFStringRef of the name of a CMMInitializeLinkProfile * function implemented in the CMM bundle executable. * * kCMMInitializeTransformProcName - CFStringRef of the name of a CMMInitializeTransform * function implemented in the CMM bundle executable. * * kCMMApplyTransformProcName - CFStringRef of the name of a CMMApplyTransform function * implemented in the CMM bundle executable. * * kCMMCreateTransformPropertyProcName - CFStringRef of the name of a CMMCreateTransformProperty * function implemented in the CMM bundle executable. * Optional. */ #ifdef __cplusplus } #endif CF_ASSUME_NONNULL_END CF_IMPLICIT_BRIDGING_DISABLED #else /* #if !defined(__swift__) */ #ifdef __cplusplus extern "C" { #endif #include <ColorSync/ColorSyncProfile.h> #include <ColorSync/ColorSyncTransform.h> /* * Notes: * - Color conversions are performed by a Color Management Module (CMM) which is a plugin to ColorSync. * - ColorSync contains Apple CMM, which is not replaceable, but third parties can install their own CMMs * - ColorSync provides access to installed CMMs as well as those that can be part of the application bundle. * - CMM can be selected and specified as a preferred CMM per color transform created by the application * - if the third party CMM fails to perform a task, Apple CMM will take it over * - ColorSyncCMMRef is a light weight wrapper of CFBundleRef * - See /Developer/Examples/ColorSync/DemoCMM */ typedef struct CF_BRIDGED_TYPE(id) ColorSyncCMM* ColorSyncCMMRef; CSEXTERN CFTypeID ColorSyncCMMGetTypeID(void); /* * returns the CFTypeID for ColorSyncCMMs. */ CSEXTERN ColorSyncCMMRef ColorSyncCMMCreate(CFBundleRef cmmBundle); CSEXTERN CFBundleRef ColorSyncCMMGetBundle(ColorSyncCMMRef); // will return NULL for built-in Apple CMM CSEXTERN CFStringRef ColorSyncCMMCopyLocalizedName(ColorSyncCMMRef); // needed to get the name of built-in CMM CSEXTERN CFStringRef ColorSyncCMMCopyCMMIdentifier(ColorSyncCMMRef); // needed to get the identifier of built-in CMM typedef bool (*ColorSyncCMMIterateCallback)(ColorSyncCMMRef cmm, void* userInfo); /* * Note: If the ColorSyncCMMIterateCallback returns false, the iteration stops * */ CSEXTERN void ColorSyncIterateInstalledCMMs (ColorSyncCMMIterateCallback callBack, void* userInfo); /* * callBack - pointer to a client provided function * user Info - (optional) pointer to the userIndo to be passed to the callback * */ /* * ========================================================================================== * This part defines the interface for developers of third party CMMs for ColorSync. * ========================================================================================== */ typedef bool (*CMMInitializeLinkProfileProc) (ColorSyncMutableProfileRef, CFArrayRef profileInfo, CFDictionaryRef options); typedef bool (*CMMInitializeTransformProc) (ColorSyncTransformRef, CFArrayRef profileInfo, CFDictionaryRef options); typedef bool (*CMMApplyTransformProc)(ColorSyncTransformRef transform, size_t width, size_t height, size_t dstPlanes, void* dst[], ColorSyncDataDepth dstDepth, ColorSyncDataLayout dstFormat, size_t dstBytesPerRow, size_t srcPlanes, const void* src[], ColorSyncDataDepth srcDepth, ColorSyncDataLayout srcFormat, size_t srcBytesPerRow, CFDictionaryRef options); typedef CFTypeRef (*CMMCreateTransformPropertyProc)(ColorSyncTransformRef transform, CFTypeRef key, CFDictionaryRef options); CSEXTERN CFStringRef kCMMInitializeLinkProfileProcName; /* CMMInitializeLinkProfileProcName */ CSEXTERN CFStringRef kCMMInitializeTransformProcName; /* CMMInitializeTransformProcName */ CSEXTERN CFStringRef kCMMApplyTransformProcName; /* CMMApplyTransformProcName */ CSEXTERN CFStringRef kCMMCreateTransformPropertyProcName; /* CMMCreateTransformPropertyProcName */ /* * Following keys are expected to be present in the CMM bundle info dictionary: * * Standard Mac OS X bundle keys: * kCFBundleExecutableKey * kCFBundleIdentifierKey * kCFBundleVersionKey * kCFBundleNameKey * * CMM specific keys: * kCMMInitializeLinkProfileProcName - CFStringRef of the name of a CMMInitializeLinkProfile * function implemented in the CMM bundle executable. * * kCMMInitializeTransformProcName - CFStringRef of the name of a CMMInitializeTransform * function implemented in the CMM bundle executable. * * kCMMApplyTransformProcName - CFStringRef of the name of a CMMApplyTransform function * implemented in the CMM bundle executable. * * kCMMCreateTransformPropertyProcName - CFStringRef of the name of a CMMCreateTransformProperty * function implemented in the CMM bundle executable. * Optional. */ #ifdef __cplusplus } #endif #endif /* #if !defined(__swift__) */ #endif /* __COLORSYNCCMM__ */
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/ColorSync.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/ColorSync.framework/Headers/ColorSyncProfile.h
/* * ColorSync - ColorSyncProfile.h * Copyright (c) 2008 Apple Inc. * All rights reserved. */ #ifndef __COLORSYNCPROFILE__ #define __COLORSYNCPROFILE__ #if !defined(__swift__) #ifdef __cplusplus extern "C" { #endif #include <ColorSync/ColorSyncBase.h> typedef const struct CF_BRIDGED_TYPE(id) ColorSyncProfile* ColorSyncProfileRef; typedef struct CF_BRIDGED_TYPE(id) ColorSyncProfile* ColorSyncMutableProfileRef; CF_IMPLICIT_BRIDGING_ENABLED CF_ASSUME_NONNULL_BEGIN CSEXTERN CFStringRef kColorSyncGenericGrayProfile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* com.apple.ColorSync.GenericGray */ CSEXTERN CFStringRef kColorSyncGenericGrayGamma22Profile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* com.apple.ColorSync.GenericGrayGamma2.2 */ CSEXTERN CFStringRef kColorSyncGenericRGBProfile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* com.apple.ColorSync.GenericRGB */ CSEXTERN CFStringRef kColorSyncGenericCMYKProfile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* com.apple.ColorSync.GenericCMYK */ CSEXTERN CFStringRef kColorSyncDisplayP3Profile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* com.apple.ColorSync.DisplayP3 */ CSEXTERN CFStringRef kColorSyncSRGBProfile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* com.apple.ColorSync.sRGB */ CSEXTERN CFStringRef kColorSyncAdobeRGB1998Profile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* com.apple.ColorSync.AdobeRGB1998 */ CSEXTERN CFStringRef kColorSyncGenericLabProfile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* com.apple.ColorSync.GenericLab */ CSEXTERN CFStringRef kColorSyncGenericXYZProfile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* com.apple.ColorSync.GenericXYZ */ CSEXTERN CFStringRef kColorSyncACESCGLinearProfile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* com.apple.ColorSync.ACESCGLinear */ CSEXTERN CFStringRef kColorSyncDCIP3Profile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* com.apple.ColorSync.DCIP3 */ CSEXTERN CFStringRef kColorSyncITUR709Profile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* com.apple.ColorSync.ITUR709 */ CSEXTERN CFStringRef kColorSyncITUR2020Profile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* com.apple.ColorSync.ITUR2020 */ CSEXTERN CFStringRef kColorSyncROMMRGBProfile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* com.apple.ColorSync.ROMMRGB */ CSEXTERN CFStringRef kColorSyncProfileHeader CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* com.apple.ColorSync.ProfileHeader */ CSEXTERN CFStringRef kColorSyncProfileClass CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* com.apple.ColorSync.ProfileClass */ CSEXTERN CFStringRef kColorSyncProfileColorSpace CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* com.apple.ColorSync.ProfileColorSpace */ CSEXTERN CFStringRef kColorSyncProfilePCS CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* com.apple.ColorSync.PCS */ CSEXTERN CFStringRef kColorSyncProfileURL CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* com.apple.ColorSync.ProfileURL */ CSEXTERN CFStringRef kColorSyncProfileDescription CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* com.apple.ColorSync.ProfileDescription */ CSEXTERN CFStringRef kColorSyncProfileMD5Digest CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* com.apple.ColorSync.ProfileMD5Digest */ CSEXTERN CFStringRef kColorSyncSigAToB0Tag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x41324230L => CFSTR("A2B0")*/ CSEXTERN CFStringRef kColorSyncSigAToB1Tag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x41324231L => CFSTR("A2B1")*/ CSEXTERN CFStringRef kColorSyncSigAToB2Tag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x41324232L => CFSTR("A2B2")*/ CSEXTERN CFStringRef kColorSyncSigBToA0Tag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x42324130L => CFSTR("B2A0")*/ CSEXTERN CFStringRef kColorSyncSigBToA1Tag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x42324131L => CFSTR("B2A1")*/ CSEXTERN CFStringRef kColorSyncSigBToA2Tag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x42324132L => CFSTR("B2A2")*/ CSEXTERN CFStringRef kColorSyncSigCmykData CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x434D594BL => CFSTR("CMYK")*/ CSEXTERN CFStringRef kColorSyncSigGrayData CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x47524159L => CFSTR("GRAY")*/ CSEXTERN CFStringRef kColorSyncSigLabData CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x4C616220L => CFSTR("Lab ")*/ CSEXTERN CFStringRef kColorSyncSigRgbData CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x52474220L => CFSTR("RGB ")*/ CSEXTERN CFStringRef kColorSyncSigXYZData CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x58595A20L => CFSTR("XYZ ")*/ CSEXTERN CFStringRef kColorSyncSigAbstractClass CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x61627374L => CFSTR("abst")*/ CSEXTERN CFStringRef kColorSyncSigBlueTRCTag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x62545243L => CFSTR("bTRC")*/ CSEXTERN CFStringRef kColorSyncSigBlueColorantTag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x6258595AL => CFSTR("bXYZ")*/ CSEXTERN CFStringRef kColorSyncSigMediaBlackPointTag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x626B7074L => CFSTR("bkpt")*/ CSEXTERN CFStringRef kColorSyncSigCopyrightTag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x63707274L => CFSTR("cprt")*/ CSEXTERN CFStringRef kColorSyncSigProfileDescriptionTag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x64657363L => CFSTR("desc")*/ CSEXTERN CFStringRef kColorSyncSigDeviceModelDescTag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x646D6464L => CFSTR("dmdd")*/ CSEXTERN CFStringRef kColorSyncSigDeviceMfgDescTag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x646D6E64L => CFSTR("dmnd")*/ CSEXTERN CFStringRef kColorSyncSigGreenTRCTag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x67545243L => CFSTR("gTRC")*/ CSEXTERN CFStringRef kColorSyncSigGreenColorantTag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x6758595AL => CFSTR("gXYZ")*/ CSEXTERN CFStringRef kColorSyncSigGamutTag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x67616D74L => CFSTR("gamt")*/ CSEXTERN CFStringRef kColorSyncSigGrayTRCTag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x6B545243L => CFSTR("kTRC")*/ CSEXTERN CFStringRef kColorSyncSigLinkClass CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x6C696E6BL => CFSTR("link")*/ CSEXTERN CFStringRef kColorSyncSigDisplayClass CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x6D6E7472L => CFSTR("mntr")*/ CSEXTERN CFStringRef kColorSyncSigNamedColor2Tag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x6E636C32L => CFSTR("ncl2")*/ CSEXTERN CFStringRef kColorSyncSigNamedColorClass CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x6E6D636CL => CFSTR("nmcl")*/ CSEXTERN CFStringRef kColorSyncSigPreview0Tag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x70726530L => CFSTR("pre0")*/ CSEXTERN CFStringRef kColorSyncSigPreview1Tag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x70726531L => CFSTR("pre1")*/ CSEXTERN CFStringRef kColorSyncSigPreview2Tag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x70726532L => CFSTR("pre2")*/ CSEXTERN CFStringRef kColorSyncSigOutputClass CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x70727472L => CFSTR("prtr")*/ CSEXTERN CFStringRef kColorSyncSigProfileSequenceDescTag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x70736571L => CFSTR("pseq")*/ CSEXTERN CFStringRef kColorSyncSigRedTRCTag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x72545243L => CFSTR("rTRC")*/ CSEXTERN CFStringRef kColorSyncSigRedColorantTag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x7258595AL => CFSTR("rXYZ")*/ CSEXTERN CFStringRef kColorSyncSigInputClass CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x73636E72L => CFSTR("scnr")*/ CSEXTERN CFStringRef kColorSyncSigColorSpaceClass CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x73706163L => CFSTR("spac")*/ CSEXTERN CFStringRef kColorSyncSigTechnologyTag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x74656368L => CFSTR("tech")*/ CSEXTERN CFStringRef kColorSyncSigViewingConditionsTag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x76696577L => CFSTR("view")*/ CSEXTERN CFStringRef kColorSyncSigViewingCondDescTag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x76756564L => CFSTR("vued")*/ CSEXTERN CFStringRef kColorSyncSigMediaWhitePointTag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* 0x77747074L => CFSTR("wtpt")*/ CSEXTERN CFStringRef kColorSyncProfileComputerDomain CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* com.apple.ColorSync.ProfileDomain.Computer */ CSEXTERN CFStringRef kColorSyncProfileUserDomain CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* com.apple.ColorSync.ProfileDomain.User */ #define COLORSYNC_PROFILE_INSTALL_ENTITLEMENT "com.apple.developer.ColorSync.profile.install" CSEXTERN CFTypeID ColorSyncProfileGetTypeID(void) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * returns the CFTypeID for ColorSyncProfiles. */ CSEXTERN ColorSyncProfileRef __nullable ColorSyncProfileCreate(CFDataRef data, CFErrorRef* __nullable error) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * data - profile data * error - (optional) pointer to the error which will be returned in case of failure * * returns ColorSyncProfileRef or NULL in case of failure */ CSEXTERN ColorSyncProfileRef __nullable ColorSyncProfileCreateWithURL(CFURLRef url, CFErrorRef* __nullable error) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * url - URL to the profile data. * error - (optional) pointer to the error which will be returned in case of failure * * returns ColorSyncProfileRef or NULL in case of failure */ CSEXTERN ColorSyncProfileRef __nullable ColorSyncProfileCreateWithName(CFStringRef name) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * name - predefined profile name * * returns ColorSyncProfileRef or NULL in case of failure */ CSEXTERN ColorSyncProfileRef __nullable ColorSyncProfileCreateWithDisplayID(uint32_t displayID) CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* * displayID - system-wide unique display ID (defined by IOKIt); pass 0 for main display. * * returns ColorSyncProfileRef or NULL in case of failure */ CSEXTERN ColorSyncProfileRef __nullable ColorSyncProfileCreateDeviceProfile(CFStringRef deviceClass, CFUUIDRef deviceID, CFTypeRef profileID) CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* * deviceClass - ColorSync device class * deviceID - deviceID registered with ColorSync * profileID - profileID registered with ColorSync; pass kColorSyncDeviceDefaultProfileID to get the default profile. * * See ColorSyncDevice.h for more info on deviceClass, deviceID and profileID * * returns ColorSyncProfileRef or NULL in case of failure */ CSEXTERN ColorSyncMutableProfileRef __nullable ColorSyncProfileCreateMutable(void) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * returns empty ColorSyncMutableProfileRef or NULL in case of failure */ CSEXTERN ColorSyncMutableProfileRef __nullable ColorSyncProfileCreateMutableCopy(ColorSyncProfileRef prof) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * prof - profile from which profile data will be copied to the created profile. * * returns ColorSyncMutableProfileRef or NULL in case of failure */ CSEXTERN ColorSyncProfileRef __nullable ColorSyncProfileCreateLink (CFArrayRef profileInfo, CFDictionaryRef __nullable options) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * profileInfo - array of dictionaries, each one containing a profile object and the * information on the usage of the profile in the transform. * * Required keys: * ============== * kColorSyncProfile : ColorSyncProfileRef * kColorSyncRenderingIntent : CFStringRef defining rendering intent * kColorSyncTransformTag : CFStringRef defining which tags to use * Optional key: * ============= * kColorSyncBlackPointCompensation : CFBooleanRef to enable/disable BPC * * options - dictionary with additional public global options (e.g. preferred CMM, quality, * etc... It can also contain custom options that are CMM specific. * * returns ColorSyncProfileRef or NULL in case of failure */ CSEXTERN bool ColorSyncProfileVerify (ColorSyncProfileRef prof, CFErrorRef* __nullable errors, CFErrorRef* __nullable warnings) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * prof - profile to be verified * * errors - returns error strings in case problems are found which * would prevent use of the profile. * * warnings - returns warning strings indicating problems due to lack of * conformance with the ICC specification, but not preventing * use of the profile. * * returns true if profile can be used or false otherwise */ CSEXTERN bool ColorSyncProfileIsWideGamut (ColorSyncProfileRef) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * A utility function estimating gamut of a display profile */ CSEXTERN bool ColorSyncProfileIsMatrixBased (ColorSyncProfileRef) CS_AVAILABLE_PUBLIC_STARTING(11.0, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * A utility function verifying if a profile is matrix-based */ CSEXTERN bool ColorSyncProfileIsPQBased (ColorSyncProfileRef) CS_AVAILABLE_PUBLIC_STARTING(11.0, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * A utility function verifying if a profile is using ITU BT.2100 PQ transfer functions */ CSEXTERN bool ColorSyncProfileIsHLGBased (ColorSyncProfileRef) CS_AVAILABLE_PUBLIC_STARTING(11.0, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * A utility function verifying if a profile is using ITU BT.2100 HLG transfer functions */ CSEXTERN float ColorSyncProfileEstimateGammaWithDisplayID (const int32_t displayID, CFErrorRef* __nullable error) CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* * displayID - system-wide unique display ID (defined by IOKIt) * error - (optional) pointer to the error which will be returned in * case of failure * * returns non-zero value if success or 0.0 in case of error. */ CSEXTERN float ColorSyncProfileEstimateGamma (ColorSyncProfileRef prof, CFErrorRef* __nullable error) CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* * prof - profile to perform estimation on * error - (optional) pointer to the error which will be returned in * case of failure * * returns non-zero value if success or 0.0 in case of error */ CSEXTERN bool ColorSyncProfileGetDisplayTransferFormulaFromVCGT(ColorSyncProfileRef profile, float* redMin, float* redMax, float* redGamma, float* greenMin, float* greenMax, float* greenGamma, float* blueMin, float* blueMax, float* blueGamma) CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* * An utility function converting vcgt tag (if vcgt tag exists in the profile and conversion possible) * to formula components used by CGSetDisplayTransferByFormula. */ CSEXTERN CFDataRef __nullable ColorSyncProfileCreateDisplayTransferTablesFromVCGT(ColorSyncProfileRef profile, size_t *nSamplesPerChannel) CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* * An utility function creating three tables of floats (redTable, greenTable, blueTable) * each of size nSamplesPerChannel, packed into contiguous memory contained in the CFDataRef * to be returned from the vcgt tag of the profile (if vcgt tag exists in the profile). * Used by CGSetDisplayTransferByTable. */ #define COLORSYNC_MD5_LENGTH 16 typedef struct { uint8_t digest[COLORSYNC_MD5_LENGTH]; } ColorSyncMD5; CSEXTERN ColorSyncMD5 ColorSyncProfileGetMD5(ColorSyncProfileRef prof) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * returns MD5 digest for the profile calculated as defined by * ICC specification or a "zero" signature (filled with zeros) * in case of failure */ CSEXTERN CFDataRef ColorSyncProfileCopyData (ColorSyncProfileRef prof, CFErrorRef* __nullable error) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * prof - profile to copy the flattened data from * error - (optional) pointer to the error which will be returned in case of failure * * returns CFDataRef if success or NULL in case of failure */ CSEXTERN CFURLRef ColorSyncProfileGetURL (ColorSyncProfileRef prof, CFErrorRef* __nullable error) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * prof - profile to get URL from * error - (optional) pointer to the error which will be returned in case of failure * * returns CFURLRef if success or NULL in case of failure */ CSEXTERN CFDataRef ColorSyncProfileCopyHeader (ColorSyncProfileRef prof) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * prof - profile from which to copy the header * * returns CFDataRef containing profile header (in host endianess) or NULL in case of failure */ CSEXTERN void ColorSyncProfileSetHeader (ColorSyncMutableProfileRef prof, CFDataRef header) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * prof - profile in which to set the header * header - CFDataRef containing the header data (must be in host endianess) */ CSEXTERN CFStringRef __nullable ColorSyncProfileCopyDescriptionString (ColorSyncProfileRef prof) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * prof - profile from which to copy description string * * returns CFStringRef containing profile description localized to current locale */ CSEXTERN CFArrayRef __nullable ColorSyncProfileCopyTagSignatures (ColorSyncProfileRef prof) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * prof - profile from which to copy tag signatures * * returns CFArray with signatures (CFStringRef) of tags in the profile */ CSEXTERN bool ColorSyncProfileContainsTag (ColorSyncProfileRef prof, CFStringRef signature) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * prof - profile in which to search for the tag * signature - signature of the tag to be searched for * * returns true if tag exists or false if does not */ CSEXTERN CFDataRef __nullable ColorSyncProfileCopyTag (ColorSyncProfileRef prof, CFStringRef signature) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * prof - profile from which to copy the tag * signature - signature of the tag to be copied * * returns CFDataRef containing tag data or NULL in case of failure */ CSEXTERN void ColorSyncProfileSetTag (ColorSyncMutableProfileRef prof, CFStringRef signature, CFDataRef data) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * prof - profile in which to set the tag * signature - signature of the tag to be set in the profile * data - CFDataRef containing the tag data */ CSEXTERN void ColorSyncProfileRemoveTag (ColorSyncMutableProfileRef prof, CFStringRef signature) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * prof - profile from which to remove the tag * signature - signature of the tag to be removed * * returns true if success or false in case of failure */ typedef bool (*ColorSyncProfileIterateCallback)(CFDictionaryRef profileInfo, void* userInfo); /* * Notes: * 1. Only validated profiles will be passed to the caller * 2. if the ColorSyncProfileIterateCallback returns false, the iteration stops */ #define COLORSYNC_ITERATE_ASYNC CSEXTERN CFStringRef kColorSyncProfileCacheSeed; /* * Current cache seed (uint32_t) sent along with kColorSyncProfileRepositoryChangeNotification */ CSEXTERN void ColorSyncIterateInstalledProfiles (ColorSyncProfileIterateCallback __nullable callBack, uint32_t* __nullable seed, void* __nullable userInfo, CFErrorRef* __nullable error) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * callBack - pointer to a client provided function (can be NULL) * seed - pointer to a cache seed owned by the client (can be NULL) * error - (optional) pointer to the error which will be returned in case of failure * * Note: When called for the first time this function will return only system profiles because * profile iteration is a slow process requiring multiple access to file system. * Clients are advised to register for kColorSyncProfileRepositoryChangeNotification * using CFNotificationCenter or NSNotificationCenter to obtain all installed profiles. * Notification callback will receive, if possible, a CFDictionary containing a new seed * value of the profile cache (key kColorSyncProfileCacheSeed / value kCFNumberSInt32Type). * Comparing old and new seed values may prevent unnecessary calls to iterate installed * profiles. * Alternatively, ColorSyncIterateInstalledProfilesWithOptions can be used with kColorSyncWaitForCacheReply * option set to kCFBooleanTrue to obtain all installed profiles in one call. */ CSEXTERN CFStringRef kColorSyncWaitForCacheReply CS_AVAILABLE_STARTING(10.16) CS_UNAVAILABLE_EMBEDDED; CSEXTERN void ColorSyncIterateInstalledProfilesWithOptions (ColorSyncProfileIterateCallback __nullable callBack, uint32_t* __nullable seed, void* __nullable userInfo, CFDictionaryRef __nullable options, CFErrorRef* __nullable error) CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* * callBack - pointer to a client provided function (can be NULL) * seed - pointer to a cache seed owned by the client * options = a dictionary with iteration options, e.g. kColorSyncWaitForCacheReply to skip updates * error - (optional) pointer to the error that will be returned in case of failure * */ CSEXTERN bool ColorSyncProfileInstall(ColorSyncProfileRef profile, CFStringRef domain, CFStringRef subpath, CFErrorRef* __nullable error) CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* * profile - profile to be installed * domain - either kColorSyncProfileComputerDomain or kColorSyncProfileUserDomain. * kColorSyncProfileComputerDomain is for sharing the profiles (from /Library/ColorSync/Profiles). * kColorSyncProfileUserDomain is for user custom profiles (installed under home directory, i.e. in * ~/Library/ColorSync/Profiles. * NULL is the same as kColorSyncProfileUserDomain. * subpath - CFString created from the file system representation of the path of the file to contain the installed * profile. The last component of the path is interpreted as a file name if it ends with the extension ".icc". * Otherwise, the subpath is interpreted as the directory path and file name will be created from the * profile description tag, appended with the ".icc" extension. * error - (optional) pointer to the error which will be returned in case of failure. * * bool value true is returned if success or false in case of error. */ CSEXTERN bool ColorSyncProfileUninstall(ColorSyncProfileRef profile, CFErrorRef* __nullable error) CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* * profile - profile to be uninstalled. This profile must return a valid url for ColorSyncProfileGetURL, * i.e. it must be created with ColorSyncProfileCreateWithURL. Also, the url * must be in either in kColorSyncProfileComputerDomain or * kColorSyncProfileUserDomain, including subfolders of those. * error - (optional) pointer to the error which will be returned in case of failure. * * bool value true is returned if success or false in case of error. */ /******************************************************************************************** * * * For further information on ICC profiles refer to ICC profile specification published * * by International Color Consortium at www.color.org * * * * ICC header file (ICC.h) containing programmatic definitions of ICC data types can be * * downloaded from the Technical Notes web page of ICC website at * * www.color.org/technotes.xalter * * * ********************************************************************************************/ #ifdef __cplusplus } #endif CF_ASSUME_NONNULL_END CF_IMPLICIT_BRIDGING_DISABLED #else /* #if !defined(__swift__) */ #ifdef __cplusplus extern "C" { #endif #include <ColorSync/ColorSyncBase.h> typedef const struct CF_BRIDGED_TYPE(id) ColorSyncProfile* ColorSyncProfileRef; typedef struct CF_BRIDGED_TYPE(id) ColorSyncProfile* ColorSyncMutableProfileRef; CSEXTERN CFStringRef kColorSyncGenericGrayProfile; /* com.apple.ColorSync.GenericGray */ CSEXTERN CFStringRef kColorSyncGenericGrayGamma22Profile; /* com.apple.ColorSync.GenericGrayGamma2.2 */ CSEXTERN CFStringRef kColorSyncGenericRGBProfile; /* com.apple.ColorSync.GenericRGB */ CSEXTERN CFStringRef kColorSyncGenericCMYKProfile; /* com.apple.ColorSync.GenericCMYK */ CSEXTERN CFStringRef kColorSyncDisplayP3Profile; /* com.apple.ColorSync.DisplayP3 */ CSEXTERN CFStringRef kColorSyncSRGBProfile; /* com.apple.ColorSync.sRGB */ CSEXTERN CFStringRef kColorSyncAdobeRGB1998Profile; /* com.apple.ColorSync.AdobeRGB1998 */ CSEXTERN CFStringRef kColorSyncGenericLabProfile; /* com.apple.ColorSync.GenericLab */ CSEXTERN CFStringRef kColorSyncGenericXYZProfile; /* com.apple.ColorSync.GenericXYZ */ CSEXTERN CFStringRef kColorSyncACESCGLinearProfile; /* com.apple.ColorSync.ACESCGLinear */ CSEXTERN CFStringRef kColorSyncDCIP3Profile; /* com.apple.ColorSync.DCIP3 */ CSEXTERN CFStringRef kColorSyncITUR709Profile; /* com.apple.ColorSync.ITUR709 */ CSEXTERN CFStringRef kColorSyncITUR2020Profile; /* com.apple.ColorSync.ITUR2020 */ CSEXTERN CFStringRef kColorSyncROMMRGBProfile; /* com.apple.ColorSync.ROMMRGB */ CSEXTERN CFStringRef kColorSyncProfileHeader; /* com.apple.ColorSync.ProfileHeader */ CSEXTERN CFStringRef kColorSyncProfileClass; /* com.apple.ColorSync.ProfileClass */ CSEXTERN CFStringRef kColorSyncProfileColorSpace; /* com.apple.ColorSync.ProfileColorSpace */ CSEXTERN CFStringRef kColorSyncProfilePCS; /* com.apple.ColorSync.PCS */ CSEXTERN CFStringRef kColorSyncProfileURL; /* com.apple.ColorSync.ProfileURL */ CSEXTERN CFStringRef kColorSyncProfileDescription; /* com.apple.ColorSync.ProfileDescription */ CSEXTERN CFStringRef kColorSyncProfileMD5Digest; /* com.apple.ColorSync.ProfileMD5Digest */ CSEXTERN CFStringRef kColorSyncSigAToB0Tag; /* 0x41324230L => CFSTR("A2B0")*/ CSEXTERN CFStringRef kColorSyncSigAToB1Tag; /* 0x41324231L => CFSTR("A2B1")*/ CSEXTERN CFStringRef kColorSyncSigAToB2Tag; /* 0x41324232L => CFSTR("A2B2")*/ CSEXTERN CFStringRef kColorSyncSigBToA0Tag; /* 0x42324130L => CFSTR("B2A0")*/ CSEXTERN CFStringRef kColorSyncSigBToA1Tag; /* 0x42324131L => CFSTR("B2A1")*/ CSEXTERN CFStringRef kColorSyncSigBToA2Tag; /* 0x42324132L => CFSTR("B2A2")*/ CSEXTERN CFStringRef kColorSyncSigCmykData; /* 0x434D594BL => CFSTR("CMYK")*/ CSEXTERN CFStringRef kColorSyncSigGrayData; /* 0x47524159L => CFSTR("GRAY")*/ CSEXTERN CFStringRef kColorSyncSigLabData; /* 0x4C616220L => CFSTR("Lab ")*/ CSEXTERN CFStringRef kColorSyncSigRgbData; /* 0x52474220L => CFSTR("RGB ")*/ CSEXTERN CFStringRef kColorSyncSigXYZData; /* 0x58595A20L => CFSTR("XYZ ")*/ CSEXTERN CFStringRef kColorSyncSigAbstractClass; /* 0x61627374L => CFSTR("abst")*/ CSEXTERN CFStringRef kColorSyncSigBlueTRCTag; /* 0x62545243L => CFSTR("bTRC")*/ CSEXTERN CFStringRef kColorSyncSigBlueColorantTag; /* 0x6258595AL => CFSTR("bXYZ")*/ CSEXTERN CFStringRef kColorSyncSigMediaBlackPointTag; /* 0x626B7074L => CFSTR("bkpt")*/ CSEXTERN CFStringRef kColorSyncSigCopyrightTag; /* 0x63707274L => CFSTR("cprt")*/ CSEXTERN CFStringRef kColorSyncSigProfileDescriptionTag; /* 0x64657363L => CFSTR("desc")*/ CSEXTERN CFStringRef kColorSyncSigDeviceModelDescTag; /* 0x646D6464L => CFSTR("dmdd")*/ CSEXTERN CFStringRef kColorSyncSigDeviceMfgDescTag; /* 0x646D6E64L => CFSTR("dmnd")*/ CSEXTERN CFStringRef kColorSyncSigGreenTRCTag; /* 0x67545243L => CFSTR("gTRC")*/ CSEXTERN CFStringRef kColorSyncSigGreenColorantTag; /* 0x6758595AL => CFSTR("gXYZ")*/ CSEXTERN CFStringRef kColorSyncSigGamutTag; /* 0x67616D74L => CFSTR("gamt")*/ CSEXTERN CFStringRef kColorSyncSigGrayTRCTag; /* 0x6B545243L => CFSTR("kTRC")*/ CSEXTERN CFStringRef kColorSyncSigLinkClass; /* 0x6C696E6BL => CFSTR("link")*/ CSEXTERN CFStringRef kColorSyncSigDisplayClass; /* 0x6D6E7472L => CFSTR("mntr")*/ CSEXTERN CFStringRef kColorSyncSigNamedColor2Tag; /* 0x6E636C32L => CFSTR("ncl2")*/ CSEXTERN CFStringRef kColorSyncSigNamedColorClass; /* 0x6E6D636CL => CFSTR("nmcl")*/ CSEXTERN CFStringRef kColorSyncSigPreview0Tag; /* 0x70726530L => CFSTR("pre0")*/ CSEXTERN CFStringRef kColorSyncSigPreview1Tag; /* 0x70726531L => CFSTR("pre1")*/ CSEXTERN CFStringRef kColorSyncSigPreview2Tag; /* 0x70726532L => CFSTR("pre2")*/ CSEXTERN CFStringRef kColorSyncSigOutputClass; /* 0x70727472L => CFSTR("prtr")*/ CSEXTERN CFStringRef kColorSyncSigProfileSequenceDescTag; /* 0x70736571L => CFSTR("pseq")*/ CSEXTERN CFStringRef kColorSyncSigRedTRCTag; /* 0x72545243L => CFSTR("rTRC")*/ CSEXTERN CFStringRef kColorSyncSigRedColorantTag; /* 0x7258595AL => CFSTR("rXYZ")*/ CSEXTERN CFStringRef kColorSyncSigInputClass; /* 0x73636E72L => CFSTR("scnr")*/ CSEXTERN CFStringRef kColorSyncSigColorSpaceClass; /* 0x73706163L => CFSTR("spac")*/ CSEXTERN CFStringRef kColorSyncSigTechnologyTag; /* 0x74656368L => CFSTR("tech")*/ CSEXTERN CFStringRef kColorSyncSigViewingConditionsTag; /* 0x76696577L => CFSTR("view")*/ CSEXTERN CFStringRef kColorSyncSigViewingCondDescTag; /* 0x76756564L => CFSTR("vued")*/ CSEXTERN CFStringRef kColorSyncSigMediaWhitePointTag; /* 0x77747074L => CFSTR("wtpt")*/ CSEXTERN CFStringRef kColorSyncProfileComputerDomain; /* com.apple.ColorSync.ProfileDomain.Computer */ CSEXTERN CFStringRef kColorSyncProfileUserDomain; /* com.apple.ColorSync.ProfileDomain.User */ #define COLORSYNC_PROFILE_INSTALL_ENTITLEMENT "com.apple.developer.ColorSync.profile.install" CSEXTERN CFTypeID ColorSyncProfileGetTypeID(void); /* * returns the CFTypeID for ColorSyncProfiles. */ CSEXTERN ColorSyncProfileRef ColorSyncProfileCreate(CFDataRef data, CFErrorRef* error); /* * data - profile data * error - (optional) pointer to the error which will be returned in case of failure * * returns ColorSyncProfileRef or NULL in case of failure */ CSEXTERN ColorSyncProfileRef ColorSyncProfileCreateWithURL(CFURLRef url, CFErrorRef* error); /* * url - URL to the profile data. * error - (optional) pointer to the error which will be returned in case of failure * * returns ColorSyncProfileRef or NULL in case of failure */ CSEXTERN ColorSyncProfileRef ColorSyncProfileCreateWithName(CFStringRef name); /* * name - predefined profile name * * returns ColorSyncProfileRef or NULL in case of failure */ CSEXTERN ColorSyncProfileRef ColorSyncProfileCreateWithDisplayID (uint32_t displayID); /* * displayID - system-wide unique display ID (defined by IOKIt); pass 0 for main display. * * returns ColorSyncProfileRef or NULL in case of failure */ CSEXTERN ColorSyncProfileRef ColorSyncProfileCreateDeviceProfile (CFStringRef deviceClass, CFUUIDRef deviceID, CFTypeRef profileID); /* * deviceClass - ColorSync device class * deviceID - deviceID registered with ColorSync * profileID - profileID registered with ColorSync; pass kColorSyncDeviceDefaultProfileID to get the default profile. * * See ColorSyncDevice.h for more info on deviceClass, deviceID and profileID * * returns ColorSyncProfileRef or NULL in case of failure */ CSEXTERN ColorSyncMutableProfileRef ColorSyncProfileCreateMutable(void); /* * returns empty ColorSyncMutableProfileRef or NULL in case of failure */ CSEXTERN ColorSyncMutableProfileRef ColorSyncProfileCreateMutableCopy(ColorSyncProfileRef prof); /* * prof - profile from which profile data will be copied to the created profile. * * returns ColorSyncMutableProfileRef or NULL in case of failure */ CSEXTERN ColorSyncProfileRef ColorSyncProfileCreateLink (CFArrayRef profileInfo, CFDictionaryRef options); /* * profileInfo - array of dictionaries, each one containing a profile object and the * information on the usage of the profile in the transform. * * Required keys: * ============== * kColorSyncProfile : ColorSyncProfileRef * kColorSyncRenderingIntent : CFStringRef defining rendering intent * kColorSyncTransformTag : CFStringRef defining which tags to use * Optional key: * ============= * kColorSyncBlackPointCompensation : CFBooleanRef to enable/disable BPC * * options - dictionary with additional public global options (e.g. preferred CMM, quality, * etc... It can also contain custom options that are CMM specific. * * returns ColorSyncProfileRef or NULL in case of failure */ CSEXTERN bool ColorSyncProfileVerify (ColorSyncProfileRef prof, CFErrorRef* errors, CFErrorRef* warnings); /* * prof - profile to be verified * * errors - returns error strings in case problems are found which * would prevent use of the profile. * * warnings - returns warning strings indicating problems due to lack of * conformance with the ICC specification, but not preventing * use of the profile. * * returns true if profile can be used or false otherwise */ CSEXTERN bool ColorSyncProfileIsWideGamut (ColorSyncProfileRef); /* * A utility function estimating gamut of a display profile */ CSEXTERN bool ColorSyncProfileIsMatrixBased (ColorSyncProfileRef); /* * A utility function verifying if a profile is matrix-based */ CSEXTERN bool ColorSyncProfileIsPQBased (ColorSyncProfileRef); /* * A utility function verifying if a profile is using ITU BT.2100 PQ transfer functions */ CSEXTERN bool ColorSyncProfileIsHLGBased (ColorSyncProfileRef); /* * A utility function verifying if a profile is using ITU BT.2100 HLG transfer functions */ CSEXTERN float ColorSyncProfileEstimateGammaWithDisplayID (const int32_t displayID, CFErrorRef* error); /* * displayID - system-wide unique display ID (defined by IOKIt) * error - (optional) pointer to the error which will be returned in * case of failure * * returns non-zero value if success or 0.0 in case of error. */ CSEXTERN float ColorSyncProfileEstimateGamma (ColorSyncProfileRef prof, CFErrorRef* error); /* * prof - profile to perform estimation on * error - (optional) pointer to the error which will be returned in * case of failure * * returns non-zero value if success or 0.0 in case of error */ #define COLORSYNC_MD5_LENGTH 16 typedef struct { uint8_t digest[COLORSYNC_MD5_LENGTH]; } ColorSyncMD5; CSEXTERN ColorSyncMD5 ColorSyncProfileGetMD5(ColorSyncProfileRef prof); /* * returns MD5 digest for the profile calculated as defined by * ICC specification or a "zero" signature (filled with zeros) * in case of failure */ CSEXTERN CFDataRef ColorSyncProfileCopyData (ColorSyncProfileRef prof, CFErrorRef* error); /* * prof - profile to copy the flattened data from * error - (optional) pointer to the error which will be returned in case of failure * * returns CFDataRef if success or NULL in case of failure */ CSEXTERN CFURLRef ColorSyncProfileGetURL (ColorSyncProfileRef prof, CFErrorRef* error); /* * prof - profile to get URL from * error - (optional) pointer to the error which will be returned in case of failure * * returns CFURLRef if success or NULL in case of failure */ CSEXTERN CFDataRef ColorSyncProfileCopyHeader (ColorSyncProfileRef prof); /* * prof - profile from which to copy the header * * returns CFDataRef containing profile header (in host endianess) or NULL in case of failure */ CSEXTERN void ColorSyncProfileSetHeader (ColorSyncMutableProfileRef prof, CFDataRef header); /* * prof - profile in which to set the header * header - CFDataRef containing the header data (must be in host endianess) */ CSEXTERN CFStringRef ColorSyncProfileCopyDescriptionString (ColorSyncProfileRef prof); /* * prof - profile from which to copy description string * * returns CFStringRef containing profile description localized to current locale */ CSEXTERN CFArrayRef ColorSyncProfileCopyTagSignatures (ColorSyncProfileRef prof); /* * prof - profile from which to copy tag signatures * * returns CFArray with signatures (CFStringRef) of tags in the profile */ CSEXTERN bool ColorSyncProfileContainsTag (ColorSyncProfileRef prof, CFStringRef signature); /* * prof - profile in which to search for the tag * signature - signature of the tag to be searched for * * returns true if tag exists or false if does not */ CSEXTERN CFDataRef ColorSyncProfileCopyTag (ColorSyncProfileRef prof, CFStringRef signature); /* * prof - profile from which to copy the tag * signature - signature of the tag to be copied * * returns CFDataRef containing tag data or NULL in case of failure */ CSEXTERN void ColorSyncProfileSetTag (ColorSyncMutableProfileRef prof, CFStringRef signature, CFDataRef data); /* * prof - profile in which to set the tag * signature - signature of the tag to be set in the profile * data - CFDataRef containing the tag data */ CSEXTERN void ColorSyncProfileRemoveTag (ColorSyncMutableProfileRef prof, CFStringRef signature); /* * prof - profile from which to remove the tag * signature - signature of the tag to be removed * * returns true if success or false in case of failure */ CSEXTERN bool ColorSyncProfileGetDisplayTransferFormulaFromVCGT(ColorSyncProfileRef profile, float* redMin, float* redMax, float* redGamma, float* greenMin, float* greenMax, float* greenGamma, float* blueMin, float* blueMax, float* blueGamma); /* * An utility function converting vcgt tag (if vcgt tag exists in the profile and conversion possible) * to formula components used by CGSetDisplayTransferByFormula. */ CSEXTERN CFDataRef ColorSyncProfileCreateDisplayTransferTablesFromVCGT(ColorSyncProfileRef profile, size_t *nSamplesPerChannel); /* * An utility function creating three tables of floats (redTable, greenTable, blueTable) * each of size nSamplesPerChannel, packed into contiguous memory contained in the CFDataRef * to be returned from the vcgt tag of the profile (if vcgt tag exists in the profile). * Used by CGSetDisplayTransferByTable. */ typedef bool (*ColorSyncProfileIterateCallback)(CFDictionaryRef profileInfo, void* userInfo); /* * Notes: * 1. Only validated profiles will be passed to the caller * 2. if the ColorSyncProfileIterateCallback returns false, the iteration stops */ #define COLORSYNC_ITERATE_ASYNC CSEXTERN CFStringRef kColorSyncProfileCacheSeed; /* * Current cache seed (uint32_t) sent along with kColorSyncProfileRepositoryChangeNotification */ CSEXTERN void ColorSyncIterateInstalledProfiles (ColorSyncProfileIterateCallback __nullable callBack, uint32_t* __nullable seed, void* __nullable userInfo, CFErrorRef* __nullable error); /* * callBack - pointer to a client provided function (can be NULL) * seed - pointer to a cache seed owned by the client (can be NULL) * error - (optional) pointer to the error which will be returned in case of failure * * Note: When called for the first time this function will return only system profiles because * profile iteration is a slow process requiring multiple access to file system. * Clients are advised to register for kColorSyncProfileRepositoryChangeNotification * using CFNotificationCenter or NSNotificationCenter to obtain all installed profiles. * Notification callback will receive, if possible, a CFDictionary containing a new seed * value of the profile cache (key kColorSyncProfileCacheSeed / value kCFNumberSInt32Type). * Comparing old and new seed values may prevent unnecessary calls to iterate installed * profiles. * Alternatively, ColorSyncIterateInstalledProfilesWithOptions can be used with kColorSyncWaitForCacheReply * option set to kCFBooleanTrue to obtain all installed profiles in one call. */ CSEXTERN CFStringRef kColorSyncWaitForCacheReply; CSEXTERN void ColorSyncIterateInstalledProfilesWithOptions (ColorSyncProfileIterateCallback __nullable callBack, uint32_t* __nullable seed, void* __nullable userInfo, CFDictionaryRef __nullable options, CFErrorRef* __nullable error); /* * callBack - pointer to a client provided function (can be NULL) * seed - pointer to a cache seed owned by the client * options = a dictionary with iteration options, e.g. kColorSyncWaitForCacheReply to skip updates * error - (optional) pointer to the error that will be returned in case of failure * */ CSEXTERN bool ColorSyncProfileInstall(ColorSyncProfileRef profile, CFStringRef domain, CFStringRef subpath, CFErrorRef* error); /* * profile - profile to be installed * domain - either kColorSyncProfileComputerDomain or kColorSyncProfileUserDomain. * kColorSyncProfileComputerDomain is for sharing the profiles (from /Library/ColorSync/Profiles). * kColorSyncProfileUserDomain is for user custom profiles (installed under home directory, i.e. in * ~/Library/ColorSync/Profiles. * NULL is the same as kColorSyncProfileUserDomain. * subpath - CFString created from the file system representation of the path of the file to contain the installed * profile. The last component of the path is interpreted as a file name if it ends with the extension ".icc". * Otherwise, the subpath is interpreted as the directory path and file name will be created from the * profile description tag, appended with the ".icc" extension. * error - (optional) pointer to the error which will be returned in case of failure. * * bool value true is returned if success or false in case of error. */ CSEXTERN bool ColorSyncProfileUninstall(ColorSyncProfileRef profile, CFErrorRef* error); /* * profile - profile to be uninstalled. This profile must return a valid url for ColorSyncProfileGetURL, * i.e. it must be created with ColorSyncProfileCreateWithURL. Also, the url * must be in either in kColorSyncProfileComputerDomain or * kColorSyncProfileUserDomain, including subfolders of those. * error - (optional) pointer to the error which will be returned in case of failure. * * bool value true is returned if success or false in case of error. */ /******************************************************************************************** * * * For further information on ICC profiles refer to ICC profile specification published * * by International Color Consortium at www.color.org * * * * ICC header file (ICC.h) containing programmatic definitions of ICC data types can be * * downloaded from the Technical Notes web page of ICC website at * * www.color.org/technotes.xalter * * * ********************************************************************************************/ #ifdef __cplusplus } #endif #endif /* #if !defined(__swift__) */ #endif /* __COLORSYNCPROFILE__ */
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/ColorSync.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/ColorSync.framework/Headers/ColorSyncDevice.h
/* * ColorSync - ColorSyncDevice.h * Copyright (c) 2008 Apple Inc. * All rights reserved. */ #ifndef __COLORSYNCDEVICE__ #define __COLORSYNCDEVICE__ #if !defined(__swift__) #ifdef __cplusplus extern "C" { #endif #include <ColorSync/ColorSyncProfile.h> CF_IMPLICIT_BRIDGING_ENABLED CF_ASSUME_NONNULL_BEGIN CSEXTERN CFStringRef kColorSyncDeviceID CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* CFUUIDRef */ CSEXTERN CFStringRef kColorSyncDeviceClass CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* one of the below : */ CSEXTERN CFStringRef kColorSyncCameraDeviceClass CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* cmra */ CSEXTERN CFStringRef kColorSyncDisplayDeviceClass CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* mntr */ CSEXTERN CFStringRef kColorSyncPrinterDeviceClass CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* prtr */ CSEXTERN CFStringRef kColorSyncScannerDeviceClass CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* scnr */ CSEXTERN CFStringRef kColorSyncDeviceProfileURL CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; CSEXTERN CFStringRef kColorSyncDeviceDescription CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* CFString with a name in current locale */ CSEXTERN CFStringRef kColorSyncDeviceDescriptions CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* CFDictionary with localized names */ CSEXTERN CFStringRef kColorSyncFactoryProfiles CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* CFDictionary containing factory profile info */ CSEXTERN CFStringRef kColorSyncCustomProfiles CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* CFDictionary containing custom profile info */ CSEXTERN CFStringRef kColorSyncDeviceModeDescription CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* CFString, e.g. Glossy, Best Quality */ CSEXTERN CFStringRef kColorSyncDeviceModeDescriptions CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* CFDictionary with localized mode names */ CSEXTERN CFStringRef kColorSyncDeviceDefaultProfileID CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* see below */ CSEXTERN CFStringRef kColorSyncDeviceHostScope CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* currently only kCFPreferencesCurrentHost is supported */ CSEXTERN CFStringRef kColorSyncDeviceUserScope CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* kCFPreferences{Current,Any}User */ CSEXTERN CFStringRef kColorSyncProfileHostScope CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* currently only kCFPreferencesCurrentHost is supported */ CSEXTERN CFStringRef kColorSyncProfileUserScope CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* kCFPreferences{Current,Any}User */ CSEXTERN CFStringRef kColorSyncDeviceProfileIsFactory CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* Present in ColorSyncDeviceProfileInfo dictionary.*/ /* See ColorSyncDeviceProfileIterateCallback below. */ CSEXTERN CFStringRef kColorSyncDeviceProfileIsDefault CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* ditto */ CSEXTERN CFStringRef kColorSyncDeviceProfileIsCurrent CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* ditto */ CSEXTERN CFStringRef kColorSyncDeviceProfileID CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* ditto */ CSEXTERN CFStringRef kColorSyncDeviceRegisteredNotification CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* com.apple.ColorSync.DeviceRegisteredNotification */ CSEXTERN CFStringRef kColorSyncDeviceUnregisteredNotification CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* com.apple.ColorSync.DeviceUnregisteredNotification */ CSEXTERN CFStringRef kColorSyncDeviceProfilesNotification CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* com.apple.ColorSync.DeviceProfilesNotification */ CSEXTERN CFStringRef kColorSyncDisplayDeviceProfilesNotification CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* com.apple.ColorSync.DisplayProfileNotification */ CSEXTERN CFStringRef kColorSyncProfileRepositoryChangeNotification CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* com.apple.ColorSync.ProfileRepositoryChangeNotification */ CSEXTERN CFStringRef kColorSyncRegistrationUpdateWindowServer CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* com.apple.ColorSync.kColorSyncRegistrationUpdateWindowServer */ CSEXTERN bool ColorSyncRegisterDevice (CFStringRef deviceClass, CFUUIDRef deviceID, CFDictionaryRef deviceInfo) CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* * deviceInfo -a dictionary containing information needed to register a device. * ---------------------------------------------------------------------------- * * Required keys: * ============== * kColorSyncDeviceDescriptions: CFDictionary with localized names of the device. * Localization keys must be five character strings * containing language code and region code in the * lc_RG format and it must contain (at least) the "en_US" locale. * kColorSyncFactoryProfiles : CFDictionary with factory profile info CFDictionaries * The keys are the profile IDs and the values * are the profile info dictionaries. * Optional keys: * ============== * kColorSyncDeviceHostScope : host scope of the device; * one of kCFPreferences{Current,Any}Host; * if unspecified kCFPreferencesCurrentHost is * assumed. * kColorSyncDeviceUserScope : user scope of the device; * one of kCFPreferences{Current,Any}User; * if unspecified kCFPreferencesCurrentUser is * assumed. * * factory profiles dictionary - value for the key kColorSyncFactoryProfiles in deviceInfo * ------------------------------------------------------------------------------------- * Required keys and values: * ======================== * Each profile is identified by a ProfileID (of CFStringRef type) which used as the key. * Value associated with the key is a profile info dictionary * that describes an individual device profile. * * kColorSyncDeviceDefaultProfileID: the associated value must be one of the ProfileID * present in the dictionary. Presence of this * key is not required if there is only one factory profile. * * profile info CFDictionary * -------------------------------- * Required keys: * ============== * kColorSyncDeviceProfileURL :CFURLRef of the profile to be registered * kColorSyncDeviceModeDescriptions:CFDictionary with localized device mode * names for the profile. Localization keys * must be five character strings containing * language code and region code in the lc_RG * format and it must contain (at least) the * "en_US" locale. * E.g. "en_US" "Glossy Paper with best quality" * * Example of deviceInfo dictionary: * * << * kColorSyncDeviceDescriptions << * en_US My Little Printer * de_DE Mein Kleiner Drucker * fr_FR Mon petit immprimeur * ... * >> * kColorSyncFactoryProfiles << * CFSTR("Profile 1") << * kColorSyncDeviceProfileURL {CFURLRef} * * kColorSyncDeviceModeDescriptions << * en_US Glossy Paper * de_DE Glanzpapier * fr_FR Papier glace * ... * >> * ... * * kColorSyncDeviceDefaultProfileID CFSTR("Profile 1") * >> * kColorSyncDeviceUserScope kCFPreferencesAnyUser * * kColorSyncDeviceHostScope kCFPreferencesCurrentHost * << * * Notes: 1. Scope for factory profiles is exactly the same as the device scope. * 2. Pass kCFNull in lieu of the profile URL or no URl key/value pair at all if * factory profile is not available. This will enable setting custom profile. * 3. For the reasons of compatibility with legacy API, it is recommended that the * profile keys are created as CFStrings from uint32_t numbers as follows: * CFStringRef key = CFStringCreateWithFormat(NULL, NULL, CFSTR("%u"), (uint32_t) i); * * returns true on success and false in case of failure */ CSEXTERN bool ColorSyncUnregisterDevice (CFStringRef deviceClass, CFUUIDRef deviceID) CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* * Unregister a device of given deviceClass and deviceID. * * returns true on success and false in case of failure */ CSEXTERN bool ColorSyncDeviceSetCustomProfiles (CFStringRef deviceClass, CFUUIDRef deviceID, CFDictionaryRef profileInfo) CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* * profileInfo is a CFDictionary containing the information about * custom profiles to be set in lieu of factory profiles. * Required keys: * ============== * ProfileIDs which must be the subset of the ProfileIDs that device was registered with * or kColorSyncDeviceDefaultProfileID for setting custom default profile. * * Required values: * ============== * CFURLRef of the profile to be set as a custom profile. * * Optional keys: * ============== * kColorSyncProfileHostScope : host scope of the profile; * one of kCFPreferences{Current,Any}Host; * if unspecified kCFPreferencesCurrentHost * is assumed. * kColorSyncProfileUserScope : user scope of the profile; * one of kCFPreferences{Current,Any}User; * if unspecified kCFPreferencesCurrentUser * is assumed. * * * Notes: 1. Profile scope for custom profiles cannot exceed scope of the factory profiles. * 2. There is only one host scope and user scope per dictionary (i.e. per call) * 3. Pass kCFNull in lieu of the profile URL to unset the custom profile and * reset the current profile to the factory profile. * * returns true on success and false in case of failure */ CSEXTERN CFDictionaryRef __nullable ColorSyncDeviceCopyDeviceInfo (CFStringRef deviceClass, CFUUIDRef devID) CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* * Returns a dictionary with the following keys and values resolved for the current host and current user. * * << * kColorSyncDeviceClass {camera, display, printer, scanner} * kColorSyncDeviceID {CFUUIDRef registered with ColorSync} * kColorSyncDeviceDescription {localized device description} * kColorSyncFactoryProfiles (dictionary) << * {ProfileID} (dictionary) << * kColorSyncDeviceProfileURL {CFURLRef or kCFNull} * kColorSyncDeviceModeDescription {localized mode description} * >> * ... * kColorSyncDeviceDefaultProfileID {ProfileID} * >> * kColorSyncCustomProfiles (dictionary) << * {ProfileID} {CFURLRef or kCFNull} * ... * << * kColorSyncDeviceUserScope {kCFPreferencesAnyUser or kCFPreferencesCurrentUser} * kColorSyncDeviceHostScope {kCFPreferencesAnyHost or kCFPreferencesCurrentHost} * >> */ typedef bool (*ColorSyncDeviceProfileIterateCallback) (CFDictionaryRef colorSyncDeviceProfileInfo, void* __nullable userInfo) CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* * colorSyncDeviceProfileInfo contains the following keys: * << * kColorSyncDeviceClass {camera, display, printer, scanner} * kColorSyncDeviceID {CFUUIDRef registered with ColorSync} * kColorSyncDeviceDescription {localized device description} * kColorSyncDeviceModeDescription {localized device mode description} * kColorSyncDeviceProfileID {ProfileID registered with ColorSync} * kColorSyncDeviceProfileURL {CFURLRef registered with ColorSync} * kColorSyncDeviceProfileIsFactory {kCFBooleanTrue or kCFBooleanFalse} * kColorSyncDeviceProfileIsDefault {kCFBooleanTrue or kCFBooleanFalse} * kColorSyncDeviceProfileIsCurrent {kCFBooleanTrue or kCFBooleanFalse} * >> */ CSEXTERN void ColorSyncIterateDeviceProfiles(ColorSyncDeviceProfileIterateCallback callBack, void* __nullable userInfo) CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; CSEXTERN CFUUIDRef CGDisplayCreateUUIDFromDisplayID (uint32_t displayID) CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* * A utility function converting displayID to CFUUIDRef */ CSEXTERN uint32_t CGDisplayGetDisplayIDFromUUID (CFUUIDRef uuid) CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* * A utility function converting first 32 bits of CFUUIDRef to displayID */ CF_ASSUME_NONNULL_END CF_IMPLICIT_BRIDGING_DISABLED #ifdef __cplusplus } #endif #else /* #if !defined(__swift__) */ #ifdef __cplusplus extern "C" { #endif #include <ColorSync/ColorSyncProfile.h> CSEXTERN CFStringRef kColorSyncDeviceID; /* CFUUIDRef */ CSEXTERN CFStringRef kColorSyncDeviceClass; /* one of the below : */ CSEXTERN CFStringRef kColorSyncCameraDeviceClass; /* cmra */ CSEXTERN CFStringRef kColorSyncDisplayDeviceClass; /* mntr */ CSEXTERN CFStringRef kColorSyncPrinterDeviceClass; /* prtr */ CSEXTERN CFStringRef kColorSyncScannerDeviceClass; /* scnr */ CSEXTERN CFStringRef kColorSyncDeviceProfileURL; CSEXTERN CFStringRef kColorSyncDeviceDescription; /* CFString with a name in current locale */ CSEXTERN CFStringRef kColorSyncDeviceDescriptions; /* CFDictionary with localized names */ CSEXTERN CFStringRef kColorSyncFactoryProfiles; /* CFDictionary containing factory profile info */ CSEXTERN CFStringRef kColorSyncCustomProfiles; /* CFDictionary containing custom profile info */ CSEXTERN CFStringRef kColorSyncDeviceModeDescription; /* CFString, e.g. Glossy, Best Quality */ CSEXTERN CFStringRef kColorSyncDeviceModeDescriptions; /* CFDictionary with localized mode names */ CSEXTERN CFStringRef kColorSyncDeviceDefaultProfileID; /* see below */ CSEXTERN CFStringRef kColorSyncDeviceHostScope; /* currently only kCFPreferencesCurrentHost is supported */ CSEXTERN CFStringRef kColorSyncDeviceUserScope; /* kCFPreferences{Current,Any}User */ CSEXTERN CFStringRef kColorSyncProfileHostScope; /* currently only kCFPreferencesCurrentHost is supported */ CSEXTERN CFStringRef kColorSyncProfileUserScope; /* kCFPreferences{Current,Any}User */ CSEXTERN CFStringRef kColorSyncDeviceProfileIsFactory; /* Present in ColorSyncDeviceProfileInfo dictionary.*/ /* See ColorSyncDeviceProfileIterateCallback below. */ CSEXTERN CFStringRef kColorSyncDeviceProfileIsDefault; /* ditto */ CSEXTERN CFStringRef kColorSyncDeviceProfileIsCurrent; /* ditto */ CSEXTERN CFStringRef kColorSyncDeviceProfileID; /* ditto */ CSEXTERN CFStringRef kColorSyncDeviceRegisteredNotification; /* com.apple.ColorSync.DeviceRegisteredNotification */ CSEXTERN CFStringRef kColorSyncDeviceUnregisteredNotification; /* com.apple.ColorSync.DeviceUnregisteredNotification */ CSEXTERN CFStringRef kColorSyncDeviceProfilesNotification; /* com.apple.ColorSync.DeviceProfilesNotification */ CSEXTERN CFStringRef kColorSyncDisplayDeviceProfilesNotification; /* com.apple.ColorSync.DisplayProfileNotification */ CSEXTERN CFStringRef kColorSyncProfileRepositoryChangeNotification; /* com.apple.ColorSync.ProfileRepositoryChangeNotification */ CSEXTERN CFStringRef kColorSyncRegistrationUpdateWindowServer; /* com.apple.ColorSync.kColorSyncRegistrationUpdateWindowServer */ CSEXTERN bool ColorSyncRegisterDevice (CFStringRef deviceClass, CFUUIDRef deviceID, CFDictionaryRef deviceInfo); /* * deviceInfo -a dictionary containing information needed to register a device. * ---------------------------------------------------------------------------- * * Required keys: * ============== * kColorSyncDeviceDescriptions: CFDictionary with localized names of the device. * Localization keys must be five character strings * containing language code and region code in the * lc_RG format and it must contain (at least) the "en_US" locale. * kColorSyncFactoryProfiles : CFDictionary with factory profile info CFDictionaries * The keys are the profile IDs and the values * are the profile info dictionaries. * Optional keys: * ============== * kColorSyncDeviceHostScope : host scope of the device; * one of kCFPreferences{Current,Any}Host; * if unspecified kCFPreferencesCurrentHost is * assumed. * kColorSyncDeviceUserScope : user scope of the device; * one of kCFPreferences{Current,Any}User; * if unspecified kCFPreferencesCurrentUser is * assumed. * * factory profiles dictionary - value for the key kColorSyncFactoryProfiles in deviceInfo * ------------------------------------------------------------------------------------- * Required keys and values: * ======================== * Each profile is identified by a ProfileID (of CFStringRef type) which used as the key. * Value associated with the key is a profile info dictionary * that describes an individual device profile. * * kColorSyncDeviceDefaultProfileID: the associated value must be one of the ProfileID * present in the dictionary. Presence of this * key is not required if there is only one factory profile. * * profile info CFDictionary * -------------------------------- * Required keys: * ============== * kColorSyncDeviceProfileURL :CFURLRef of the profile to be registered * kColorSyncDeviceModeDescriptions:CFDictionary with localized device mode * names for the profile. Localization keys * must be five character strings containing * language code and region code in the lc_RG * format and it must contain (at least) the * "en_US" locale. * E.g. "en_US" "Glossy Paper with best quality" * * Example of deviceInfo dictionary: * * << * kColorSyncDeviceDescriptions << * en_US My Little Printer * de_DE Mein Kleiner Drucker * fr_FR Mon petit immprimeur * ... * >> * kColorSyncFactoryProfiles << * CFSTR("Profile 1") << * kColorSyncDeviceProfileURL {CFURLRef} * * kColorSyncDeviceModeDescriptions << * en_US Glossy Paper * de_DE Glanzpapier * fr_FR Papier glace * ... * >> * ... * * kColorSyncDeviceDefaultProfileID CFSTR("Profile 1") * >> * kColorSyncDeviceUserScope kCFPreferencesAnyUser * * kColorSyncDeviceHostScope kCFPreferencesCurrentHost * << * * Notes: 1. Scope for factory profiles is exactly the same as the device scope. * 2. Pass kCFNull in lieu of the profile URL or no URl key/value pair at all if * factory profile is not available. This will enable setting custom profile. * 3. For the reasons of compatibility with legacy API, it is recommended that the * profile keys are created as CFStrings from uint32_t numbers as follows: * CFStringRef key = CFStringCreateWithFormat(NULL, NULL, CFSTR("%u"), (uint32_t) i); * * returns true on success and false in case of failure */ CSEXTERN bool ColorSyncUnregisterDevice (CFStringRef deviceClass, CFUUIDRef deviceID); /* * Unregister a device of given deviceClass and deviceID. * * returns true on success and false in case of failure */ CSEXTERN bool ColorSyncDeviceSetCustomProfiles (CFStringRef deviceClass, CFUUIDRef deviceID, CFDictionaryRef profileInfo); /* * profileInfo is a CFDictionary containing the information about * custom profiles to be set in lieu of factory profiles. * Required keys: * ============== * ProfileIDs which must be the subset of the ProfileIDs that device was registered with * or kColorSyncDeviceDefaultProfileID for setting custom default profile. * * Required values: * ============== * CFURLRef of the profile to be set as a custom profile. * * Optional keys: * ============== * kColorSyncProfileHostScope : host scope of the profile; * one of kCFPreferences{Current,Any}Host; * if unspecified kCFPreferencesCurrentHost * is assumed. * kColorSyncProfileUserScope : user scope of the profile; * one of kCFPreferences{Current,Any}User; * if unspecified kCFPreferencesCurrentUser * is assumed. * * * Notes: 1. Profile scope for custom profiles cannot exceed scope of the factory profiles. * 2. There is only one host scope and user scope per dictionary (i.e. per call) * 3. Pass kCFNull in lieu of the profile URL to unset the custom profile and * reset the current profile to the factory profile. * * returns true on success and false in case of failure */ CSEXTERN CFDictionaryRef ColorSyncDeviceCopyDeviceInfo (CFStringRef deviceClass, CFUUIDRef devID); /* * Returns a dictionary with the following keys and values resolved for the current host and current user. * * << * kColorSyncDeviceClass {camera, display, printer, scanner} * kColorSyncDeviceID {CFUUIDRef registered with ColorSync} * kColorSyncDeviceDescription {localized device description} * kColorSyncFactoryProfiles (dictionary) << * {ProfileID} (dictionary) << * kColorSyncDeviceProfileURL {CFURLRef or kCFNull} * kColorSyncDeviceModeDescription {localized mode description} * >> * ... * kColorSyncDeviceDefaultProfileID {ProfileID} * >> * kColorSyncCustomProfiles (dictionary) << * {ProfileID} {CFURLRef or kCFNull} * ... * << * kColorSyncDeviceUserScope {kCFPreferencesAnyUser or kCFPreferencesCurrentUser} * kColorSyncDeviceHostScope {kCFPreferencesAnyHost or kCFPreferencesCurrentHost} * >> */ typedef bool (*ColorSyncDeviceProfileIterateCallback) (CFDictionaryRef colorSyncDeviceProfileInfo, void* userInfo); /* * colorSyncDeviceProfileInfo contains the following keys: * << * kColorSyncDeviceClass {camera, display, printer, scanner} * kColorSyncDeviceID {CFUUIDRef registered with ColorSync} * kColorSyncDeviceDescription {localized device description} * kColorSyncDeviceModeDescription {localized device mode description} * kColorSyncDeviceProfileID {ProfileID registered with ColorSync} * kColorSyncDeviceProfileURL {CFURLRef registered with ColorSync} * kColorSyncDeviceProfileIsFactory {kCFBooleanTrue or kCFBooleanFalse} * kColorSyncDeviceProfileIsDefault {kCFBooleanTrue or kCFBooleanFalse} * kColorSyncDeviceProfileIsCurrent {kCFBooleanTrue or kCFBooleanFalse} * >> */ CSEXTERN void ColorSyncIterateDeviceProfiles(ColorSyncDeviceProfileIterateCallback callBack, void* userInfo); CSEXTERN CFUUIDRef CGDisplayCreateUUIDFromDisplayID (uint32_t displayID); /* * A utility function converting displayID to CFUUIDRef */ CSEXTERN uint32_t CGDisplayGetDisplayIDFromUUID (CFUUIDRef uuid); /* * A utility function converting first 32 bits of CFUUIDRef to displayID */ #ifdef __cplusplus } #endif #endif /* #if !defined(__swift__) */ #endif /* __COLORSYNCDEVICE__ */
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/ColorSync.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h
/* * ColorSync - ColorSyncBase.h * Copyright (c) 2008 Apple Inc. * All rights reserved. */ #ifndef __COLORSYNCBASE__ #define __COLORSYNCBASE__ #if !defined(__swift__) #include <CoreFoundation/CoreFoundation.h> #include <CoreFoundation/CFBase.h> #include <CoreFoundation/CFAvailability.h> #include <os/availability.h> #include <stdint.h> #include <TargetConditionals.h> #ifdef __cplusplus extern "C" { #endif #if !defined(__CS_HAS_COMPILER_ATTRIBUTE) #if defined(__has_attribute) #define __CS_HAS_COMPILER_ATTRIBUTE(attribute) __has_attribute(attribute) #elif defined(__GNUC__) && __GNUC__ >= 4 #define __CS_HAS_COMPILER_ATTRIBUTE(attribute) (1) #else #define __CS_HAS_COMPILER_ATTRIBUTE(attribute) (0) #endif #endif #if !defined(CSEXTERN) #if defined(_MSC_VER) #if defined(CG_BUILDING_CG) #define CSEXTERN __declspec(dllexport) extern #else #define CSEXTERN __declspec(dllimport) extern #endif #else #define CSEXTERN __attribute__((visibility("default"))) extern #endif #endif #if !defined(CSEXPORT) #if defined(_MSC_VER) #if defined(CG_BUILDING_CG) #define CSEXPORT __declspec(dllexport) #else #define CSEXPORT __declspec(dllimport) #endif #else #define CSEXPORT __attribute__((visibility("default"))) #endif #endif #if !defined(CSLOCAL) #if __CS_HAS_COMPILER_ATTRIBUTE(visibility) #if defined(__cplusplus) #define CSLOCAL extern "C" __attribute__((visibility("hidden"))) #else #define CSLOCAL extern __attribute__((visibility("hidden"))) #endif #else #define CSLOCAL CSEXTERN #endif #endif /* !defined(CSLOCAL) */ #if !defined(CSEXTERN_DESKTOP) #if TARGET_OS_OSX #define CSEXTERN_DESKTOP CSEXTERN #else #define CSEXTERN_DESKTOP CSLOCAL #endif #endif #ifdef __cplusplus } #endif #define GET_CS_AVAIL_MACRO(_1,_2,NAME,...) NAME #define CS_AVAILABLE_STARTING(...) GET_CS_AVAIL_MACRO(__VA_ARGS__, CS_AVAILABLE_STARTING2, CS_AVAILABLE_STARTING1)(__VA_ARGS__) #define CS_AVAILABLE_STARTING_IOS(i) API_AVAILABLE(ios(i)) #define CS_AVAILABLE_STARTING1(m) API_AVAILABLE(macos(m)) #define CS_AVAILABLE_STARTING2(m,i) API_AVAILABLE(macos(m), ios(i)) #define GET_CS_AVAIL_BUT_DEPR_MACRO(_1,_2,_3,_4,_5,NAME,...) NAME #define CS_AVAILABLE_BUT_DEPRECATED(...) GET_CS_AVAIL_BUT_DEPR_MACRO(__VA_ARGS__, CS_AVAILABLE_BUT_DEPRECATED5, CS_AVAILABLE_BUT_DEPRECATED4, CS_AVAILABLE_BUT_DEPRECATED3, CS_AVAILABLE_BUT_DEPRECATED2, CS_AVAILABLE_BUT_DEPRECATED1)(__VA_ARGS__) #define CS_AVAILABLE_BUT_DEPRECATED1(m0) #define CS_AVAILABLE_BUT_DEPRECATED2(m0,m1) API_DEPRECATED("No longer supported", macos(m0,m1)) #define CS_AVAILABLE_BUT_DEPRECATED3(m0,m1,w) API_DEPRECATED(w, macos(m0,m1)) #define CS_AVAILABLE_BUT_DEPRECATED4(m0,m1,i0,i1) API_DEPRECATED("No longer supported", macos(m0,m1), ios(i0,i1)) #define CS_AVAILABLE_BUT_DEPRECATED5(m0,m1,i0,i1,w) API_DEPRECATED(w, macos(m0,m1), ios(i0,i1)) #define CS_UNAVAILABLE_DESKTOP API_UNAVAILABLE(macos) #define CS_UNAVAILABLE_EMBEDDED API_UNAVAILABLE(ios, tvos, watchos, macCatalyst) #define CS_UNAVAILABLE_PUBLIC_EMBEDDED CS_UNAVAILABLE_EMBEDDED #define CS_AVAILABLE_PUBLIC_STARTING(_1,_2) CS_AVAILABLE_STARTING(_1) CS_UNAVAILABLE_EMBEDDED #define CS_AVAILABLE_PUBLIC_DESKTOP(_1) CS_AVAILABLE_STARTING(_1) CS_UNAVAILABLE_EMBEDDED #else /* #if !defined(__swift__) */ #include <CoreFoundation/CoreFoundation.h> #include <CoreFoundation/CFBase.h> #include <CoreFoundation/CFAvailability.h> #include <stdint.h> #ifdef __cplusplus extern "C" { #endif #if !defined(__CS_HAS_COMPILER_ATTRIBUTE) #if defined(__has_attribute) #define __CS_HAS_COMPILER_ATTRIBUTE(attribute) __has_attribute(attribute) #elif defined(__GNUC__) && __GNUC__ >= 4 #define __CS_HAS_COMPILER_ATTRIBUTE(attribute) (1) #else #define __CS_HAS_COMPILER_ATTRIBUTE(attribute) (0) #endif #endif #if !defined(CSEXTERN) #if defined(_MSC_VER) #if defined(CG_BUILDING_CG) #define CSEXTERN __declspec(dllexport) extern #else #define CSEXTERN __declspec(dllimport) extern #endif #else #define CSEXTERN __attribute__((visibility("default"))) extern #endif #endif #if !defined(CSEXPORT) #if defined(_MSC_VER) #if defined(CG_BUILDING_CG) #define CSEXPORT __declspec(dllexport) #else #define CSEXPORT __declspec(dllimport) #endif #else #define CSEXPORT __attribute__((visibility("default"))) #endif #endif #if !defined(CSLOCAL) #if __CS_HAS_COMPILER_ATTRIBUTE(visibility) #if defined(__cplusplus) #define CSLOCAL extern "C" __attribute__((visibility("hidden"))) #else #define CSLOCAL extern __attribute__((visibility("hidden"))) #endif #else #define CSLOCAL CSEXTERN #endif #endif /* !defined(CSLOCAL) */ #ifdef __cplusplus } #endif #endif /* #if !defined(__swift__) */ #endif /* __COLORSYNCBASE__ */
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/ColorSync.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/ColorSync.framework/Headers/ColorSyncTransform.h
/* * ColorSync - ColorSyncTransform.h * Copyright (c) 2008 Apple Inc. * All rights reserved. */ #ifndef __COLORSYNCTRANSFORM__ #define __COLORSYNCTRANSFORM__ #if !defined(__swift__) #ifdef __cplusplus extern "C" { #endif #include <ColorSync/ColorSyncBase.h> typedef struct CF_BRIDGED_TYPE(id) ColorSyncTransform* ColorSyncTransformRef; CF_IMPLICIT_BRIDGING_ENABLED CF_ASSUME_NONNULL_BEGIN CSEXTERN CFTypeID ColorSyncTransformGetTypeID(void) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * returns the CFTypeID for ColorSyncTransforms. */ CSEXTERN ColorSyncTransformRef __nullable ColorSyncTransformCreate (CFArrayRef __nullable profileSequence, CFDictionaryRef __nullable options) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * profileSequence - array of dictionaries, each one containing a profile object and the * information on the usage of the profile in the transform. * * Required keys: * ============== * kColorSyncProfile : ColorSyncProfileRef * kColorSyncRenderingIntent : CFStringRef defining rendering intent * kColorSyncTransformTag : CFStringRef defining which tags to use * Optional key: * ============= * kColorSyncBlackPointCompensation : CFBooleanRef to enable/disable BPC * * options - dictionary with additional public global options (e.g. preferred CMM, quality, * etc... It can also contain custom options that are CMM specific. * * returns ColorSyncTransformRef or NULL in case of failure */ CSEXTERN CFTypeRef __nullable ColorSyncTransformCopyProperty(ColorSyncTransformRef transform, CFTypeRef key, CFDictionaryRef __nullable options) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * transform - transform from which to copy the property * key - CFTypeRef to be used as a key to identify the property */ CSEXTERN void ColorSyncTransformSetProperty(ColorSyncTransformRef transform, CFTypeRef key, __nullable CFTypeRef property) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * transform - transform in which to set the property * key - CFTypeRef to be used as a key to identify the property * property - CFTypeRef to be set as the property */ CSEXTERN CFArrayRef __nullable ColorSyncTransformGetProfileSequence(ColorSyncTransformRef transform) CS_AVAILABLE_PUBLIC_STARTING(11.0, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * transform - transform from which to get the profile sequnce used to create the transform */ enum ColorSyncDataDepth { kColorSync1BitGamut = 1, kColorSync8BitInteger = 2, kColorSync16BitInteger = 3, kColorSync16BitFloat = 4, kColorSync32BitInteger = 5, kColorSync32BitNamedColorIndex = 6, kColorSync32BitFloat = 7, kColorSync10BitInteger = 8 }; typedef enum ColorSyncDataDepth ColorSyncDataDepth; enum ColorSyncAlphaInfo { kColorSyncAlphaNone, /* For example, RGB. */ kColorSyncAlphaPremultipliedLast, /* For example, premultiplied RGBA */ kColorSyncAlphaPremultipliedFirst, /* For example, premultiplied ARGB */ kColorSyncAlphaLast, /* For example, non-premultiplied RGBA */ kColorSyncAlphaFirst, /* For example, non-premultiplied ARGB */ kColorSyncAlphaNoneSkipLast, /* For example, RBGX. */ kColorSyncAlphaNoneSkipFirst, /* For example, XRGB. */ }; typedef enum ColorSyncAlphaInfo ColorSyncAlphaInfo; enum { kColorSyncAlphaInfoMask = 0x1F, kColorSyncByteOrderMask = 0x7000, kColorSyncByteOrderDefault = (0 << 12), kColorSyncByteOrder16Little = (1 << 12), kColorSyncByteOrder32Little = (2 << 12), kColorSyncByteOrder16Big = (3 << 12), kColorSyncByteOrder32Big = (4 << 12) }; typedef uint32_t ColorSyncDataLayout; CSEXTERN bool ColorSyncTransformConvert (ColorSyncTransformRef transform, size_t width, size_t height, void* dst, ColorSyncDataDepth dstDepth, ColorSyncDataLayout dstLayout, size_t dstBytesPerRow, const void* src, ColorSyncDataDepth srcDepth, ColorSyncDataLayout srcLayout, size_t srcBytesPerRow, __nullable CFDictionaryRef options) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * transform - transform to be used for converting color * width - width of the image in pixels * height - height of the image in pixels * dst - a pointer to the destination where the results will be written. * dstDepth - describes the bit depth and type of the destination color components * dstFormat - describes the format and byte packing of the destination pixels * dstBytesPerRow - number of bytes in the row of data * src - a pointer to the data to be converted. * srcDepth - describes the bit depth and type of the source color components * srcFormat - describes the format and byte packing of the source pixels * srcBytesPerRow - number of bytes in the row of data * * returns true if conversion was successful or false otherwise */ /* This function is deprecated for performance reasons. Color conversions are computationally intensive * and the recommended way to perform these is by using the vImage Converter with ColorSync Code Fragment. * vImage employs vectorized code which is not only faster but also more battery efficient. * Please visit the following link to see a sample application of vImage used in conjunction with ColorSync. * <https://developer.apple.com/library/prerelease/content/samplecode/convertImage/Listings/convertImage_main_c.html> * More details regarding ColorSync Code Fragments are included below, as well. */ /* Keys and values for profile specific info and options */ CSEXTERN CFStringRef kColorSyncProfile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); CSEXTERN CFStringRef kColorSyncRenderingIntent CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* Legal values for kColorSyncRenderingIntent */ CSEXTERN CFStringRef kColorSyncRenderingIntentPerceptual CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); CSEXTERN CFStringRef kColorSyncRenderingIntentRelative CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); CSEXTERN CFStringRef kColorSyncRenderingIntentSaturation CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); CSEXTERN CFStringRef kColorSyncRenderingIntentAbsolute CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); CSEXTERN CFStringRef kColorSyncRenderingIntentUseProfileHeader CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); CSEXTERN CFStringRef kColorSyncTransformTag CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* Legal values for kColorSyncTransformTag */ CSEXTERN CFStringRef kColorSyncTransformDeviceToPCS CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); CSEXTERN CFStringRef kColorSyncTransformPCSToPCS CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); CSEXTERN CFStringRef kColorSyncTransformPCSToDevice CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); CSEXTERN CFStringRef kColorSyncTransformDeviceToDevice CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); CSEXTERN CFStringRef kColorSyncTransformGamutCheck CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); CSEXTERN CFStringRef kColorSyncBlackPointCompensation CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); CSEXTERN CFStringRef kColorSyncExtendedRange CS_AVAILABLE_PUBLIC_STARTING(11.0, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* Global transform options */ CSEXTERN CFStringRef kColorSyncPreferredCMM CS_AVAILABLE_STARTING(10.4) CS_UNAVAILABLE_EMBEDDED; /* ColorSyncCMMRef of the preferred CMM */ CSEXTERN CFStringRef kColorSyncConvertQuality CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* Legal values for kColorSyncConvertQuality */ CSEXTERN CFStringRef kColorSyncBestQuality CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* do not coalesce profile transforms (default) */ CSEXTERN CFStringRef kColorSyncNormalQuality CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* coalesce all transforms */ CSEXTERN CFStringRef kColorSyncDraftQuality CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* coalesce all transforms, do not interpolate */ /* Conversion options */ CSEXTERN CFStringRef kColorSyncConvertUseExtendedRange CS_AVAILABLE_PUBLIC_STARTING(11.0, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* allow float data to exceed [0.0 .. 1.0] range */ /* Public keys for copying transform properties */ CSEXTERN CFStringRef kColorSyncTransformInfo CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* dictionary with the following keys */ CSEXTERN CFStringRef kColorSyncTransformCreator CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* name of the CMM that created the transform */ CSEXTERN CFStringRef kColorSyncTransformSrcSpace CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); CSEXTERN CFStringRef kColorSyncTransformDstSpace CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * ============================= * * Code Fragment Support * * ============================= * * ColorSync can return parameters for standard components of color conversion, * i.e. tone rendering curves (TRCs), 3x4 matrices (3x3 + 3x1), multi-dimensional * interpolation tables and Black Point Compensation. * The parameters are wrapped in CFArray or CFData objects specific to the * component type and placed in a CFDictionary under a key that identifies the * type of the component. The complete code fragment is a CFArray of component * dictionaries that are placed in the in the order they have to be executed. * * A code fragment is created by calling ColorSyncTransformCopyProperty with the key * specifying the type of the code fragment to be created. NULL pointer will be * returnde if the requested code fragment cannot be created. */ /* * Types of Code Fragments: * * 1. Full conversion: all non-NULL components based on all the tags from the * sequence of profiles passed to create the ColorSyncTransform with * an exception of adjacent matrices that can be collapsed to * one matrix. * 2. Parametric: same as above, except that the returned code fragment consists * only of parametric curves, matrices and BPC components. * 3. Simplified: Full conversion is collapsed to one * multi-dimensional table with N inputs and M outputs. */ CSEXTERN CFStringRef kColorSyncTransformCodeFragmentType CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* CFSTR("com.apple.cmm.CodeFragmentType") */ CSEXTERN CFStringRef kColorSyncTransformCodeFragmentMD5 CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* CFSTR("com.apple.cmm.CodeFragmentMD5") */ CSEXTERN CFStringRef kColorSyncTransformFullConversionData CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* CFSTR("com.apple.cmm.FullConversion") */ CSEXTERN CFStringRef kColorSyncTransformSimplifiedConversionData CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* CFSTR("com.apple.cmm.SimplifiedConversion") */ CSEXTERN CFStringRef kColorSyncTransformParametricConversionData CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* CFSTR("com.apple.cmm.ParametricConversion") */ CSEXTERN CFStringRef kColorSyncTransformProfileSequnce CS_AVAILABLE_PUBLIC_STARTING(11.0, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* CFSTR("com.apple.cmm.ProfileSequnce") */ /* * Matrix: represented as a CFArray of three CFArrays of four CFNumbers (Float32) * each, performin the following matrix operation * y[3] = 3x3 matrix *x[3] + 3x1 vector (last column) */ CSEXTERN CFStringRef kColorSyncConversionMatrix CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* CFSTR("com.apple.cmm.Matrix") */ /* * Tone Rendering Curves: * * 1. Parametric curves: represented as a CFArray of seven CFNumbers (Float32) * [gamma a b c d e f] * Curve Type 0 Y = X^gamma * Curve Type 1 Y = (aX+b)^gamma [X >= -b/a], Y = 0 [X < -b/a] * Curve Type 2 Y = (aX+b)^gamma + c [X >= -b/a], Y = c [X < -b/a] * Curve Type 3 Y = (aX+b)^gamma [X >= d], Y = cX [X < d] * Curve Type 4 Y = (aX+b)^gamma + e [X >= d], Y = cX + f [X < d] * * 2. 1-dimensional lookup with interpolation: * represented as CFData containing a Float32 table[gridPoints] */ CSEXTERN CFStringRef kColorSyncConversionParamCurve0 CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* CFSTR("com.apple.cmm.ParamCurve0") */ CSEXTERN CFStringRef kColorSyncConversionParamCurve1 CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* CFSTR("com.apple.cmm.ParamCurve1") */ CSEXTERN CFStringRef kColorSyncConversionParamCurve2 CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* CFSTR("com.apple.cmm.ParamCurve2") */ CSEXTERN CFStringRef kColorSyncConversionParamCurve3 CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* CFSTR("com.apple.cmm.ParamCurve3") */ CSEXTERN CFStringRef kColorSyncConversionParamCurve4 CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* CFSTR("com.apple.cmm.ParamCurve4") */ CSEXTERN CFStringRef kColorSyncConversion1DLut CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* CFSTR("com.apple.cmm.1D-LUT") */ CSEXTERN CFStringRef kColorSyncConversionGridPoints CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* CFSTR("com.apple.cmm.GridPointCount") */ CSEXTERN CFStringRef kColorSyncConversionChannelID CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* CFSTR("com.apple.cmm.ChannelID") */ /* * Multi-dimensional lookup with interpolation: * * represented as CFData containing a table for N inputs, M outputs * and P gridPoints in each direction. The dimension corresponding to the * first input channel varies least rapidly, and the dimension corresponding * to the last input channel varies most rapidly. Each grid point value contains * M uint16_t numbers, one for each of output channels (M is the number of outputs). */ CSEXTERN CFStringRef kColorSyncConversion3DLut CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* CFSTR("com.apple.cmm.3D-LUT") */ CSEXTERN CFStringRef kColorSyncConversionNDLut CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* CFSTR("com.apple.cmm.ND-LUT") */ CSEXTERN CFStringRef kColorSyncConversionInpChan CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* CFSTR("com.apple.cmm.InputChannels") */ CSEXTERN CFStringRef kColorSyncConversionOutChan CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* CFSTR("com.apple.cmm.OutputChannels") */ /* * Black Point Compensation: represented as an CFArray of CFNumbers (Float32) * * 1. Scaling in Luminance: CFArray containing two numbers. * 2. Scaling in XYZ: CFArray containing six numbers. */ CSEXTERN CFStringRef kColorSyncConversionBPC CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* CFSTR("com.apple.cmm.BPC") */ CSEXTERN CFStringRef kColorSyncFixedPointRange CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* CFSTR("com.apple.cmm.FixedPointRange") */ CSEXTERN CFTypeRef ColorSyncCreateCodeFragment(CFArrayRef profileSequence, CFDictionaryRef options) CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED); /* * profileSequence - array of dictionaries, each one containing a profile object and the * information on the usage of the profile in the code fragment. * * Required keys: * ============== * kColorSyncProfile : ColorSyncProfileRef * kColorSyncRenderingIntent : CFStringRef defining rendering intent * kColorSyncTransformTag : CFStringRef defining which tags to use * Optional key: * ============= * kColorSyncBlackPointCompensation : CFBooleanRef to enable/disable BPC * kColorSyncExtendedRange : CFBooleanRef to enable/disable extended range; disabling implies floating point conversions * * options - dictionary with additional options as in case of creating ColorSyncTransform * * returns CFTypeRef representing ColorSyncCodeFragment or NULL in case of failure */ CF_ASSUME_NONNULL_END CF_IMPLICIT_BRIDGING_DISABLED #ifdef __cplusplus } #endif #else /* #if !defined(__swift__) */ #ifdef __cplusplus extern "C" { #endif #include <ColorSync/ColorSyncBase.h> typedef struct CF_BRIDGED_TYPE(id) ColorSyncTransform* ColorSyncTransformRef; CSEXTERN CFTypeID ColorSyncTransformGetTypeID(void); /* * returns the CFTypeID for ColorSyncTransforms. */ CSEXTERN ColorSyncTransformRef ColorSyncTransformCreate (CFArrayRef profileSequence, CFDictionaryRef options); /* * profileSequence - array of dictionaries, each one containing a profile object and the * information on the usage of the profile in the transform. * * Required keys: * ============== * kColorSyncProfile : ColorSyncProfileRef * kColorSyncRenderingIntent : CFStringRef defining rendering intent * kColorSyncTransformTag : CFStringRef defining which tags to use * Optional key: * ============= * kColorSyncBlackPointCompensation : CFBooleanRef to enable/disable BPC * kColorSyncExtendedRange : CFBooleanRef to enable/disable extended range; disabling implies floating point conversions * * options - dictionary with additional public global options (e.g. preferred CMM, quality, * etc... It can also contain custom options that are CMM specific. * * returns ColorSyncTransformRef or NULL in case of failure */ CSEXTERN CFTypeRef ColorSyncTransformCopyProperty(ColorSyncTransformRef transform, CFTypeRef key, CFDictionaryRef options); /* * transform - transform from which to copy the property * key - CFTypeRef to be used as a key to identify the property */ CSEXTERN void ColorSyncTransformSetProperty(ColorSyncTransformRef transform, CFTypeRef key, CFTypeRef property); /* * transform - transform in which to set the property * key - CFTypeRef to be used as a key to identify the property * property - CFTypeRef to be set as the property */ CSEXTERN CFArrayRef ColorSyncTransformGetProfileSequence(ColorSyncTransformRef transform); /* * transform - transform from which to get the profile sequnce used to create the transform */ enum ColorSyncDataDepth { kColorSync1BitGamut = 1, kColorSync8BitInteger = 2, kColorSync16BitInteger = 3, kColorSync16BitFloat = 4, kColorSync32BitInteger = 5, kColorSync32BitNamedColorIndex = 6, kColorSync32BitFloat = 7, kColorSync10BitInteger = 8 }; typedef enum ColorSyncDataDepth ColorSyncDataDepth; enum ColorSyncAlphaInfo { kColorSyncAlphaNone, /* For example, RGB. */ kColorSyncAlphaPremultipliedLast, /* For example, premultiplied RGBA */ kColorSyncAlphaPremultipliedFirst, /* For example, premultiplied ARGB */ kColorSyncAlphaLast, /* For example, non-premultiplied RGBA */ kColorSyncAlphaFirst, /* For example, non-premultiplied ARGB */ kColorSyncAlphaNoneSkipLast, /* For example, RBGX. */ kColorSyncAlphaNoneSkipFirst, /* For example, XRGB. */ }; typedef enum ColorSyncAlphaInfo ColorSyncAlphaInfo; enum { kColorSyncAlphaInfoMask = 0x1F, kColorSyncByteOrderMask = 0x7000, kColorSyncByteOrderDefault = (0 << 12), kColorSyncByteOrder16Little = (1 << 12), kColorSyncByteOrder32Little = (2 << 12), kColorSyncByteOrder16Big = (3 << 12), kColorSyncByteOrder32Big = (4 << 12) }; typedef uint32_t ColorSyncDataLayout; CSEXTERN bool ColorSyncTransformConvert (ColorSyncTransformRef transform, size_t width, size_t height, void* dst, ColorSyncDataDepth dstDepth, ColorSyncDataLayout dstLayout, size_t dstBytesPerRow, const void* src, ColorSyncDataDepth srcDepth, ColorSyncDataLayout srcLayout, size_t srcBytesPerRow, CFDictionaryRef options); /* * transform - transform to be used for converting color * width - width of the image in pixels * height - height of the image in pixels * dst - a pointer to the destination where the results will be written. * dstDepth - describes the bit depth and type of the destination color components * dstFormat - describes the format and byte packing of the destination pixels * dstBytesPerRow - number of bytes in the row of data * src - a pointer to the data to be converted. * srcDepth - describes the bit depth and type of the source color components * srcFormat - describes the format and byte packing of the source pixels * srcBytesPerRow - number of bytes in the row of data * * returns true if conversion was successful or false otherwise */ /* Keys and values for profile specific info and options */ CSEXTERN CFStringRef kColorSyncProfile; CSEXTERN CFStringRef kColorSyncRenderingIntent; /* Legal values for kColorSyncRenderingIntent */ CSEXTERN CFStringRef kColorSyncRenderingIntentPerceptual; CSEXTERN CFStringRef kColorSyncRenderingIntentRelative; CSEXTERN CFStringRef kColorSyncRenderingIntentSaturation; CSEXTERN CFStringRef kColorSyncRenderingIntentAbsolute; CSEXTERN CFStringRef kColorSyncRenderingIntentUseProfileHeader; CSEXTERN CFStringRef kColorSyncTransformTag; /* Legal values for kColorSyncTransformTag */ CSEXTERN CFStringRef kColorSyncTransformDeviceToPCS; CSEXTERN CFStringRef kColorSyncTransformPCSToPCS; CSEXTERN CFStringRef kColorSyncTransformPCSToDevice; CSEXTERN CFStringRef kColorSyncTransformDeviceToDevice; CSEXTERN CFStringRef kColorSyncTransformGamutCheck; CSEXTERN CFStringRef kColorSyncBlackPointCompensation; CSEXTERN CFStringRef kColorSyncExtendedRange; /* Global transform options */ CSEXTERN CFStringRef kColorSyncPreferredCMM; /* ColorSyncCMMRef of the preferred CMM */ CSEXTERN CFStringRef kColorSyncConvertQuality; /* Legal values for kColorSyncConvertQuality */ CSEXTERN CFStringRef kColorSyncBestQuality; /* do not coalesce profile transforms (default) */ CSEXTERN CFStringRef kColorSyncNormalQuality; /* coalesce all transforms */ CSEXTERN CFStringRef kColorSyncDraftQuality; /* coalesce all transforms, do not interpolate */ /* Conversion options */ CSEXTERN CFStringRef kColorSyncConvertUseExtendedRange; /* allow float data to exceed [0.0 .. 1.0] range */ /* Public keys for copying transform properties */ CSEXTERN CFStringRef kColorSyncTranformInfo; /* dictionary with the following keys */ CSEXTERN CFStringRef kColorSyncTransformCreator; /* name of the CMM that created the transform */ CSEXTERN CFStringRef kColorSyncTransformSrcSpace; CSEXTERN CFStringRef kColorSyncTransformDstSpace; /* * ============================= * * Code Fragment Support * * ============================= * * ColorSync can return parameters for standard components of color conversion, * i.e. tone rendering curves (TRCs), 3x4 matrices (3x3 + 3x1), multi-dimensional * interpolation tables and Black Point Compensation. * The parameters are wrapped in CFArray or CFData objects specific to the * component type and placed in a CFDictionary under a key that identifies the * type of the component. The complete code fragment is a CFArray of component * dictionaries that are placed in the in the order they have to be executed. * * A code fragment is created by calling ColorSyncTransformCopyProperty with the key * specifying the type of the code fragment to be created. NULL pointer will be * returnde if the requested code fragment cannot be created. */ /* * Types of Code Fragments: * * 1. Full conversion: all non-NULL components based on all the tags from the * sequence of profiles passed to create the ColorSyncTransform with * an exception of adjacent matrices that can be collapsed to * one matrix. * 2. Parametric: same as above, except that the returned code fragment consists * only of parametric curves, matrices and BPC components. * 3. Simplified: Full conversion is collapsed to one * multi-dimensional table with N inputs and M outputs. */ CSEXTERN CFStringRef kColorSyncTransformCodeFragmentType; /* CFSTR("com.apple.cmm.CodeFragmentType") */ CSEXTERN CFStringRef kColorSyncTransformCodeFragmentMD5; /* CFSTR("com.apple.cmm.CodeFragmentMD5") */ CSEXTERN CFStringRef kColorSyncTransformFullConversionData; /* CFSTR("com.apple.cmm.FullConversion") */ CSEXTERN CFStringRef kColorSyncTransformSimplifiedConversionData; /* CFSTR("com.apple.cmm.SimplifiedConversion") */ CSEXTERN CFStringRef kColorSyncTransformParametricConversionData; /* CFSTR("com.apple.cmm.ParametricConversion") */ CSEXTERN CFStringRef kColorSyncTransformProfileSequnce; /* CFSTR("com.apple.cmm.ProfileSequnce") */ /* * Matrix: represented as a CFArray of three CFArrays of four CFNumbers (Float32) * each, performin the following matrix operation * y[3] = 3x3 matrix *x[3] + 3x1 vector (last column) */ CSEXTERN CFStringRef kColorSyncConversionMatrix; /* CFSTR("com.apple.cmm.Matrix") */ /* * Tone Rendering Curves: * * 1. Parametric curves: represented as a CFArray of seven CFNumbers (Float32) * [gamma a b c d e f] * Curve Type 0 Y = X^gamma * Curve Type 1 Y = (aX+b)^gamma [X >= -b/a], Y = 0 [X < -b/a] * Curve Type 2 Y = (aX+b)^gamma + c [X >= -b/a], Y = c [X < -b/a] * Curve Type 3 Y = (aX+b)^gamma [X >= d], Y = cX [X < d] * Curve Type 4 Y = (aX+b)^gamma + e [X >= d], Y = cX + f [X < d] * * 2. 1-dimensional lookup with interpolation: * represented as CFData containing a Float32 table[gridPoints] */ CSEXTERN CFStringRef kColorSyncConversionParamCurve0; /* CFSTR("com.apple.cmm.ParamCurve0") */ CSEXTERN CFStringRef kColorSyncConversionParamCurve1; /* CFSTR("com.apple.cmm.ParamCurve1") */ CSEXTERN CFStringRef kColorSyncConversionParamCurve2; /* CFSTR("com.apple.cmm.ParamCurve2") */ CSEXTERN CFStringRef kColorSyncConversionParamCurve3; /* CFSTR("com.apple.cmm.ParamCurve3") */ CSEXTERN CFStringRef kColorSyncConversionParamCurve4; /* CFSTR("com.apple.cmm.ParamCurve4") */ CSEXTERN CFStringRef kColorSyncConversion1DLut; /* CFSTR("com.apple.cmm.1D-LUT") */ CSEXTERN CFStringRef kColorSyncConversionGridPoints; /* CFSTR("com.apple.cmm.GridPointCount") */ CSEXTERN CFStringRef kColorSyncConversionChannelID; /* CFSTR("com.apple.cmm.ChannelID") */ /* * Multi-dimensional lookup with interpolation: * * represented as CFData containing a table for N inputs, M outputs * and P gridPoints in each direction. The dimension corresponding to the * first input channel varies least rapidly, and the dimension corresponding * to the last input channel varies most rapidly. Each grid point value contains * M uint16_t numbers, one for each of output channels (M is the number of outputs). */ CSEXTERN CFStringRef kColorSyncConversion3DLut; /* CFSTR("com.apple.cmm.3D-LUT") */ CSEXTERN CFStringRef kColorSyncConversionNDLut; /* CFSTR("com.apple.cmm.ND-LUT") */ CSEXTERN CFStringRef kColorSyncConversionInpChan; /* CFSTR("com.apple.cmm.InputChannels") */ CSEXTERN CFStringRef kColorSyncConversionOutChan; /* CFSTR("com.apple.cmm.OutputChannels") */ /* * Black Point Compensation: represented as an CFArray of CFNumbers (Float32) * * 1. Scaling in Luminance: CFArray containing two numbers. * 2. Scaling in XYZ: CFArray containing six numbers. */ CSEXTERN CFStringRef kColorSyncConversionBPC; /* CFSTR("com.apple.cmm.BPC") */ CSEXTERN CFStringRef kColorSyncFixedPointRange; /* CFSTR("com.apple.cmm.FixedPointRange") */ #ifdef __cplusplus } #endif #endif /* #if !defined(__swift__) */ #endif /* __COLORSYNCTRANSFORM__ */
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/ColorSync.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/ColorSync.framework/Headers/ColorSync.h
/* * ColorSync - ColorSync.h * Copyright (c) 2008 Apple Inc. * All rights reserved. */ #ifndef __COLORSYNC_MAIN_HEADER__ #define __COLORSYNC_MAIN_HEADER__ #include <ColorSync/ColorSyncBase.h> #include <ColorSync/ColorSyncProfile.h> #include <ColorSync/ColorSyncTransform.h> #include <ColorSync/ColorSyncCMM.h> #include <ColorSync/ColorSyncDevice.h> #endif /* __COLORSYNC_MAIN_HEADER__ */
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/ColorSync.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/ColorSync.framework/Modules/module.modulemap
framework module ColorSync [extern_c] [system] { umbrella header "ColorSync.h" export * module * { export * } }
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/AppKit.tbd
--- !tapi-tbd tbd-version: 4 targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] uuids: - target: x86_64-macos value: 54CC9A88-8B96-3BE5-B360-EC28D543D998 - target: x86_64-maccatalyst value: 54CC9A88-8B96-3BE5-B360-EC28D543D998 - target: arm64-macos value: 00000000-0000-0000-0000-000000000000 - target: arm64-maccatalyst value: 00000000-0000-0000-0000-000000000000 - target: arm64e-macos value: 265EB782-1005-3E66-B44D-B9E8CCD9CCE8 - target: arm64e-maccatalyst value: 265EB782-1005-3E66-B44D-B9E8CCD9CCE8 install-name: '/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit' current-version: 2103.13.10 compatibility-version: 45 exports: - targets: [ x86_64-macos, x86_64-maccatalyst ] symbols: [ '$ld$add$os10.5$_OBJC_CLASS_$_NSFileWrapper', '$ld$add$os10.5$_OBJC_CLASS_$_NSLayoutConstraint', '$ld$add$os10.5$_OBJC_METACLASS_$_NSFileWrapper', '$ld$add$os10.5$_OBJC_METACLASS_$_NSLayoutConstraint', '$ld$add$os10.5$__NSDictionaryOfVariableBindings', '$ld$add$os10.6$_OBJC_CLASS_$_NSFileWrapper', '$ld$add$os10.6$_OBJC_CLASS_$_NSLayoutConstraint', '$ld$add$os10.6$_OBJC_METACLASS_$_NSFileWrapper', '$ld$add$os10.6$_OBJC_METACLASS_$_NSLayoutConstraint', '$ld$add$os10.6$__NSDictionaryOfVariableBindings', '$ld$add$os10.7$_OBJC_CLASS_$_NSLayoutConstraint', '$ld$add$os10.7$_OBJC_METACLASS_$_NSLayoutConstraint', '$ld$add$os10.7$__NSDictionaryOfVariableBindings' ] - targets: [ arm64e-macos, x86_64-macos, x86_64-maccatalyst, arm64e-maccatalyst, arm64-macos, arm64-maccatalyst ] symbols: [ _GDBDumpCursorStack, _IBAppleScriptFramework, _IBCarbonFramework, _IBCocoaFramework, _IBSwingFramework, _NSAbortModalException, _NSAbortPrintingException, _NSAboutPanelOptionApplicationIcon, _NSAboutPanelOptionApplicationName, _NSAboutPanelOptionApplicationVersion, _NSAboutPanelOptionCredits, _NSAboutPanelOptionVersion, _NSAccessibilityActionDescription, _NSAccessibilityActivationPointAttribute, _NSAccessibilityAllObjectsAreAccessibilityElementsAttribute, _NSAccessibilityAllowedValuesAttribute, _NSAccessibilityAlternateUIVisibleAttribute, _NSAccessibilityAnimationOccurred, _NSAccessibilityAnimationTypeDownloadCompleted, _NSAccessibilityAnimationTypeDownloadStarted, _NSAccessibilityAnimationTypeKey, _NSAccessibilityAnimationTypeShake, _NSAccessibilityAnnotationElement, _NSAccessibilityAnnotationLabel, _NSAccessibilityAnnotationLocation, _NSAccessibilityAnnotationTextAttribute, _NSAccessibilityAnnouncementKey, _NSAccessibilityAnnouncementRequestedNotification, _NSAccessibilityApplicationAccentColorAttribute, _NSAccessibilityApplicationActivatedNotification, _NSAccessibilityApplicationDeactivatedNotification, _NSAccessibilityApplicationHiddenNotification, _NSAccessibilityApplicationRole, _NSAccessibilityApplicationShownNotification, _NSAccessibilityAscendingSortDirectionValue, _NSAccessibilityAssistiveTechnologyFocusedElementAttribute, _NSAccessibilityAssistiveTechnologyFullKeyboardAccessIdentifier, _NSAccessibilityAssistiveTechnologyKey, _NSAccessibilityAssistiveTechnologySwitchControlIdentifier, _NSAccessibilityAssistiveTechnologyVoiceOverIdentifier, _NSAccessibilityAttachmentTextAttribute, _NSAccessibilityAttributeValue, _NSAccessibilityAttributedStringForRangeParameterizedAttribute, _NSAccessibilityAttributedUserInputLabelsAttribute, _NSAccessibilityAttributedValueForStringAttributeParameterizedAttribute, _NSAccessibilityAuditIssueBackgroundColorKey, _NSAccessibilityAuditIssueElementKey, _NSAccessibilityAuditIssueElementRectKey, _NSAccessibilityAuditIssueFontSizeKey, _NSAccessibilityAuditIssueForegroundColorKey, _NSAccessibilityAuditIssueIdentifierKey, _NSAccessibilityAuditIssueTypeKey, _NSAccessibilityAuditIssuesAttribute, _NSAccessibilityAutoInteractableAttribute, _NSAccessibilityAutocorrectedTextAttribute, _NSAccessibilityAutocorrectionOccurred, _NSAccessibilityBackgroundColorTextAttribute, _NSAccessibilityBaseClasses, _NSAccessibilityBoundsForRangeParameterizedAttribute, _NSAccessibilityBrowserRole, _NSAccessibilityBusyIndicatorRole, _NSAccessibilityButtonRole, _NSAccessibilityCancelAction, _NSAccessibilityCancelButtonAttribute, _NSAccessibilityCancelDragAction, _NSAccessibilityCellForColumnAndRowParameterizedAttribute, _NSAccessibilityCellRole, _NSAccessibilityCenterTabStopMarkerTypeValue, _NSAccessibilityCentimetersUnitValue, _NSAccessibilityChartDescriptorAttribute, _NSAccessibilityCheckBoxRole, _NSAccessibilityChildrenAttribute, _NSAccessibilityChildrenInNavigationOrderAttribute, _NSAccessibilityClearButtonAttribute, _NSAccessibilityCloseButtonAttribute, _NSAccessibilityCloseButtonSubrole, _NSAccessibilityCollectionListSubrole, _NSAccessibilityColorWellRole, _NSAccessibilityColumnCountAttribute, _NSAccessibilityColumnHeaderUIElementsAttribute, _NSAccessibilityColumnIndexRangeAttribute, _NSAccessibilityColumnRole, _NSAccessibilityColumnTitlesAttribute, _NSAccessibilityColumnsAttribute, _NSAccessibilityComboBoxRole, _NSAccessibilityConfirmAction, _NSAccessibilityContainerTypeAttribute, _NSAccessibilityContainsProtectedContentAttribute, _NSAccessibilityContentIdentifier, _NSAccessibilityContentListSubrole, _NSAccessibilityContentNavigatorIdentifier, _NSAccessibilityContentSiblingAboveAttribute, _NSAccessibilityContentSiblingBelowAttribute, _NSAccessibilityContentsAttribute, _NSAccessibilityCreateAXUIElementRef, _NSAccessibilityCreatedNotification, _NSAccessibilityCriticalValueAttribute, _NSAccessibilityCustomChoosersAttribute, _NSAccessibilityCustomContentAttribute, _NSAccessibilityCustomRotorsAttribute, _NSAccessibilityCustomTextAttribute, _NSAccessibilityDateTimeAreaRole, _NSAccessibilityDateTimeComponentsAttribute, _NSAccessibilityDecimalTabStopMarkerTypeValue, _NSAccessibilityDecrementAction, _NSAccessibilityDecrementArrowSubrole, _NSAccessibilityDecrementButtonAttribute, _NSAccessibilityDecrementPageSubrole, _NSAccessibilityDefaultButtonAttribute, _NSAccessibilityDefinitionListSubrole, _NSAccessibilityDeleteAction, _NSAccessibilityDescendingSortDirectionValue, _NSAccessibilityDescriptionAttribute, _NSAccessibilityDescriptionListSubrole, _NSAccessibilityDialogSubrole, _NSAccessibilityDidEnterVersionBrowser, _NSAccessibilityDidExitVersionBrowser, _NSAccessibilityDisclosedByRowAttribute, _NSAccessibilityDisclosedRowsAttribute, _NSAccessibilityDisclosingAttribute, _NSAccessibilityDisclosureLevelAttribute, _NSAccessibilityDisclosureTriangleRole, _NSAccessibilityDocumentAttribute, _NSAccessibilityDraggingDestinationDragAcceptedNotification, _NSAccessibilityDrawerCreatedNotification, _NSAccessibilityDrawerRole, _NSAccessibilityEditedAttribute, _NSAccessibilityEmbeddedImageDescriptionAttribute, _NSAccessibilityEnabledAttribute, _NSAccessibilityEnhancedUserInterfaceAttribute, _NSAccessibilityEnhancedUserInterfaceEnabled, _NSAccessibilityEntryPointActionDescription, _NSAccessibilityEntryPointActionNames, _NSAccessibilityEntryPointAttributeNames, _NSAccessibilityEntryPointIsAccessibilityElement, _NSAccessibilityEntryPointIsAttributeSettable, _NSAccessibilityEntryPointIsAttributeSupported, _NSAccessibilityEntryPointParameterizedAttributeNames, _NSAccessibilityEntryPointPerformAction, _NSAccessibilityEntryPointSetValueForAttribute, _NSAccessibilityEntryPointValueForAttribute, _NSAccessibilityEntryPointValueForAttributeWithParameter, _NSAccessibilityErrorCodeExceptionInfo, _NSAccessibilityEventProcessedNotification, _NSAccessibilityEventSourceProcessIDKey, _NSAccessibilityEventSourceStateIDKey, _NSAccessibilityEventSourceUserDataKey, _NSAccessibilityEventTimestampKey, _NSAccessibilityException, _NSAccessibilityExpandedAttribute, _NSAccessibilityExtrasMenuBarAttribute, _NSAccessibilityFilenameAttribute, _NSAccessibilityFirstLineIndentMarkerTypeValue, _NSAccessibilityFlippedScreenBoundsForElement, _NSAccessibilityFloatingWindowSubrole, _NSAccessibilityFocusRingActionHide, _NSAccessibilityFocusRingActionKey, _NSAccessibilityFocusRingActionMove, _NSAccessibilityFocusRingElementKey, _NSAccessibilityFocusRingManipulationParameterizedAttribute, _NSAccessibilityFocusedAttribute, _NSAccessibilityFocusedElementKey, _NSAccessibilityFocusedTabChangedNotification, _NSAccessibilityFocusedUIElementAttribute, _NSAccessibilityFocusedUIElementChangedNotification, _NSAccessibilityFocusedWindowAttribute, _NSAccessibilityFocusedWindowChangedNotification, _NSAccessibilityFontFamilyKey, _NSAccessibilityFontNameKey, _NSAccessibilityFontSizeKey, _NSAccessibilityFontTextAttribute, _NSAccessibilityForegroundColorTextAttribute, _NSAccessibilityFrameInView, _NSAccessibilityFrontmostAttribute, _NSAccessibilityFullKeyboardAccessCursorChangedNotification, _NSAccessibilityFullScreenAttribute, _NSAccessibilityFullScreenButtonAttribute, _NSAccessibilityFullScreenButtonSubrole, _NSAccessibilityFunctionRowColorPickerSliderSubrole, _NSAccessibilityFunctionRowTopLevelElementRole, _NSAccessibilityFunctionRowTopLevelElementsAttribute, _NSAccessibilityGridRole, _NSAccessibilityGroupRole, _NSAccessibilityGrowAreaAttribute, _NSAccessibilityGrowAreaRole, _NSAccessibilityHandleFocusChanged, _NSAccessibilityHandleRole, _NSAccessibilityHandlesAttribute, _NSAccessibilityHeadIndentMarkerTypeValue, _NSAccessibilityHeaderAttribute, _NSAccessibilityHeaderForColumnIndexParameterizedAttribute, _NSAccessibilityHeaderForRowIndexParameterizedAttribute, _NSAccessibilityHeaderGroupAttribute, _NSAccessibilityHelpAttribute, _NSAccessibilityHelpTagCreatedNotification, _NSAccessibilityHelpTagRole, _NSAccessibilityHiddenAttribute, _NSAccessibilityHighlightColorKey, _NSAccessibilityHighlightElementKey, _NSAccessibilityHighlightParsingTypeKey, _NSAccessibilityHighlightRangeKey, _NSAccessibilityHighlightStyleKey, _NSAccessibilityHighlightTextRangesParameterizedAttribute, _NSAccessibilityHorizontalOrientationValue, _NSAccessibilityHorizontalScrollBarAttribute, _NSAccessibilityHorizontalUnitDescriptionAttribute, _NSAccessibilityHorizontalUnitsAttribute, _NSAccessibilityHorizontialUnitDescriptionAttribute, _NSAccessibilityHorizontialUnitsAttribute, _NSAccessibilityIdentifierAttribute, _NSAccessibilityImageRole, _NSAccessibilityInchesUnitValue, _NSAccessibilityIncrementAction, _NSAccessibilityIncrementArrowSubrole, _NSAccessibilityIncrementButtonAttribute, _NSAccessibilityIncrementPageSubrole, _NSAccessibilityIncrementorRole, _NSAccessibilityIndexAttribute, _NSAccessibilityIndexForChildUIElementParameterizedAttribute, _NSAccessibilityInsertionPointLineNumberAttribute, _NSAccessibilityIsAccessibilityElementAttribute, _NSAccessibilityIsAttributeSettable, _NSAccessibilityLabelUIElementsAttribute, _NSAccessibilityLabelValueAttribute, _NSAccessibilityLanguageTextAttribute, _NSAccessibilityLayoutAreaRole, _NSAccessibilityLayoutChangedNotification, _NSAccessibilityLayoutItemRole, _NSAccessibilityLayoutPointForScreenPointParameterizedAttribute, _NSAccessibilityLayoutSizeForScreenSizeParameterizedAttribute, _NSAccessibilityLeftTabStopMarkerTypeValue, _NSAccessibilityLevelIndicatorRole, _NSAccessibilityLineForIndexParameterizedAttribute, _NSAccessibilityLinkRole, _NSAccessibilityLinkTextAttribute, _NSAccessibilityLinkedUIElementsAttribute, _NSAccessibilityListItemIndexTextAttribute, _NSAccessibilityListItemLevelTextAttribute, _NSAccessibilityListItemPrefixTextAttribute, _NSAccessibilityListRole, _NSAccessibilityLoadSearchResultParameterizedAttribute, _NSAccessibilityMainAttribute, _NSAccessibilityMainThreadIdleNotification, _NSAccessibilityMainThreadIdleUntilKey, _NSAccessibilityMainWindowAttribute, _NSAccessibilityMainWindowChangedNotification, _NSAccessibilityMarkedMisspelledTextAttribute, _NSAccessibilityMarkerGroupUIElementAttribute, _NSAccessibilityMarkerTypeAttribute, _NSAccessibilityMarkerTypeDescriptionAttribute, _NSAccessibilityMarkerUIElementsAttribute, _NSAccessibilityMarkerValuesAttribute, _NSAccessibilityMatteContentUIElementAttribute, _NSAccessibilityMatteHoleAttribute, _NSAccessibilityMatteRole, _NSAccessibilityMaxValueAttribute, _NSAccessibilityMenuBarAttribute, _NSAccessibilityMenuBarItemRole, _NSAccessibilityMenuBarRole, _NSAccessibilityMenuButtonRole, _NSAccessibilityMenuItemRole, _NSAccessibilityMenuRole, _NSAccessibilityMimicNativeViewAttribute, _NSAccessibilityMinValueAttribute, _NSAccessibilityMinimizeButtonAttribute, _NSAccessibilityMinimizeButtonSubrole, _NSAccessibilityMinimizedAttribute, _NSAccessibilityMisspelledTextAttribute, _NSAccessibilityModalAttribute, _NSAccessibilityMovedNotification, _NSAccessibilityNaturalLanguageTextAttribute, _NSAccessibilityNextContentSiblingAttribute, _NSAccessibilityNextContentsAttribute, _NSAccessibilityNumberOfCharactersAttribute, _NSAccessibilityOpenAction, _NSAccessibilityOrderedByRowAttribute, _NSAccessibilityOrientationAttribute, _NSAccessibilityOutlineRole, _NSAccessibilityOutlineRowSubrole, _NSAccessibilityOverflowButtonAttribute, _NSAccessibilityOverridesAlwaysTakePrecedence, _NSAccessibilityPageRole, _NSAccessibilityParagraphStyleTextAttribute, _NSAccessibilityParentAttribute, _NSAccessibilityPasscodeBoxSubrole, _NSAccessibilityPathAttribute, _NSAccessibilityPicasUnitValue, _NSAccessibilityPickAction, _NSAccessibilityPlaceholderValueAttribute, _NSAccessibilityPointInView, _NSAccessibilityPointsUnitValue, _NSAccessibilityPopUpButtonRole, _NSAccessibilityPopoverRole, _NSAccessibilityPositionAttribute, _NSAccessibilityPostNotification, _NSAccessibilityPostNotificationWithUserInfo, _NSAccessibilityPressAction, _NSAccessibilityPreviousContentSiblingAttribute, _NSAccessibilityPreviousContentsAttribute, _NSAccessibilityPriorityKey, _NSAccessibilityProgressIndicatorRole, _NSAccessibilityProxyAttribute, _NSAccessibilityRTFForRangeParameterizedAttribute, _NSAccessibilityRadioButtonRole, _NSAccessibilityRadioGroupRole, _NSAccessibilityRaiseAction, _NSAccessibilityRaiseBadArgumentException, _NSAccessibilityRaiseUnsupportedActionException, _NSAccessibilityRangeForIndexParameterizedAttribute, _NSAccessibilityRangeForLineParameterizedAttribute, _NSAccessibilityRangeForPositionParameterizedAttribute, _NSAccessibilityRatingIndicatorSubrole, _NSAccessibilityReceivedRequests, _NSAccessibilityRegisterClassForCustomElementData, _NSAccessibilityRelevanceIndicatorRole, _NSAccessibilityRemoteApplicationElementsAddedNotification, _NSAccessibilityRemoteApplicationElementsKey, _NSAccessibilityRemoteApplicationElementsRemovedNotification, _NSAccessibilityReplaceRangeWithTextParameterizedAttribute, _NSAccessibilityReplacementRangeKey, _NSAccessibilityReplacementStringTextAttribute, _NSAccessibilityReplacementTextKey, _NSAccessibilityRequiredAttribute, _NSAccessibilityResizedNotification, _NSAccessibilityResultsForSearchPredicateParameterizedAttribute, _NSAccessibilityRightTabStopMarkerTypeValue, _NSAccessibilityRoleAttribute, _NSAccessibilityRoleDescription, _NSAccessibilityRoleDescriptionAttribute, _NSAccessibilityRoleDescriptionForUIElement, _NSAccessibilityRowCollapsedNotification, _NSAccessibilityRowCountAttribute, _NSAccessibilityRowCountChangedNotification, _NSAccessibilityRowExpandedNotification, _NSAccessibilityRowHeaderUIElementsAttribute, _NSAccessibilityRowIndexRangeAttribute, _NSAccessibilityRowRole, _NSAccessibilityRowsAttribute, _NSAccessibilityRulerMarkerRole, _NSAccessibilityRulerRole, _NSAccessibilityScreenPointForLayoutPointParameterizedAttribute, _NSAccessibilityScreenSizeForLayoutSizeParameterizedAttribute, _NSAccessibilityScrollAreaRole, _NSAccessibilityScrollBarRole, _NSAccessibilityScrollDownByPageAction, _NSAccessibilityScrollLeftByPageAction, _NSAccessibilityScrollRightByPageAction, _NSAccessibilityScrollToShowDescendantParameterizedAttributeAction, _NSAccessibilityScrollUpByPageAction, _NSAccessibilityScrubberItemRole, _NSAccessibilityScrubberRole, _NSAccessibilitySearchButtonAttribute, _NSAccessibilitySearchCurrentElementKey, _NSAccessibilitySearchCurrentRangeKey, _NSAccessibilitySearchDirectionKey, _NSAccessibilitySearchDirectionNext, _NSAccessibilitySearchDirectionPrevious, _NSAccessibilitySearchFieldSubrole, _NSAccessibilitySearchIdentifier, _NSAccessibilitySearchIdentifiersKey, _NSAccessibilitySearchMenuAttribute, _NSAccessibilitySearchResultDescriptionOverrideKey, _NSAccessibilitySearchResultElementKey, _NSAccessibilitySearchResultLoaderKey, _NSAccessibilitySearchResultRangeKey, _NSAccessibilitySearchResultsLimitKey, _NSAccessibilitySearchTextKey, _NSAccessibilitySectionDescriptionKey, _NSAccessibilitySectionListSubrole, _NSAccessibilitySectionObjectKey, _NSAccessibilitySectionUniqueIDKey, _NSAccessibilitySectionsAttribute, _NSAccessibilitySecureTextFieldSubrole, _NSAccessibilitySelectedAttribute, _NSAccessibilitySelectedCellsAttribute, _NSAccessibilitySelectedCellsChangedNotification, _NSAccessibilitySelectedChildrenAttribute, _NSAccessibilitySelectedChildrenChangedNotification, _NSAccessibilitySelectedChildrenMovedNotification, _NSAccessibilitySelectedColumnsAttribute, _NSAccessibilitySelectedColumnsChangedNotification, _NSAccessibilitySelectedRowsAttribute, _NSAccessibilitySelectedRowsChangedNotification, _NSAccessibilitySelectedTextAttribute, _NSAccessibilitySelectedTextChangedNotification, _NSAccessibilitySelectedTextRangeAttribute, _NSAccessibilitySelectedTextRangesAttribute, _NSAccessibilityServesAsTitleForUIElementsAttribute, _NSAccessibilitySetAttributeValue, _NSAccessibilitySetMayContainProtectedContent, _NSAccessibilitySetOverridesAlwaysTakePrecedence, _NSAccessibilityShadowTextAttribute, _NSAccessibilitySharedCharacterRangeAttribute, _NSAccessibilitySharedFocusElementsAttribute, _NSAccessibilitySharedTextElementForIndexParameterizedAttribute, _NSAccessibilitySharedTextUIElementsAttribute, _NSAccessibilitySheetCreatedNotification, _NSAccessibilitySheetRole, _NSAccessibilityShouldShowAllObjectsForAccessibility, _NSAccessibilityShowAlternateUIAction, _NSAccessibilityShowDefaultUIAction, _NSAccessibilityShowMenuAction, _NSAccessibilityShownMenuAttribute, _NSAccessibilitySizeAttribute, _NSAccessibilitySliderRole, _NSAccessibilitySortButtonRole, _NSAccessibilitySortButtonSubrole, _NSAccessibilitySortDirectionAttribute, _NSAccessibilitySplitGroupRole, _NSAccessibilitySplitterRole, _NSAccessibilitySplittersAttribute, _NSAccessibilityStandardWindowSubrole, _NSAccessibilityStaticTextRole, _NSAccessibilityStrikethroughColorTextAttribute, _NSAccessibilityStrikethroughTextAttribute, _NSAccessibilityStringForRangeParameterizedAttribute, _NSAccessibilityStyleRangeForIndexParameterizedAttribute, _NSAccessibilitySubroleAttribute, _NSAccessibilitySuperscriptTextAttribute, _NSAccessibilitySupportsEventProcessedNotificationAttribute, _NSAccessibilitySupportsMainThreadIdleNotificationAttribute, _NSAccessibilitySwitchSubrole, _NSAccessibilitySystemDialogSubrole, _NSAccessibilitySystemFloatingWindowSubrole, _NSAccessibilitySystemWideRole, _NSAccessibilityTabButtonSubrole, _NSAccessibilityTabGroupRole, _NSAccessibilityTableCellTextAttribute, _NSAccessibilityTableCellTextAttributeColKey, _NSAccessibilityTableCellTextAttributeColSpanSpanKey, _NSAccessibilityTableCellTextAttributeRowKey, _NSAccessibilityTableCellTextAttributeRowSpanKey, _NSAccessibilityTableRole, _NSAccessibilityTableRowSubrole, _NSAccessibilityTableTextAttribute, _NSAccessibilityTabsAttribute, _NSAccessibilityTailIndentMarkerTypeValue, _NSAccessibilityTextAlignmentAttribute, _NSAccessibilityTextAlignmentKey, _NSAccessibilityTextAreaRole, _NSAccessibilityTextAttachmentSubrole, _NSAccessibilityTextFieldRole, _NSAccessibilityTextInputMarkedRangeAttribute, _NSAccessibilityTextInputMarkingSessionBeganNotification, _NSAccessibilityTextInputMarkingSessionEndedNotification, _NSAccessibilityTextLinkSubrole, _NSAccessibilityTimelineSubrole, _NSAccessibilityTitleAttribute, _NSAccessibilityTitleChangedNotification, _NSAccessibilityTitleUIElementAttribute, _NSAccessibilityToggleSubrole, _NSAccessibilityToolbarButtonAttribute, _NSAccessibilityToolbarButtonSubrole, _NSAccessibilityToolbarIdentifier, _NSAccessibilityToolbarRole, _NSAccessibilityTopLevelNavigatorIdentifier, _NSAccessibilityTopLevelUIElementAttribute, _NSAccessibilityUIElementDestroyedNotification, _NSAccessibilityUIElementsForRole, _NSAccessibilityUIElementsKey, _NSAccessibilityURLAttribute, _NSAccessibilityUnderlineColorTextAttribute, _NSAccessibilityUnderlineTextAttribute, _NSAccessibilityUnignoredAncestor, _NSAccessibilityUnignoredChildren, _NSAccessibilityUnignoredChildrenAttribute, _NSAccessibilityUnignoredChildrenForOnlyChild, _NSAccessibilityUnignoredDescendant, _NSAccessibilityUnignoredParentAttribute, _NSAccessibilityUnitDescriptionAttribute, _NSAccessibilityUnitsAttribute, _NSAccessibilityUnitsChangedNotification, _NSAccessibilityUnknownMarkerTypeValue, _NSAccessibilityUnknownOrientationValue, _NSAccessibilityUnknownRole, _NSAccessibilityUnknownSortDirectionValue, _NSAccessibilityUnknownSubrole, _NSAccessibilityUnknownUnitValue, _NSAccessibilityUnregisterUniqueIdForUIElement, _NSAccessibilityUserInputLabelsAttribute, _NSAccessibilityValueAttribute, _NSAccessibilityValueChangedNotification, _NSAccessibilityValueDescriptionAttribute, _NSAccessibilityValueIndicatorRole, _NSAccessibilityVerticalOrientationValue, _NSAccessibilityVerticalScrollBarAttribute, _NSAccessibilityVerticalUnitDescriptionAttribute, _NSAccessibilityVerticalUnitsAttribute, _NSAccessibilityVisibleCellsAttribute, _NSAccessibilityVisibleCharacterRangeAttribute, _NSAccessibilityVisibleChildrenAttribute, _NSAccessibilityVisibleColumnsAttribute, _NSAccessibilityVisibleNameKey, _NSAccessibilityVisibleRowsAttribute, _NSAccessibilityVisualTextAlignmentKey, _NSAccessibilityWarningValueAttribute, _NSAccessibilityWindowAttribute, _NSAccessibilityWindowCreatedNotification, _NSAccessibilityWindowDeminiaturizedNotification, _NSAccessibilityWindowMiniaturizedNotification, _NSAccessibilityWindowMovedNotification, _NSAccessibilityWindowResizedNotification, _NSAccessibilityWindowRole, _NSAccessibilityWindowsAttribute, _NSAccessibilityZoomButtonAttribute, _NSAccessibilityZoomButtonSubrole, _NSAlignmentBinding, _NSAllowsEditingMultipleValuesSelectionBindingOption, _NSAllowsNullArgumentBindingOption, _NSAlternateImageBinding, _NSAlternateTitleBinding, _NSAlwaysPresentsApplicationModalAlertsBindingOption, _NSAnimateBinding, _NSAnimationDelayBinding, _NSAnimationProgressMark, _NSAnimationProgressMarkNotification, _NSAnimationTriggerOrderIn, _NSAnimationTriggerOrderOut, _NSApp, _NSAppKitIgnoredException, _NSAppKitPropertyCreator, _NSAppKitVersionNumber, _NSAppKitVersionString, _NSAppKitVirtualMemoryException, _NSAppearanceNameAccessibilityAqua, _NSAppearanceNameAccessibilityDarkAqua, _NSAppearanceNameAccessibilityHighContrastAqua, _NSAppearanceNameAccessibilityHighContrastDarkAqua, _NSAppearanceNameAccessibilityHighContrastMediumLight, _NSAppearanceNameAccessibilityHighContrastSystem, _NSAppearanceNameAccessibilityHighContrastVibrantDark, _NSAppearanceNameAccessibilityHighContrastVibrantLight, _NSAppearanceNameAccessibilityMediumLight, _NSAppearanceNameAccessibilitySystem, _NSAppearanceNameAccessibilityVibrantDark, _NSAppearanceNameAccessibilityVibrantLight, _NSAppearanceNameAqua, _NSAppearanceNameControlStrip, _NSAppearanceNameDarkAqua, _NSAppearanceNameFunctionRow, _NSAppearanceNameLightContent, _NSAppearanceNameMediumLight, _NSAppearanceNameSystem, _NSAppearanceNameTouchBar, _NSAppearanceNameVibrantDark, _NSAppearanceNameVibrantLight, _NSAppearanceTextEffectsAttributeName, _NSAppleAquaColorVariantChangedNotification, _NSAppleGradientValuesChangedNotification, _NSAppleMenuName, _NSAppleMenuSubmenuName, _NSAppleNoRedisplayAppearancePreferenceChanged, _NSApplicationDidBecomeActiveNotification, _NSApplicationDidChangeAccessibilityEnhancedUserInterfaceNotification, _NSApplicationDidChangeFocusedUIElementNotification, _NSApplicationDidChangeOcclusionStateNotification, _NSApplicationDidChangeScreenParametersNotification, _NSApplicationDidFinishLaunchingNotification, _NSApplicationDidFinishRestoringWindowsNotification, _NSApplicationDidHideNotification, _NSApplicationDidResignActiveNotification, _NSApplicationDidUnhideNotification, _NSApplicationDidUpdateNotification, _NSApplicationDockDidRestartNotification, _NSApplicationExtensionSessionMain, _NSApplicationFileType, _NSApplicationLaunchIsDefaultLaunchKey, _NSApplicationLaunchRemoteNotificationKey, _NSApplicationLaunchUserNotificationKey, _NSApplicationLoad, _NSApplicationMain, _NSApplicationProtectedDataDidBecomeAvailableNotification, _NSApplicationProtectedDataWillBecomeUnavailableNotification, _NSApplicationTestingNotificationTestNameKey, _NSApplicationTestingNotificationTestResultsKey, _NSApplicationTestingTestFinishedNotification, _NSApplicationWillBecomeActiveNotification, _NSApplicationWillFinishLaunchingNotification, _NSApplicationWillHideNotification, _NSApplicationWillResignActiveNotification, _NSApplicationWillTerminateNotification, _NSApplicationWillUnhideNotification, _NSApplicationWillUpdateNotification, _NSArgumentBinding, _NSAttributedStringBinding, _NSAutomaticFocusRingChangedNotification, _NSAvailableWindowDepths, _NSBackingPropertyOldColorSpaceKey, _NSBackingPropertyOldScaleFactorKey, _NSBadBitmapParametersException, _NSBadComparisonException, _NSBadRTFColorTableException, _NSBadRTFDirectiveException, _NSBadRTFFontTableException, _NSBadRTFStyleSheetException, _NSBeep, _NSBeginAlertSheet, _NSBeginCriticalAlertSheet, _NSBeginInformationalAlertSheet, _NSBestDepth, _NSBitsPerPixelFromDepth, _NSBitsPerSampleFromDepth, _NSBlack, _NSBridgedPerformPendingTextChecking, _NSBrowserColumnConfigurationDidChangeNotification, _NSBrowserIllegalDelegateException, _NSCalibratedBlackColorSpace, _NSCalibratedRGBColorSpace, _NSCalibratedWhiteColorSpace, _NSCarbonWindowPropertyTag, _NSClickNotification, _NSCollectionElementKindSelectionRectIndicator, _NSColorBaseDisplayColorForUserAccentKey, _NSColorControlAccentIsDefaultColor, _NSColorControlAccentIsGraphite, _NSColorControlAccentIsMulticolor, _NSColorDefaultUserAccentColor, _NSColorDefaultUserHighlightColor, _NSColorDisplayColorForUserHighlightKey, _NSColorEffectiveUserAccentColor, _NSColorEnumerateUserAccentColors, _NSColorEnumerateUserHighlightColors, _NSColorGetUserAccentColor, _NSColorGetUserHighlightColor, _NSColorListDidChangeNotification, _NSColorListIOException, _NSColorListNotEditableException, _NSColorLocalPreferencesChangedNotification, _NSColorLocalizedNameForUserAccentKey, _NSColorLocalizedNameForUserHighlightKey, _NSColorModifyHighlightForChangedUserAccentKey, _NSColorPanelColorDidChangeNotification, _NSColorPboardType, _NSColorSetUserAccentColor, _NSColorSetUserHighlightColor, _NSColorSpaceFromDepth, _NSComboBoxSelectionDidChangeNotification, _NSComboBoxSelectionIsChangingNotification, _NSComboBoxWillDismissNotification, _NSComboBoxWillPopUpNotification, _NSCompositeRect, _NSConditionallySetsEditableBindingOption, _NSConditionallySetsEnabledBindingOption, _NSConditionallySetsHiddenBindingOption, _NSContentArrayBinding, _NSContentArrayForMultipleSelectionBinding, _NSContentBinding, _NSContentDictionaryBinding, _NSContentHeightBinding, _NSContentObjectBinding, _NSContentObjectsBinding, _NSContentPlacementTagBindingOption, _NSContentSetBinding, _NSContentValuesBinding, _NSContentWidthBinding, _NSContextHelpFilename, _NSContextHelpModeDidActivateNotification, _NSContextHelpModeDidDeactivateNotification, _NSContinuouslyUpdatesValueBindingOption, _NSControlDidCancelContinuousTrackingNotification, _NSControlDidEndContinuousTrackingNotification, _NSControlTextDidBeginEditingNotification, _NSControlTextDidChangeNotification, _NSControlTextDidEndEditingNotification, _NSControlTintDidChangeNotification, _NSControlWillBeginContinuousTrackingNotification, _NSConvertViewFrameToDeviceCoordinateSpace, _NSCopyBits, _NSCountWindows, _NSCountWindowsForContext, _NSCreateFileContentsPboardType, _NSCreateFilenamePboardType, _NSCreatesSortDescriptorBindingOption, _NSCriticalValueBinding, _NSCustomColorSpace, _NSDarkGray, _NSDataBinding, _NSDefinitionPresentationTypeDictionaryApplication, _NSDefinitionPresentationTypeKey, _NSDefinitionPresentationTypeOverlay, _NSDeletesObjectsOnRemoveBindingsOption, _NSDeviceBitsPerSample, _NSDeviceBlackColorSpace, _NSDeviceCMYKColorSpace, _NSDeviceColorSpaceName, _NSDeviceIsPrinter, _NSDeviceIsScreen, _NSDeviceRGBColorSpace, _NSDeviceResolution, _NSDeviceSize, _NSDeviceWhiteColorSpace, _NSDirectoryFileType, _NSDisableScreenUpdates, _NSDisplayNameBindingOption, _NSDisplayPatternBindingOption, _NSDisplayPatternTitleBinding, _NSDisplayPatternValueBinding, _NSDockTileMiniViewDidHideNotification, _NSDockTileMiniViewDidShowNotification, _NSDocumentEditedBinding, _NSDottedFrameRect, _NSDoubleClickArgumentBinding, _NSDoubleClickTargetBinding, _NSDragCancelLimitDefault, _NSDragPboard, _NSDraggingException, _NSDraggingImageComponentDraggingItemKey, _NSDraggingImageComponentIconKey, _NSDraggingImageComponentLabelKey, _NSDrawBitmap, _NSDrawButton, _NSDrawColorTiledRects, _NSDrawDarkBezel, _NSDrawGrayBezel, _NSDrawGroove, _NSDrawHelpAreaBar, _NSDrawHelpAreaMenuBackground, _NSDrawHelpAreaMenuItemBackground, _NSDrawHelpResultsSeparator, _NSDrawLightBezel, _NSDrawMenuBackground, _NSDrawMenuItemBackground, _NSDrawNinePartImage, _NSDrawOverlayForMenuHelpResults, _NSDrawOverlayForMenuSearchResults, _NSDrawScopeBar, _NSDrawSearchAreaBar, _NSDrawSearchAreaMenuBackground, _NSDrawSearchAreaMenuItemBackground, _NSDrawSearchResultsSeparator, _NSDrawSourceListBackground, _NSDrawThreePartImage, _NSDrawTiledRects, _NSDrawWhiteBezel, _NSDrawWindowBackground, _NSDrawerDidCloseNotification, _NSDrawerDidOpenNotification, _NSDrawerWillCloseNotification, _NSDrawerWillOpenNotification, _NSDumpCGImage, _NSDumpImage, _NSEditableBinding, _NSEmbossmentEffectKey, _NSEnableScreenUpdates, _NSEnabledBinding, _NSEraseRect, _NSEventTrackingRunLoopMode, _NSExcludedKeysBinding, _NSExtensionAvailableExtensions, _NSExtensionAvailableExtensionsChangedNotification, _NSFileContentsPboardType, _NSFilePromiseItemAlternateFileTypeKey, _NSFilenamesPboardType, _NSFilesPromisePboardType, _NSFilesystemFileType, _NSFilterPredicateBinding, _NSFindPanelCaseInsensitiveSearch, _NSFindPanelSearchOptionsPboardType, _NSFindPanelSubstringMatch, _NSFindPboard, _NSFocusReceivedNotification, _NSFontBinding, _NSFontBoldBinding, _NSFontCascadeListAttribute, _NSFontCharacterSetAttribute, _NSFontCollectionActionKey, _NSFontCollectionAllFonts, _NSFontCollectionDidChangeNotification, _NSFontCollectionDisallowAutoActivationOption, _NSFontCollectionFavorites, _NSFontCollectionIncludeDisabledFontsOption, _NSFontCollectionNameKey, _NSFontCollectionOldNameKey, _NSFontCollectionRecentlyUsed, _NSFontCollectionRemoveDuplicatesOption, _NSFontCollectionUser, _NSFontCollectionVisibilityKey, _NSFontCollectionWasHidden, _NSFontCollectionWasRenamed, _NSFontCollectionWasShown, _NSFontColorAttribute, _NSFontDescriptorSystemDesignDefault, _NSFontDescriptorSystemDesignMonospaced, _NSFontDescriptorSystemDesignRounded, _NSFontDescriptorSystemDesignSerif, _NSFontDesignDefault, _NSFontDesignTrait, _NSFontFamilyNameBinding, _NSFontFeatureSelectorIdentifierKey, _NSFontFeatureSettingsAttribute, _NSFontFeatureTypeIdentifierKey, _NSFontFixedAdvanceAttribute, _NSFontItalicBinding, _NSFontMenuName, _NSFontNameBinding, _NSFontPboard, _NSFontPboardType, _NSFontSizeBinding, _NSFontSlantTrait, _NSFontSystemDesignDefault, _NSFontSystemDesignRounded, _NSFontSystemDesignTrait, _NSFontTextStyleBody, _NSFontTextStyleCallout, _NSFontTextStyleCaption1, _NSFontTextStyleCaption2, _NSFontTextStyleFootnote, _NSFontTextStyleHeadline, _NSFontTextStyleLargeTitle, _NSFontTextStyleSubheadline, _NSFontTextStyleTitle1, _NSFontTextStyleTitle2, _NSFontTextStyleTitle3, _NSFontUnavailableException, _NSFontVariationAttribute, _NSFontVariationAxisDefaultValueKey, _NSFontVariationAxisIdentifierKey, _NSFontVariationAxisMaximumValueKey, _NSFontVariationAxisMinimumValueKey, _NSFontVariationAxisNameKey, _NSFontWeightBlack, _NSFontWeightBold, _NSFontWeightHeavy, _NSFontWeightLight, _NSFontWeightMedium, _NSFontWeightRegular, _NSFontWeightSemibold, _NSFontWeightThin, _NSFontWeightTrait, _NSFontWeightUltraLight, _NSFontWidthCondensed, _NSFontWidthExpanded, _NSFontWidthStandard, _NSFontWidthTrait, _NSFrameRect, _NSFrameRectWithWidth, _NSFrameRectWithWidthUsingOperation, _NSFullScreenModeAllScreens, _NSFullScreenModeApplicationPresentationOptions, _NSFullScreenModeAspectRatio, _NSFullScreenModeBackgroundColor, _NSFullScreenModeSetting, _NSFullScreenModeWindowLevel, _NSGeneralPboard, _NSGetAlertPanel, _NSGetCriticalAlertPanel, _NSGetFileType, _NSGetFileTypes, _NSGetInformationalAlertPanel, _NSGetWindowServerMemory, _NSGlowEffectKey, _NSGraphicsContextDestinationAttributeName, _NSGraphicsContextPDFFormat, _NSGraphicsContextPSFormat, _NSGraphicsContextRepresentationFormatAttributeName, _NSGraphicsRunLoopMode, _NSGridViewSizeForContent, _NSGridViewSizeFromExternalConstraints, _NSHTMLPboardType, _NSHandlesContentAsCompoundValueBindingOption, _NSHeaderTitleBinding, _NSHelpManagerSystemBook, _NSHelpRTFDKey, _NSHelpRTFKey, _NSHelpVersionKey, _NSHelpVersionValue, _NSHiddenBinding, _NSHighlightRect, _NSHilitedNotification, _NSIdleNotification, _NSIllegalSelectorException, _NSImageAlternateCriterionFont, _NSImageAlternateCriterionSymbolScale, _NSImageBinding, _NSImageCacheException, _NSImageColorSyncProfileData, _NSImageCompressionFactor, _NSImageCompressionMethod, _NSImageCurrentFrame, _NSImageCurrentFrameDuration, _NSImageDitherTransparency, _NSImageEXIFData, _NSImageFallbackBackgroundColor, _NSImageFrameCount, _NSImageGamma, _NSImageHintCTM, _NSImageHintInterpolation, _NSImageHintSymbolFont, _NSImageHintSymbolNamedColorOverrides, _NSImageHintSymbolRenderingMode, _NSImageHintSymbolScale, _NSImageHintUserInterfaceLayoutDirection, _NSImageIPTCData, _NSImageInterlaced, _NSImageLoopCount, _NSImageNameActionTemplate, _NSImageNameAddBookmarkTemplate, _NSImageNameAddTemplate, _NSImageNameAdvanced, _NSImageNameAlarmTemplate, _NSImageNameApplicationIcon, _NSImageNameAscendingSortIndicator, _NSImageNameAudioInputTemplate, _NSImageNameAudioOutputMuteTemplate, _NSImageNameAudioOutputVolumeHighTemplate, _NSImageNameAudioOutputVolumeLowTemplate, _NSImageNameAudioOutputVolumeMedTemplate, _NSImageNameAudioOutputVolumeOffTemplate, _NSImageNameBluetoothTemplate, _NSImageNameBonjour, _NSImageNameBookmarksTemplate, _NSImageNameCaution, _NSImageNameColorPanel, _NSImageNameColumnViewTemplate, _NSImageNameComputer, _NSImageNameDescendingSortIndicator, _NSImageNameDotMac, _NSImageNameDropDownIndicatorTemplate, _NSImageNameEnterFullScreenTemplate, _NSImageNameEveryone, _NSImageNameExitFullScreenTemplate, _NSImageNameFastForwardTemplate, _NSImageNameFlowViewTemplate, _NSImageNameFolder, _NSImageNameFolderBurnable, _NSImageNameFolderSmart, _NSImageNameFollowLinkFreestandingTemplate, _NSImageNameFontPanel, _NSImageNameGalleryViewTemplate, _NSImageNameGoBackTemplate, _NSImageNameGoForwardTemplate, _NSImageNameGoLeftTemplate, _NSImageNameGoRightTemplate, _NSImageNameHomeTemplate, _NSImageNameIChatTheaterTemplate, _NSImageNameIconViewTemplate, _NSImageNameInfo, _NSImageNameInvalidDataFreestandingTemplate, _NSImageNameLeftFacingTriangleTemplate, _NSImageNameLegacyScrollerCorner, _NSImageNameLegacyScrollerCornerSmall, _NSImageNameListViewTemplate, _NSImageNameLockLockedTemplate, _NSImageNameLockUnlockedTemplate, _NSImageNameMarkupTemplate, _NSImageNameMenuMixedStateTemplate, _NSImageNameMenuOnStateTemplate, _NSImageNameMobileMe, _NSImageNameMoveSpliterDownTemplate, _NSImageNameMoveSplitterLeftTemplate, _NSImageNameMoveSplitterRightTemplate, _NSImageNameMoveSplitterUpTemplate, _NSImageNameMultipleDocuments, _NSImageNameNetwork, _NSImageNamePathTemplate, _NSImageNamePauseTemplate, _NSImageNamePlayTemplate, _NSImageNamePreferencesGeneral, _NSImageNamePrintTemplate, _NSImageNamePrivateArrowNextTemplate, _NSImageNamePrivateArrowPreviousTemplate, _NSImageNamePrivateChaptersTemplate, _NSImageNameQuickLookTemplate, _NSImageNameRecordStartTemplate, _NSImageNameRecordStopTemplate, _NSImageNameRefreshFreestandingTemplate, _NSImageNameRefreshTemplate, _NSImageNameRemoveTemplate, _NSImageNameRevealFreestandingTemplate, _NSImageNameRewindTemplate, _NSImageNameRightFacingTriangleTemplate, _NSImageNameScriptTemplate, _NSImageNameSecurity, _NSImageNameShareTemplate, _NSImageNameSidebarTemplate, _NSImageNameSkipAhead15SecondsTemplate, _NSImageNameSkipAhead30SecondsTemplate, _NSImageNameSkipAheadTemplate, _NSImageNameSkipBack15SecondsTemplate, _NSImageNameSkipBack30SecondsTemplate, _NSImageNameSkipBackTemplate, _NSImageNameSkipToEndTemplate, _NSImageNameSkipToStartTemplate, _NSImageNameSlideshowTemplate, _NSImageNameSmartBadgeTemplate, _NSImageNameStatusAvailable, _NSImageNameStatusAvailableFlat, _NSImageNameStatusAway, _NSImageNameStatusIdle, _NSImageNameStatusNone, _NSImageNameStatusNoneFlat, _NSImageNameStatusOffline, _NSImageNameStatusPartiallyAvailable, _NSImageNameStatusPartiallyAvailableFlat, _NSImageNameStatusUnavailable, _NSImageNameStatusUnavailableFlat, _NSImageNameStatusUnknown, _NSImageNameStopProgressFreestandingTemplate, _NSImageNameStopProgressTemplate, _NSImageNameSynchronize, _NSImageNameTextBoldTemplate, _NSImageNameTextCenterAlignMiniTemplate, _NSImageNameTextCenterAlignSmallTemplate, _NSImageNameTextCenterAlignTemplate, _NSImageNameTextItalicTemplate, _NSImageNameTextJustifiedAlignMiniTemplate, _NSImageNameTextJustifiedAlignSmallTemplate, _NSImageNameTextJustifiedAlignTemplate, _NSImageNameTextLeftAlignMiniTemplate, _NSImageNameTextLeftAlignSmallTemplate, _NSImageNameTextLeftAlignTemplate, _NSImageNameTextListMiniTemplate, _NSImageNameTextListSmallTemplate, _NSImageNameTextListTemplate, _NSImageNameTextRightAlignMiniTemplate, _NSImageNameTextRightAlignSmallTemplate, _NSImageNameTextRightAlignTemplate, _NSImageNameTextUnderlineTemplate, _NSImageNameToolbarArrangeByTemplate, _NSImageNameToolbarAudioInputTemplate, _NSImageNameToolbarBookmarks, _NSImageNameToolbarCameraTemplate, _NSImageNameToolbarComposeTemplate, _NSImageNameToolbarDeleteTemplate, _NSImageNameToolbarEmojiPickerTemplate, _NSImageNameToolbarFolderCopyToTemplate, _NSImageNameToolbarFolderMoveToTemplate, _NSImageNameToolbarFolderTemplate, _NSImageNameToolbarHistoryTemplate, _NSImageNameToolbarMailTemplate, _NSImageNameToolbarMediaBrowserTemplate, _NSImageNameToolbarMoreTemplate, _NSImageNameToolbarNewFolderTemplate, _NSImageNameToolbarReplyTemplate, _NSImageNameToolbarRotateLeftTemplate, _NSImageNameToolbarRotateRightTemplate, _NSImageNameToolbarSafariTemplate, _NSImageNameToolbarSearchTemplate, _NSImageNameToolbarTagIconTemplate, _NSImageNameToolbarTextBoxTemplate, _NSImageNameToolbarUserAddTemplate, _NSImageNameToolbarUserGroupTemplate, _NSImageNameToolbarUserTemplate, _NSImageNameTouchBarAddDetailTemplate, _NSImageNameTouchBarAddTabTemplate, _NSImageNameTouchBarAddTemplate, _NSImageNameTouchBarAirDropTemplate, _NSImageNameTouchBarAirPlayTemplate, _NSImageNameTouchBarAlarmTemplate, _NSImageNameTouchBarAllMyFilesTemplate, _NSImageNameTouchBarApplicationsFolderTemplate, _NSImageNameTouchBarAudioInputMuteTemplate, _NSImageNameTouchBarAudioInputTemplate, _NSImageNameTouchBarAudioOutputMuteOffTemplate, _NSImageNameTouchBarAudioOutputMuteOnTemplate, _NSImageNameTouchBarAudioOutputMuteTemplate, _NSImageNameTouchBarAudioOutputVolumeHighTemplate, _NSImageNameTouchBarAudioOutputVolumeLowTemplate, _NSImageNameTouchBarAudioOutputVolumeMedTemplate, _NSImageNameTouchBarAudioOutputVolumeMediumTemplate, _NSImageNameTouchBarAudioOutputVolumeOffTemplate, _NSImageNameTouchBarAutoFillTemplate, _NSImageNameTouchBarBookmarksTemplate, _NSImageNameTouchBarCircleAddTemplate, _NSImageNameTouchBarCloseTemplate, _NSImageNameTouchBarColorPickerFill, _NSImageNameTouchBarColorPickerFont, _NSImageNameTouchBarColorPickerStroke, _NSImageNameTouchBarColumnViewTemplate, _NSImageNameTouchBarCommunicationAudioTemplate, _NSImageNameTouchBarCommunicationVideoTemplate, _NSImageNameTouchBarComposeTemplate, _NSImageNameTouchBarControlStripDashboardTemplate, _NSImageNameTouchBarControlStripDictationTemplate, _NSImageNameTouchBarControlStripDisplayBrightnessDownTemplate, _NSImageNameTouchBarControlStripDisplayBrightnessUpTemplate, _NSImageNameTouchBarControlStripDoNotDisturbTemplate, _NSImageNameTouchBarControlStripKeyboardBacklightDownTemplate, _NSImageNameTouchBarControlStripKeyboardBacklightUpTemplate, _NSImageNameTouchBarControlStripLaunchpadTemplate, _NSImageNameTouchBarControlStripLockScreenTemplate, _NSImageNameTouchBarControlStripMissionControlTemplate, _NSImageNameTouchBarControlStripNightShiftTemplate, _NSImageNameTouchBarControlStripNotificationCenterTemplate, _NSImageNameTouchBarControlStripQuickActionsTemplate, _NSImageNameTouchBarControlStripScreenSaverTemplate, _NSImageNameTouchBarControlStripScreenshotTemplate, _NSImageNameTouchBarControlStripShowDesktopTemplate, _NSImageNameTouchBarControlStripSiri, _NSImageNameTouchBarControlStripSleepTemplate, _NSImageNameTouchBarControlStripSpotlightTemplate, _NSImageNameTouchBarControlStripVolumeDownTemplate, _NSImageNameTouchBarControlStripVolumeUpTemplate, _NSImageNameTouchBarCurrentLocationTemplate, _NSImageNameTouchBarDeleteTemplate, _NSImageNameTouchBarDesktopTemplate, _NSImageNameTouchBarDocumentsTemplate, _NSImageNameTouchBarDownloadTemplate, _NSImageNameTouchBarEnterFullScreenTemplate, _NSImageNameTouchBarExitFullScreenTemplate, _NSImageNameTouchBarFastForwardTemplate, _NSImageNameTouchBarFavoriteOffTemplate, _NSImageNameTouchBarFavoriteOnTemplate, _NSImageNameTouchBarFlowViewTemplate, _NSImageNameTouchBarFolderCopyToTemplate, _NSImageNameTouchBarFolderMoveToTemplate, _NSImageNameTouchBarFolderTemplate, _NSImageNameTouchBarGalleryViewTemplate, _NSImageNameTouchBarGetInfoOutlineTemplate, _NSImageNameTouchBarGetInfoTemplate, _NSImageNameTouchBarGoBackTemplate, _NSImageNameTouchBarGoDownTemplate, _NSImageNameTouchBarGoForwardTemplate, _NSImageNameTouchBarGoUpTemplate, _NSImageNameTouchBarGridTemplate, _NSImageNameTouchBarHistoryTemplate, _NSImageNameTouchBarHomeLocationTemplate, _NSImageNameTouchBarHomeTemplate, _NSImageNameTouchBarHomepageTemplate, _NSImageNameTouchBarIconViewTemplate, _NSImageNameTouchBarInternationalHandwritingTemplate, _NSImageNameTouchBarLinkSafariTemplate, _NSImageNameTouchBarListViewTemplate, _NSImageNameTouchBarLoveOffTemplate, _NSImageNameTouchBarLoveOnTemplate, _NSImageNameTouchBarMailTemplate, _NSImageNameTouchBarMoreTemplate, _NSImageNameTouchBarNewFolderTemplate, _NSImageNameTouchBarNewFolderWithSelectionTemplate, _NSImageNameTouchBarNewMessageTemplate, _NSImageNameTouchBarOpenInBrowserTemplate, _NSImageNameTouchBarPauseTemplate, _NSImageNameTouchBarPlayPauseTemplate, _NSImageNameTouchBarPlayTemplate, _NSImageNameTouchBarPlayheadTemplate, _NSImageNameTouchBarPrintTemplate, _NSImageNameTouchBarQuickLookTemplate, _NSImageNameTouchBarRecordStartTemplate, _NSImageNameTouchBarRecordStopTemplate, _NSImageNameTouchBarRefreshTemplate, _NSImageNameTouchBarRemoveTemplate, _NSImageNameTouchBarRewindTemplate, _NSImageNameTouchBarRotateLeftTemplate, _NSImageNameTouchBarRotateRightTemplate, _NSImageNameTouchBarSearchMagGlassTemplate, _NSImageNameTouchBarSearchTemplate, _NSImageNameTouchBarShareTemplate, _NSImageNameTouchBarSidebarTemplate, _NSImageNameTouchBarSkipAhead15SecondsTemplate, _NSImageNameTouchBarSkipAhead30SecondsTemplate, _NSImageNameTouchBarSkipAheadTemplate, _NSImageNameTouchBarSkipBack15SecondsTemplate, _NSImageNameTouchBarSkipBack30SecondsTemplate, _NSImageNameTouchBarSkipBackTemplate, _NSImageNameTouchBarSkipToEndTemplate, _NSImageNameTouchBarSkipToStartTemplate, _NSImageNameTouchBarSlideshowTemplate, _NSImageNameTouchBarStopTemplate, _NSImageNameTouchBarTagIconTemplate, _NSImageNameTouchBarTextBoldTemplate, _NSImageNameTouchBarTextBoxTemplate, _NSImageNameTouchBarTextCenterAlignTemplate, _NSImageNameTouchBarTextItalicTemplate, _NSImageNameTouchBarTextJustifiedAlignTemplate, _NSImageNameTouchBarTextLeftAlignTemplate, _NSImageNameTouchBarTextListTemplate, _NSImageNameTouchBarTextOptionsTemplate, _NSImageNameTouchBarTextRightAlignTemplate, _NSImageNameTouchBarTextStrikethroughTemplate, _NSImageNameTouchBarTextUnderlineTemplate, _NSImageNameTouchBarTransferDownloadTemplate, _NSImageNameTouchBarTrashTemplate, _NSImageNameTouchBarUserAddTemplate, _NSImageNameTouchBarUserGroupTemplate, _NSImageNameTouchBarUserTemplate, _NSImageNameTouchBarVolumeDownTemplate, _NSImageNameTouchBarVolumeUpTemplate, _NSImageNameTouchBarWorkTemplate, _NSImageNameTouchBariCloudTemplate, _NSImageNameTrashEmpty, _NSImageNameTrashFull, _NSImageNameUser, _NSImageNameUserAccounts, _NSImageNameUserGroup, _NSImageNameUserGuest, _NSImageProgressive, _NSImageRGBColorTable, _NSImageRepRegistryDidChangeNotification, _NSImageSetConverterFunction, _NSIncludedKeysBinding, _NSInitialKeyBinding, _NSInitialValueBinding, _NSInitializeCGFocusRingStyleForTime, _NSInkTextPboardType, _NSInputAlignmentFilterGuideEqualityThreshold, _NSInsertsNullPlaceholderBindingOption, _NSInspectorBarFontFamilyItemIdentifier, _NSInspectorBarFontSizeItemIdentifier, _NSInspectorBarFontStyleItemIdentifier, _NSInspectorBarFontTypefaceItemIdentifier, _NSInspectorBarSeparatorItemIdentifier, _NSInspectorBarSpaceItemIdentifier, _NSInspectorBarTextAlignmentItemIdentifier, _NSInspectorBarTextBackgroundColorItemIdentifier, _NSInspectorBarTextForegroundColorItemIdentifier, _NSInspectorBarTextLineSpacingItemIdentifier, _NSInspectorBarTextListItemIdentifier, _NSInspectorBarTextStyleItemIdentifier, _NSInterfaceStyleDefault, _NSInterfaceStyleForKey, _NSInvokesSeparatelyWithArrayObjectsBindingOption, _NSIsControllerMarker, _NSIsIndeterminateBinding, _NSKeyDownNotification, _NSKeyUpNotification, _NSLabelBinding, _NSLightGray, _NSLocalizedKeyDictionaryBinding, _NSMainMenuName, _NSManagedObjectContextBinding, _NSMaxValueBinding, _NSMaxWidthBinding, _NSMaximumRecentsBinding, _NSMenuDidAddItemNotification, _NSMenuDidBeginTrackingNotification, _NSMenuDidChangeItemNotification, _NSMenuDidCompleteInteractionNotification, _NSMenuDidEndTrackingNotification, _NSMenuDidRemoveItemNotification, _NSMenuDidSendActionNotification, _NSMenuItemImportFromDeviceIdentifier, _NSMenuWillSendActionNotification, _NSMinValueBinding, _NSMinWidthBinding, _NSMixedStateImageBinding, _NSModalPanelRunLoopMode, _NSMouseDownNotification, _NSMouseDraggedNotification, _NSMouseEnteredNotification, _NSMouseExitedNotification, _NSMouseMovedNotification, _NSMouseUpNotification, _NSMultipleTextSelectionPboardType, _NSMultipleValuesMarker, _NSMultipleValuesPlaceholderBindingOption, _NSNamedColorSpace, _NSNibLoadingException, _NSNibOwner, _NSNibTopLevelObjects, _NSNoSelectionMarker, _NSNoSelectionPlaceholderBindingOption, _NSNotApplicableMarker, _NSNotApplicablePlaceholderBindingOption, _NSNullPlaceholderBindingOption, _NSNumberOfColorComponents, _NSObservedKeyPathKey, _NSObservedObjectKey, _NSOcclusionDetectionViewDidBecomeOccludedNotification, _NSOcclusionDetectionViewDidBecomeUnoccludedNotification, _NSOffStateImageBinding, _NSOnStateImageBinding, _NSOpenGLGetOption, _NSOpenGLGetVersion, _NSOpenGLSetOption, _NSOptionsKey, _NSOutlineViewColumnDidMoveNotification, _NSOutlineViewColumnDidResizeNotification, _NSOutlineViewDisclosureButtonKey, _NSOutlineViewItemDidCollapseNotification, _NSOutlineViewItemDidExpandNotification, _NSOutlineViewItemWillCollapseNotification, _NSOutlineViewItemWillExpandNotification, _NSOutlineViewSelectionDidChangeNotification, _NSOutlineViewSelectionIsChangingNotification, _NSOutlineViewShowHideButtonKey, _NSPDFPboardType, _NSPICTPboardType, _NSPNGPboardType, _NSPPDIncludeNotFoundException, _NSPPDIncludeStackOverflowException, _NSPPDIncludeStackUnderflowException, _NSPPDParseException, _NSPasteboardCommunicationException, _NSPasteboardNameDrag, _NSPasteboardNameFind, _NSPasteboardNameFont, _NSPasteboardNameGeneral, _NSPasteboardNameRuler, _NSPasteboardTypeColor, _NSPasteboardTypeFileURL, _NSPasteboardTypeFindPanelSearchOptions, _NSPasteboardTypeFont, _NSPasteboardTypeHTML, _NSPasteboardTypeMultipleTextSelection, _NSPasteboardTypePDF, _NSPasteboardTypePNG, _NSPasteboardTypeRTF, _NSPasteboardTypeRTFD, _NSPasteboardTypeRuler, _NSPasteboardTypeSound, _NSPasteboardTypeString, _NSPasteboardTypeTIFF, _NSPasteboardTypeTabularText, _NSPasteboardTypeTextFinderOptions, _NSPasteboardTypeURL, _NSPasteboardURLReadingContentsConformToTypesKey, _NSPasteboardURLReadingFileURLsOnlyKey, _NSPatternColorSpace, _NSPerformService, _NSPersistentUIBitmapEncryptionKeyDidChange, _NSPlainFileType, _NSPlanarFromDepth, _NSPopUpButtonCellWillPopUpNotification, _NSPopUpButtonWillPopUpNotification, _NSPopUpMenuCarbonOptionsToSet, _NSPopUpMenuPopupButtonBounds, _NSPopUpMenuPopupButtonLabelOffset, _NSPopUpMenuPopupButtonSize, _NSPopUpMenuPopupButtonWidget, _NSPopoverCloseReasonDetachToWindow, _NSPopoverCloseReasonKey, _NSPopoverCloseReasonStandard, _NSPopoverCloseReasonUserInfoKey, _NSPopoverDidCloseNotification, _NSPopoverDidShowNotification, _NSPopoverWillCloseNotification, _NSPopoverWillShowNotification, _NSPositioningRectBinding, _NSPostScriptPboardType, _NSPredicateBinding, _NSPredicateFormatBindingOption, _NSPreferencesDidChange, _NSPreferredScrollerStyleDidChangeNotification, _NSPrintAllPages, _NSPrintAllPresetsJobStyleHint, _NSPrintBottomMargin, _NSPrintCancelJob, _NSPrintCopies, _NSPrintDetailedErrorReporting, _NSPrintFaxJob, _NSPrintFaxNumber, _NSPrintFirstPage, _NSPrintFormName, _NSPrintHeaderAndFooter, _NSPrintHorizontalPagination, _NSPrintHorizontallyCentered, _NSPrintJobDisposition, _NSPrintJobFeatures, _NSPrintJobSavingFileNameExtensionHidden, _NSPrintJobSavingURL, _NSPrintLastPage, _NSPrintLeftMargin, _NSPrintManualFeed, _NSPrintMustCollate, _NSPrintNoPresetsJobStyleHint, _NSPrintOperationExistsException, _NSPrintOrientation, _NSPrintPackageException, _NSPrintPagesAcross, _NSPrintPagesDown, _NSPrintPagesPerSheet, _NSPrintPanelAccessorySummaryItemDescriptionKey, _NSPrintPanelAccessorySummaryItemNameKey, _NSPrintPaperFeed, _NSPrintPaperName, _NSPrintPaperSize, _NSPrintPhotoJobStyleHint, _NSPrintPreviewJob, _NSPrintPrinter, _NSPrintPrinterName, _NSPrintReversePageOrder, _NSPrintRightMargin, _NSPrintSaveJob, _NSPrintSavePath, _NSPrintScalingFactor, _NSPrintSelectionOnly, _NSPrintSpoolJob, _NSPrintTime, _NSPrintTopMargin, _NSPrintVerticalPagination, _NSPrintVerticallyCentered, _NSPrintingCommunicationException, _NSRTFDPboardType, _NSRTFPboardType, _NSRTFPropertyStackOverflowException, _NSRaisesForNotApplicableKeysBindingOption, _NSReadPixel, _NSRecentDocumentsMenuName, _NSRecentSearchesBinding, _NSRecoloringColorEffectKey, _NSRecommendedScrollerStyleDidChangeNotification, _NSRectClip, _NSRectClipList, _NSRectFill, _NSRectFillList, _NSRectFillListUsingOperation, _NSRectFillListWithColors, _NSRectFillListWithColorsUsingOperation, _NSRectFillListWithGrays, _NSRectFillUsingOperation, _NSReduceDesktopTintingDidChangeNotification, _NSRegisterServicesProvider, _NSReleaseAlertPanel, _NSRepresentedFilenameBinding, _NSRevertDocumentMenuName, _NSRowHeightBinding, _NSRuleEditorPredicateComparisonModifier, _NSRuleEditorPredicateCompoundType, _NSRuleEditorPredicateCustomSelector, _NSRuleEditorPredicateLeftExpression, _NSRuleEditorPredicateOperatorType, _NSRuleEditorPredicateOptions, _NSRuleEditorPredicateRightExpression, _NSRuleEditorRowCountChangeIndexes, _NSRuleEditorRowCountChangeType, _NSRuleEditorRowCountDidChangeNotification, _NSRuleEditorRowsDidChangeNotification, _NSRulerDocViewToRulerConversion, _NSRulerHashSizeCycle, _NSRulerHashSpacing, _NSRulerLabelInterval, _NSRulerPboard, _NSRulerPboardType, _NSRulerViewUnitCentimeters, _NSRulerViewUnitInches, _NSRulerViewUnitPicas, _NSRulerViewUnitPoints, _NSRunAlertPanel, _NSRunAlertPanelRelativeToWindow, _NSRunCriticalAlertPanel, _NSRunCriticalAlertPanelRelativeToWindow, _NSRunInformationalAlertPanel, _NSRunInformationalAlertPanelRelativeToWindow, _NSScreenColorSpaceDidChangeNotification, _NSScrollViewDidEndLiveMagnifyNotification, _NSScrollViewDidEndLiveScrollNotification, _NSScrollViewDidLiveScrollNotification, _NSScrollViewWillStartLiveMagnifyNotification, _NSScrollViewWillStartLiveScrollNotification, _NSScrolledNotification, _NSScrollerClickBehaviorDidChange, _NSScrollerPagingBehaviorDefault, _NSScrubberSelectionStyleBoldOutline, _NSScrubberSelectionStyleNone, _NSScrubberSelectionStyleSolidBackground, _NSSegmentedCellSegmentShowingRolloverChangedNotification, _NSSelectedIdentifierBinding, _NSSelectedIndexBinding, _NSSelectedLabelBinding, _NSSelectedObjectBinding, _NSSelectedObjectsBinding, _NSSelectedTagBinding, _NSSelectedValueBinding, _NSSelectedValuesBinding, _NSSelectionIndexPathsBinding, _NSSelectionIndexesBinding, _NSSelectionMadeNotification, _NSSelectorNameBindingOption, _NSSelectsAllWhenSettingContentBindingOption, _NSServiceLocalizedName, _NSServicePresentationModeContextMenu, _NSServicePresentationModeFinderPreview, _NSServicePresentationModeServicesMenu, _NSServicePresentationModeTouchBar, _NSServicesCopyDynamicValueForKey, _NSServicesMenuName, _NSServicesWebSearchProviderKey, _NSSetFocusRingStyle, _NSSetShowsServicesMenuItem, _NSSetUseDefaultEmojiReplacementsDictionary, _NSSetUseSplitCursor, _NSSetUseWritingDirectionKeyBindings, _NSShadowEffectKey, _NSShareDocumentMenuName, _NSSharingServiceMailExportFileKey, _NSSharingServiceMailExportFileObjectsKey, _NSSharingServiceMailExportFilesKey, _NSSharingServiceMailExportImageObjectsKey, _NSSharingServiceMailExportImagesKey, _NSSharingServiceMailExportTextKey, _NSSharingServiceMailExportTextObjectKey, _NSSharingServiceMailExportURLObjectKey, _NSSharingServiceMailExportWebArchiveObjectKey, _NSSharingServiceNameAddToAperture, _NSSharingServiceNameAddToIPhoto, _NSSharingServiceNameAddToSafariReadingList, _NSSharingServiceNameCloudSharing, _NSSharingServiceNameComposeEmail, _NSSharingServiceNameComposeMessage, _NSSharingServiceNameExportVideoOnFlickr, _NSSharingServiceNameExportVideoOnYouTube, _NSSharingServiceNamePostImageOnFlickr, _NSSharingServiceNamePostOnFacebook, _NSSharingServiceNamePostOnLinkedIn, _NSSharingServiceNamePostOnSinaWeibo, _NSSharingServiceNamePostOnTencentWeibo, _NSSharingServiceNamePostOnTwitter, _NSSharingServiceNamePostVideoOnFacebook, _NSSharingServiceNamePostVideoOnTudou, _NSSharingServiceNamePostVideoOnVimeo, _NSSharingServiceNamePostVideoOnYouku, _NSSharingServiceNameSendViaAirDrop, _NSSharingServiceNameUseAsAccountPicture, _NSSharingServiceNameUseAsBuddyPicture, _NSSharingServiceNameUseAsDesktopPicture, _NSSharingServiceNameUseAsFacebookProfileImage, _NSSharingServiceNameUseAsLinkedInProfileImage, _NSSharingServiceNameUseAsTwitterProfileImage, _NSSharingServiceOptionAlternateItemDisplayNameKey, _NSSharingServiceOptionAlternateItemIdentifierKey, _NSSharingServiceOptionAlternateItemUTIKey, _NSSharingServiceOptionAlternateItemsKey, _NSSharingServiceParametersAccountHintKey, _NSSharingServiceParametersAccountNameKey, _NSSharingServiceParametersAttachmentURLsKey, _NSSharingServiceParametersDefaultRecipientsKey, _NSSharingServiceParametersDefaultSubjectKey, _NSSharingServiceParametersDisableServiceWindowPresentationKey, _NSSharingServiceParametersDisplayStateKey, _NSSharingServiceParametersIsCloudSharingServiceKey, _NSSharingServiceParametersItemURLKey, _NSSharingServiceParametersMaskClientWindowKey, _NSSharingServiceParametersMenuItemCustomTitleKey, _NSSharingServiceParametersMenuItemIsAlternateKey, _NSSharingServiceParametersMenuItemKeyEquivalentKey, _NSSharingServiceParametersMenuItemKeyEquivalentModifierMaskKey, _NSSharingServiceParametersMessageKey, _NSSharingServiceParametersNarrowServiceWindowKey, _NSSharingServiceParametersPermaLinkKey, _NSSharingServiceParametersQuoteContentKey, _NSSharingServiceParametersRecipientsKey, _NSSharingServiceParametersSelectContentKey, _NSSharingServiceParametersSubjectKey, _NSSharingServiceParametersWebPageURLKey, _NSShellCommandFileType, _NSShowAnimationEffect, _NSShowSystemInfoPanel, _NSShowsServicesMenuItem, _NSSidebarCurrentLabelFont, _NSSidebarCurrentMetrics, _NSSidebarFontForRowSize, _NSSidebarGroupRowFont, _NSSidebarGroupRowInsets_isFirstRow, _NSSidebarGroupRowTextColorForState, _NSSidebarGroupRowTextColor_isEmphasized, _NSSidebarIconColorForState_isEmphasized, _NSSidebarMetricsForRowSize, _NSSidebarMetricsGroupRow, _NSSidebarTextColorForState_isEmphasized, _NSSidebarTrackingAdapterNoSidebar, _NSSliderAccessoryWidthDefault, _NSSliderAccessoryWidthWide, _NSSortDescriptorsBinding, _NSSoundPboardType, _NSSpeechCharacterModeProperty, _NSSpeechCommandDelimiterProperty, _NSSpeechCommandPrefix, _NSSpeechCommandSuffix, _NSSpeechCurrentVoiceProperty, _NSSpeechDictionaryAbbreviations, _NSSpeechDictionaryEntryPhonemes, _NSSpeechDictionaryEntrySpelling, _NSSpeechDictionaryLocaleIdentifier, _NSSpeechDictionaryModificationDate, _NSSpeechDictionaryPronunciations, _NSSpeechErrorCount, _NSSpeechErrorNewestCharacterOffset, _NSSpeechErrorNewestCode, _NSSpeechErrorOldestCharacterOffset, _NSSpeechErrorOldestCode, _NSSpeechErrorsProperty, _NSSpeechInputModeProperty, _NSSpeechModeLiteral, _NSSpeechModeNormal, _NSSpeechModePhoneme, _NSSpeechModeText, _NSSpeechNumberModeProperty, _NSSpeechOutputToFileURLProperty, _NSSpeechPhonemeInfoExample, _NSSpeechPhonemeInfoHiliteEnd, _NSSpeechPhonemeInfoHiliteStart, _NSSpeechPhonemeInfoOpcode, _NSSpeechPhonemeInfoSymbol, _NSSpeechPhonemeSymbolsProperty, _NSSpeechPitchBaseProperty, _NSSpeechPitchModProperty, _NSSpeechRateProperty, _NSSpeechRecentSyncProperty, _NSSpeechResetProperty, _NSSpeechStatusNumberOfCharactersLeft, _NSSpeechStatusOutputBusy, _NSSpeechStatusOutputPaused, _NSSpeechStatusPhonemeCode, _NSSpeechStatusProperty, _NSSpeechSynthesizerBoundaryImmedidate, _NSSpeechSynthesizerBoundarySentence, _NSSpeechSynthesizerBoundaryWord, _NSSpeechSynthesizerInfoIdentifier, _NSSpeechSynthesizerInfoProperty, _NSSpeechSynthesizerInfoVersion, _NSSpeechVolumeProperty, _NSSpellCheckerDidChangeAutomaticCapitalizationNotification, _NSSpellCheckerDidChangeAutomaticDashSubstitutionNotification, _NSSpellCheckerDidChangeAutomaticPeriodSubstitutionNotification, _NSSpellCheckerDidChangeAutomaticQuoteSubstitutionNotification, _NSSpellCheckerDidChangeAutomaticSpellingCorrectionNotification, _NSSpellCheckerDidChangeAutomaticTextCompletionCollapsedNotification, _NSSpellCheckerDidChangeAutomaticTextCompletionNotification, _NSSpellCheckerDidChangeAutomaticTextReplacementNotification, _NSSpellCheckerDidChangeLanguageNotification, _NSSpellCheckerDidLearnWordNotification, _NSSpellCheckerDidUnlearnWordNotification, _NSSpellCheckerDismissAuxiliaryWindowsNotification, _NSSplitViewControllerAutomaticDimension, _NSSplitViewDidResizeSubviewsNotification, _NSSplitViewDividerIndexKey, _NSSplitViewItemUnspecifiedDimension, _NSSplitViewUserResizeKey, _NSSplitViewWillResizeSubviewsNotification, _NSStringPboardType, _NSSystemColorPreferencesChangedNotification, _NSSystemColorsDidChangeNotification, _NSTIFFException, _NSTIFFPboardType, _NSTableRowAnimationFromMask, _NSTableViewColumnDidMoveNotification, _NSTableViewColumnDidResizeNotification, _NSTableViewCurrentRowSizeStyle, _NSTableViewCurrentRowSizeStyleDidChange, _NSTableViewDefaultRowSizeStyle, _NSTableViewGroupViewKey, _NSTableViewRowViewKey, _NSTableViewSelectionDidChangeNotification, _NSTableViewSelectionIsChangingNotification, _NSTableViewTrackingAreaColumnKey, _NSTableViewTrackingAreaRowKey, _NSTabularTextPboardType, _NSTargetBinding, _NSTextCheckingAppIdentifierKey, _NSTextCheckingDocumentAuthorKey, _NSTextCheckingDocumentTitleKey, _NSTextCheckingDocumentURLKey, _NSTextCheckingInsertionPointKey, _NSTextCheckingKeyEventArrayKey, _NSTextCheckingKeyEventDataKey, _NSTextCheckingOrthographyKey, _NSTextCheckingParameterBundlesKey, _NSTextCheckingQuotesKey, _NSTextCheckingRecheckOrthographyKey, _NSTextCheckingReferenceDateKey, _NSTextCheckingReferenceTimeZoneKey, _NSTextCheckingRegularExpressionsKey, _NSTextCheckingReplacementsKey, _NSTextCheckingSelectedRangeKey, _NSTextCheckingSuppressAdaptationKey, _NSTextCheckingSuppressInitialCapitalizationKey, _NSTextCheckingSuppressKeyEventDataKey, _NSTextColorBinding, _NSTextContentTypeOneTimeCode, _NSTextContentTypePassword, _NSTextContentTypeUsername, _NSTextFinderCaseInsensitiveKey, _NSTextFinderMatchingTypeKey, _NSTextInputChromaticMarkedTextAttributeName, _NSTextInputContextKeyboardSelectionDidChangeNotification, _NSTextInputMarkedCandidatesForSearchAttributeName, _NSTextInputReplacementRangeAttributeName, _NSTextInsertionUndoableAttributeName, _NSTextLineTooLongException, _NSTextNoSelectionException, _NSTextPlaceholderAttributeName, _NSTextReadException, _NSTextViewDidDowngradeToLayoutManagerNotification, _NSTextViewDidSwitchToNSLayoutManagerNotification, _NSTextViewWillDowngradeToLayoutManagerNotification, _NSTextViewWillSwitchToNSLayoutManagerNotification, _NSTextWriteException, _NSThemeSpace, _NSTintColorEffectKey, _NSTitleBinding, _NSToolTipBinding, _NSToolTipHelpKey, _NSToolbarCloudSharingItemIdentifier, _NSToolbarCustomizeToolbarItemIdentifier, _NSToolbarDidRemoveItemNotification, _NSToolbarDidReorderItemNotification, _NSToolbarFixedWidthSpaceItemIdentifier, _NSToolbarFlexibleSpaceItemIdentifier, _NSToolbarPrintItemIdentifier, _NSToolbarSeparatorItemIdentifier, _NSToolbarShowColorsItemIdentifier, _NSToolbarShowFontsItemIdentifier, _NSToolbarSidebarSeparatorItemIdentifier, _NSToolbarSidebarTrackingSeparatorItemIdentifier, _NSToolbarSpaceItemIdentifier, _NSToolbarToggleSidebarItemIdentifier, _NSToolbarWillAddItemNotification, _NSTouchBarCustomizationIdentifierRichTextView, _NSTouchBarCustomizationIdentifierTextFormat, _NSTouchBarCustomizationIdentifierTextView, _NSTouchBarDidEnterCustomization, _NSTouchBarDidExitCustomization, _NSTouchBarDiscoveredProviders, _NSTouchBarDiscoveryDescription, _NSTouchBarItemIdentifierCandidateList, _NSTouchBarItemIdentifierCharacterPicker, _NSTouchBarItemIdentifierFixedSpaceLarge, _NSTouchBarItemIdentifierFixedSpaceSmall, _NSTouchBarItemIdentifierFlexibleSpace, _NSTouchBarItemIdentifierOtherItemsProxy, _NSTouchBarItemIdentifierSystemCloseButton, _NSTouchBarItemIdentifierTextAlignment, _NSTouchBarItemIdentifierTextColorPicker, _NSTouchBarItemIdentifierTextFormat, _NSTouchBarItemIdentifierTextList, _NSTouchBarItemIdentifierTextStyle, _NSTouchBarPersistWithIdentifier, _NSTouchBarWillEnterCustomization, _NSTouchBarWillExitCustomization, _NSTouchDeviceAddedNotification, _NSTouchDeviceRemovedNotification, _NSTransparentBinding, _NSTypedFilenamesPboardType, _NSTypedStreamVersionException, _NSURLPboardType, _NSUnregisterServicesProvider, _NSUpdateDynamicServices, _NSUseSplitCursor, _NSUseWritingDirectionKeyBindings, _NSUserAccentColorGetHardwareAccentColorName, _NSUserAccentHasHardwareColor, _NSUserHighlightColorForUserAccentKey, _NSVCardPboardType, _NSValidatesImmediatelyBindingOption, _NSValueBinding, _NSValuePathBinding, _NSValueTransformerBindingOption, _NSValueTransformerNameBindingOption, _NSValueURLBinding, _NSViewAnimationEffectKey, _NSViewAnimationEndFrameKey, _NSViewAnimationFadeInEffect, _NSViewAnimationFadeOutEffect, _NSViewAnimationStartFrameKey, _NSViewAnimationTargetKey, _NSViewBoundsDidChangeNotification, _NSViewDetectedAmbiguousLayoutNotification, _NSViewDidChangeBackingScaleNotification, _NSViewDidUpdateTrackingAreasNotification, _NSViewFocusDidChangeNotification, _NSViewFrameDidChangeNotification, _NSViewGetEffectiveVibrantBlendingStyle, _NSViewGlobalFrameDidChangeNotification, _NSViewNoInstrinsicMetric, _NSViewNoIntrinsicMetric, _NSVisibleBinding, _NSVoiceAge, _NSVoiceDemoText, _NSVoiceGender, _NSVoiceGenderFemale, _NSVoiceGenderMale, _NSVoiceGenderNeuter, _NSVoiceIdentifier, _NSVoiceIndividuallySpokenCharacters, _NSVoiceLanguage, _NSVoiceLocaleIdentifier, _NSVoiceName, _NSVoiceSupportedCharacters, _NSWarningValueBinding, _NSWhite, _NSWidthBinding, _NSWindowDidBecomeKeyNotification, _NSWindowDidBecomeMainNotification, _NSWindowDidChangeBackingPropertiesNotification, _NSWindowDidChangeOcclusionStateNotification, _NSWindowDidChangeScreenNotification, _NSWindowDidChangeScreenProfileNotification, _NSWindowDidDeminiaturizeNotification, _NSWindowDidEndLiveResizeNotification, _NSWindowDidEndSheetNotification, _NSWindowDidEnterFullScreenNotification, _NSWindowDidEnterVersionBrowserNotification, _NSWindowDidExitFullScreenNotification, _NSWindowDidExitVersionBrowserNotification, _NSWindowDidExposeNotification, _NSWindowDidMiniaturizeNotification, _NSWindowDidMoveNotification, _NSWindowDidOrderOffScreenAndFinishAnimatingNotification, _NSWindowDidOrderOffScreenNotification, _NSWindowDidOrderOnScreenAndFinishAnimatingNotification, _NSWindowDidOrderOnScreenNotification, _NSWindowDidResignKeyNotification, _NSWindowDidResignMainNotification, _NSWindowDidResizeNotification, _NSWindowDidUpdateNotification, _NSWindowList, _NSWindowListForContext, _NSWindowServerBarrier, _NSWindowServerCommunicationException, _NSWindowWillBeginSheetNotification, _NSWindowWillCloseNotification, _NSWindowWillEnterFullScreenNotification, _NSWindowWillEnterVersionBrowserNotification, _NSWindowWillExitFullScreenNotification, _NSWindowWillExitVersionBrowserNotification, _NSWindowWillMiniaturizeNotification, _NSWindowWillMoveNotification, _NSWindowWillOrderOffScreenNotification, _NSWindowWillOrderOnScreenNotification, _NSWindowWillStartLiveResizeNotification, _NSWindowsMenuName, _NSWordTablesReadException, _NSWordTablesWriteException, _NSWorkspaceAccessibilityDisplayOptionsDidChangeNotification, _NSWorkspaceAccessibilityFocusedElementDidChangeNotification, _NSWorkspaceActiveSpaceDidChangeNotification, _NSWorkspaceApplicationKey, _NSWorkspaceCompressOperation, _NSWorkspaceCopyOperation, _NSWorkspaceDecompressOperation, _NSWorkspaceDecryptOperation, _NSWorkspaceDesktopImageAllSpacesKey, _NSWorkspaceDesktopImageAllowClippingKey, _NSWorkspaceDesktopImageFillColorKey, _NSWorkspaceDesktopImageScalingKey, _NSWorkspaceDestroyOperation, _NSWorkspaceDidActivateApplicationNotification, _NSWorkspaceDidChangeFileLabelsNotification, _NSWorkspaceDidDeactivateApplicationNotification, _NSWorkspaceDidHideApplicationNotification, _NSWorkspaceDidLaunchApplicationNotification, _NSWorkspaceDidMountNotification, _NSWorkspaceDidPerformFileOperationNotification, _NSWorkspaceDidRenameVolumeNotification, _NSWorkspaceDidTerminateApplicationNotification, _NSWorkspaceDidUnhideApplicationNotification, _NSWorkspaceDidUnmountNotification, _NSWorkspaceDidWakeNotification, _NSWorkspaceDuplicateOperation, _NSWorkspaceEncryptOperation, _NSWorkspaceLaunchConfigurationAppleEvent, _NSWorkspaceLaunchConfigurationArchitecture, _NSWorkspaceLaunchConfigurationArguments, _NSWorkspaceLaunchConfigurationEnvironment, _NSWorkspaceLinkOperation, _NSWorkspaceMenuBarAppearanceDidChangeNotification, _NSWorkspaceMoveOperation, _NSWorkspaceRecycleOperation, _NSWorkspaceScreensDidSleepNotification, _NSWorkspaceScreensDidWakeNotification, _NSWorkspaceSessionDidBecomeActiveNotification, _NSWorkspaceSessionDidResignActiveNotification, _NSWorkspaceVolumeLocalizedNameKey, _NSWorkspaceVolumeOldLocalizedNameKey, _NSWorkspaceVolumeOldURLKey, _NSWorkspaceVolumeURLKey, _NSWorkspaceWillLaunchApplicationNotification, _NSWorkspaceWillPowerOffNotification, _NSWorkspaceWillSleepNotification, _NSWorkspaceWillUnmountNotification, _ResetNSAlertConstraintBasedLayout, _ResetNSAlertWeakDelegate, _ResetNSAsyncBeginServicePanel, _ResetNSAutoFillHeuristicControllerEnabled, _ResetNSAutomaticallyTrackKeyValueDependencies, _ResetNSCollectionViewWeakDelegate, _ResetNSConservativeTAMICConstraintCreation, _ResetNSConstraintBasedLayoutDetectAmbiguousViews, _ResetNSConstraintBasedLayoutEngageNonLazily, _ResetNSDynamicPropertiesCaptureDependencyContextMetadata, _ResetNSISIconPreparationMode, _ResetNSImageCompositeFromRectIsInRepCoords, _ResetNSLifeguardOnDuty, _ResetNSLifeguardTestable, _ResetNSOutlineViewValidateChanges, _ResetNSPasteboardRequiresSecureCoding, _ResetNSPopoverWeakDelegate, _ResetNSSavePanelForceMicrosoftAccessoryViewCentering, _ResetNSSavePanelWorkAroundBadAccessoryViewFittingSizes, _ResetNSScreenIsMutable, _ResetNSSplitViewWeakDelegate, _ResetNSStackViewWeakDelegate, _ResetNSUseRemoteSavePanel, _ResetNSViewControllerSupports10_10Features, _ResetNSViewThrowUnsatisfiableConstraints, _ResetNSVisualEffectViewAlwaysUseBackdrop, _ResetNSWindowAssertWhenDisplayCycleLimitReached, _ResetNSWindowSnappingDoClientSide, _ResetNSWindowTabbingEnabled, _ResetNSWorkspaceRaiseOnInvalidConfigurationDictionary, _SetNSAlertConstraintBasedLayout, _SetNSAlertWeakDelegate, _SetNSAsyncBeginServicePanel, _SetNSAutoFillHeuristicControllerEnabled, _SetNSAutomaticallyTrackKeyValueDependencies, _SetNSCollectionViewWeakDelegate, _SetNSConservativeTAMICConstraintCreation, _SetNSConstraintBasedLayoutDetectAmbiguousViews, _SetNSConstraintBasedLayoutEngageNonLazily, _SetNSDynamicPropertiesCaptureDependencyContextMetadata, _SetNSISIconPreparationMode, _SetNSImageCompositeFromRectIsInRepCoords, _SetNSLifeguardOnDuty, _SetNSLifeguardTestable, _SetNSOutlineViewValidateChanges, _SetNSPasteboardRequiresSecureCoding, _SetNSPopoverWeakDelegate, _SetNSSavePanelForceMicrosoftAccessoryViewCentering, _SetNSSavePanelWorkAroundBadAccessoryViewFittingSizes, _SetNSScreenIsMutable, _SetNSSplitViewWeakDelegate, _SetNSStackViewWeakDelegate, _SetNSUseRemoteSavePanel, _SetNSViewControllerSupports10_10Features, _SetNSViewThrowUnsatisfiableConstraints, _SetNSVisualEffectViewAlwaysUseBackdrop, _SetNSWindowAssertWhenDisplayCycleLimitReached, _SetNSWindowSnappingDoClientSide, _SetNSWindowTabbingEnabled, _SetNSWorkspaceRaiseOnInvalidConfigurationDictionary, __NSAccessibilityCustomActionsAttribute, __NSAccessibilityCustomElementDataProviderSystemTypeFromDataElementSpecifier, __NSAccessibilityFrameAttribute, __NSAccessibilityFrameInParentSpaceAttribute, __NSAccessibilityLabelAttribute, __NSAddButtonRectToWindowWithActivation, __NSAddRectsToWindow, __NSAddSpecialCommandRectToWindow, __NSAppKitGlobalLock, __NSAppendToKillRing, __NSAppleMenuName, __NSAppleVersionDebug, __NSApplicationMainWithInfoDictionary, __NSApplicationMetricsGatheringEnabled, __NSBrowserDidUserResizeColumns, __NSBrowserWillUserResizeColumns, __NSCenteredRectForImage, __NSClearButtonRectsInWindow, __NSClearDragRectsInWindow, __NSClearMarkedRange, __NSCloudKitContainerID, __NSCloudKitContainerIdentifier, __NSCloudKitContainerSetupInfo, __NSCloudKitContainerType, __NSCloudKitPostShareType, __NSCloudKitPreShareType, __NSCloudKitShare, __NSCloudKitSourceAppBundleIdentifier, __NSColorBaseUserHighlightColor, __NSColorCoreUICatalogMainBundleID, __NSColorCoreUICatalogNamePrefix, __NSColorFromDefault, __NSColorSpaceNameFromNum, __NSCompositeButtonImage, __NSCompositeNotScaled, __NSCompositePushButtonImage, __NSCopyServiceActions, __NSCoreServicesPath, __NSCreateIconFamilyFromNSImage, __NSCreateImageRef, __NSCreateKeyBindingState, __NSDefaultControlTint, __NSDictionaryWithAdditionalKeyAndObject, __NSDockAlive, __NSDocumentSerializationInfo, __NSDragWindowRelativeToMouseDown, __NSDrawCarbonThemeBezel, __NSDrawCarbonThemeListBox, __NSDrawDisabledTextFieldBezel, __NSDrawFourPartImage, __NSDrawMacintoshStyleBezel, __NSDrawNinePartImage, __NSDrawThreePartImage, __NSDrawThreePartImageWithOperation, __NSDrawThreeSectionImage, __NSDrawThreeSectionImageWithOperation, __NSDrawVertStretchedImage, __NSEditTextCell, __NSEffectiveScrollerStyle, __NSElasticDeltaForReboundDelta, __NSElasticDeltaForReboundDelta2, __NSElasticDeltaForTimeDelta, __NSElasticDeltaForTimeDelta2, __NSElasticInitialPositionForZeroDelta, __NSFinderQuickActionMenuName, __NSFontMenuName, __NSGetAppKitMenu, __NSGetAvailablePresentationModesForServiceDescription, __NSGetCarbonMenu, __NSGetCarbonMenu2, __NSGetMenuItemForCommandKeyEvent, __NSHIViewDrawNSImage, __NSHelpMenuName, __NSIBProvideResolvedValueForRelationBetween, __NSImageGetSize, __NSIndexPathForItem, __NSInitializeKillRing, __NSIsCarbonApp, __NSKeyEquivalentModifierMaskMatchesModifierFlags, __NSKeyboardUIHandleSymbolicHotKey, __NSKeyboardUIHotKeysCleanup, __NSKeyboardUIHotKeysInitialize, __NSKeyboardUISelectAnyValidResponder, __NSKitBundle, __NSLibraryPathsForType, __NSLoadMacSimpleTextFormatWithOptions, __NSLocalizedUserInterfaceWidthFactor, __NSLogCTM, __NSMainMenuName, __NSMakeAttributedStringFromCarbonTEData, __NSMakeCarbonTEDataFromAttributedString, __NSMenuLocalUserKEsDidChangeNotification, __NSNameFromKeyEquivalentString, __NSNavDrawLabelColorIndex, __NSNavDrawLabelColorIndexRects, __NSNewCatalogColor, __NSNewKillRingSequence, __NSObjectForItem, __NSOpenAndSavePanelServiceRequestsOrderWindow, __NSOpenAndSavePanelServiceRequestsOrderWindowForTimeMachineModeInvocation, __NSOpenAndSavePanelServiceRequestsSetFrameOfRemoteWindowForTimeMachineMode, __NSOpenAndSavePanelServiceRequestsUpdateSidebarTrackingPosition, __NSOpenAndSavePanelsServiceBridgeKeMostRecentCompletion, __NSOpenAndSavePanelsServiceBridgeKeMostRecentCompletionKeyIndex, __NSOpenAndSavePanelsServiceBridgeKeMostRecentCompletionKeyResult, __NSOpenAndSavePanelsServiceBridgeKeyBOOL, __NSOpenAndSavePanelsServiceBridgeKeyNSError, __NSOpenAndSavePanelsServiceBridgeKeyQueryFilenameOK, __NSOpenAndSavePanelsServiceBridgeKeyRemoteDelegateInvocation, __NSOpenAndSavePanelsServiceBridgeKeyRemoteIBActionInvocation, __NSOpenAndSavePanelsServiceBridgeKeyRemoteIBActionNewDocument, __NSOpenAndSavePanelsServiceBridgeKeyRemoteMethodInvocation, __NSOpenAndSavePanelsServiceBridgeKeySendDelegateDirectoryChanged, __NSOpenAndSavePanelsServiceBridgeKeySendDelegateDirectoryURLChanged, __NSOpenAndSavePanelsServiceBridgeKeySendDelegatePanelShouldEnableURL, __NSOpenAndSavePanelsServiceBridgeKeySendDelegatePanelUserEnteredFilename, __NSOpenAndSavePanelsServiceBridgeKeySendDelegatePanelWillExpand, __NSOpenAndSavePanelsServiceBridgeKeySendDelegateSelectionDidChange, __NSOpenAndSavePanelsServiceBridgeKeyUniqueID, __NSParseWithFormat, __NSPathForSystemFramework, __NSPersistentUICreateCGImageFromFile, __NSPersistentUICrossEncrypt, __NSPersistentUIMetadataWasSignedWithKey, __NSPersistentUIReadMetadataFromOpenFile, __NSPersistentUIReadMetadataFromURL, __NSPopUpCarbonMenu2, __NSPopUpCarbonMenu3, __NSPreferencesSetPrefsBundleSearchBundle, __NSPrependToKillRing, __NSPrintProtected, __NSPrintersPath, __NSQuickActionPresentationModeFinder, __NSQuickActionPresentationModeTouchBar, __NSReboundDeltaForElasticDelta, __NSReboundDeltaForElasticDelta2, __NSRecentDocumentsMenuName, __NSRecommendedScrollerStyle, __NSResetKillRingOperationFlag, __NSResetServiceActions, __NSRevertDocumentMenuName, __NSSavePanelFilenameExtensionIndexOfFileType, __NSSavePanelInitOptionKeyAuditToken, __NSSavePanelInitOptionKeyPID, __NSSavePanelInitOptionKeyService, __NSSavePanelPAPerfOperation, __NSSavePanelPAPerfOperationMarkInterval, __NSSavePanelPAPerfOperationMarkName, __NSSavePanelResizeWindowAnimated, __NSSavePresentationModeServiceActionOrder, __NSSaveServiceActions, __NSSendDirectTouchesEvent, __NSServicesMenuName, __NSServicesUIAgentMain, __NSSetDefaultControlTint, __NSSetDottedLinePattern, __NSSetDraggingSource, __NSSetFocusRingStyle, __NSSetKillRingToYankedState, __NSSetOpaqueForEvents, __NSSetUseCoreUI, __NSSetViewsPostSubviewHierarchyChangedNotifications, __NSSetWindowOpacity, __NSShakeForAuthenticationFailureAmplitude, __NSShakeForAuthenticationFailureDuration, __NSShapeRoundedWindow, __NSShapeRoundedWindowWithWeighting, __NSSharingServiceNameCloudSharingCopyLink, __NSSharingServiceNameCloudSharingInvitation, __NSShortAppName, __NSSubviewHierarchyDidChangeNotification, __NSSystemLibraryPath, __NSTabBarCollapsedFSTabBackgroundColor, __NSTabBarCollapsedFSTabBorderColor, __NSTabBarCollapsedFSTabOuterBorderColor, __NSTabBarCollapsedFSTabWindowBackgroundColor, __NSTabBarDraggedTabTitleTextColor, __NSTabBarDraggedTransparentTabFillColor, __NSTabBarInactiveTabHoverColor, __NSTabBarInactiveTabMouseDownEndColor, __NSTabBarInactiveTabMouseDownStartColor, __NSTabBarMainWindowTabBarFillColor, __NSTabBarNativeViewBackgroundColor, __NSTabBarNewTabButtonHoverColor, __NSTabBarNewTabButtonHoverLeadingBorderColor, __NSTabBarNewTabButtonHoverTopBorderColor, __NSTabBarNewTabButtonPressedColor, __NSTabBarNewTabButtonPressedLeadingBorderColor, __NSTabBarNewTabButtonPressedTopBorderColor, __NSTabBarNonMainWindowTabBarFillColor, __NSTabBarOffscreenMainWindowTabBarFillColor, __NSTabBarOffscreenMainWindowUnselectedTabBarFillColor, __NSTabBarOffscreenNonMainWindowTabBarFillColor, __NSTabBarOpaqueBorderColor, __NSTabBarSemitransparentBottomBorderColor, __NSTabBarSemitransparentDividerColor, __NSTabBarSemitransparentTopBorderColor, __NSTabBarSpecialButtonGlyphColor, __NSTabBarTabCloseButtonColor, __NSTabBarTabCloseButtonPressedHighlightColor, __NSTabBarTabCloseButtonRolloverHighlightColor, __NSTabBarTabFillColorActiveWindow, __NSTabBarTabFillColorInactiveWindow, __NSTabBarTabFillColorSelectedActiveWindow, __NSTabBarTabFillColorSelectedInactiveWindow, __NSTabBarTabPickerThumbnailBackgroundColor, __NSTabBarTabPickerThumbnailHeaderColor, __NSTabBarTabTextColorForMainWindow, __NSTabBarTabTextColorForNonMainWindow, __NSTabViewFloatingCell, __NSTextCellSize, __NSTextContainerForTextCell, __NSTextInputContextKeyboardTypeDidChangeNotification, __NSTileImage, __NSTileImageWithOperation, __NSToolTipInfoCellKey, __NSToolTipInfoExpansionFrameKey, __NSToolTipInfoTrackingRectKey, __NSToolbarIndividualItemDragType, __NSToolbarItemDragType, __NSToolbarItemIdentifierPboardType, __NSToolbarMetricsGetDefault, __NSTouchBarItemTreeFilteredBars, __NSUseCoreUI, __NSUseLeopardWindowValues, __NSUsersPreferredScrollerStyle, __NSVBLogCaughtException, __NSVBLogFunc, __NSVisualEffectViewMakeMaterialLayer, __NSVisualEffectViewShowChameleonLayer, __NSWindowDidBecomeVisible, __NSWindowDidChangeContentsHostedInLayerSurfaceNotification, __NSWindowDidChangeWindowNumber, __NSWindowsMenuName, __NSYankFromKillRing, __NXDrawImage, __NXDrawTextCell, __NXKitString, __NXLastModalSession, __NXScreenForRect, __NXScreenMaxYForRect, __NXShowKeyAndMain, __NXSmartPaste, ___NSHasDisplayScaleFactor, __compareTabViewItemWidth, __enableNSPreferences, __nsBeginNSPSupport ] objc-classes: [ NSATSUStyleObject, NSAcceleratorGestureRecognizer, NSAccessibilityColorUtilities, NSAccessibilityCustomAction, NSAccessibilityCustomChooser, NSAccessibilityCustomChooserItemResult, NSAccessibilityCustomChooserSearchPredicate, NSAccessibilityCustomRotor, NSAccessibilityCustomRotorItemResult, NSAccessibilityCustomRotorSearchParameters, NSAccessibilityElement, NSAccessibilityMockUIElement, NSAccessibilityProxy, NSAccessibilityRemoteUIElement, NSActionCell, NSAlert, NSAlignmentFeedbackFilter, NSAnimation, NSAnimationContext, NSAnimationManager, NSAppearance, NSApplication, NSApplicationExtensionItem, NSApplicationExtensionSession, NSArrayController, NSAutounbinder, NSBannerView, NSBehindWindowVibrancyKillingView, NSBezierPath, NSBindingSelectionMarker, NSBitmapGraphicsContext, NSBitmapImageRep, NSBox, NSBrowser, NSBrowserCell, NSBrowserColumnViewController, NSBrowserTableView, NSButton, NSButtonCell, NSButtonGroupTouchBarItem, NSButtonImageSource, NSButtonTouchBarItem, NSCGImageRep, NSCGSContext, NSCIImageRep, NSCachedImageRep, NSCachedRGBColor, NSCalibratedRGBColor, NSCandidateBarCompositeCandidate, NSCandidateListTouchBarItem, NSCarbonMenuImpl, NSCatalogColor, NSCell, NSClassSwapper, NSClickGestureRecognizer, NSClipView, NSCloudKitShareProvider, NSCloudSharingPanel, NSCollectionView, NSCollectionViewGridLayout, NSCollectionViewItem, NSColor, NSColorGamut, NSColorList, NSColorPanel, NSColorPicker, NSColorPickerSliders, NSColorPickerTouchBarItem, NSColorPopoverController, NSColorSampler, NSColorScaleSlider, NSColorScaleSliderCell, NSColorSpace, NSColorSpaceColor, NSColorSwatchScrubberItemView, NSColorWell, NSComboBox, NSComboBoxCell, NSComboBoxWindow, NSCompressionGroupLayout, NSConcretePrintOperation, NSControl, NSController, NSCoreUIImageRep, NSCursor, NSCustomImageRep, NSCustomObject, NSCustomResource, NSCustomTouchBarItem, NSCustomView, NSDatePicker, NSDatePickerCell, NSDictionaryController, NSDictionaryControllerKeyValuePair, NSDisplayLink, NSDisplayLinkInvocation, NSDockTile, NSDocument, NSDocumentController, NSDocumentTitlebarController, NSDragEventTracker, NSDraggingImageComponent, NSDraggingItem, NSDraggingSession, NSDrawer, NSDrawerFrame, NSDrawerWindow, NSDynamicNamedColor, NSEPSImageRep, NSEvent, NSEventTracker, NSFilePromiseProvider, NSFilePromiseReceiver, NSFindIndicator, NSFloatRange, NSFocusStack, NSFontCollection, NSFontManager, NSFontPanel, NSForceClickMonitor, NSForm, NSFormCell, NSFrameView, NSFunctionRow, NSFunctionRowBackgroundBlurView, NSGestureRecognizer, NSGlobalPreferenceTransition, NSGradient, NSGraphicsContext, NSGridCell, NSGridColumn, NSGridRow, NSGridView, NSGroupTouchBarItem, NSHMDDevice, NSHMDDisplayLink, NSHMDDisplayLinkInvocation, NSHMDIOSurfaceDrawable, NSHMDIOSurfaceSession, NSHMDMetalSession, NSHapticFeedbackManager, NSHelpManager, NSIBHelpConnector, NSIBObjectData, NSIBUserDefinedRuntimeAttributesConnector, NSImage, NSImageCell, NSImageRep, NSImageSymbolConfiguration, NSImageTextFieldCell, NSImageView, NSImmediateActionGestureRecognizer, NSInputAlignmentController, NSInputAlignmentFilter, NSInputAlignmentGuide, NSInputContext, NSInputFeedbackManager, NSInputManager, NSInputServer, NSInspectorBar, NSInspectorBarItem, NSKeyBindingManager, NSKeyboardShortcut, NSLabelView, NSLabelViewCell, NSLayoutGuide, NSLevelIndicator, NSLevelIndicatorCell, NSLocalOpenPanel, NSLocalSavePanel, NSLongClickGestureRecognizer, NSMagnificationGestureRecognizer, NSMatrix, NSMediaLibraryBrowserController, NSMenu, NSMenuItem, NSMenuItemCell, NSMenuItemViewer, NSMenuTemplate, NSMenuToolbarItem, NSMouseTracker, NSMoveHelper, NSMovePanel, NSMovie, NSMultiplePagePDFImageViewTextAttachmentCell, NSMutableFontCollection, NSNavBannerButtonCell, NSNavBannerView, NSNavOutlineDateCell, NSNavSharedServerController, NSNavSplitView, NSNextStepFrame, NSNib, NSNibAXAttributeConnector, NSNibAXRelationshipConnector, NSNibAuxiliaryActionConnector, NSNibBindingConnector, NSNibConnector, NSNibControlConnector, NSNibExternalObjectEntry, NSNibExternalObjectPlaceholder, NSNibOutletCollectionConnector, NSNibOutletConnector, NSObjectController, NSOcclusionDetectionView, NSOpenGLContext, NSOpenGLLayer, NSOpenGLPixelBuffer, NSOpenGLPixelFormat, NSOpenGLView, NSOpenPanel, NSOtherItemsProxyTouchBarItem, NSOutlineView, NSPDFImageRep, NSPDFInfo, NSPDFPanel, NSPDFPanelAccessoryViewController, NSPICTImageRep, NSPPDParse, NSPageController, NSPageLayout, NSPanGestureRecognizer, NSPanel, NSPasteboard, NSPasteboardItem, NSPathCell, NSPathComponentCell, NSPathControl, NSPathControlItem, NSPersistentDocument, NSPersistentUICrashHandler, NSPersistentUIRestorer, NSPickerTouchBarItem, NSPopUpButton, NSPopUpButtonCell, NSPopover, NSPopoverAnimationController, NSPopoverColorWell, NSPopoverFrame, NSPopoverTouchBarItem, NSPredicateEditor, NSPredicateEditorRowTemplate, NSPreferences, NSPreferencesModule, NSPressGestureRecognizer, NSPressureConfiguration, NSPressureSensitivePanGestureRecognizer, NSPrintInfo, NSPrintOperation, NSPrintPanel, NSPrinter, NSProgressIndicator, NSProgressPanel, NSPulseGestureRecognizer, NSRectSet, NSRegion, NSResponder, NSRotationGestureRecognizer, NSRuleEditor, NSRuleEditorButtonCell, NSRuleEditorPopupButton, NSRuleEditorViewSliceRow, NSRulerMarker, NSRulerView, NSRunningApplication, NSSavePanel, NSSavePanelCustomAction, NSScreen, NSScreenBackgroundView, NSScrollAnimationHelper, NSScrollView, NSScroller, NSScrollerImp, NSScrollerImpPair, NSScrubber, NSScrubberArrangedView, NSScrubberFlowLayout, NSScrubberImageItemView, NSScrubberItemView, NSScrubberLayout, NSScrubberLayoutAttributes, NSScrubberOutlineSelectionOverlayView, NSScrubberProportionalLayout, NSScrubberRoundedSelectionBackgroundView, NSScrubberSelectionStyle, NSScrubberSelectionView, NSScrubberTextItemView, NSSearchField, NSSearchFieldCell, NSSearchToolbarItem, NSSecureTextField, NSSecureTextFieldCell, NSSecureTextView, NSSegmentItem, NSSegmentedCell, NSSegmentedControl, NSSelectionArray, NSSeparatorToolbarItem, NSServiceMaster, NSServicesImportFromDevicePasteboardInfo, NSServicesMenuHandler, NSServicesMonitor, NSServicesRolloverButtonCell, NSSharingService, NSSharingServiceItemProvider, NSSharingServicePicker, NSSharingServicePickerToolbarItem, NSSharingServicePickerTouchBarItem, NSSharingService_Subsystem, NSSlider, NSSliderAccessory, NSSliderAccessoryBehavior, NSSliderCell, NSSliderTouchBarItem, NSSound, NSSpaceTouchBarItem, NSSpeechRecognizer, NSSpeechSynthesizer, NSSpellChecker, NSSplitView, NSSplitViewController, NSSplitViewItem, NSSplitViewSplitter, NSStackView, NSStatusBar, NSStatusBarButton, NSStatusBarButtonCell, NSStatusItem, NSStepper, NSStepperCell, NSStepperTouchBarItem, NSStoryboard, NSStoryboardControllerPlaceholder, NSStoryboardEmbedSegueTemplate, NSStoryboardModalSegueTemplate, NSStoryboardPopoverSegueTemplate, NSStoryboardSegue, NSStoryboardSegueTemplate, NSStoryboardSheetSegueTemplate, NSStoryboardShowSegueTemplate, NSSubTextStorage, NSSwipeGestureRecognizer, NSSwitch, NSSystemInfoPanel, NSTabBar, NSTabBarItem, NSTabView, NSTabViewController, NSTabViewControllerSegmentedControlUIProvider, NSTabViewItem, NSTableCellView, NSTableColumn, NSTableHeaderCell, NSTableHeaderView, NSTableRow, NSTableRowView, NSTableView, NSTableViewCellProxy, NSTableViewDiffableDataSource, NSTableViewRowAction, NSTableViewStyleData, NSTearOffTabWindow, NSText, NSTextAttachmentCell, NSTextCheckingController, NSTextField, NSTextFieldCell, NSTextFinder, NSTextInputContext, NSTextPlaceholder, NSTextTouchBarItemController, NSTextView, NSTextViewCompletionController, NSTextViewCompletionWindow, NSThemeDocumentButton, NSThemeFrame, NSTintConfiguration, NSTitlebarAccessoryViewController, NSTitlebarSeparatorView, NSTitledFrame, NSTokenField, NSTokenFieldCell, NSTokenTextView, NSToolTip, NSToolTipManager, NSToolTipPanel, NSToolTipStringDrawingLayoutManager, NSToolbar, NSToolbarButton, NSToolbarFlexibleSpaceItem, NSToolbarItem, NSToolbarItemGroup, NSToolbarItemViewer, NSToolbarPoofAnimator, NSToolbarSeparatorItem, NSToolbarSpaceItem, NSToolbarView, NSTouch, NSTouchBar, NSTouchBarColorListPickerScrubberLayout, NSTouchBarColorPickerViewController, NSTouchBarControlStripGrabber, NSTouchBarControlStripPlatter, NSTouchBarCustomizableConfiguration, NSTouchBarFinder, NSTouchBarItem, NSTouchBarItemAttributes, NSTouchBarItemContainerView, NSTouchBarItemOverlay, NSTouchBarItemOverlayOptions, NSTouchBarItemTree, NSTouchBarItemTreeBarProviderNode, NSTouchBarItemTreeNode, NSTouchBarItemTreePosition, NSTouchBarItemView, NSTouchBarLayout, NSTouchBarPressAndHoldTransposer, NSTouchBarRangeBackdropView, NSTouchBarRangeView, NSTouchBarSliderPopoverTransposer, NSTouchBarStandardPopoverTransposer, NSTouchBarView, NSTouchBarViewController, NSTouchDevice, NSTrackingArea, NSTrackingSeparatorToolbarItem, NSTreeController, NSTreeControllerTreeNode, NSTreeNode, NSUIHeartBeat, NSUndoReplaceCharacters, NSUndoSetAttributes, NSUndoTextOperation, NSUndoTyping, NSUserDefaultsController, NSUserInterfaceCompressionOptions, NSUserInterfaceTheme, NSView, NSViewAnimation, NSViewController, NSViewControllerPresentationAnimatorObject, NSViewControllerPushTransition, NSViewDynamicToolTipManager, NSViewHost, NSViewHostingTraits, NSVisualEffectView, NSWindow, NSWindowAuxiliary, NSWindowController, NSWindowGraphicsContext, NSWindowSharingSessionHostButton, NSWindowSnappingPrefsViewController, NSWindowTab, NSWindowTabGroup, NSWindowTemplate, NSWorkspace, NSWorkspaceAuthorization, NSWorkspaceOpenConfiguration, _NS1DVelocityFilter, _NS2DVelocityFilter, _NSBorderlessLayerTreeProjectionWindow, _NSBrowserColumnView, _NSBrowserColumnsContainerView, _NSBrowserScrollView, _NSBrowserTableColumnViewController, _NSCloudSharingParticipantDetails, _NSDatePickerCalendarOverlay, _NSDatePickerCellSubfield, _NSDatePickerFieldElementData, _NSDisplayOperationStack, _NSInputAlignmentControllerSession, _NSInputAlignmentGuide, _NSInputAlignmentItem, _NSInputAlignmentMatch, _NSKeyboardFocusClipView, _NSMenuContext, _NSMenuServicesView, _NSQuickAction, _NSQuickActionConfiguration, _NSQuickActionProvider, _NSQuickActionValidator, _NSRecentItemsMenuController, _NSScrollingMomentumCalculator, _NSScrollingPredominantAxisFilter, _NSScrollingRubberbandFilter, _NSScrollingScoreKeeper, _NSServiceEntry, _NSServiceFilter, _NSSliderTouchBarItemView, _NSThemeFullScreenButtonCell, _NSThemeWidget, _NSThemeWidgetCell, _NSToolbarClippedItemsIndicatorCell, _NSToolbarFlexibleSpace, _NSToolbarItemViewerLabelCellPopUpCell, _NSToolbarItemViewerLabelView, _NSToolbarSeparator, _NSToolbarSpace, _NSViewLayoutFeedbackLoopDebugger, _NSWindowTransformAnimation, __NSInspectorBarItemController ] objc-ivars: [ NSAccessibilityMockUIElement._parent, NSActionCell._action, NSActionCell._controlView, NSActionCell._target, NSApplication._appFlags, NSApplication._delegate, NSApplication._keyWindow, NSApplication._mainMenu, NSApplication._mainWindow, NSApplication._running, NSBox._bFlags, NSBox._borderRect, NSBox._contentView, NSBox._titleCell, NSBox._titleRect, NSBrowser._columns, NSBrowser._matrixClass, NSButtonCell._altContents, NSButtonCell._alternateImageOrKeyEquivalentFont, NSButtonCell._bcFlags, NSButtonCell._bcFlags2, NSButtonCell._keyEquivalent, NSButtonCell._normalImage, NSButtonCell._sound, NSCGSContext._cgsContext, NSCarbonMenuImpl._menu, NSCell._cFlags, NSCell._contents, NSClipView._docRect, NSClipView._docView, NSColorPanel._target, NSColorPickerSliders.sliderModePopUp, NSColorSpaceColor._cachedCGColor, NSColorSpaceColor.colorSpace, NSColorSpaceColor.components, NSColorSpaceColor.numComponents, NSColorWell._color, NSColorWell._cwFlags, NSComboBoxCell._buttonCell, NSComboBoxCell._cbcFlags, NSComboBoxCell._popUp, NSComboBoxCell._scrollView, NSComboBoxCell._tableView, NSComboBoxWindow._attachedToParent, NSControl._cell, NSControl._conFlags, NSDrawer._drawerWindow, NSDrawerFrame.drawerEdge, NSDrawerFrame.trackingTag, NSDrawerWindow._drawer, NSEPSImageRep._pdfImageRep, NSEvent._data, NSEvent._eventRef, NSEvent._location, NSEvent._modifierFlags, NSEvent._window, NSEvent._windowNumber, NSFormCell._titleCell, NSFrameView.closeButton, NSFrameView.minimizeButton, NSFrameView.styleMask, NSFrameView.titleCell, NSFrameView.zoomButton, NSImage._flags, NSImageCell._scaledImage, NSImageRep._pixelsHigh, NSImageRep._pixelsWide, NSImageRep._repFlags, NSImageRep._size, NSImageView._action, NSImageView._target, NSLocalSavePanel._accessoryView, NSLocalSavePanel._accessoryViewContainer, NSLocalSavePanel._allowedFileTypes, NSLocalSavePanel._bottomControlsContainer, NSLocalSavePanel._cancelButton, NSLocalSavePanel._filepathInputController, NSLocalSavePanel._hiddenExtension, NSLocalSavePanel._messageTextField, NSLocalSavePanel._nameField, NSLocalSavePanel._nameFieldLabel, NSLocalSavePanel._navViewContainer, NSLocalSavePanel._newFolderButton, NSLocalSavePanel._okButton, NSLocalSavePanel._reservedID, NSLocalSavePanel._reservedRemoved, NSLocalSavePanel._savePane, NSLocalSavePanel._savePaneTopPartsContainer, NSLocalSavePanel._spAuxiliaryStorage, NSLocalSavePanel._spFlags, NSLocalSavePanel._validatedPosixName, NSMatrix._backgroundColor, NSMatrix._cellClass, NSMatrix._cells, NSMatrix._delegate, NSMatrix._font, NSMatrix._mFlags, NSMatrix._numCols, NSMatrix._protoCell, NSObjectController._content, NSObjectController._objectHandler, NSPredicateEditor._rootTrees, NSPreferences._currentModule, NSPreferences._currentSessionPreferenceViews, NSPreferences._masterPreferenceViews, NSPreferences._preferenceModules, NSPreferences._preferenceTitles, NSPreferences._preferencesPanel, NSPreferencesModule._preferencesView, NSResponder._nextResponder, NSRulerMarker._location, NSRulerMarker._rFlags, NSRulerMarker._ruler, NSSavePanel._cancelButton, NSSavePanel._nameField, NSSavePanel._newFolderButton, NSSavePanel._okButton, NSSavePanel._spFlags, NSScrollView._contentView, NSScrollView._cornerView, NSScrollView._extraIvars, NSScrollView._hScroller, NSScrollView._headerClipView, NSScrollView._horizontalRuler, NSScrollView._sFlags, NSScrollView._vScroller, NSScrollView._verticalRuler, NSScroller._sFlags2, NSScroller.sFlags, NSSegmentItem._alternateImage, NSSegmentItem._flags, NSSegmentItem._fullWidth, NSSegmentItem._image, NSSegmentItem._imageRect, NSSegmentItem._label, NSSegmentItem._labelRect, NSSegmentItem._menu, NSSegmentItem._menuIndRect, NSSegmentItem._shrinkage, NSSegmentItem._tag, NSSegmentItem._toolTip, NSSegmentItem._toolTipTag, NSSegmentItem._width, NSSliderCell._maxValue, NSSliderCell._minValue, NSSliderCell._numberOfTickMarks, NSSliderCell._scFlags, NSSliderCell._trackRect, NSSliderCell._value, NSSystemInfoPanel._optionsDictionary, NSSystemInfoPanel.copyrightView, NSSystemInfoPanel.infoPanel, NSTableColumn._dataCell, NSTableColumn._headerCell, NSTableColumn._maxWidth, NSTableColumn._minWidth, NSTableColumn._tableView, NSTableHeaderView._draggedColumn, NSTableHeaderView._draggedDistance, NSTableHeaderView._headerDragImage, NSTableHeaderView._showHandCursorFired, NSTableHeaderView._skipDrawingSeparator, NSTableHeaderView._tableView, NSTableHeaderView._toolTipRectsDirty, NSTableRow._row, NSTableRow._tableView, NSTableView._backgroundColor, NSTableView._cornerView, NSTableView._dataSource, NSTableView._delegate, NSTableView._editingCell, NSTableView._gridColor, NSTableView._intercellSpacing, NSTableView._selectedRows, NSTableView._tableColumns, NSTableView._tvFlags, NSTextAttachmentCell._attachment, NSTextField._delegate, NSTextFieldCell._backgroundColor, NSTextFieldCell._textColor, NSTextFieldCell._tfFlags, NSTextViewCompletionController._completionWindow, NSTextViewCompletionController._tableView, NSThemeFrame._tFlags, NSTitledFrame.fileButton, NSToolTip.owner, NSToolTip.trackingNum, NSToolTip.ttFlags, NSToolTip.view, NSToolTipStringDrawingLayoutManager._layoutManager, NSTreeNode._childNodes, NSTreeNode._parentNode, NSUndoReplaceCharacters._attributedString, NSUndoReplaceCharacters._replacementRange, NSUndoTextOperation._affectedRange, NSUndoTextOperation._textStorage, NSUndoTextOperation._undoManager, NSUndoTyping._attributedString, NSUndoTyping._replacementRange, NSView._bounds, NSView._dragTypes, NSView._frame, NSView._layer, NSView._subviews, NSView._superview, NSView._vFlags, NSView._window, NSWindow._auxiliaryStorage, NSWindow._borderView, NSWindow._contentView, NSWindow._delegate, NSWindow._dragTypes, NSWindow._fieldEditor, NSWindow._frame, NSWindow._lastLeftHit, NSWindow._lastRightHit, NSWindow._styleMask, NSWindow._wFlags, NSWindow._winEventMask, NSWindowAuxiliary._auxWFlags, NSWindowAuxiliary.docWindow, NSWindowTemplate.realObject, NSWindowTemplate.screenRect, NSWindowTemplate.windowRect, NSWindowTemplate.windowView, _NSBrowserColumnsContainerView._brccvFlags, _NSDatePickerCellSubfield._frame, _NSServiceEntry._flags, _NSServiceEntry._serviceFilters, _NSServiceEntry.bundleIdentifier, _NSServiceEntry.defaultTitle, _NSServiceEntry.localizedTitleWithoutSubstitutions, _NSServiceEntry.sendFileTypes, _NSServiceEntry.sendPasteboardTypes, _NSServiceFilter.bundleIdentifier, _NSServiceFilter.characterLimit, _NSServiceFilter.entry, _NSServiceFilter.flags, _NSServiceFilter.linkSchemes, _NSServiceFilter.textScript, _NSServiceFilter.wordLimit, _NSToolbarItemViewerLabelCellPopUpCell._realTitle, _NSToolbarSeparator._inPalette ] - targets: [ arm64e-macos, x86_64-macos, arm64-macos ] symbols: [ _NSAttributedStringFromMacSimpleTextData, _NSSourceTextScalingDocumentOption, _NSTargetTextScalingDocumentOption, _NSTextDidBeginEditingNotification, _NSTextDidChangeNotification, _NSTextDidEndEditingNotification, _NSTextMovementUserInfoKey, _NSUserActivityDocumentURLKey, _NSUsesScreenFontsDocumentAttribute ] objc-classes: [ NSAccessibilityAXUIElementWrapper, NSCarbonWindow, NSHelpAttachment, NSImageKitViewTextAttachmentCell, NSImageViewTextAttachmentCell, NSMenuWindowManager, NSMovieViewTextAttachmentCell, NSTableViewDiffableDataSourceImpl, NSTokenAttachment, NSTokenAttachmentCell, NSTouchBarItemTreeGroupItemNode, NSTouchBarItemTreeItemNode, NSViewTextAttachmentCell, NSViewTextAttachmentCellHelper, _NSConstraintBasedLayoutHostingView ] objc-ivars: [ NSTokenAttachmentCell._representedObject, NSTokenAttachmentCell._tacFlags ] --- !tapi-tbd tbd-version: 4 targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] uuids: - target: x86_64-macos value: 00FA5091-4508-3F12-A4AC-710FFF80EE7B - target: x86_64-maccatalyst value: 00FA5091-4508-3F12-A4AC-710FFF80EE7B - target: arm64-macos value: 00000000-0000-0000-0000-000000000000 - target: arm64-maccatalyst value: 00000000-0000-0000-0000-000000000000 - target: arm64e-macos value: 7AE6A3A4-675A-32EC-8193-9971E4C1808C - target: arm64e-maccatalyst value: 7AE6A3A4-675A-32EC-8193-9971E4C1808C install-name: '/System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation' current-version: 783 allowable-clients: - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] clients: [ AppKit, UIKitCore ] exports: - targets: [ x86_64-maccatalyst, x86_64-macos ] weak-symbols: [ __ZTINSt3__110__function6__baseIFbRK8_NSRangeS4_EEE, __ZTINSt3__117bad_function_callE, __ZTINSt3__120__shared_ptr_emplaceI10_DiffEntryNS_9allocatorIS1_EEEE, __ZTINSt3__120__shared_ptr_emplaceI11_DiffSymbolNS_9allocatorIS1_EEEE, __ZTINSt3__120__shared_ptr_emplaceINS_6vectorIlNS_9allocatorIlEEEENS2_IS4_EEEE, __ZTSNSt3__110__function6__baseIFbRK8_NSRangeS4_EEE, __ZTSNSt3__117bad_function_callE, __ZTSNSt3__120__shared_ptr_emplaceI10_DiffEntryNS_9allocatorIS1_EEEE, __ZTSNSt3__120__shared_ptr_emplaceI11_DiffSymbolNS_9allocatorIS1_EEEE, __ZTSNSt3__120__shared_ptr_emplaceINS_6vectorIlNS_9allocatorIlEEEENS2_IS4_EEEE ] - targets: [ x86_64-maccatalyst, x86_64-macos, arm64e-maccatalyst, arm64e-macos, arm64-macos, arm64-maccatalyst ] symbols: [ _NSAccessibilitySpellingStateAttributeName, _NSAllRomanInputSourcesLocaleIdentifier, _NSAntialiasThresholdChangedNotification, _NSAppearanceDocumentAttribute, _NSAttachmentAttributeName, _NSAttachmentEditableDataAttributeName, _NSAttachmentEditableDataTypeIdentifierAttributeName, _NSAuthorDocumentAttribute, _NSBackgroundColorAttributeName, _NSBackgroundColorDocumentAttribute, _NSBackgroundLayoutTrace, _NSBaseURLDocumentOption, _NSBaselineOffsetAttributeName, _NSBottomMarginDocumentAttribute, _NSCategoryDocumentAttribute, _NSCharacterEncodingDocumentAttribute, _NSCharacterEncodingDocumentOption, _NSCharacterShapeAttributeName, _NSCocoaRTFVersionDocumentAttribute, _NSCocoaVersionDocumentAttribute, _NSCollectionElementKindInterItemGapIndicator, _NSCollectionElementKindInterSectionGapIndicator, _NSCollectionElementKindItem, _NSCollectionElementKindSectionFooter, _NSCollectionElementKindSectionHeader, _NSCommentDocumentAttribute, _NSCompanyDocumentAttribute, _NSContainerTrace, _NSConvertGlyphsToPackedGlyphs, _NSConvertedDocumentAttribute, _NSCopyrightDocumentAttribute, _NSCreationTimeDocumentAttribute, _NSCursorAttributeName, _NSDataDetectionAttributeName, _NSDefaultAttributesDocumentAttribute, _NSDefaultAttributesDocumentOption, _NSDefaultFont, _NSDefaultTabIntervalDocumentAttribute, _NSDirectionalEdgeInsetsZero, _NSDisplayNameDocumentAttribute, _NSDocFormatTextDocumentType, _NSDocumentTypeDocumentAttribute, _NSDocumentTypeDocumentOption, _NSDominantLanguageAttributeName, _NSDominantScriptAttributeName, _NSEditorDocumentAttribute, _NSExcludedElementsDocumentAttribute, _NSExpansionAttributeName, _NSFileTypeDocumentAttribute, _NSFileTypeDocumentOption, _NSFirstLineHeadIndentRulerMarkerTag, _NSFlowLayoutCommonRowHorizontalAlignmentKey, _NSFlowLayoutLastRowHorizontalAlignmentKey, _NSFlowLayoutRowVerticalAlignmentKey, _NSFontAttributeName, _NSFontFaceAttribute, _NSFontFamilyAttribute, _NSFontFlippedMatrix, _NSFontIdentityMatrix, _NSFontKernAttribute, _NSFontMatrixAttribute, _NSFontNameAttribute, _NSFontSetChangedNotification, _NSFontSizeAttribute, _NSFontSymbolicTrait, _NSFontTraitAttributeName, _NSFontTraitsAttribute, _NSFontVisibleNameAttribute, _NSForegroundColorAttributeName, _NSGeneratorDocumentAttribute, _NSGlyphDisplayInvalidationTrace, _NSGlyphGenerationTrace, _NSGlyphGeometryTrace, _NSGlyphInfoAttributeName, _NSGrammarLeftOffsetAttributeName, _NSGrammarRightOffsetAttributeName, _NSHTMLTextDocumentType, _NSHeadIndentRulerMarkerTag, _NSHyphenationFactorDocumentAttribute, _NSIgnoringSubstitutionAttributeName, _NSKernAttributeName, _NSKeywordsDocumentAttribute, _NSLanguageAttributeName, _NSLeftMarginDocumentAttribute, _NSLigatureAttributeName, _NSLinkAttributeName, _NSMacSimpleTextDocumentType, _NSManagerDocumentAttribute, _NSMarkedClauseSegmentAttributeName, _NSMarkedTextStyleAttributeName, _NSModificationTimeDocumentAttribute, _NSNoIndexDocumentAttribute, _NSObliquenessAttributeName, _NSOfficeOpenXMLTextDocumentType, _NSOpenDocumentTextDocumentType, _NSOriginalFontAttributeName, _NSOrthographyAttributeName, _NSPOSIXLocaleIdentifier, _NSPaperMarginDocumentAttribute, _NSPaperSizeDocumentAttribute, _NSParagraphStyleAttributeName, _NSPlainTextDocumentType, _NSPrefixSpacesDocumentAttribute, _NSRTFDTextDocumentType, _NSRTFException, _NSRTFTextDocumentType, _NSReadOnlyDocumentAttribute, _NSReaderDelegateDocumentOption, _NSReplacedStringAttributeName, _NSRightMarginDocumentAttribute, _NSShadowAttributeName, _NSSmallCapsAttributeName, _NSSourceTextScalingDocumentAttribute, _NSSourceTextScalingDocumentReadingOption, _NSSpellingStateAttributeName, _NSStrikeThroughAttributeName, _NSStrikethroughColorAttributeName, _NSStrikethroughStyleAttributeName, _NSStringFromCGAffineTransform, _NSStrokeColorAttributeName, _NSStrokeWidthAttributeName, _NSSubjectDocumentAttribute, _NSSuperscriptAttributeName, _NSTabColumnTerminatorsAttributeName, _NSTailIndentRulerMarkerTag, _NSTargetTextScalingDocumentReadingOption, _NSTemporaryTextCorrectionAttributeName, _NSTextAlignmentFromCTTextAlignment, _NSTextAlignmentToCTTextAlignment, _NSTextAlternativesAttributeName, _NSTextAlternativesDisplayStyleAttributeName, _NSTextAlternativesSelectedAlternativeKey, _NSTextAlternativesSelectedAlternativeStringNotification, _NSTextCheckedAttributeName, _NSTextContentManagerUnsupportedAttributeNotification, _NSTextContentStorageUnsupportedAttributeAddedNotification, _NSTextCorrectionAttributeName, _NSTextDrawingTrace, _NSTextEditedAttributeName, _NSTextEffectAttributeName, _NSTextEffectLetterpressStyle, _NSTextEncodingNameDocumentAttribute, _NSTextEncodingNameDocumentOption, _NSTextKeyTrace, _NSTextLayoutSectionOrientation, _NSTextLayoutSectionRange, _NSTextLayoutSectionsAttribute, _NSTextListMarkerBox, _NSTextListMarkerCheck, _NSTextListMarkerCircle, _NSTextListMarkerDecimal, _NSTextListMarkerDiamond, _NSTextListMarkerDisc, _NSTextListMarkerHyphen, _NSTextListMarkerLowercaseAlpha, _NSTextListMarkerLowercaseHexadecimal, _NSTextListMarkerLowercaseLatin, _NSTextListMarkerLowercaseRoman, _NSTextListMarkerOctal, _NSTextListMarkerSquare, _NSTextListMarkerUppercaseAlpha, _NSTextListMarkerUppercaseHexadecimal, _NSTextListMarkerUppercaseLatin, _NSTextListMarkerUppercaseRoman, _NSTextLocationTypeCountable, _NSTextMouseTrace, _NSTextRevertedAttributeName, _NSTextScalingDocumentAttribute, _NSTextScalingOverrideDocumentReadingOption, _NSTextSizeMultiplierDocumentOption, _NSTextStorageDidProcessEditingNotification, _NSTextStorageWillProcessEditingNotification, _NSTextViewDidChangeSelectionNotification, _NSTextViewDidChangeTypingAttributesNotification, _NSTextViewWillChangeNotifyingTextViewNotification, _NSTimeoutDocumentOption, _NSTitleDocumentAttribute, _NSToolTipAttributeName, _NSTopMarginDocumentAttribute, _NSTrackingAttributeName, _NSTypesettingTrace, _NSTypographyFeatureAttributeName, _NSUTIDocumentAttribute, _NSUnderlineByWordMask, _NSUnderlineColorAttributeName, _NSUnderlineSpellingMask, _NSUnderlineStrikethroughMask, _NSUnderlineStyleAttributeName, _NSVerticalGlyphFormAttributeName, _NSViewModeDocumentAttribute, _NSViewSizeDocumentAttribute, _NSViewZoomDocumentAttribute, _NSWebArchiveTextDocumentType, _NSWebPreferencesDocumentOption, _NSWebResourceLoadDelegateDocumentOption, _NSWordMLTextDocumentType, _NSWritingDirectionAttributeName, _NSZipTextDocumentType, _UIAppendBytesForValueToData, _UIAppendVInt32ToData, _UIArchiveHeaderIdentifier, _UICreateOrderedAndStrippedCoderValues, _UICurrentCoderVersion, _UIDataLooksLikeNibArchive, _UIFixedByteLengthForType, _UIFontDescriptorCascadeListAttribute, _UIFontDescriptorCharacterSetAttribute, _UIFontDescriptorFaceAttribute, _UIFontDescriptorFamilyAttribute, _UIFontDescriptorFeatureSettingsAttribute, _UIFontDescriptorFixedAdvanceAttribute, _UIFontDescriptorMatrixAttribute, _UIFontDescriptorNameAttribute, _UIFontDescriptorOpticalSizeAttribute, _UIFontDescriptorPostScriptNameAttribute, _UIFontDescriptorSizeAttribute, _UIFontDescriptorSystemDesignDefault, _UIFontDescriptorSystemDesignMonospaced, _UIFontDescriptorSystemDesignRounded, _UIFontDescriptorSystemDesignSerif, _UIFontDescriptorTextStyleAttribute, _UIFontDescriptorTraitsAttribute, _UIFontDescriptorVariationAttribute, _UIFontDescriptorVisibleNameAttribute, _UIFontDesignDefault, _UIFontDesignTrait, _UIFontFeatureSelectorIdentifierKey, _UIFontFeatureTypeIdentifierKey, _UIFontSlantTrait, _UIFontSymbolicTrait, _UIFontSystemFontDesignAlternate, _UIFontSystemFontDesignCompact, _UIFontSystemFontDesignCondensed, _UIFontSystemFontDesignDefault, _UIFontSystemFontDesignMonospaced, _UIFontSystemFontDesignRounded, _UIFontSystemFontDesignSerif, _UIFontSystemFontDesignTrait, _UIFontSystemFontGradeTrait, _UIFontWeightBlack, _UIFontWeightBold, _UIFontWeightHeavy, _UIFontWeightLight, _UIFontWeightMedium, _UIFontWeightRegular, _UIFontWeightSemibold, _UIFontWeightThin, _UIFontWeightTrait, _UIFontWeightUltraLight, _UIFontWidthCondensed, _UIFontWidthExpanded, _UIFontWidthStandard, _UIFontWidthTrait, _UIInlinedValueMarker, _UIMaximumCompatibleFormatVersion, _UINibArchiveIndexFromNumber, _UINibCoderValueTypeToString, _UINumberWithNibArchiveIndex, _UIPointRoundToScale, _UIRectIntegralWithScale, _UIRetainedIdentityArrayCallbacks, _UIRetainedIdentityKeyDictionaryCallbacks, _UIRetainedIdentitySetCallbacks, _UIRetainedIdentityValueDictionaryCallbacks, _UIRetainedValueUniquingSetCallbacks, _UISizeRoundToScale, _UISystemFontBoldForSize, _UISystemFontCreate, _UISystemFontForSize, _UIWriteArchiveToData, __NSAttachmentCharacterSet, __NSBidiControlCharacterSet, __NSBidiEmbeddingAndOverrideCharSet, __NSBlockNumberForIndex, __NSCalculateContainerOrigin, __NSCollectionLayoutCompositionalSolverRebasedPreferredSizesForSolutions, __NSDiffableDataSourceApplyDeleteUpdate, __NSDiffableDataSourceApplyInsertUpdate, __NSDiffableDataSourceApplyMoveUpdate, __NSDirectionalEdgeForRectAlignmentAndAxis, __NSDirectionalEdgesForAxis, __NSDirectionalInsetsFlipped, __NSEdgeInsetsEqualToInsetsAlongAxis, __NSFontAttributeNames, __NSHTMLEncoding, __NSLayoutManagerObservedTextViewChangeNotification, __NSNegatedDirectionalInsetsForInsets, __NSNewTextView, __NSNonAttachmentCharacterSet, __NSOldTextView, __NSOpposingDirectionalEdgeForEdge, __NSOriginalFontAttributeName, __NSOrthogonalAxisForAxis, __NSPinnedNonOverlappingFramesForContentFrameVisibleFrame, __NSPointValueForAxis, __NSRTreeExpansionCostScoreForFrames, __NSReadAttributedStringFromData, __NSReadAttributedStringFromURL, __NSReadAttributedStringFromURLOrData, __NSRectClampRectToMinimumSizeForAxis, __NSRectMaxPointValueAlongAxis, __NSRectMinPointValueAlongAxis, __NSRectSubtractingRectYieldingDirectionalInsets, __NSSizeClampToMinimumSizeForAxis, __NSStringDrawingCore, __NSStringHasRightToLeftBaseWritingDirectionAtIndex, __NSStringHasRightToLeftCharactersInRange, __NSStringImputedBaseWritingDirectionAtIndex, __NSXMLEncoding, __UIAddPointValueForAxis, __UIAddSizeValueForAxis, __UIAdjustedDirectionalInsetsForUIRectInsetsWithSemanticView, __UIApplyDirectionalInsetsToRect, __UIApplyOffsetFromEdgeInsetsForPoint, __UIApplyRTLTransformForFrameWithDimension, __UIAxisDescription, __UICGVectorEqualToVectorWithTolerance, __UIContainerDirectionalEdgeInsetsForSafeAreaReferenceWithLayoutAxisSafeAreaInsetsAndLayoutMargins, __UIDirectionalInsetsAdd, __UIDirectionalInsetsForInsetsAlongAxis, __UIEffectiveEdgeInsetsForSize, __UIFoundationRoundedInverseTextScalingFactor, __UIFoundationRoundedTextScalingFactor, __UIFrameByPinningToContainerFrameEdge, __UILeadingOffsetForInsetsAlongAxis, __UINormalizeOffsetForContainerRect, __UINormalizeRectForPositiveOrigin, __UIOffsetFromCenteredAnchorPointForEdgesInRect, __UIPinnedFrameForFrameWithContainerFrameVisibleFrame, __UIRectAddOffset, __UIRectAdjustWithAnchorPoint, __UIRectAnchorPointForEdges, __UIRectAnchorPointForUnitAnchorPoint, __UIRectByAnchoringSizeInContainer, __UIRectExpandByFactorAndUnitVector, __UIRectSubtractOffset, __UISetPointValueForAxis, __UISetSizeValueForAxis, __UISizeAdd, __UISizeEqualToSizeWithPrecision, __UISizeValueForAxis, __UISystemFontName, __UITotalEdgeDimensionsForLayoutAxis, __UITrailingOffsetForInsetsAlongAxis, __UIUnitAnchorPointForEdges, ___CTFontGetExtraData, ___NSTextLayoutManagerLinearLayoutFragmentsDump, ___NSTokenizerLanguageSet, ___objectEqual, _setCurrentCGContextDuringBlock_iOS, _setCurrentCGContextDuringBlock_macOS, _setCurrentNSGraphicsContextDuringBlock_macOS ] objc-classes: [ NSATSGlyphStorage, NSATSLineFragment, NSATSTypesetter, NSAttributeDictionary, NSAttributeDictionaryEnumerator, NSCIDGlyphInfo, NSCTFont, NSCTFontDescriptor, NSCTGlyphInfo, NSCollectionLayoutAnchor, NSCollectionLayoutBoundarySupplementaryItem, NSCollectionLayoutContainer, NSCollectionLayoutDecorationItem, NSCollectionLayoutDimension, NSCollectionLayoutEdgeSpacing, NSCollectionLayoutEnvironment, NSCollectionLayoutGroup, NSCollectionLayoutGroupCustomItem, NSCollectionLayoutItem, NSCollectionLayoutSection, NSCollectionLayoutSize, NSCollectionLayoutSpacing, NSCollectionLayoutSupplementaryItem, NSCollectionLayoutVisibleItem, NSCollectionViewCompositionalLayout, NSCollectionViewCompositionalLayoutConfiguration, NSCollectionViewData, NSCollectionViewDiffableDataSource, NSCollectionViewFlowLayout, NSCollectionViewFlowLayoutInvalidationContext, NSCollectionViewIndexMapper, NSCollectionViewLayout, NSCollectionViewLayoutAttributes, NSCollectionViewLayoutInvalidationContext, NSCollectionViewTransitionLayout, NSCollectionViewUpdate, NSCollectionViewUpdateItem, NSConcreteGlyphGenerator, NSConcreteNotifyingMutableAttributedString, NSConcreteTextStorage, NSCoreTypesetter, NSCountableTextLocation, NSCountableTextRange, NSDataAsset, NSDiffableDataSourceSnapshot, NSDocFormatReader, NSDocFormatWriter, NSExtraLMData, NSFont, NSFontAssetRequest, NSFontDescriptor, NSGlyphGenerator, NSGlyphInfo, NSGlyphNameGlyphInfo, NSHTMLReader, NSHTMLWebDelegate, NSHTMLWriter, NSIdRunStorage, NSIdentityGlyphInfo, NSInsertionPointHelper, NSLayoutManager, NSLayoutManagerTextBlockHelper, NSLayoutManagerTextBlockRowArrayCache, NSLineFragmentRenderingContext, NSMutableFontDescriptor, NSMutableIndexPath, NSMutableParagraphStyle, NSOpenDocumentReader, NSOpenDocumentWriter, NSParagraphArbitrator, NSParagraphStyle, NSParagraphStyleExtraData, NSRTFReader, NSRTFReaderTableState, NSRTFWriter, NSRunStorage, NSShadow, NSSingleLineTypesetter, NSStorage, NSStringDrawingContext, NSStringDrawingTextStorage, NSStringDrawingTextStorageSettings, NSSubstituteWebResource, NSTempAttributeDictionary, NSTextAlternatives, NSTextAttachment, NSTextAttachmentViewProvider, NSTextBlock, NSTextBlockLayoutHelper, NSTextContainer, NSTextContentManager, NSTextContentStorage, NSTextCorrectionMarkerRendering, NSTextElement, NSTextGraphicsContextProvider, NSTextLayoutFragment, NSTextLayoutManager, NSTextLineFragment, NSTextList, NSTextParagraph, NSTextRange, NSTextSelection, NSTextSelectionNavigation, NSTextStorage, NSTextTab, NSTextTable, NSTextTableBlock, NSTextViewportLayoutController, NSTypesetter, NSWordMLReader, NSWordMLWriter, NSZipTextReader, UIBoxcarFilterPointFIFO, UIFont, UIFontDescriptor, UINibCoderValue, UINibDecoder, UINibEncoder, UINibStringIDTable, UIPointFIFO, UIQuadCurvePointFIFO, _NSASCIIArtFramesRenderer, _NSATSTypesetterGuts, _NSAttributeRun, _NSAttributedStringIntentResolver, _NSAttributedStringWithResolvedIntents, _NSAttributes, _NSCachedAttributedString, _NSCollectionCompositionalLayoutSolver, _NSCollectionCompositionalLayoutSolverBookmarkStateSnapshotter, _NSCollectionCompositionalLayoutSolverOptions, _NSCollectionCompositionalLayoutSolverUpdate, _NSCollectionCompositionalSolverPreferredSizesRebaseInfo, _NSCollectionLayoutAnchor, _NSCollectionLayoutAuxiliaryItemSolver, _NSCollectionLayoutAuxiliaryKey, _NSCollectionLayoutAuxiliaryOffsets, _NSCollectionLayoutBoundarySupplementaryItem, _NSCollectionLayoutDecorationItem, _NSCollectionLayoutDimension, _NSCollectionLayoutEdgeSpacing, _NSCollectionLayoutFramesQueryResult, _NSCollectionLayoutGroup, _NSCollectionLayoutItem, _NSCollectionLayoutItemSolver, _NSCollectionLayoutSection, _NSCollectionLayoutSectionEstimatedSolver, _NSCollectionLayoutSectionFixedSolver, _NSCollectionLayoutSectionGeometryTranslator, _NSCollectionLayoutSectionListSolver, _NSCollectionLayoutSectionSolver, _NSCollectionLayoutSize, _NSCollectionLayoutSolveParameters, _NSCollectionLayoutSpacing, _NSCollectionLayoutSupplementaryItem, _NSCollectionLayoutSupplementaryRegistrar, _NSCollectionLayoutVisualFormatParser, _NSCollectionLayoutVisualFormatTreeParser, _NSCollectionPreferredSize, _NSCollectionPreferredSizes, _NSCollectionViewCompositionalLayout, _NSCollectionViewCompositionalLayoutMutableConfiguration, _NSCollectionViewCore, _NSCollectionViewDiffableDataSource, _NSCollectionViewItemKey, _NSCollectionViewOrthogonalScrollerSectionController, _NSDataSourceSnapshot, _NSDataSourceSnapshotter, _NSDiffableDataSource, _NSDiffableDataSourceDiffer, _NSDiffableDataSourceSnapshot, _NSDiffableDataSourceSnapshotter, _NSDiffableDataSourceState, _NSDiffableDataSourceUpdate, _NSDiffableDataSourceViewUpdater, _NSDiffableSectionBoundaryMoveDetector, _NSFlowLayoutInfo, _NSFlowLayoutItem, _NSFlowLayoutRow, _NSFlowLayoutSection, _NSGenericCollectionViewUpdateItem, _NSIdentifierDiffer, _NSIdentifierDifferMovePair, _NSOrderedRangeIndexer, _NSRTree, _NSTextStorageSideData, _NSUIAnimator, _UICache, _UIFontCacheKey, _UIFontDescriptorCacheKey, _UIFontNameCacheKey, _UIFontSystemCacheKey, _UIFontTextStyleCacheKey, __NSATSStringSegment, __NSDiffableDataSource, __NSDiffableDataSourceSnapshot, __NSFontExtraData, __NSFontTypefaceInfo ] objc-ivars: [ NSATSTypesetter.attributedString, NSATSTypesetter.currentParagraphStyle, NSATSTypesetter.currentTextContainer, NSATSTypesetter.currentTextContainerIndex, NSATSTypesetter.currentTextContainerSize, NSATSTypesetter.layoutManager, NSATSTypesetter.lineFragmentPadding, NSATSTypesetter.paragraphGlyphRange, NSATSTypesetter.paragraphSeparatorGlyphRange, NSATSTypesetter.textContainers, NSAttributeDictionaryEnumerator.dictionary, NSAttributeDictionaryEnumerator.nextElement, NSCollectionViewData._clonedCellAttributes, NSCollectionViewData._clonedDecorationAttributes, NSCollectionViewData._clonedSupplementaryAttributes, NSCollectionViewData._collectionView, NSCollectionViewData._collectionViewDataFlags, NSCollectionViewData._contentSize, NSCollectionViewData._decorationLayoutAttributes, NSCollectionViewData._globalIndexesOfItemsAwaitingValidation, NSCollectionViewData._globalItems, NSCollectionViewData._invalidatedDecorationIndexPaths, NSCollectionViewData._invalidatedSupplementaryIndexPaths, NSCollectionViewData._lastResultForNumberOfItemsBeforeSection, NSCollectionViewData._lastSectionTestedForNumberOfItemsBeforeSection, NSCollectionViewData._layout, NSCollectionViewData._numItems, NSCollectionViewData._numSections, NSCollectionViewData._screenPageMap, NSCollectionViewData._sectionItemCounts, NSCollectionViewData._supplementaryLayoutAttributes, NSCollectionViewData._validLayoutRect, NSCollectionViewIndexMapper._addedRows, NSCollectionViewIndexMapper._cleanupForMoves, NSCollectionViewIndexMapper._deletedRows, NSCollectionViewIndexMapper._hasPendingDeletes, NSCollectionViewIndexMapper._items, NSCollectionViewIndexMapper._movedItems, NSCollectionViewIndexMapper._newIndexCount, NSCollectionViewIndexMapper._newIndexMap, NSCollectionViewIndexMapper._oldIndexCount, NSCollectionViewIndexMapper._oldIndexMap, NSCollectionViewIndexMapper._oldMovedRows, NSConcreteGlyphGenerator.bidiLevels, NSConcreteGlyphGenerator.bidiTypes, NSConcreteTextStorage._contents, NSConcreteTextStorage._lock, NSConcreteTextStorage._pFlags, NSDocFormatReader._attrStr, NSDocFormatReader._bytesPerCharacter, NSDocFormatReader._charAttributes, NSDocFormatReader._charInfoEnd, NSDocFormatReader._charInfoStart, NSDocFormatReader._charsetNumber, NSDocFormatReader._contentsDictionary, NSDocFormatReader._defaultTabInterval, NSDocFormatReader._docInfoEnd, NSDocFormatReader._docInfoStart, NSDocFormatReader._documentAttrs, NSDocFormatReader._documentData, NSDocFormatReader._errorCode, NSDocFormatReader._firstEntryNumber, NSDocFormatReader._fontCache, NSDocFormatReader._fontInfoEnd, NSDocFormatReader._fontInfoStart, NSDocFormatReader._fontNames, NSDocFormatReader._globalFlags, NSDocFormatReader._indexingLimit, NSDocFormatReader._infoData, NSDocFormatReader._lastModifier, NSDocFormatReader._magicNumber, NSDocFormatReader._metaInfoEnd, NSDocFormatReader._metaInfoStart, NSDocFormatReader._parAttributes, NSDocFormatReader._parInfoEnd, NSDocFormatReader._parInfoStart, NSDocFormatReader._predefinedAttributes, NSDocFormatReader._predefinedHeaderLength, NSDocFormatReader._predefinedInfoEnd, NSDocFormatReader._predefinedInfoStart, NSDocFormatReader._predefinedOffsets, NSDocFormatReader._previousRowArray, NSDocFormatReader._primaryData, NSDocFormatReader._primaryIndex, NSDocFormatReader._productNumber, NSDocFormatReader._removeRowInfo, NSDocFormatReader._secondaryData, NSDocFormatReader._secondaryIndex, NSDocFormatReader._stringEncoding, NSDocFormatReader._tableData, NSDocFormatReader._tableOfContents, NSDocFormatReader._textInfoEnd, NSDocFormatReader._textInfoStart, NSDocFormatReader._textLength, NSDocFormatReader._textStart, NSDocFormatReader._thumbnailLimit, NSDocFormatReader._versionCode, NSDocFormatReader._versionNumber, NSDocFormatWriter._attrStr, NSDocFormatWriter._charData, NSDocFormatWriter._charFlags, NSDocFormatWriter._documentAttrs, NSDocFormatWriter._documentData, NSDocFormatWriter._documentSummaryInfoData, NSDocFormatWriter._fontArray, NSDocFormatWriter._needsTrailingBreak, NSDocFormatWriter._parData, NSDocFormatWriter._primaryData, NSDocFormatWriter._primaryIndex, NSDocFormatWriter._secondaryData, NSDocFormatWriter._secondaryIndex, NSDocFormatWriter._summaryInfoData, NSDocFormatWriter._tableData, NSDocFormatWriter._tableOfContents, NSFontDescriptor._attributes, NSFontDescriptor._reserved1, NSFontDescriptor._reserved2, NSFontDescriptor._reserved3, NSFontDescriptor._reserved4, NSFontDescriptor._reserved5, NSHTMLWebDelegate._baseURL, NSHTMLWebDelegate._loadDidFinish, NSHTMLWebDelegate._loadDidSucceed, NSIdentityGlyphInfo._font, NSIdentityGlyphInfo._glyph, NSOpenDocumentReader._archive, NSOpenDocumentReader._attrStr, NSOpenDocumentReader._curAttributes, NSOpenDocumentReader._curDocumentAttribute, NSOpenDocumentReader._curLink, NSOpenDocumentReader._curListStyle, NSOpenDocumentReader._curLists, NSOpenDocumentReader._curParAttributes, NSOpenDocumentReader._curParStyle, NSOpenDocumentReader._curString, NSOpenDocumentReader._curStyleName, NSOpenDocumentReader._defaultStyles, NSOpenDocumentReader._defaultTabInterval, NSOpenDocumentReader._documentAttrs, NSOpenDocumentReader._elementValues, NSOpenDocumentReader._errorCode, NSOpenDocumentReader._fontCache, NSOpenDocumentReader._indexingLimit, NSOpenDocumentReader._listStyles, NSOpenDocumentReader._namespaces, NSOpenDocumentReader._parseState, NSOpenDocumentReader._qualifiedAttributeNames, NSOpenDocumentReader._recursionLevel, NSOpenDocumentReader._styles, NSOpenDocumentReader._tabStops, NSOpenDocumentReader._textBlocks, NSOpenDocumentReader._textListLocations, NSOpenDocumentReader._textLists, NSOpenDocumentReader._textTableRowArrays, NSOpenDocumentReader._textTableRows, NSOpenDocumentReader._textTables, NSOpenDocumentReader._thumbnailLimit, NSOpenDocumentReader.seenSect, NSOpenDocumentWriter._archive, NSOpenDocumentWriter._attrStr, NSOpenDocumentWriter._charStyleArrays, NSOpenDocumentWriter._charStyleStrings, NSOpenDocumentWriter._documentAttrs, NSOpenDocumentWriter._fileWrapper, NSOpenDocumentWriter._fontNames, NSOpenDocumentWriter._listStyleStrings, NSOpenDocumentWriter._paraStyleArrays, NSOpenDocumentWriter._paraStyleStrings, NSOpenDocumentWriter._tableCellStyleStrings, NSOpenDocumentWriter._tableColumnStyleStrings, NSOpenDocumentWriter._tableNumber, NSOpenDocumentWriter._tableStyleStrings, NSParagraphStyle._defaultTabInterval, NSParagraphStyle._extraData, NSParagraphStyle._firstLineHeadIndent, NSParagraphStyle._flags, NSParagraphStyle._headIndent, NSParagraphStyle._lineSpacing, NSParagraphStyle._maximumLineHeight, NSParagraphStyle._minimumLineHeight, NSParagraphStyle._paragraphSpacing, NSParagraphStyle._tabStops, NSParagraphStyle._tailIndent, NSRTFReader._attributeInfo, NSRTFReader._attributeInfoStack, NSRTFReader._attributesStack, NSRTFReader._bMargin, NSRTFReader._cachedRTFFontTable, NSRTFReader._cocoaPlatform, NSRTFReader._cocoaSubVersion, NSRTFReader._cocoaTextScaling, NSRTFReader._cocoaVersion, NSRTFReader._colorTblColorSpace, NSRTFReader._curAttributedString, NSRTFReader._curAttributes, NSRTFReader._currentBorderEdge, NSRTFReader._currentBorderIsTable, NSRTFReader._currentColumn, NSRTFReader._currentDefinitionColumn, NSRTFReader._currentListLevel, NSRTFReader._currentListNumber, NSRTFReader._currentRow, NSRTFReader._currentRowArray, NSRTFReader._currentRowIsLast, NSRTFReader._currentTable, NSRTFReader._defaultTabInterval, NSRTFReader._defaultToUniCharEncoding, NSRTFReader._document, NSRTFReader._documentBackgroundColor, NSRTFReader._documentInfoDictionary, NSRTFReader._explicitCharSetEncountered, NSRTFReader._finalTextScaling, NSRTFReader._fontAttributesTable, NSRTFReader._fontTable, NSRTFReader._gregorianCalendar, NSRTFReader._hyphenationFactor, NSRTFReader._isRTLDocument, NSRTFReader._lMargin, NSRTFReader._layoutOrientationSections, NSRTFReader._level, NSRTFReader._limitReached, NSRTFReader._listDefinitions, NSRTFReader._nestedTables, NSRTFReader._paperSize, NSRTFReader._previousRowArray, NSRTFReader._previousTable, NSRTFReader._private, NSRTFReader._rMargin, NSRTFReader._readLimit, NSRTFReader._readOnly, NSRTFReader._rtfData, NSRTFReader._rtfVersion, NSRTFReader._setTableCells, NSRTFReader._sourceTextScaling, NSRTFReader._tMargin, NSRTFReader._targetTextScaling, NSRTFReader._textBlocks, NSRTFReader._textBuffer, NSRTFReader._textBufferContentsIsFat, NSRTFReader._textBufferIndex, NSRTFReader._textFlow, NSRTFReader._thumbnailLimit, NSRTFReader._topAttributedString, NSRTFReader._usesScreenFonts, NSRTFReader._verticalOrientationLocation, NSRTFReader._viewKind, NSRTFReader._viewScale, NSRTFReader._viewSize, NSRTFReaderTableState._currentColumn, NSRTFReaderTableState._currentDefinitionColumn, NSRTFReaderTableState._currentRow, NSRTFReaderTableState._currentRowArray, NSRTFReaderTableState._currentRowIsLast, NSRTFReaderTableState._currentTable, NSRTFReaderTableState._previousRowArray, NSRTFReaderTableState._previousTable, NSRTFWriter._attachmentData, NSRTFWriter._attrString, NSRTFWriter._attrStringLength, NSRTFWriter._colors, NSRTFWriter._curBackgroundColor, NSRTFWriter._curBaselineOffset, NSRTFWriter._curEncoding, NSRTFWriter._curFont, NSRTFWriter._curForegroundColor, NSRTFWriter._curKern, NSRTFWriter._curParagraphStyle, NSRTFWriter._curSuperscript, NSRTFWriter._curTraits, NSRTFWriter._curUnderlineStyle, NSRTFWriter._docAttrs, NSRTFWriter._document, NSRTFWriter._fontNames, NSRTFWriter._fontObjects, NSRTFWriter._layoutSections, NSRTFWriter._listRanges, NSRTFWriter._output, NSRTFWriter._rightMargin, NSRTFWriter._rwFlags, NSRTFWriter._textScalingConversionSource, NSRTFWriter._textScalingConversionTarget, NSShadow._reserved, NSShadow._reservedFloat, NSShadow._shadowBlurRadius, NSShadow._shadowColor, NSShadow._shadowFlags, NSShadow._shadowOffset, NSStringDrawingTextStorageSettings._settings, NSSubstituteWebResource._data, NSSubstituteWebResource._frameName, NSSubstituteWebResource._mimeType, NSSubstituteWebResource._textEncodingName, NSSubstituteWebResource._url, NSTextAttachment._cell, NSTextAttachment._fileWrapper, NSTextAttachment._flags, NSTextBlock._blockPrimary, NSTextBlock._blockSecondary, NSTextBlock._otherParamVals, NSTextBlock._primParamVal, NSTextBlock._propMask, NSTextBlock._propVals, NSTextBlock._typeMask, NSTextList._listFlags, NSTextList._listSecondary, NSTextList._markerFormat, NSTextList._startIndex, NSTextStorage._editedDelta, NSTextStorage._editedRange, NSTextStorage._flags, NSTextStorage._layoutManagers, NSTextStorage._sideData, NSTextTab._flags, NSTextTab._location, NSTextTab._reserved, NSTextTable._lcache, NSTextTable._numCols, NSTextTable._tableFlags, NSTextTable._tablePrimary, NSTextTable._tableSecondary, NSTextTableBlock._colNum, NSTextTableBlock._colSpan, NSTextTableBlock._rowNum, NSTextTableBlock._rowSpan, NSTextTableBlock._table, NSTextTableBlock._tableBlockPrimary, NSTextTableBlock._tableBlockSecondary, NSTypesetter._reserved, NSWordMLReader._archive, NSWordMLReader._attrStr, NSWordMLReader._curAttributes, NSWordMLReader._curDocumentAttribute, NSWordMLReader._curParAttributes, NSWordMLReader._curParStyle, NSWordMLReader._curString, NSWordMLReader._curStyleName, NSWordMLReader._defaultTabInterval, NSWordMLReader._documentAttrs, NSWordMLReader._elementValues, NSWordMLReader._errorCode, NSWordMLReader._fontCache, NSWordMLReader._hasOOXMLNamespace, NSWordMLReader._indexingLimit, NSWordMLReader._listDefinitions, NSWordMLReader._listLevel, NSWordMLReader._listNumber, NSWordMLReader._namespaces, NSWordMLReader._parseState, NSWordMLReader._prevListLevel, NSWordMLReader._prevListNumber, NSWordMLReader._qualifiedAttributeNames, NSWordMLReader._relationships, NSWordMLReader._seenSect, NSWordMLReader._styles, NSWordMLReader._textBlocks, NSWordMLReader._textTableRowArrays, NSWordMLReader._textTableRows, NSWordMLReader._textTables, NSWordMLReader._thumbnailLimit, NSWordMLWriter._archive, NSWordMLWriter._attrStr, NSWordMLWriter._documentAttrs, NSWordMLWriter._documentStr, NSWordMLWriter._fileWrapper, NSZipTextReader._archive, NSZipTextReader._attrStr, NSZipTextReader._contentData, NSZipTextReader._documentAttrs, NSZipTextReader._errorCode, NSZipTextReader._indexingLimit, NSZipTextReader._opfData, NSZipTextReader._options, NSZipTextReader._smilData, NSZipTextReader._thumbnailLimit, NSZipTextReader._wordData, NSZipTextReader._xmlData, UIBoxcarFilterPointFIFO._spacing, UIBoxcarFilterPointFIFO._width, UINibEncoder.data, UINibEncoder.delegate, UINibEncoder.encodedObjects, UINibEncoder.nextObjectID, UINibEncoder.objectIDsToObjects, UINibEncoder.objectsReplacedWithNil, UINibEncoder.objectsToObjectIDs, UINibEncoder.recursiveState, UINibEncoder.replacements, UINibEncoder.values, UINibStringIDTable.buckets, UINibStringIDTable.count, UINibStringIDTable.hashMask, UINibStringIDTable.table, UIPointFIFO._nextFIFO, UIQuadCurvePointFIFO._controlPoints, UIQuadCurvePointFIFO._emissionHandler, UIQuadCurvePointFIFO._emitInterpolatedPoints, UIQuadCurvePointFIFO._lastPoint, UIQuadCurvePointFIFO._lineWidth, UIQuadCurvePointFIFO._path, UIQuadCurvePointFIFO._points, UIQuadCurvePointFIFO._prevPoints, UIQuadCurvePointFIFO._unitScale, UIQuadCurvePointFIFO._view, _NSAttributedStringWithResolvedIntents._resolver, _NSAttributedStringWithResolvedIntents._string, _NSCachedAttributedString._allocedRunsSize, _NSCachedAttributedString._baseAttributes, _NSCachedAttributedString._contents, _NSCachedAttributedString._hashValue, _NSCachedAttributedString._length, _NSCachedAttributedString._numHits, _NSCachedAttributedString._numRuns, _NSCachedAttributedString._runs, _NSCollectionViewItemKey._identifier, _NSCollectionViewItemKey._indexPath, _NSCollectionViewItemKey._isClone, _NSCollectionViewItemKey._type, _NSFlowLayoutInfo._computedEstimatedCount, _NSFlowLayoutInfo._computedEstimatedSum, _NSFlowLayoutInfo._contentSize, _NSFlowLayoutInfo._dimension, _NSFlowLayoutInfo._dropTargetGapSize, _NSFlowLayoutInfo._estimatesSizes, _NSFlowLayoutInfo._horizontal, _NSFlowLayoutInfo._isValid, _NSFlowLayoutInfo._layout, _NSFlowLayoutInfo._layoutSize, _NSFlowLayoutInfo._leftToRight, _NSFlowLayoutInfo._rowAlignmentOptions, _NSFlowLayoutInfo._sections, _NSFlowLayoutInfo._useFloatingHeaderFooter, _NSFlowLayoutInfo._usesFloatingHeaderFooter, _NSFlowLayoutInfo._visibleBounds, _NSFlowLayoutItem._itemFlags, _NSFlowLayoutItem._itemFrame, _NSFlowLayoutItem._rowObject, _NSFlowLayoutItem._section, _NSFlowLayoutRow._availableSpace, _NSFlowLayoutRow._complete, _NSFlowLayoutRow._fixedItemSize, _NSFlowLayoutRow._horizontalAlignement, _NSFlowLayoutRow._index, _NSFlowLayoutRow._isValid, _NSFlowLayoutRow._items, _NSFlowLayoutRow._rowFrame, _NSFlowLayoutRow._rowOffsetForDropTargetInsertionGap, _NSFlowLayoutRow._rowSize, _NSFlowLayoutRow._section, _NSFlowLayoutRow._verticalAlignement, _NSFlowLayoutSection._actualGap, _NSFlowLayoutSection._beginMargin, _NSFlowLayoutSection._endMargin, _NSFlowLayoutSection._fixedItemSize, _NSFlowLayoutSection._footerDimension, _NSFlowLayoutSection._footerFrame, _NSFlowLayoutSection._frame, _NSFlowLayoutSection._headerDimension, _NSFlowLayoutSection._headerFrame, _NSFlowLayoutSection._horizontalInterstice, _NSFlowLayoutSection._indexOfIncompleteRow, _NSFlowLayoutSection._invalidatedIndexPaths, _NSFlowLayoutSection._isCollapsed, _NSFlowLayoutSection._isValid, _NSFlowLayoutSection._itemSize, _NSFlowLayoutSection._items, _NSFlowLayoutSection._itemsByRowCount, _NSFlowLayoutSection._itemsCount, _NSFlowLayoutSection._lastRecommendationWasShowSectionCollapseButton, _NSFlowLayoutSection._lastRowActualGap, _NSFlowLayoutSection._lastRowBeginMargin, _NSFlowLayoutSection._lastRowEndMargin, _NSFlowLayoutSection._lastRowIncomplete, _NSFlowLayoutSection._layoutInfo, _NSFlowLayoutSection._otherMargin, _NSFlowLayoutSection._recommendedAboutShowingSectionCollapseButton, _NSFlowLayoutSection._rectToKeepValid, _NSFlowLayoutSection._rowAlignmentOptions, _NSFlowLayoutSection._rows, _NSFlowLayoutSection._scrollOffset, _NSFlowLayoutSection._sectionMargins, _NSFlowLayoutSection._validItemRange, _NSFlowLayoutSection._validRect, _NSFlowLayoutSection._verticalInterstice, _UIFontCacheKey._hash, __NSFontExtraData._ascender, __NSFontExtraData._ascenderDelta, __NSFontExtraData._defaultLineHeight, __NSFontExtraData._defaultLineHeightForUI, __NSFontExtraData._fFlags, __NSFontExtraData._glyphAdvancementCache, __NSFontExtraData._key, __NSFontExtraData._lineHeight, __NSFontExtraData._matrix, __NSFontExtraData._maximumPointSizeAfterScaling, __NSFontExtraData._pointSizeForScaling, __NSFontExtraData._textStyleForScaling, __NSFontExtraData._typeface, __NSFontTypefaceInfo._familyName, __NSFontTypefaceInfo._hash, __NSFontTypefaceInfo._liveInstances, __NSFontTypefaceInfo._normalizedFontDescriptor, __NSFontTypefaceInfo._postscriptName, __NSFontTypefaceInfo._tiFlags, __NSFontTypefaceInfo._verticalOriginDeltaCache ] ...
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSComboBox.h
/* NSComboBox.h Application Kit Copyright (c) 1996-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSArray.h> #import <AppKit/NSTextField.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST APPKIT_EXTERN NSNotificationName NSComboBoxWillPopUpNotification; APPKIT_EXTERN NSNotificationName NSComboBoxWillDismissNotification; APPKIT_EXTERN NSNotificationName NSComboBoxSelectionDidChangeNotification; APPKIT_EXTERN NSNotificationName NSComboBoxSelectionIsChangingNotification; @class NSComboBox; @protocol NSComboBoxDataSource <NSObject> @optional /* These two methods are required when not using bindings */ - (NSInteger)numberOfItemsInComboBox:(NSComboBox *)comboBox; - (nullable id)comboBox:(NSComboBox *)comboBox objectValueForItemAtIndex:(NSInteger)index; - (NSUInteger)comboBox:(NSComboBox *)comboBox indexOfItemWithStringValue:(NSString *)string; - (nullable NSString *)comboBox:(NSComboBox *)comboBox completedString:(NSString *)string; @end @protocol NSComboBoxDelegate <NSTextFieldDelegate> @optional /* Notifications */ - (void)comboBoxWillPopUp:(NSNotification *)notification; - (void)comboBoxWillDismiss:(NSNotification *)notification; - (void)comboBoxSelectionDidChange:(NSNotification *)notification; - (void)comboBoxSelectionIsChanging:(NSNotification *)notification; @end @interface NSComboBox : NSTextField @property BOOL hasVerticalScroller; @property NSSize intercellSpacing; @property CGFloat itemHeight; @property NSInteger numberOfVisibleItems; @property (getter=isButtonBordered) BOOL buttonBordered; - (void)reloadData; - (void)noteNumberOfItemsChanged; @property BOOL usesDataSource; - (void)scrollItemAtIndexToTop:(NSInteger)index; - (void)scrollItemAtIndexToVisible:(NSInteger)index; - (void)selectItemAtIndex:(NSInteger)index; - (void)deselectItemAtIndex:(NSInteger)index; @property (readonly) NSInteger indexOfSelectedItem; @property (readonly) NSInteger numberOfItems; @property BOOL completes; @property (nullable, weak) id<NSComboBoxDelegate> delegate; /* The dataSource will only be used when usesDataSource is YES */ @property (nullable, assign) id<NSComboBoxDataSource> dataSource; /* These methods can only be used when usesDataSource is NO */ - (void)addItemWithObjectValue:(id)object; - (void)addItemsWithObjectValues:(NSArray *)objects; - (void)insertItemWithObjectValue:(id)object atIndex:(NSInteger)index; - (void)removeItemWithObjectValue:(id)object; - (void)removeItemAtIndex:(NSInteger)index; - (void)removeAllItems; - (void)selectItemWithObjectValue:(nullable id)object; - (id)itemObjectValueAtIndex:(NSInteger)index; @property (nullable, readonly, strong) id objectValueOfSelectedItem; - (NSInteger)indexOfItemWithObjectValue:(id)object; @property (readonly, copy) NSArray *objectValues; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSObjectController.h
/* NSObjectController.h Application Kit Copyright (c) 2002-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSArray.h> #import <AppKit/NSController.h> #import <AppKit/NSUserInterfaceValidation.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSPredicate, NSManagedObjectContext, NSFetchRequest, NSError; @interface NSObjectController : NSController - (instancetype)initWithContent:(nullable id)content NS_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER; @property (nullable, strong) id content; @property (readonly, strong) id selection; // an object representing all objects to be affected by editing as a singleton, returning special marker objects like NSMultipleSelectionMarker if necessary - in the concrete case of NSObjectController, returns an object that is used to access the content object @property (readonly, copy) NSArray *selectedObjects; // array of all objects to be affected by editing (if controller supports a selection mechanisms, the selected objects, otherwise all content objects) - in the concrete case of NSObjectController, returns an array with the content object @property BOOL automaticallyPreparesContent; // if YES, controllers will automatically invoke prepareContent when loaded from a nib file - (void)prepareContent; // typically overridden in subclasses which know how to get their content (from the file system or so) - default implementation creates a new object and populates the controller with it @property (null_resettable, assign) Class objectClass; // sets the object class used when creating new objects - (id)newObject; // creates a new object when adding/inserting objects (default implementation assumes the object class has a standard init method without arguments) - the returned object should not be autoreleased - (void)addObject:(id)object; // sets the content object of the controller - if the controller's content is bound to another object or controller through a relationship key, the relationship of the 'master' object will be changed - (void)removeObject:(id)object; // if the object is the current content object of the controller, clears the content - if the controller's content is bound to another object or controller through a relationship key, the relationship of the 'master' object will be cleared // determines whether controller allows adding and removing objects @property (getter=isEditable) BOOL editable; - (IBAction)add:(nullable id)sender; // creates a new object and adds it through addObject: @property (readonly) BOOL canAdd; // can be used in bindings controlling the enabling of buttons, for example - (IBAction)remove:(nullable id)sender; // removes content object through removeObject: @property (readonly) BOOL canRemove; // can be used in bindings controlling the enabling of buttons, for example - (BOOL)validateUserInterfaceItem:(id <NSValidatedUserInterfaceItem>)item; // overridden to automatically disable user interface elements sending action methods to the controller (for example if canAdd returns NO, menu items with the add: action are disabled) @end @interface NSObjectController (NSManagedController) @property (nullable, strong) NSManagedObjectContext *managedObjectContext; @property (nullable, copy) NSString *entityName; @property (nullable, strong) NSPredicate *fetchPredicate; - (BOOL)fetchWithRequest:(nullable NSFetchRequest *)fetchRequest merge:(BOOL)merge error:(NSError **)error; // subclasses can override this method to customize the fetch request, for example to specify fetch limits (passing nil for the fetch request will result in the default fetch request to be used; this method will never be invoked with a nil fetch request from within the standard Cocoa frameworks) - the merge flag determines whether the controller replaces the entire content with the fetch result or merges the existing content with the fetch result - (IBAction)fetch:(nullable id)sender; @property BOOL usesLazyFetching API_AVAILABLE(macos(10.5)); // defaults to NO. - (NSFetchRequest *)defaultFetchRequest API_AVAILABLE(macos(10.5)); @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSMenuItemCell.h
/* NSMenuItemCell.h Application Kit Copyright (c) 1997-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSButtonCell.h> #import <AppKit/NSMenu.h> #import <AppKit/NSMenuItem.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @interface NSMenuItemCell : NSButtonCell - (instancetype)initTextCell:(NSString *)string NS_DESIGNATED_INITIALIZER; - (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER; @property (nullable, strong) NSMenuItem *menuItem; @property BOOL needsSizing; - (void)calcSize; @property BOOL needsDisplay; @property (readonly) CGFloat stateImageWidth; @property (readonly) CGFloat imageWidth; @property (readonly) CGFloat titleWidth; @property (readonly) CGFloat keyEquivalentWidth; - (NSRect)stateImageRectForBounds:(NSRect)cellFrame; - (NSRect)titleRectForBounds:(NSRect)cellFrame; - (NSRect)keyEquivalentRectForBounds:(NSRect)cellFrame; - (void)drawSeparatorItemWithFrame:(NSRect)cellFrame inView:(NSView *)controlView; - (void)drawStateImageWithFrame:(NSRect)cellFrame inView:(NSView *)controlView; - (void)drawImageWithFrame:(NSRect)cellFrame inView:(NSView *)controlView; - (void)drawTitleWithFrame:(NSRect)cellFrame inView:(NSView *)controlView; - (void)drawKeyEquivalentWithFrame:(NSRect)cellFrame inView:(NSView *)controlView; - (void)drawBorderAndBackgroundWithFrame:(NSRect)cellFrame inView:(NSView *)controlView; @property NSInteger tag; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSSearchToolbarItem.h
/* NSSearchToolbarItem.h Application Kit Copyright (c) 2000-2021, Apple Inc. All rights reserved. */ #import <Foundation/Foundation.h> #import <Availability.h> #import <AppKit/NSToolbarItem.h> @class NSSearchField; @class NSView; NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST // NSSearchToolbarItem provides the standard UI behavior for integrating a search field into the toolbar. API_AVAILABLE(macos(11.0)) API_UNAVAILABLE(macCatalyst) @interface NSSearchToolbarItem : NSToolbarItem // An NSSearchField displayed in the toolbar item. While inside the toolbar item, the field properties and layout constraints are managed by the item. The field should be configured before assigned. The width constraint for the field could be updated after assigned. When set to nil, will reset to a search field with the default configuration. @property (strong) NSSearchField *searchField API_UNAVAILABLE(macCatalyst); // The base view property is owned by the toolbar item and not available for customization. @property (nullable, strong) NSView *view NS_UNAVAILABLE; // When YES, the cancel button in the field resigns the first responder status of the search field as clearing the contents. The default is YES. @property BOOL resignsFirstResponderWithCancel; // The preferred width for the search field. This value is used to configure the search field width whenever it gets the keyboard focus.If specifying custom width constraints to the search field, they should not conflict with this value. @property CGFloat preferredWidthForSearchField; // With the following two methods, clients of this toolbar item API can explicitly control the search interaction session programatically. // Starts a search interaction. If necessary, expands to the preferred width and moves the keyboard focus to the search field. - (void)beginSearchInteraction; // Ends a search interaction. Gives up the first responder by calling -endEditing: to the search field. Adjusts to the natural available width for the toolbar item if necessary. - (void)endSearchInteraction; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSPredicateEditorRowTemplate.h
/* NSPredicateEditorRowTemplate.h Application Kit Copyright (c) 2006-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSObject.h> #import <Foundation/NSArray.h> #import <Foundation/NSComparisonPredicate.h> #import <CoreData/NSAttributeDescription.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSPredicate, NSEntityDescription, NSView; API_AVAILABLE(macos(10.5)) @interface NSPredicateEditorRowTemplate : NSObject <NSCoding, NSCopying> /* returns a positive number if the template can represent the predicate, and zero if it cannot. The highest match determines which template is responsible for displaying the predicate. Developers can override this to determine which predicates their custom template handles. By default, this returns values in the range [0., 1.] */ - (double)matchForPredicate:(NSPredicate *)predicate; /* returns the list of views that are placed in the row. NSPopUpButtons are treated specially in that the items of multiple templates are merged together; other views are added as-is. Developers can override this to return views in addition to or instead of the default views. */ @property (readonly, copy) NSArray<NSView *> *templateViews; /* sets the value of the views according to the given predicate. This is only called if matchForPredicate: returns a positive value for the given predicate. Developers can override this to set the values of their custom views. */ - (void)setPredicate:(NSPredicate *)predicate; /* returns the predicate represented by the template's views' values and the given subpredicates. Developers can override this to return the predicate represented by their custom views. */ - (NSPredicate *)predicateWithSubpredicates:(nullable NSArray<NSPredicate *> *)subpredicates; /* for a given predicate, returns the subpredicates that should be made subrows. For NSCompoundPredicate, this returns the array of subpredicates; it returns nil for other types of predicates. This is only called if matchForPredicate: returns a positive value for the given predicate. Developers can override this to create custom templates that handle complicated compound predicates. */ - (nullable NSArray<NSPredicate *> *)displayableSubpredicatesOfPredicate:(NSPredicate *)predicate; /* creates a template of the popup-popup-popup form, with the left and right popups representing the left and right expression arrays, and the center popup representing the operators. */ - (instancetype)initWithLeftExpressions:(NSArray<NSExpression *> *)leftExpressions rightExpressions:(NSArray<NSExpression *> *)rightExpressions modifier:(NSComparisonPredicateModifier)modifier operators:(NSArray<NSNumber *> *)operators options:(NSUInteger)options; /* creates a template of the popup-popup-view form, with the left popups representing the left expressions, the right view representing an arbitrary value, and the center popup representing the operators. */ - (instancetype)initWithLeftExpressions:(NSArray<NSExpression *> *)leftExpressions rightExpressionAttributeType:(NSAttributeType)attributeType modifier:(NSComparisonPredicateModifier)modifier operators:(NSArray<NSNumber *> *)operators options:(NSUInteger)options; /* creates a template suitable for displaying compound predicates. NSPredicateEditor contains such a template by default. */ - (instancetype)initWithCompoundTypes:(NSArray<NSNumber *> *)compoundTypes; /* returns the various values set in the initializers, or zero/nil if they do not apply */ @property (nullable, readonly, copy) NSArray<NSExpression *> *leftExpressions; @property (nullable, readonly, copy) NSArray<NSExpression *> *rightExpressions; @property (readonly) NSAttributeType rightExpressionAttributeType; @property (readonly) NSComparisonPredicateModifier modifier; @property (nullable, readonly, copy) NSArray<NSNumber *> *operators; @property (readonly) NSUInteger options; @property (nullable, readonly, copy) NSArray<NSNumber *> *compoundTypes; /* CoreData convenience method: creates an array of templates of the popup-popup-view variety from the given key paths. The key paths may cross relationships but must terminate in attributes. */ + (NSArray<NSPredicateEditorRowTemplate *> *)templatesWithAttributeKeyPaths:(NSArray<NSString *> *)keyPaths inEntityDescription:(NSEntityDescription *)entityDescription; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSPDFImageRep.h
/* NSPDFImageRep.h Application Kit Copyright (c) 1999-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSImageRep.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @interface NSPDFImageRep : NSImageRep + (nullable instancetype)imageRepWithData:(NSData *)pdfData; - (nullable instancetype)initWithData:(NSData *)pdfData; @property (readonly, strong) NSData *PDFRepresentation; @property (readonly) NSRect bounds; // for current page @property NSInteger currentPage; // 0 based @property (readonly) NSInteger pageCount; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSStepperCell.h
/* NSStepperCell.h Application Kit Copyright (c) 2000-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSActionCell.h> #import <AppKit/AppKitDefines.h> APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @interface NSStepperCell : NSActionCell @property double minValue; @property double maxValue; @property double increment; @property BOOL valueWraps; @property BOOL autorepeat; @end API_UNAVAILABLE_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSStepperTouchBarItem.h
/* NSStepperTouchBarItem.h Application Kit Copyright (c) 1995-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSTouchBarItem.h> NS_ASSUME_NONNULL_BEGIN API_AVAILABLE(macos(10.15), ios(13.0)) @interface NSStepperTouchBarItem : NSTouchBarItem /// Creates an `NSStepperTouchBarItem` with a `formatter` to display the stepper's value as text /// /// @param formatter A formatter used to display a textual representation of the stepper's value + (instancetype)stepperTouchBarItemWithIdentifier:(NSTouchBarItemIdentifier)identifier formatter:(NSFormatter *)formatter; /// Creates an `NSStepperTouchBarItem` using the result of `drawingHandler` to display the stepper's value as an image /// /// @param drawingHandler A block that draws a graphical representation of the stepper's value in the specified rectangle. The coordinates of this rectangle are specified in points. + (instancetype)stepperTouchBarItemWithIdentifier:(NSTouchBarItemIdentifier)identifier drawingHandler:(void (^)(NSRect rect, double value))drawingHandler; /// The stepper's maximum value. The default is 59.0. @property double maxValue; /// The stepper's minimum value. The default is 0.0. @property double minValue; /// The stepper's increment value. The default is 1.0. @property double increment; /// The current value of the stepper. @property double value; /// The target object that receives action messages from the stepper. @property (weak, nullable) id target; /// The action-message selector associated with the stepper. @property (nullable) SEL action; /// The localized string labelling this item during user customization. The default value is empty string. @property (copy, null_resettable) NSString *customizationLabel; @end NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSFileWrapper.h
/* NSFileWrapper.h Application Kit Copyright (c) 1995-2021, Apple Inc. All rights reserved. */ #warning NSFileWrapper has been moved to Foundation. Import <Foundation/Foundation.h> instead of <AppKit/NSFileWrapper.h>. #import <Foundation/NSFileWrapper.h>
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSSharingServicePickerTouchBarItem.h
/* NSSharingServicePickerTouchBarItem.h Application Kit Copyright (c) 2016-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSTouchBarItem.h> #import <AppKit/NSSharingService.h> #import <AppKit/AppKitDefines.h> #import <TargetConditionals.h> #if !TARGET_OS_IPHONE @class NSImage; #else @class UIImage; #endif @protocol NSSharingServicePickerTouchBarItemDelegate; NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST API_AVAILABLE(macos(10.12.2), ios(10.13)) @interface NSSharingServicePickerTouchBarItem : NSTouchBarItem #if !TARGET_OS_IPHONE @property (weak) id<NSSharingServicePickerTouchBarItemDelegate> delegate; #endif /* Enables or disabled the sharing button; if the popover is shown, it will first be closed. */ @property (getter=isEnabled) BOOL enabled; /* Get/set the button title and image. By default, the button title is an empty string, and the button image is a share picker image. */ @property (copy) NSString *buttonTitle; #if !TARGET_OS_IPHONE @property (nullable, strong) NSImage *buttonImage; #else @property (nullable, strong) UIImage *buttonImage; #endif @end #if !TARGET_OS_IPHONE @protocol NSSharingServicePickerTouchBarItemDelegate <NSSharingServicePickerDelegate> @required /* Return the items that represent the objects to be shared. They must conform to the <NSPasteboardWriting> protocol or be an NSItemProvider. (e.g. NSString, NSImage, NSURL, etc.). */ - (NSArray *)itemsForSharingServicePickerTouchBarItem:(NSSharingServicePickerTouchBarItem *)pickerTouchBarItem; @end #endif API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSDraggingItem.h
/* NSDraggingItem.h Application Kit Copyright (c) 2010-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSObject.h> #import <Foundation/NSArray.h> #import <Foundation/NSGeometry.h> #import <AppKit/AppKitDefines.h> @protocol NSPasteboardWriting; NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSString; typedef NSString * NSDraggingImageComponentKey NS_TYPED_EXTENSIBLE_ENUM; APPKIT_EXTERN NSDraggingImageComponentKey const NSDraggingImageComponentIconKey API_AVAILABLE(macos(10.7)); APPKIT_EXTERN NSDraggingImageComponentKey const NSDraggingImageComponentLabelKey API_AVAILABLE(macos(10.7)); API_AVAILABLE(macos(10.7)) @interface NSDraggingImageComponent : NSObject + (NSDraggingImageComponent *)draggingImageComponentWithKey:(NSDraggingImageComponentKey)key; /* Designated initializer */ - (instancetype)initWithKey:(NSDraggingImageComponentKey)key NS_DESIGNATED_INITIALIZER; - (instancetype)init NS_UNAVAILABLE; /* key must be unique for each component in an NSDraggingItem. You can create your own named components, but the following names have special meaning. NSDraggingImageComponentIconKey is an image of the item being dragged. NSDraggingImageComponentLabelKey represents a textual label associate with the item, for example, a file name. */ @property (copy) NSDraggingImageComponentKey key; /* An object providing the image contents of the component, typically you set an NSImage, but may be anything CALayer accepts. */ @property (nullable, strong) id contents; /* The coordinate space is the bounds of the parent NSDraggingItem. That is, {{0,0}, {draggingFrame.size.width, draggingFrame.size.height}} Note: NSDraggingItem does not clip its components. */ @property NSRect frame; @end API_AVAILABLE(macos(10.7)) @interface NSDraggingItem : NSObject /* The designated initializer. When creating an NSDraggingItem the pasteboardWriter must implement the NSPasteboardWriting protocol. */ - (instancetype)initWithPasteboardWriter:(id <NSPasteboardWriting>)pasteboardWriter NS_DESIGNATED_INITIALIZER; - (instancetype)init NS_UNAVAILABLE; /* When you create an NSDraggingItem, item is the pasteboardWriter passed to initWithPasteboardWriter. However, when enumerating dragging items in an NSDraggingSession or NSDraggingInfo object, item is not the original pasteboardWriter. It is an instance of one of the classes provided to the enumeration method. */ @property (readonly, strong) id item; /* The dragging frame that provides the spatial relationship between NSDraggingItems in the NSDraggingFormationNone. Note: The exact coordinate space of this rect depends on where it is used. See NSDraggingSession and NSDraggingInfo. */ @property NSRect draggingFrame; /* The dragging image is the composite of an array of NSDraggingImageComponents. The dragging image components may not be set directly. Instead, provide a block to generate the components and the block will be called if necessary. The block may be set to nil, meaning that this drag item has no image. Generally, only dragging destinations do this, and only if there is at least one valid item in the drop, and this is not it. The components are composited in painting order. That is, each component in the array is painted on top of the previous components in the array. */ @property (nullable, copy) NSArray<NSDraggingImageComponent *> * _Nonnull (^imageComponentsProvider)(void); /* Alternate single image component setter. This method simplifies modifiying the components of an NSDraggingItem when there is only one component. This method will set the draggingFrame and imageComponentsProvider properties. frame is in the same coordinate space that the draggingFrame property is. To hide this item, set contents to nil. */ - (void)setDraggingFrame:(NSRect)frame contents:(nullable id)contents; /* An array of NSDraggingImageComponents that are used to create the drag image. Note: the array contains copies of the components. Changes made to these copies are not reflected in the drag. If needed, the imageComponentsProvider block is called to generate the image components. */ @property (nullable, readonly, copy) NSArray<NSDraggingImageComponent *> *imageComponents; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSDatePicker.h
/* NSDatePicker.h Application Kit Copyright (c) 2004-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSControl.h> #import <AppKit/NSDatePickerCell.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSCalendar, NSLocale, NSTimeZone; @interface NSDatePicker : NSControl { } #pragma mark *** Appearance Control *** @property NSDatePickerStyle datePickerStyle; @property (getter=isBezeled) BOOL bezeled; @property (getter=isBordered) BOOL bordered; @property BOOL drawsBackground; @property (copy) NSColor *backgroundColor; @property (copy) NSColor *textColor; #pragma mark *** Range Mode Control *** @property NSDatePickerMode datePickerMode; #pragma mark *** Date Presentation Control *** @property NSDatePickerElementFlags datePickerElements; @property (nullable, copy) NSCalendar *calendar; @property (nullable, copy) NSLocale *locale; @property (nullable, copy) NSTimeZone *timeZone; #pragma mark *** Object Value Access *** @property (copy) NSDate *dateValue; @property NSTimeInterval timeInterval; #pragma mark *** Constraints on Displayable/Selectable Range *** @property (nullable, copy) NSDate *minDate; @property (nullable, copy) NSDate *maxDate; #pragma mark *** Calendar Overlay Support *** @property BOOL presentsCalendarOverlay API_AVAILABLE(macos(10.15.4)); #pragma mark *** Delegate *** @property (nullable, weak) id<NSDatePickerCellDelegate> delegate; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSScroller.h
/* NSScroller.h Application Kit Copyright (c) 1994-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSControl.h> #import <AppKit/NSCell.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST typedef NS_ENUM(NSUInteger, NSUsableScrollerParts) { NSNoScrollerParts = 0, NSOnlyScrollerArrows API_DEPRECATED("Scroller arrows are not used anymore.", macos(10.0,10.14)) = 1, NSAllScrollerParts = 2, }; typedef NS_ENUM(NSUInteger, NSScrollerPart) { NSScrollerNoPart = 0, NSScrollerDecrementPage = 1, NSScrollerKnob = 2, NSScrollerIncrementPage = 3, NSScrollerDecrementLine API_DEPRECATED("Scroller arrows are not used anymore.", macos(10.0,10.14)) = 4, NSScrollerIncrementLine API_DEPRECATED("Scroller arrows are not used anymore.", macos(10.0,10.14)) = 5, NSScrollerKnobSlot = 6, }; typedef NS_ENUM(NSInteger, NSScrollerStyle) { NSScrollerStyleLegacy = 0, NSScrollerStyleOverlay = 1, } API_AVAILABLE(macos(10.7)); typedef NS_ENUM(NSInteger, NSScrollerKnobStyle) { NSScrollerKnobStyleDefault = 0, // uses the default look for the appearance NSScrollerKnobStyleDark = 1, // dark; good against a light background NSScrollerKnobStyleLight = 2, // light; good against a dark background } API_AVAILABLE(macos(10.7)); @interface NSScroller : NSControl /* A subclass of NSScroller can override this method to certify that its customizations are compatible with 10.7's new iOS-like "Overlay" scroller style and behaviors. By default, AppKit assumes that instances of NSScroller subclasses may not be compatible with the way that Overlay scrollers are presented, and falls back to the more compatible 10.6-like scroller metrics and behavior for subclassed scrollers. The recommended override technique for a subclass "MyCustomScroller" that wants to delcare itself compatible with Overlay scroller presentation is: @implementation MyCustomScroller ... + (BOOL)isCompatibleWithOverlayScrollers { return self == [MyCustomScroller class]; } In this way, compatibility will be properly assessed for both "MyCustomScroller", and for potentially unknown subclasses thereof. When it opts in in this manner, an NSScroller subclass certifies that: - It performs any appearance customization by overriding the parts-drawing methods -drawKnob and -drawKnobSlotInRect:highlight:, and not by overriding -drawRect: wholesale. (This is necessary to allow for separate knob and track fade in/out. AppKit automatically applies the necessary fade alpha to whatever is drawn by -drawKnob and -drawKnobSlotInRect:highlight:.) - It likewise performs any event-handling customization by overriding the parts-based methods -testPart: and -trackKnob:, and not by overriding -mouseDown: wholesale. - It can deal with the fact that scroller arrows no longer exist, and -rectForPart: returns empty rects for them. - It can accommodate the potentially different size and layout metrics used by Overlay scrollers. */ @property (class, readonly, getter=isCompatibleWithOverlayScrollers) BOOL compatibleWithOverlayScrollers API_AVAILABLE(macos(10.7)); /* Returns the with for scrollers of the receiving class, given the specified controlSize and scrollerStyle. This method should be used in preference to +scrollerWidthForControlSize:, which assumes a scrollerStyle of NSScrollerStyleLegacy, and +scrollerWidth:, which assumes that and a controlSize of NSRegularControlSize. */ + (CGFloat)scrollerWidthForControlSize:(NSControlSize)controlSize scrollerStyle:(NSScrollerStyle)scrollerStyle API_AVAILABLE(macos(10.7)); /* Returns the style of scrollers that applications should use wherever possible. This value is determined by the Appearance preference panel's "Show scroll bars" setting for the current user, and -- when the user's prefernce is set to "Automatically based on input device" -- by the set of built-in and connected pointing devices and the user's scroll capability preference settings for them. The preferredScrollerStyle will therefore change over time, and applications should be prepared to adapt their user interfaces to the new scroller style if needed. In most cases, the updating is automatic: When the preferredScrollerStyle changes, AppKit notifies all NSScrollView instances, sending -setScrollerStyle: to each with the new style, which causees each NSScrollView to automatically re-tile (update its layout) to adapt to the new scroller style. Some NSScrollView instances may refuse the new scroller style setting if they cannot accommodate it for compatibility reasons (presence of accessory views or legacy scroller subclasses prevent use of Overlay scrollers), but most instances will switch to the specified new preferredScrollerStyle. Clients that wish to be notified of changes to +preferredScrollerStyle's return value can subscribe to NSPreferredScrollerStyleDidChangeNotification (declared below). */ @property (class, readonly) NSScrollerStyle preferredScrollerStyle API_AVAILABLE(macos(10.7)); /* Accessors for scroller's style. For a scroller that's managed by an NSScrollView, the setter is automatically invoked by the ScrollView with the appropriate setting, according to the user's Appearance preference settings and possibly what pointing device(s) are present. */ @property NSScrollerStyle scrollerStyle API_AVAILABLE(macos(10.7)); /* Accessors for the scroller's knob style. The value of this property does not affect Legacy scrollers. NSScrollerKnobStyleDefault is appropriate for a wide range of content, but in some cases choosing an alternative knob style may enhance visibility of the scroller knob atop some kinds of content. */ @property NSScrollerKnobStyle knobStyle API_AVAILABLE(macos(10.7)); - (NSRect)rectForPart:(NSScrollerPart)partCode; - (void)checkSpaceForParts; @property (readonly) NSUsableScrollerParts usableParts; @property NSControlSize controlSize; - (void)drawKnob; - (void)drawKnobSlotInRect:(NSRect)slotRect highlight:(BOOL)flag; - (NSScrollerPart)testPart:(NSPoint)point; - (void)trackKnob:(NSEvent *)event; @property (readonly) NSScrollerPart hitPart; @property CGFloat knobProportion; - (void)setKnobProportion:(CGFloat)proportion API_AVAILABLE(macos(10.5)); @end /* Posted when the preferred scroller style changes. The notification object is private; disregard it. Consult NSScroller's +preferredScrollerStyle method when this notification is received, or thereafter, to determine the new scroller style to use. */ APPKIT_EXTERN NSNotificationName const NSPreferredScrollerStyleDidChangeNotification API_AVAILABLE(macos(10.7)); /* Deprecated API */ typedef NS_ENUM(NSUInteger, NSScrollArrowPosition) { NSScrollerArrowsMaxEnd = 0, /* previously deprecated */ NSScrollerArrowsMinEnd = 1, /* previously deprecated */ NSScrollerArrowsDefaultSetting = 0, NSScrollerArrowsNone = 2 } API_DEPRECATED("Scroller arrows are not used anymore.", macos(10.0,10.14)); typedef NS_ENUM(NSUInteger, NSScrollerArrow) { NSScrollerIncrementArrow = 0, NSScrollerDecrementArrow = 1 } API_DEPRECATED("Scroller arrows are not used anymore.", macos(10.0,10.14)); @interface NSScroller(NSDeprecated) /* Returns the with for scrollers of the receiving class, given the specified controlSize and assuming a scrollerStyle of NSScrollerStyleLegacy. */ + (CGFloat)scrollerWidthForControlSize:(NSControlSize)controlSize API_DEPRECATED("Use +scrollerWidthForControlSize:scrollerStyle: instead", macos(10.0,10.7)); /* Returns the width for scrollers of the receiving class, assuming a controlSize NSRegularControlSize, and a scrollerStyle of NSScrollerStyleLegacy. */ + (CGFloat)scrollerWidth API_DEPRECATED("Use +scrollerWidthForControlSize:scrollerStyle: instead", macos(10.0,10.7)); /* To maintain binary compatibility, AppKit will continue to invoke overrides of this method. Code that targets Mac OS 10.5 and later should use -setDoubleValue: and -setKnobProportion: instead, and eliminate any overrides of -setFloatValue:knobProportion:. Code that needs to remain compatible with Mac OS 10.4 and earlier should continue to use -setFloatValue:knobProportion:. */ - (void)setFloatValue:(float)value knobProportion:(CGFloat)proportion API_DEPRECATED("", macos(10.0,10.5)); @property NSScrollArrowPosition arrowsPosition API_DEPRECATED("Has had no effect since 10.7", macos(10.0,10.14)); @property NSControlTint controlTint API_DEPRECATED("Has had no effect since 10.7", macos(10.0,10.14)); - (void)highlight:(BOOL)flag API_DEPRECATED("Has had no effect since 10.7", macos(10.0,10.14)); - (void)trackScrollButtons:(NSEvent *)event API_DEPRECATED("Not invoked since 10.7", macos(10.0,10.14)); - (void)drawParts API_DEPRECATED("Not invoked on any macOS version", macos(10.0,10.7)); - (void)drawArrow:(NSScrollerArrow)whichArrow highlight:(BOOL)flag API_DEPRECATED("Scrollers don't have arrows as of 10.7", macos(10.0,10.14)); @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutAnchor.h
/* NSLayoutAnchor.h Application Kit Copyright (c) 2015-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSGeometry.h> #import <Foundation/NSArray.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN #if !TARGET_OS_IPHONE #if __cplusplus #define NSLAYOUTANCHOR_EXTERN extern "C" __attribute((visibility("default"))) #else #define NSLAYOUTANCHOR_EXTERN extern __attribute((visibility("default"))) #endif @class NSLayoutConstraint, NSLayoutDimension; /* An NSLayoutAnchor represents an edge or dimension of a layout item. Its concrete subclasses allow concise creation of constraints. The idea is that instead of invoking +[NSLayoutConstraint constraintWithItem: attribute: relatedBy: toItem: attribute: multiplier: constant:] directly, you can instead do something like this: [myView.topAnchor constraintEqualToAnchor:otherView.topAnchor constant:10]; The -constraint* methods are available in multiple flavors to support use of different relations and omission of unused options. */ NSLAYOUTANCHOR_EXTERN API_AVAILABLE(macos(10.11), ios(9.0)) @interface NSLayoutAnchor<AnchorType> : NSObject // NSLayoutAnchor conforms to <NSCopying> and <NSCoding> on macOS 10.12, iOS 10, and tvOS 10 #if (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101200) || \ (__IPHONE_OS_VERSION_MIN_REQUIRED >= 100000) || \ (__TV_OS_VERSION_MIN_REQUIRED >= 100000) <NSCopying, NSCoding> #endif // These methods return an inactive constraint of the form thisAnchor = otherAnchor. - (NSLayoutConstraint *)constraintEqualToAnchor:(NSLayoutAnchor<AnchorType> *)anchor __attribute__((warn_unused_result)); - (NSLayoutConstraint *)constraintGreaterThanOrEqualToAnchor:(NSLayoutAnchor<AnchorType> *)anchor __attribute__((warn_unused_result)); - (NSLayoutConstraint *)constraintLessThanOrEqualToAnchor:(NSLayoutAnchor<AnchorType> *)anchor __attribute__((warn_unused_result)); // These methods return an inactive constraint of the form thisAnchor = otherAnchor + constant. - (NSLayoutConstraint *)constraintEqualToAnchor:(NSLayoutAnchor<AnchorType> *)anchor constant:(CGFloat)c __attribute__((warn_unused_result)); - (NSLayoutConstraint *)constraintGreaterThanOrEqualToAnchor:(NSLayoutAnchor<AnchorType> *)anchor constant:(CGFloat)c __attribute__((warn_unused_result)); - (NSLayoutConstraint *)constraintLessThanOrEqualToAnchor:(NSLayoutAnchor<AnchorType> *)anchor constant:(CGFloat)c __attribute__((warn_unused_result)); // These properties are for debugging only: @property (readonly, copy) NSString *name API_AVAILABLE(macos(10.12)) API_UNAVAILABLE(ios, watchos, tvos); @property (readonly, nullable, weak) id item API_AVAILABLE(macos(10.12)) API_UNAVAILABLE(ios, watchos, tvos); @property (readonly) BOOL hasAmbiguousLayout API_AVAILABLE(macos(10.12)) API_UNAVAILABLE(ios, watchos, tvos); @property (readonly) NSArray<NSLayoutConstraint *> *constraintsAffectingLayout API_AVAILABLE(macos(10.12)) API_UNAVAILABLE(ios, watchos, tvos); @end // Axis-specific subclasses for location anchors: top/bottom, leading/trailing, baseline, etc. @class NSLayoutXAxisAnchor, NSLayoutYAxisAnchor, NSLayoutDimension; NSLAYOUTANCHOR_EXTERN API_AVAILABLE(macos(10.11), ios(9.0)) @interface NSLayoutXAxisAnchor : NSLayoutAnchor<NSLayoutXAxisAnchor *> // A composite anchor for creating constraints relating horizontal distances between locations. - (NSLayoutDimension *)anchorWithOffsetToAnchor:(NSLayoutXAxisAnchor *)otherAnchor API_AVAILABLE(macos(10.12), ios(10.0), tvos(10.0)); /* Constraints of the form, receiver [= | ≥ | ≤] 'anchor' + 'multiplier' * system space, where the value of the system space is determined from information available from the anchors. The constraint affects how far the receiver will be positioned trailing 'anchor', per the effective user interface layout direction. */ - (NSLayoutConstraint *)constraintEqualToSystemSpacingAfterAnchor:(NSLayoutXAxisAnchor *)anchor multiplier:(CGFloat)multiplier __attribute__((warn_unused_result)) API_AVAILABLE(macos(11.0), ios(11.0), tvos(11.0)); - (NSLayoutConstraint *)constraintGreaterThanOrEqualToSystemSpacingAfterAnchor:(NSLayoutXAxisAnchor *)anchor multiplier:(CGFloat)multiplier __attribute__((warn_unused_result)) API_AVAILABLE(macos(11.0), ios(11.0), tvos(11.0)); - (NSLayoutConstraint *)constraintLessThanOrEqualToSystemSpacingAfterAnchor:(NSLayoutXAxisAnchor *)anchor multiplier:(CGFloat)multiplier __attribute__((warn_unused_result)) API_AVAILABLE(macos(11.0), ios(11.0), tvos(11.0)); @end NSLAYOUTANCHOR_EXTERN API_AVAILABLE(macos(10.11), ios(9.0)) @interface NSLayoutYAxisAnchor : NSLayoutAnchor<NSLayoutYAxisAnchor *> // A composite anchor for creating constraints relating vertical distances between locations. - (NSLayoutDimension *)anchorWithOffsetToAnchor:(NSLayoutYAxisAnchor *)otherAnchor API_AVAILABLE(macos(10.12), ios(10.0), tvos(10.0)); /* Constraints of the form, receiver [= | ≥ | ≤] 'anchor' + 'multiplier' * system space, where the value of the system space is determined from information available from the anchors. The constraint affects how far the receiver will be positioned below 'anchor'. */ - (NSLayoutConstraint *)constraintEqualToSystemSpacingBelowAnchor:(NSLayoutYAxisAnchor *)anchor multiplier:(CGFloat)multiplier __attribute__((warn_unused_result)) API_AVAILABLE(macos(11.0), ios(11.0), tvos(11.0)); - (NSLayoutConstraint *)constraintGreaterThanOrEqualToSystemSpacingBelowAnchor:(NSLayoutYAxisAnchor *)anchor multiplier:(CGFloat)multiplier __attribute__((warn_unused_result)) API_AVAILABLE(macos(11.0), ios(11.0), tvos(11.0)); - (NSLayoutConstraint *)constraintLessThanOrEqualToSystemSpacingBelowAnchor:(NSLayoutYAxisAnchor *)anchor multiplier:(CGFloat)multiplier __attribute__((warn_unused_result)) API_AVAILABLE(macos(11.0), ios(11.0), tvos(11.0)); @end // This layout anchor subclass is used for sizes (width & height). NSLAYOUTANCHOR_EXTERN API_AVAILABLE(macos(10.11), ios(9.0)) @interface NSLayoutDimension : NSLayoutAnchor<NSLayoutDimension *> // These methods return an inactive constraint of the form thisVariable = constant. - (NSLayoutConstraint *)constraintEqualToConstant:(CGFloat)c __attribute__((warn_unused_result)); - (NSLayoutConstraint *)constraintGreaterThanOrEqualToConstant:(CGFloat)c __attribute__((warn_unused_result)); - (NSLayoutConstraint *)constraintLessThanOrEqualToConstant:(CGFloat)c __attribute__((warn_unused_result)); // These methods return an inactive constraint of the form thisAnchor = otherAnchor * multiplier. - (NSLayoutConstraint *)constraintEqualToAnchor:(NSLayoutDimension *)anchor multiplier:(CGFloat)m __attribute__((warn_unused_result)); - (NSLayoutConstraint *)constraintGreaterThanOrEqualToAnchor:(NSLayoutDimension *)anchor multiplier:(CGFloat)m __attribute__((warn_unused_result)); - (NSLayoutConstraint *)constraintLessThanOrEqualToAnchor:(NSLayoutDimension *)anchor multiplier:(CGFloat)m __attribute__((warn_unused_result)); // These methods return an inactive constraint of the form thisAnchor = otherAnchor * multiplier + constant. - (NSLayoutConstraint *)constraintEqualToAnchor:(NSLayoutDimension *)anchor multiplier:(CGFloat)m constant:(CGFloat)c __attribute__((warn_unused_result)); - (NSLayoutConstraint *)constraintGreaterThanOrEqualToAnchor:(NSLayoutDimension *)anchor multiplier:(CGFloat)m constant:(CGFloat)c __attribute__((warn_unused_result)); - (NSLayoutConstraint *)constraintLessThanOrEqualToAnchor:(NSLayoutDimension *)anchor multiplier:(CGFloat)m constant:(CGFloat)c __attribute__((warn_unused_result)); @end #endif // !TARGET_OS_IPHONE NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSPDFPanel.h
/* NSPDFPanel.h Application Kit Copyright (c) 2013-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSObject.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSMutableArray, NSString; @class NSPDFInfo, NSViewController, NSWindow; typedef NS_OPTIONS(NSInteger, NSPDFPanelOptions) { NSPDFPanelShowsPaperSize = 1 << 2, NSPDFPanelShowsOrientation = 1 << 3, NSPDFPanelRequestsParentDirectory = 1 << 24 } API_AVAILABLE(macos(10.9)); API_AVAILABLE(macos(10.9)) NS_SWIFT_UI_ACTOR @interface NSPDFPanel : NSObject /* Create a new NSPDFPanel. */ + (NSPDFPanel *)panel; /* Controller for the accessory views that will be presented in the panel by the methods below. When the panel is presented to the user the controller is automatically sent a -setRepresentedObject: message with an NSPDFInfo equivalent to those one passed to -beginSheetWithPDFInfo:modalForWindow:completionHandler:. */ @property (nullable, strong) NSViewController *accessoryController; /* The options described above. The default value is 0. To allow your application to take advantage of controls that may be added by default in future versions OS X, get the options from the panel you've just created, turn on and off the flags you care about, and then set the options. */ @property NSPDFPanelOptions options; /* The user-editable file name shown in the name field. The default value is the equivalent of 'Untitled' for the current locale. Note that this string should never include a file extension. */ @property (copy) NSString *defaultFileName; /* Present a print panel to the user, document-modally. When the user has dismissed it, invoke the completionHandler block. If the user didn't click the 'Cancel' button, the given NSPDFInfo will be modified to reflect the user's chosen settings, if any. */ - (void)beginSheetWithPDFInfo:(NSPDFInfo *)pdfInfo modalForWindow:(nullable NSWindow *)docWindow completionHandler:(void (^)(NSInteger))completionHandler; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSPickerTouchBarItem.h
/* NSPickerTouchBarItem.h Application Kit Copyright (c) 2019-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSTouchBarItem.h> NS_ASSUME_NONNULL_BEGIN #if !TARGET_OS_IPHONE @class NSImage, NSColor; #else @class UIImage, UIColor; #endif typedef NS_ENUM(NSInteger, NSPickerTouchBarItemSelectionMode) { NSPickerTouchBarItemSelectionModeSelectOne = 0, // Only one option in the control can be selected at a time. NSPickerTouchBarItemSelectionModeSelectAny = 1, // One or more options in the control can be selected at a time. NSPickerTouchBarItemSelectionModeMomentary = 2 // An option is only selected when the user is engaging within the bounds of that option. } API_AVAILABLE(macos(10.15), ios(13.0)); typedef NS_ENUM(NSInteger, NSPickerTouchBarItemControlRepresentation) { NSPickerTouchBarItemControlRepresentationAutomatic = 0, // representation will switch based on available space NSPickerTouchBarItemControlRepresentationExpanded = 1, // the control and all of its options will be visible to the user directly NSPickerTouchBarItemControlRepresentationCollapsed = 2 // the options of the control will be disclosed to the user through a popover } API_AVAILABLE(macos(10.15), ios(13.0)); API_AVAILABLE(macos(10.15), ios(13.0)) @interface NSPickerTouchBarItem : NSTouchBarItem /* Creates a standard item with an NSSegmentedControl appropriate for use in an NSTouchBar */ + (instancetype)pickerTouchBarItemWithIdentifier:(NSTouchBarItemIdentifier)identifier labels:(NSArray<NSString *> *)labels selectionMode:(NSPickerTouchBarItemSelectionMode)selectionMode target:(nullable id)target action:(nullable SEL)action; #if !TARGET_OS_IPHONE + (instancetype)pickerTouchBarItemWithIdentifier:(NSTouchBarItemIdentifier)identifier images:(NSArray<NSImage *> *)images selectionMode:(NSPickerTouchBarItemSelectionMode)selectionMode target:(nullable id)target action:(nullable SEL)action; #else + (instancetype)pickerTouchBarItemWithIdentifier:(NSTouchBarItemIdentifier)identifier images:(NSArray<UIImage *> *)images selectionMode:(NSPickerTouchBarItemSelectionMode)selectionMode target:(nullable id)target action:(nullable SEL)action; #endif /* The style in which this item will be represented to the user. Defaults to NSPickerRepresentationAutomatic. */ @property NSPickerTouchBarItemControlRepresentation controlRepresentation; /* The user facing label and or image visible when the control is in the collapsed representation. If the selectionMode is NSPickerSelectionModeSelectOne, the collapsed representation will automatically be populated with the associated label and or image from the seelctedIndex. Setting these values may be used to override any automatic behavior. */ @property (copy) NSString *collapsedRepresentationLabel; #if !TARGET_OS_IPHONE @property (nullable, strong) NSImage *collapsedRepresentationImage; #else @property (nullable, strong) UIImage *collapsedRepresentationImage; #endif /* The most recently selected index of the control, or -1 if nothing is selected. */ @property NSInteger selectedIndex; #if !TARGET_OS_IPHONE @property (nullable, copy) NSColor *selectionColor; #else @property (nullable, copy) UIColor *selectionColor; #endif /* Defaults to NSPickerTouchBarItemSelectionModeSelectOne */ @property NSPickerTouchBarItemSelectionMode selectionMode; /* The number of options represented in the control. */ @property NSInteger numberOfOptions; /* Get and set the image and labels of an option at the given index. */ #if !TARGET_OS_IPHONE - (void)setImage:(nullable NSImage *)image atIndex:(NSInteger)index; - (nullable NSImage *)imageAtIndex:(NSInteger)index; #else - (void)setImage:(nullable UIImage *)image atIndex:(NSInteger)index API_AVAILABLE(ios(13.0)); - (nullable UIImage *)imageAtIndex:(NSInteger)index API_AVAILABLE(ios(13.0)); #endif - (void)setLabel:(NSString *)label atIndex:(NSInteger)index; - (nullable NSString *)labelAtIndex:(NSInteger)index; @property (nullable, weak) id target; @property (nullable ) SEL action; @property (getter=isEnabled) BOOL enabled; - (void)setEnabled:(BOOL)enabled atIndex:(NSInteger)index; - (BOOL)isEnabledAtIndex:(NSInteger)index; /// The localized string labelling this item during user customization. The default value is empty string. @property (readwrite, copy, null_resettable) NSString *customizationLabel; @end NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSColorList.h
/* NSColorList.h Application Kit Copyright (c) 1994-2021, Apple Inc. All rights reserved. */ /* An NSColorList is an ordered list of NSColors, identified by keys. These keys are used to identify the colors in the list and are used to display the color to the user in the color panel. Note that the key is only used in identifying a color in a color list; it has nothing to do with the contents of the color, unless, of course the color list was set up in such a way that the keys matched the color names. Instances of NSColorList are created for all user-created color lists (those in the color panel) and various color catalogs available on the system. NSColorLists post "NSColorListDidChangeNotification" when changed. */ #import <Foundation/NSObject.h> #import <Foundation/NSArray.h> #import <Foundation/NSNotification.h> #import <AppKit/AppKitDefines.h> #import <CoreFoundation/CFDictionary.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST typedef NSString * NSColorListName NS_SWIFT_BRIDGED_TYPEDEF; typedef NSString * NSColorName NS_SWIFT_BRIDGED_TYPEDEF; @class NSColor, NSBundle; @interface NSColorList : NSObject <NSSecureCoding> /* Returns all color lists in the user's color list path, including those added at runtime. Creating a named color list and saving with writeToFile:nil will add it to this list; removeFile will remove it from this list. (That is what happens as the user creates and destroys color lists in the color panel.) */ @property (class, readonly, copy) NSArray<NSColorList *> *availableColorLists; /* Returns the named color list from availableColorLists */ + (nullable NSColorList *)colorListNamed:(NSColorListName)name; /* Creates a color list; specify @"" if you don't want a name. NOTE that this does not add the color list to availableColorLists until the color list is saved into the user's path with writeToFile:nil. */ - (instancetype)initWithName:(NSColorListName)name; - (nullable instancetype)initWithName:(NSColorListName)name fromFile:(nullable NSString *)path; /* Load initial contents */ /* Name of the color list */ @property (nullable, readonly, copy) NSColorListName name; /* If key already exists, sets the corresponding color. Otherwise inserts the color at the end. */ - (void)setColor:(NSColor *)color forKey:(NSColorName)key; /* Inserts color at the specified location. If a color by the same key is already in the list but at a different location it is removed from there. */ - (void)insertColor:(NSColor *)color key:(NSColorName)key atIndex:(NSUInteger)loc; /* No-op if key doesn't exist. */ - (void)removeColorWithKey:(NSColorName)key; /* Returns nil if key doesn't exist. */ - (nullable NSColor *)colorWithKey:(NSColorName)key; /* Use this array to get count of colors and enumerate them according to the ordering specified when inserting. */ @property (readonly, copy) NSArray<NSColorName> *allKeys; /* Depends on the source of the colorlist file */ @property (getter=isEditable, readonly) BOOL editable; /* Save the color list using secure keyed archive format. Specify nil to save to the user's private colorlists directory (and also update availableColorLists), using the name of the color list. */ - (BOOL)writeToURL:(nullable NSURL *)url error:(NSError **)errPtr API_AVAILABLE(macos(10.11)); /* Save the color list using unkeyed archive format. Specify nil to save to the user's private colorlists directory (and also update availableColorLists), using the name of the color list. Use of the unkeyed archive format (and hence this API) is discouraged since it cannot represent some colors (including custom colorspace based ones) without loss. Use writeToURL:error: instead. */ - (BOOL)writeToFile:(nullable NSString *)path API_DEPRECATED("Use -writeToURL:error: instead", macos(10.0,10.14)); /* If the color list is in the user's private colorlists directory, removes the corresponding file and the color list from availableColorLists. If there are no outstanding references to the color list this might deallocate the object as well. */ - (void)removeFile; @end /* Notifications */ APPKIT_EXTERN NSNotificationName NSColorListDidChangeNotification; API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSNib.h
/* NSNib.h Application Kit Copyright (c) 2003-2021, Apple Inc. All rights reserved. NSNib serves as a wrapper around a single InterfaceBuilder nib. When an NSNib instance is created from a nib file, all of the data needed to instantiate the nib (the object graph as well as images and sounds that might be in the nib bundle) are read from the disk, however the nib is not instantiated until you call one of the instantiation methods. As such, a nib that is used repeatedly can be loaded from the disk only once, and can then perform countless instantiations, thereby reducing hits to the disk (at the expense of added memory for keeping the unarchived nib data around). NSNib implements NSCoding protocol. For example, using NSNib, the entire contents of a nib can be archived and sent to another system for unarchiving. The target system need not save the nib locally to open it (a shortcoming of the current NSBundle nib loading API). NSNib's implementation encodes all sound and image resources contained locally within the nib bundle. Note, it DOES NOT encode resources that are referenced outside of the nib bundle. As are all NSObjects, instantiated nib objects are allocated in a memory zone (NSZone). If an NSNibOwner is provided for instantiation, then the objects will be allocated in the owner's zone. If no NSNibOwner is provided, the resulting objects will be allocated in the default zone. */ #import <AppKit/AppKitDefines.h> #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST typedef NSString * NSNibName NS_SWIFT_BRIDGED_TYPEDEF; @interface NSNib : NSObject <NSCoding> // Initializes an instance with a nib file called nibName in the specified bundle. // If bundle is nil, it tries to find the nib in the main bundle. // The resulting bundle is used for locating resources such as images and localized // strings. // - (nullable instancetype)initWithNibNamed:(NSNibName)nibName bundle:(nullable NSBundle *)bundle; // Initializes an instance with nib data and specified bundle for locating resources // such as images and localized strings. If bundle is nil, the main bundle is assumed. // - (instancetype)initWithNibData:(NSData *)nibData bundle:(nullable NSBundle *)bundle API_AVAILABLE(macos(10.8)); // Instantiates objects in the nib file with the specified owner. // Upon success, the method returns YES and the optional out-parameter topLevelObjects is // populated with the top level objects of the nib. The objects adhere to the standard // Cocoa memory management rules and are autoreleased. IBOutlet properties to top level // objects should be strong (retain) to demonstrate ownership and prevent deallocation. // Alternatively, one may hold a strong reference to the top level objects array. // - (BOOL)instantiateWithOwner:(nullable id)owner topLevelObjects:(NSArray * _Nullable * _Nullable)topLevelObjects API_AVAILABLE(macos(10.8)); @end @interface NSNib (NSDeprecated) - (null_unspecified id)initWithContentsOfURL:(null_unspecified NSURL *)nibFileURL API_DEPRECATED("", macos(10.0,10.8)); - (BOOL)instantiateNibWithExternalNameTable:(null_unspecified NSDictionary *)externalNameTable API_DEPRECATED("", macos(10.0,10.8)); - (BOOL)instantiateNibWithOwner:(null_unspecified id)owner topLevelObjects:(NSArray * _Null_unspecified* _Null_unspecified)topLevelObjects API_DEPRECATED("", macos(10.3,10.8)); @end // ** External Name Table Keys ** APPKIT_EXTERN NSString * NSNibOwner API_DEPRECATED("", macos(10.0,10.8)); APPKIT_EXTERN NSString * NSNibTopLevelObjects API_DEPRECATED("", macos(10.0,10.8)); API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSNibDeclarations.h
/* NSNibDeclarations.h Application Kit Copyright (c) 1996-2021, Apple Inc. All rights reserved. */ #ifndef IBOutlet #define IBOutlet #endif #ifndef IBAction #define IBAction void #endif #ifndef IBInspectable #define IBInspectable #endif #ifndef IB_DESIGNABLE #define IB_DESIGNABLE #endif #ifndef IBSegueAction #define IBSegueAction #endif
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityProtocols.h
/* NSAccessibilityProtocols.h Application Kit Copyright (c) 2013-2021, Apple Inc. All rights reserved. */ #import <Foundation/Foundation.h> #import <AppKit/NSAccessibilityConstants.h> #import <AppKit/NSAccessibilityCustomAction.h> #import <AppKit/AppKitDefines.h> @class NSAccessibilityCustomRotor; NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST NS_PROTOCOL_REQUIRES_EXPLICIT_IMPLEMENTATION @protocol NSAccessibilityElement <NSObject> @required - (NSRect)accessibilityFrame; - (nullable id)accessibilityParent; @optional - (BOOL)isAccessibilityFocused; - (NSString *)accessibilityIdentifier; @end NS_PROTOCOL_REQUIRES_EXPLICIT_IMPLEMENTATION @protocol NSAccessibilityGroup <NSAccessibilityElement> @end #pragma mark Buttons NS_PROTOCOL_REQUIRES_EXPLICIT_IMPLEMENTATION @protocol NSAccessibilityButton <NSAccessibilityElement> @required - (nullable NSString *)accessibilityLabel; - (BOOL)accessibilityPerformPress; @end NS_PROTOCOL_REQUIRES_EXPLICIT_IMPLEMENTATION @protocol NSAccessibilitySwitch <NSAccessibilityButton> // Post NSAccessibilityValueChangedNotification when the value changes @required - (nullable NSString *)accessibilityValue; @optional - (BOOL)accessibilityPerformIncrement; - (BOOL)accessibilityPerformDecrement; @end NS_PROTOCOL_REQUIRES_EXPLICIT_IMPLEMENTATION @protocol NSAccessibilityRadioButton <NSAccessibilityButton> // NSAccessibilityValueChangedNotification should be posted whenever accessibilityValue changes @required // Return @YES if selected, or @NO if not selected - (nullable NSNumber *)accessibilityValue; @end NS_PROTOCOL_REQUIRES_EXPLICIT_IMPLEMENTATION @protocol NSAccessibilityCheckBox <NSAccessibilityButton> // NSAccessibilityValueChangedNotification should be posted whenever accessibilityValue changes @required // Return @YES if checked, or @NO if unchecked - (nullable NSNumber *)accessibilityValue; @end #pragma mark Text NS_PROTOCOL_REQUIRES_EXPLICIT_IMPLEMENTATION @protocol NSAccessibilityStaticText <NSAccessibilityElement> @required - (nullable NSString *)accessibilityValue; @optional - (nullable NSAttributedString *)accessibilityAttributedStringForRange:(NSRange)range; - (NSRange)accessibilityVisibleCharacterRange; @end NS_PROTOCOL_REQUIRES_EXPLICIT_IMPLEMENTATION @protocol NSAccessibilityNavigableStaticText <NSAccessibilityStaticText> @required - (nullable NSString *)accessibilityStringForRange:(NSRange)range; - (NSInteger)accessibilityLineForIndex:(NSInteger)index; - (NSRange)accessibilityRangeForLine:(NSInteger)lineNumber; // Frame is in screen coordinates. See NSAccessibilityFrameInView() - (NSRect)accessibilityFrameForRange:(NSRange)range; @end #pragma mark Miscellaneous NS_PROTOCOL_REQUIRES_EXPLICIT_IMPLEMENTATION @protocol NSAccessibilityProgressIndicator <NSAccessibilityGroup> @required - (nullable NSNumber *)accessibilityValue; @end NS_PROTOCOL_REQUIRES_EXPLICIT_IMPLEMENTATION @protocol NSAccessibilityStepper <NSAccessibilityElement> @required - (nullable NSString *)accessibilityLabel; - (BOOL)accessibilityPerformIncrement; - (BOOL)accessibilityPerformDecrement; @optional // Value is a NSString or a NSNumber - (nullable id)accessibilityValue; @end NS_PROTOCOL_REQUIRES_EXPLICIT_IMPLEMENTATION @protocol NSAccessibilitySlider <NSAccessibilityElement> @required - (nullable NSString *)accessibilityLabel; // Value is a NSString or a NSNumber - (nullable id)accessibilityValue; - (BOOL)accessibilityPerformIncrement; - (BOOL)accessibilityPerformDecrement; @end NS_PROTOCOL_REQUIRES_EXPLICIT_IMPLEMENTATION @protocol NSAccessibilityImage <NSAccessibilityElement> @required - (nullable NSString *)accessibilityLabel; @end NS_PROTOCOL_REQUIRES_EXPLICIT_IMPLEMENTATION @protocol NSAccessibilityContainsTransientUI <NSAccessibilityElement> @required - (BOOL)accessibilityPerformShowAlternateUI; - (BOOL)accessibilityPerformShowDefaultUI; - (BOOL)isAccessibilityAlternateUIVisible; @end @protocol NSAccessibilityRow; #pragma mark Tables, Lists, Outlines NS_PROTOCOL_REQUIRES_EXPLICIT_IMPLEMENTATION @protocol NSAccessibilityTable <NSAccessibilityGroup> @required - (nullable NSString *)accessibilityLabel; // An array of accessibility row elements - (nullable NSArray<id<NSAccessibilityRow>> *)accessibilityRows; @optional // For tables that have a selection // Make sure to post a selected-rows-changed notification when appropriate // NSAccessibilityPostNotification(table, NSAccessibilitySelectedRowsChangedNotification); - (nullable NSArray<id<NSAccessibilityRow>> *)accessibilitySelectedRows; - (void)setAccessibilitySelectedRows:(NSArray<id<NSAccessibilityRow>> *)selectedRows; // Advanced table accessibility - (nullable NSArray<id<NSAccessibilityRow>> *)accessibilityVisibleRows; - (nullable NSArray *)accessibilityColumns; - (nullable NSArray *)accessibilityVisibleColumns; - (nullable NSArray *)accessibilitySelectedColumns; - (nullable NSString *)accessibilityHeaderGroup API_DEPRECATED_WITH_REPLACEMENT("accessibilityHeader", macos(10.9,10.14)); - (nullable NSArray *)accessibilitySelectedCells; - (nullable NSArray *)accessibilityVisibleCells; - (nullable NSArray *)accessibilityRowHeaderUIElements; - (nullable NSArray *)accessibilityColumnHeaderUIElements; @end NS_PROTOCOL_REQUIRES_EXPLICIT_IMPLEMENTATION @protocol NSAccessibilityOutline <NSAccessibilityTable> @end NS_PROTOCOL_REQUIRES_EXPLICIT_IMPLEMENTATION @protocol NSAccessibilityList <NSAccessibilityTable> @end NS_PROTOCOL_REQUIRES_EXPLICIT_IMPLEMENTATION @protocol NSAccessibilityRow <NSAccessibilityGroup> @required - (NSInteger)accessibilityIndex; @optional - (NSInteger)accessibilityDisclosureLevel; @end #pragma mark Layout Area (Canvas) NS_PROTOCOL_REQUIRES_EXPLICIT_IMPLEMENTATION @protocol NSAccessibilityLayoutArea <NSAccessibilityGroup> @required - (NSString *)accessibilityLabel; // All of the layoutItem children - (nullable NSArray *)accessibilityChildren; // Selected layoutItem children - (nullable NSArray *)accessibilitySelectedChildren; // The focused layoutItem @property (readonly, strong) id accessibilityFocusedUIElement; @end NS_PROTOCOL_REQUIRES_EXPLICIT_IMPLEMENTATION @protocol NSAccessibilityLayoutItem <NSAccessibilityGroup> @optional // For layout items that can be moved - (void)setAccessibilityFrame:(NSRect)frame; @end #pragma mark Element Loading API_AVAILABLE(macos(10.13)) @protocol NSAccessibilityElementLoading <NSObject> @required /*! * @brief Loads the target element with the given load token. * @returns An element that will be messaged for other accessibility * properties. Assistive technologies may try to set accessibility * focus on the returned element. */ - (nullable id<NSAccessibilityElement>)accessibilityElementWithToken:(NSAccessibilityLoadingToken)token; @optional /*! * @brief For text-based elements returned from accessibilityElementWithToken, * such as an NSTextView, the range specifies an area of interest. Assistive * technologies will try to bring focus to the specified text range. * @remark Either do not implement this method or return NSNotFound for the * location if there is no range of interest for a given load token. */ - (NSRange)accessibilityRangeInTargetElementWithToken:(NSAccessibilityLoadingToken)token; @end // The complete accessibility protocol @protocol NSAccessibility <NSObject> @required #pragma mark General // Return YES if the UIElement should be exposed @property (getter = isAccessibilityElement) BOOL accessibilityElement API_AVAILABLE(macos(10.10)); // The frame of the UIElement in screen coordinates. See NSAccessibilityFrameInView() // Invokes when clients request NSAccessibilitySizeAttribute or NSAccessibilityPositionAttribute @property NSRect accessibilityFrame API_AVAILABLE(macos(10.10)); // Returns YES if the element is focused (generally, accessibilityFocused is equivilent to the // UIElement with the focus ring or selection) // Invokes when clients request NSAccessibilityFocusedAttribute @property (getter = isAccessibilityFocused) BOOL accessibilityFocused API_AVAILABLE(macos(10.10)); // Activation point for the UIElement, in screen coordinates. See NSAccessibilityPointInView() @property NSPoint accessibilityActivationPoint API_AVAILABLE(macos(10.10)); // UIElement for the containing top level element // Invokes when clients request NSAccessibilityTopLevelUIElementAttribute @property (nullable, weak) id accessibilityTopLevelUIElement API_AVAILABLE(macos(10.10)); // URL of the UIElement // Invokes when clients request NSAccessibilityURLAttribute @property (nullable, copy) NSURL *accessibilityURL API_AVAILABLE(macos(10.10)); // Value of the UIElement // Invokes when clients request NSAccessibilityValueAttribute @property (nullable, strong) id accessibilityValue API_AVAILABLE(macos(10.10)); // Human-readable description of value // Invokes when clients request NSAccessibilityValueDescriptionAttribute @property (nullable, copy) NSString *accessibilityValueDescription API_AVAILABLE(macos(10.10)); // Array of child UIElement which are visible // Invokes when clients request NSAccessibilityVisibleChildrenAttribute @property (nullable, copy) NSArray *accessibilityVisibleChildren API_AVAILABLE(macos(10.10)); // Sub-role, non - localized (e.g. NSAccessibilityCloseButtonSubrole) // Invokes when clients request NSAccessibilitySubroleAttribute @property (nullable, copy) NSAccessibilitySubrole accessibilitySubrole API_AVAILABLE(macos(10.10)); // Visible text on the UIElement // Invokes when clients request NSAccessibilityTitleAttribute @property (nullable, copy) NSString *accessibilityTitle API_AVAILABLE(macos(10.10)); // UIElement for the title // Invokes when clients request NSAccessibilityTitleUIElementAttribute @property (nullable, weak) id accessibilityTitleUIElement API_AVAILABLE(macos(10.10)); // Next content UIElement // Invokes when clients request NSAccessibilityNextContentsAttribute @property (nullable, copy) NSArray *accessibilityNextContents API_AVAILABLE(macos(10.10)); // UIElement orientation // Invokes when clients request NSAccessibilityOrientationAttribute @property NSAccessibilityOrientation accessibilityOrientation API_AVAILABLE(macos(10.10)); // UIElement for overflow // Invokes when clients request NSAccessibilityOverflowButtonAttribute @property (nullable, strong) id accessibilityOverflowButton API_AVAILABLE(macos(10.10)); // Element containing this UIElement // Invokes when clients request NSAccessibilityParentAttribute @property (nullable, weak) id accessibilityParent API_AVAILABLE(macos(10.10)); // Placeholder value of a control such as a text field // Invokes when clients request NSAccessibilityPlaceholderValueAttribute @property (nullable, copy) NSString *accessibilityPlaceholderValue API_AVAILABLE(macos(10.10)); // Previous content UIElement. // Invokes when clients request NSAccessibilityPreviousContentsAttribute @property (nullable, copy) NSArray *accessibilityPreviousContents API_AVAILABLE(macos(10.10)); // Role, non - localized (e.g. NSAccessibilityRadioButtonRole) // Invokes when clients request NSAccessibilityRoleAttribute @property (nullable, copy) NSAccessibilityRole accessibilityRole API_AVAILABLE(macos(10.10)); // Human readable role description (e.g. "radio button"); // Invokes when clients request NSAccessibilityRoleDescriptionAttribute @property (nullable, copy) NSString *accessibilityRoleDescription API_AVAILABLE(macos(10.10)); // UIElement for search field search button // Invokes when clients request NSAccessibilitySearchButtonAttribute @property (nullable, strong) id accessibilitySearchButton API_AVAILABLE(macos(10.10)); // UIElement for search field menu // Invokes when clients request NSAccessibilitySearchMenuAttribute @property (nullable, strong) id accessibilitySearchMenu API_AVAILABLE(macos(10.10)); // Returns YES if the UIElement is selected // Invokes when clients request NSAccessibilitySelectedAttribute @property (getter = isAccessibilitySelected) BOOL accessibilitySelected API_AVAILABLE(macos(10.10)); // Array of selected child UIElements // Invokes when clients request NSAccessibilitySelectedChildrenAttribute @property (nullable, copy) NSArray *accessibilitySelectedChildren API_AVAILABLE(macos(10.10)); // Array of UIElements that this titles // Invokes when clients request NSAccessibilityServesAsTitleForUIElementsAttribute @property (nullable, copy) NSArray *accessibilityServesAsTitleForUIElements API_AVAILABLE(macos(10.10)); // Menu being displayed for the UIElement // Invokes when clients request NSAccessibilityShownMenuAttribute @property (nullable, strong) id accessibilityShownMenu API_AVAILABLE(macos(10.10)); // The UIElement's minimum value // Invokes when clients request NSAccessibilityMinValueAttribute @property (nullable, strong) id accessibilityMinValue API_AVAILABLE(macos(10.10)); // The UIElement's maximum value // Invokes when clients request NSAccessibilityMaxValueAttribute @property (nullable, strong) id accessibilityMaxValue API_AVAILABLE(macos(10.10)); // Corresponding UIElements // Invokes when clients request NSAccessibilityLinkedUIElementsAttribute @property (nullable, copy) NSArray *accessibilityLinkedUIElements API_AVAILABLE(macos(10.10)); // UIElement for the containing window // Invokes when clients request NSAccessibilityWindowAttribute @property (nullable, weak) id accessibilityWindow API_AVAILABLE(macos(10.10)); // Unique identifier for the UIElement // Invokes when clients request NSAccessibilityIdentifierAttribute @property (nullable, copy) NSString *accessibilityIdentifier API_AVAILABLE(macos(10.10)); // Instance description (e.g. a tool tip) // Invokes when clients request NSAccessibilityHelpAttribute @property (nullable, copy) NSString *accessibilityHelp API_AVAILABLE(macos(10.10)); // Filename of the underlying asset // Invokes when clients request NSAccessibilityFilenameAttribute @property (nullable, copy) NSString *accessibilityFilename API_AVAILABLE(macos(10.10)); // Returns YES if the UIElement is expanded // Invokes when clients request NSAccessibilityExpandedAttribute @property (getter = isAccessibilityExpanded) BOOL accessibilityExpanded API_AVAILABLE(macos(10.10)); // Returns YES if the UIElement has been edited // Invokes when clients request NSAccessibilityEditedAttribute @property (getter = isAccessibilityEdited) BOOL accessibilityEdited API_AVAILABLE(macos(10.10)); // Returns YES if the element responds to user events // Invokes when clients request NSAccessibilityEnabledAttribute @property (getter = isAccessibilityEnabled) BOOL accessibilityEnabled API_AVAILABLE(macos(10.10)); // Array of UIElements that represent children of the current UIElement // Invokes when clients request NSAccessibilityChildrenAttribute @property (nullable, copy) NSArray *accessibilityChildren API_AVAILABLE(macos(10.10)); // Returns an array of children UIElements ordered for linear navigation. // This array should match all UIElements found in accessibilityChildren, but in an order that's more suitable for navigation @property (nullable, copy) NSArray <id<NSAccessibilityElement>> *accessibilityChildrenInNavigationOrder API_AVAILABLE(macos(10.13)); // UIElement for search field clear button // Invokes when clients request NSAccessibilityClearButtonAttribute @property (nullable, strong) id accessibilityClearButton API_AVAILABLE(macos(10.10)); // UIElement for cancel button // Invokes when clients request NSAccessibilityCancelButtonAttribute @property (nullable, strong) id accessibilityCancelButton API_AVAILABLE(macos(10.10)); // Returns YES if the UIElement contains protected content // Invokes when clients request NSAccessibilityContainsProtectedContentAttribute @property (getter = isAccessibilityProtectedContent) BOOL accessibilityProtectedContent API_AVAILABLE(macos(10.10)); // Array of primary content elements // Invokes when clients request NSAccessibilityContentsAttribute @property (nullable, copy) NSArray *accessibilityContents API_AVAILABLE(macos(10.10)); // Description of UIElement // Invokes when clients request NSAccessibilityDescriptionAttribute @property (nullable, copy) NSString *accessibilityLabel API_AVAILABLE(macos(10.10)); // Returns YES if the element is has been triggered to display alternate UIs // Invokes when clients request NSAccessibilityAlternateUIVisibleAttribute @property (getter = isAccessibilityAlternateUIVisible) BOOL accessibilityAlternateUIVisible API_AVAILABLE(macos(10.10)); // Array of elements with which this element shares keyboard focus // Invokes when clients request NSAccessibilitySharedFocusElementsAttribute @property (nullable, copy) NSArray *accessibilitySharedFocusElements API_AVAILABLE(macos(10.10)); // Returns YES if the UIElement is required to have content for successful submission of a form // Invokes when clients request NSAccessibilityRequiredAttribute @property (getter=isAccessibilityRequired) BOOL accessibilityRequired API_AVAILABLE(macos(10.12)); /* * @brief Returns an array of custom rotors. Custom rotors are lists of * items of a specific category. For example, a "Headings" rotor would * return a list of headings a given document. */ @property (copy) NSArray<NSAccessibilityCustomRotor *> *accessibilityCustomRotors API_AVAILABLE(macos(10.13)); #pragma mark Application // Returns YES if the element is focused (generally, accessibilityFocused is equivalent to the // to the UIElement with the focus ring or selection) // Invokes when clients request NSAccessibilityFocusedUIElementAttribute @property (nullable, strong) id accessibilityApplicationFocusedUIElement API_AVAILABLE(macos(10.10)); // UIElement for the main window. // Invokes when clients request NSAccessibilityMainWindowAttribute @property (nullable, strong) id accessibilityMainWindow API_AVAILABLE(macos(10.10)); // Returns YES if the app hidden // Invokes when clients request NSAccessibilityHiddenAttribute @property (getter = isAccessibilityHidden) BOOL accessibilityHidden API_AVAILABLE(macos(10.10)); // Returns YES if the app is active // Invokes when clients request NSAccessibilityFrontmostAttribute @property (getter = isAccessibilityFrontmost) BOOL accessibilityFrontmost API_AVAILABLE(macos(10.10)); // UIElement for the key window. // Invokes when clients request NSAccessibilityFocusedWindowAttribute @property (nullable, strong) id accessibilityFocusedWindow API_AVAILABLE(macos(10.10)); // Array of UIElements for the windows // Invokes when clients request NSAccessibilityWindowsAttribute @property (nullable, copy) NSArray *accessibilityWindows API_AVAILABLE(macos(10.10)); // UIElement for the application extras menu bar. // Invokes when clients request NSAccessibilityExtrasMenuBarAttribute @property (nullable, weak) id accessibilityExtrasMenuBar API_AVAILABLE(macos(10.10)); // UIElement for the menu bar // Invokes when clients request NSAccessibilityMenuBarAttribute @property (nullable, weak) id accessibilityMenuBar API_AVAILABLE(macos(10.10)); #pragma mark Browser // Array of UIElements for titles // Invokes when clients request NSAccessibilityColumnTitlesAttribute @property (nullable, copy) NSArray *accessibilityColumnTitles API_AVAILABLE(macos(10.10)); #pragma mark Grid // Returns a BOOL indicating whether the children are ordered row major, or column major. // Invokes when clients request NSAccessibilityOrderedByRowAttribute @property (getter = isAccessibilityOrderedByRow) BOOL accessibilityOrderedByRow API_AVAILABLE(macos(10.10)); #pragma mark Layout area // Horizontal units // Invokes when clients request NSAccessibilityHorizontalUnitsAttribute @property NSAccessibilityUnits accessibilityHorizontalUnits API_AVAILABLE(macos(10.10)); // Vertical units // Invokes when clients request NSAccessibilityVerticalUnitsAttribute @property NSAccessibilityUnits accessibilityVerticalUnits API_AVAILABLE(macos(10.10)); // Human-readable description of the horizontal units // Invokes when clients request NSAccessibilityHorizontalUnitDescriptionAttribute @property (nullable, copy) NSString *accessibilityHorizontalUnitDescription API_AVAILABLE(macos(10.10)); // Human-readable description of the vertical units // Invokes when clients request NSAccessibilityVerticalUnitDescriptionAttribute @property (nullable, copy) NSString *accessibilityVerticalUnitDescription API_AVAILABLE(macos(10.10)); // Layout point from screen point // Invokes when clients request NSAccessibilityLayoutPointForScreenPointParameterizedAttribute - (NSPoint)accessibilityLayoutPointForScreenPoint:(NSPoint)point API_AVAILABLE(macos(10.10)); // Layout size from screen size // Invokes when clients request NSAccessibilityLayoutSizeForScreenSizeParameterizedAttribute - (NSSize)accessibilityLayoutSizeForScreenSize:(NSSize)size API_AVAILABLE(macos(10.10)); // Screen point from layout point // Invokes when clients request NSAccessibilityScreenPointForLayoutPointParameterizedAttribute - (NSPoint)accessibilityScreenPointForLayoutPoint:(NSPoint)point API_AVAILABLE(macos(10.10)); // Screen size from layout size // Invokes when clients request NSAccessibilityScreenSizeForLayoutSizeParameterizedAttribute - (NSSize)accessibilityScreenSizeForLayoutSize:(NSSize)size API_AVAILABLE(macos(10.10)); #pragma mark Layout item // UIElements for handles // Invokes when clients request NSAccessibilityHandlesAttribute @property (nullable, copy) NSArray *accessibilityHandles API_AVAILABLE(macos(10.10)); #pragma mark Level indicator // Warning value of a level indicator, typically a number // Invokes when clients request NSAccessibilityWarningValueAttribute @property (nullable, strong) id accessibilityWarningValue API_AVAILABLE(macos(10.10)); // Critical value of a level indicator, typically a number // Invokes when clients request NSAccessibilityCriticalValueAttribute @property (nullable, strong) id accessibilityCriticalValue API_AVAILABLE(macos(10.10)); #pragma mark Outline // Returns true if sub-rows are visible // Invokes when clients request NSAccessibilityDisclosingAttribute @property (getter = isAccessibilityDisclosed) BOOL accessibilityDisclosed API_AVAILABLE(macos(10.10)); // UIElement for disclosing row // Invokes when clients request NSAccessibilityDisclosedByRowAttribute @property (nullable, weak) id accessibilityDisclosedByRow API_AVAILABLE(macos(10.10)); // Array of UIElements for disclosed rows of the current ruw (ie, sub-rows) // Invokes when clients request NSAccessibilityDisclosedRowsAttribute @property (nullable, strong) id accessibilityDisclosedRows API_AVAILABLE(macos(10.10)); // Indentation level // Invokes when clients request NSAccessibilityDisclosureLevelAttribute @property NSInteger accessibilityDisclosureLevel API_AVAILABLE(macos(10.10)); #pragma mark Ruler // Invokes when clients request NSAccessibilityMarkerUIElementsAttribute @property (nullable, copy) NSArray *accessibilityMarkerUIElements API_AVAILABLE(macos(10.10)); // Invokes when clients request NSAccessibilityMarkerValuesAttribute @property (nullable, strong) id accessibilityMarkerValues API_AVAILABLE(macos(10.10)); // Invokes when clients request NSAccessibilityMarkerGroupUIElementAttribute @property (nullable, strong) id accessibilityMarkerGroupUIElement API_AVAILABLE(macos(10.10)); // Ruler units // Invokes when clients request NSAccessibilityUnitsAttribute @property NSAccessibilityUnits accessibilityUnits API_AVAILABLE(macos(10.10)); // Human-readable description of the ruler units // Invokes when clients request NSAccessibilityUnitDescriptionAttribute @property (nullable, copy) NSString *accessibilityUnitDescription API_AVAILABLE(macos(10.10)); // Marker type // Invokes when clients request NSAccessibilityMarkerTypeAttribute @property NSAccessibilityRulerMarkerType accessibilityRulerMarkerType API_AVAILABLE(macos(10.10)); // Human-readable description of the marker type // Invokes when clients request NSAccessibilityMarkerTypeDescriptionAttribute @property (nullable, copy) NSString *accessibilityMarkerTypeDescription API_AVAILABLE(macos(10.10)); #pragma mark Scrollable region // UIElement for the horizontal scroller // Invokes when clients request NSAccessibilityHorizontalScrollBarAttribute @property (nullable, strong) id accessibilityHorizontalScrollBar API_AVAILABLE(macos(10.10)); // UIElement for the vertical scroller // Invokes when clients request NSAccessibilityVerticalScrollBarAttribute @property (nullable, strong) id accessibilityVerticalScrollBar API_AVAILABLE(macos(10.10)); #pragma mark Slider // Array of allowed values // Invokes when clients request NSAccessibilityAllowedValuesAttribute @property (nullable, copy) NSArray<NSNumber *> *accessibilityAllowedValues API_AVAILABLE(macos(10.10)); // Array of label UIElements // Invokes when clients request NSAccessibilityLabelUIElementsAttribute @property (nullable, copy) NSArray *accessibilityLabelUIElements API_AVAILABLE(macos(10.10)); // Value of a label UIElement // Invokes when clients request NSAccessibilityLabelValueAttribute @property float accessibilityLabelValue API_AVAILABLE(macos(10.10)); #pragma mark Splitter // UIElements for splitters // Invokes when clients request NSAccessibilitySplittersAttribute @property (nullable, copy) NSArray *accessibilitySplitters API_AVAILABLE(macos(10.10)); #pragma mark Stepper // UIElement for the decrement button // Invokes when clients request NSAccessibilityDecrementButtonAttribute @property (nullable, strong) id accessibilityDecrementButton API_AVAILABLE(macos(10.10)); // UIElement for the increment button // Invokes when clients request NSAccessibilityIncrementButtonAttribute @property (nullable, strong) id accessibilityIncrementButton API_AVAILABLE(macos(10.10)); #pragma mark Tab view // UIElements for tabs // Invokes when clients request NSAccessibilityTabsAttribute @property (nullable, copy) NSArray *accessibilityTabs API_AVAILABLE(macos(10.10)); #pragma mark Table/Outline // UIElement for header // Invokes when clients request NSAccessibilityHeaderAttribute @property (nullable, strong) id accessibilityHeader API_AVAILABLE(macos(10.10)); // Number of columns // Invokes when clients request NSAccessibilityColumnCountAttribute @property NSInteger accessibilityColumnCount API_AVAILABLE(macos(10.10)); // Number of rows // Invokes when clients request NSAccessibilityRowCountAttribute @property NSInteger accessibilityRowCount API_AVAILABLE(macos(10.10)); // Index of the current UIElement (row index for a row, column index for a column) // Invokes when clients request NSAccessibilityIndexAttribute @property NSInteger accessibilityIndex API_AVAILABLE(macos(10.10)); // Array of UIElements for columns // Invokes when clients request NSAccessibilityColumnsAttribute @property (nullable, copy) NSArray *accessibilityColumns API_AVAILABLE(macos(10.10)); // Array of UIElements for rows // Invokes when clients request NSAccessibilityRowsAttribute @property (nullable, copy) NSArray *accessibilityRows API_AVAILABLE(macos(10.10)); // Array of UIElements for visible rows // Invokes when clients request NSAccessibilityVisibleRowsAttribute @property (nullable, copy) NSArray *accessibilityVisibleRows API_AVAILABLE(macos(10.10)); // Array of UIElements for selected rows // Invokes when clients request NSAccessibilitySelectedRowsAttribute @property (nullable, copy) NSArray *accessibilitySelectedRows API_AVAILABLE(macos(10.10)); // Array of UIElements for visible columns // Invokes when clients request NSAccessibilityVisibleColumnsAttribute @property (nullable, copy) NSArray *accessibilityVisibleColumns API_AVAILABLE(macos(10.10)); // Array of UIElements for selected columns // Invokes when clients request NSAccessibilitySelectedColumnsAttribute @property (nullable, copy) NSArray *accessibilitySelectedColumns API_AVAILABLE(macos(10.10)); // Sort direction // Invokes when clients request NSAccessibilitySortDirectionAttribute @property NSAccessibilitySortDirection accessibilitySortDirection API_AVAILABLE(macos(10.10)); #pragma mark Table (cell based) // Array of UIElements for row headers // Invokes when clients request NSAccessibilityRowHeaderUIElementsAttribute @property (nullable, copy) NSArray *accessibilityRowHeaderUIElements API_AVAILABLE(macos(10.10)); // Array of UIElements for selected cells // Invokes when clients request NSAccessibilitySelectedCellsAttribute @property (nullable, copy) NSArray *accessibilitySelectedCells API_AVAILABLE(macos(10.10)); // Array of UIElements for visible cells // Invokes when clients request NSAccessibilityVisibleCellsAttribute @property (nullable, copy) NSArray *accessibilityVisibleCells API_AVAILABLE(macos(10.10)); // Array of UIElements for column headers // Invokes when clients request NSAccessibilityColumnHeaderUIElementsAttribute @property (nullable, copy) NSArray *accessibilityColumnHeaderUIElements API_AVAILABLE(macos(10.10)); // UIElement for cell at specified row and column // Invokes when clients request NSAccessibilityCellForColumnAndRowParameterizedAttribute - (nullable id)accessibilityCellForColumn:(NSInteger)column row:(NSInteger)row API_AVAILABLE(macos(10.10)); #pragma mark Table cell // Cell location and row span // Invokes when clients request NSAccessibilityRowIndexRangeAttribute @property NSRange accessibilityRowIndexRange API_AVAILABLE(macos(10.10)); // Cell location and column span // Invokes when clients request NSAccessibilityColumnIndexRangeAttribute @property NSRange accessibilityColumnIndexRange API_AVAILABLE(macos(10.10)); #pragma mark Text // Line number containing caret // Invokes when clients request NSAccessibilityInsertionPointLineNumberAttribute @property NSInteger accessibilityInsertionPointLineNumber API_AVAILABLE(macos(10.10)); // Part of shared text in this view // Invokes when clients request NSAccessibilitySharedCharacterRangeAttribute @property NSRange accessibilitySharedCharacterRange API_AVAILABLE(macos(10.10)); // Text views sharing text // Invokes when clients request NSAccessibilitySharedTextUIElementsAttribute @property (nullable, copy) NSArray *accessibilitySharedTextUIElements API_AVAILABLE(macos(10.10)); // Range of visible text // Invokes when clients request NSAccessibilityVisibleCharacterRangeAttribute @property NSRange accessibilityVisibleCharacterRange API_AVAILABLE(macos(10.10)); // Number of characters // Invokes when clients request NSAccessibilityNumberOfCharactersAttribute @property NSInteger accessibilityNumberOfCharacters API_AVAILABLE(macos(10.10)); // String of selected text // Invokes when clients request NSAccessibilitySelectedTextAttribute @property (nullable, copy) NSString *accessibilitySelectedText API_AVAILABLE(macos(10.10)); // Range of selected text // Invokes when clients request NSAccessibilitySelectedTextRangeAttribute @property NSRange accessibilitySelectedTextRange API_AVAILABLE(macos(10.10)); // Array of NSValue (rangeValue) ranges of selected text // Invokes when clients request NSAccessibilitySelectedTextRangesAttribute @property (nullable, copy) NSArray<NSValue *> *accessibilitySelectedTextRanges API_AVAILABLE(macos(10.10)); // Attributed string for a provided range. // does _not_ use attributes from Appkit/AttributedString.h // Invokes when clients request NSAccessibilityAttributedStringForRangeParameterizedAttribute - (nullable NSAttributedString *)accessibilityAttributedStringForRange:(NSRange)range API_AVAILABLE(macos(10.10)); // Range for the provided line number // Invokes when clients request NSAccessibilityRangeForLineParameterizedAttribute - (NSRange)accessibilityRangeForLine:(NSInteger)line API_AVAILABLE(macos(10.10)); // String for the provided range // Invokes when clients request NSAccessibilityStringForRangeParameterizedAttribute - (nullable NSString *)accessibilityStringForRange:(NSRange)range API_AVAILABLE(macos(10.10)); // Composed character range for the character at the provided point // Invokes when clients request NSAccessibilityRangeForPositionParameterizedAttribute - (NSRange)accessibilityRangeForPosition:(NSPoint)point API_AVAILABLE(macos(10.10)); // Composed character range for the provided index // Invokes when clients request NSAccessibilityRangeForIndexParameterizedAttribute - (NSRange)accessibilityRangeForIndex:(NSInteger)index API_AVAILABLE(macos(10.10)); // Frame of text in the provided range (in screen coordinates.) See NSAccessibilityFrameInView() // Invokes when clients request NSAccessibilityBoundsForRangeParameterizedAttribute - (NSRect)accessibilityFrameForRange:(NSRange)range API_AVAILABLE(macos(10.10)); // RTF data for text in the provided range // Invokes when clients request NSAccessibilityRTFForRangeParameterizedAttribute - (nullable NSData *)accessibilityRTFForRange:(NSRange)range API_AVAILABLE(macos(10.10)); // Extent of style run at the provided index // Invokes when clients request NSAccessibilityStyleRangeForIndexParameterizedAttribute - (NSRange)accessibilityStyleRangeForIndex:(NSInteger)index API_AVAILABLE(macos(10.10)); // Line number for character index // Invokes when clients request NSAccessibilityLineForIndexParameterizedAttribute - (NSInteger)accessibilityLineForIndex:(NSInteger)index API_AVAILABLE(macos(10.10)); #pragma mark Window // UIElement for toolbar box (or nil) // Invokes when clients request NSAccessibilityToolbarButtonAttribute @property (nullable, strong) id accessibilityToolbarButton API_AVAILABLE(macos(10.10)); // Is the window modal // Invokes when clients request NSAccessibilityModalAttribute @property (getter = isAccessibilityModal) BOOL accessibilityModal API_AVAILABLE(macos(10.10)); // UIElement for title's icon (or nil) // Invokes when clients request NSAccessibilityProxyAttribute @property (nullable, strong) id accessibilityProxy API_AVAILABLE(macos(10.10)); // Returns YES if this is it the main window // Invokes when clients request NSAccessibilityMainAttribute @property (getter = isAccessibilityMain) BOOL accessibilityMain API_AVAILABLE(macos(10.10)); // UIElement for full screen button // Invokes when clients request NSAccessibilityFullScreenButtonAttribute @property (nullable, strong) id accessibilityFullScreenButton API_AVAILABLE(macos(10.10)); // UIElement for grow box // Invokes when clients request NSAccessibilityGrowAreaAttribute @property (nullable, strong) id accessibilityGrowArea API_AVAILABLE(macos(10.10)); // URL for open document // Invokes when clients request NSAccessibilityDocumentAttribute @property (nullable, copy) NSString *accessibilityDocument API_AVAILABLE(macos(10.10)); // UIElement for default button // Invokes when clients request NSAccessibilityDefaultButtonAttribute @property (nullable, strong) id accessibilityDefaultButton API_AVAILABLE(macos(10.10)); // UIElement for close button // Invokes when clients request NSAccessibilityCloseButtonAttribute @property (nullable, strong) id accessibilityCloseButton API_AVAILABLE(macos(10.10)); // UIElement for zoom button // Invokes when clients request NSAccessibilityZoomButtonAttribute @property (nullable, strong) id accessibilityZoomButton API_AVAILABLE(macos(10.10)); // UIElement for minimize button // Invokes when clients request NSAccessibilityMinimizeButtonAttribute @property (nullable, strong) id accessibilityMinimizeButton API_AVAILABLE(macos(10.10)); // Returns YES if the window minimized // Invokes when clients request NSAccessibilityMinimizedAttribute @property (getter = isAccessibilityMinimized) BOOL accessibilityMinimized API_AVAILABLE(macos(10.10)); #pragma mark Actions @property (nullable, copy) NSArray<NSAccessibilityCustomAction *> *accessibilityCustomActions API_AVAILABLE(macos(10.13)); // Invokes when clients perform NSAccessibilityCancelAction - (BOOL)accessibilityPerformCancel API_AVAILABLE(macos(10.10)); // Invokes when clients perform NSAccessibilityConfirmAction - (BOOL)accessibilityPerformConfirm API_AVAILABLE(macos(10.10)); // Invokes when clients perform NSAccessibilityDecrementAction - (BOOL)accessibilityPerformDecrement API_AVAILABLE(macos(10.10)); // Invokes when clients perform NSAccessibilityDeleteAction - (BOOL)accessibilityPerformDelete API_AVAILABLE(macos(10.10)); // Invokes when clients perform NSAccessibilityIncrementAction - (BOOL)accessibilityPerformIncrement API_AVAILABLE(macos(10.10)); // Invokes when clients perform NSAccessibilityPickAction - (BOOL)accessibilityPerformPick API_AVAILABLE(macos(10.10)); // Invokes when clients perform NSAccessibilityPressAction - (BOOL)accessibilityPerformPress API_AVAILABLE(macos(10.10)); // Invokes when clients perform NSAccessibilityRaiseAction - (BOOL)accessibilityPerformRaise API_AVAILABLE(macos(10.10)); // Invokes when clients perform NSAccessibilityShowAlternateUIAction - (BOOL)accessibilityPerformShowAlternateUI API_AVAILABLE(macos(10.10)); // Invokes when clients perform NSAccessibilityShowDefaultUIAction - (BOOL)accessibilityPerformShowDefaultUI API_AVAILABLE(macos(10.10)); // Invokes when clients perform NSAccessibilityShowMenuAction - (BOOL)accessibilityPerformShowMenu API_AVAILABLE(macos(10.10)); #pragma mark Allowed Selectors // Returns YES if accessibility clients should be able to invoke the provided selector - (BOOL)isAccessibilitySelectorAllowed:(SEL)selector API_AVAILABLE(macos(10.10)); @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSTableHeaderCell.h
/* NSTableHeaderCell.h Application Kit Copyright (c) 1995-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSTextFieldCell.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @interface NSTableHeaderCell : NSTextFieldCell /* Draws a sorting indicator given a cellFrame. If priority is 0, this is the primary sort indicator. If ascending is YES, a "^" indicator will be drawn. Override this routine to customimze the sorting UI. */ - (void)drawSortIndicatorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView ascending:(BOOL)ascending priority:(NSInteger)priority; /* Returns the location to display the sorting indicator given the cellFrame. */ - (NSRect)sortIndicatorRectForBounds:(NSRect)rect; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutGuide.h
/* NSLayoutGuide.h Application Kit Copyright (c) 2015-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSView.h> #import <AppKit/NSLayoutConstraint.h> #import <AppKit/NSLayoutAnchor.h> #import <AppKit/NSUserInterfaceItemIdentification.h> #import <AppKit/AppKitDefines.h> @class NSLayoutXAxisAnchor; @class NSLayoutYAxisAnchor; @class NSLayoutDimension; @class NSLayoutConstraint; NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST /* NSLayoutGuides will not show up in the view hierarchy, but may be used as items in an NSLayoutConstraint and represent a rectangle in the layout engine. */ API_AVAILABLE(macos(10.11)) @interface NSLayoutGuide : NSObject <NSCoding, NSUserInterfaceItemIdentification> // The frame of the NSLayoutGuide in its owningView's coordinate system. Valid by the time the owningView is laid out. @property (readonly) NSRect frame; // A guide must be added to a view via -[NSView -addLayoutGuide:] before being used in a constraint. The owningView setter is intended for subclasses to override, and should only be used directly by -addLayoutGuide and -removeLayoutGuide. @property (weak, nullable) NSView *owningView; // For ease of debugging. 'NS' prefix is reserved for system-created layout guides. @property (copy) NSUserInterfaceItemIdentifier identifier; /* These properties aid concise creation of constraints. Layout guides can be constrained using simple code like the following: [view.topAnchor constraintEqualTo:someLayoutGuide.topAnchor constant:10]; See NSLayoutAnchor.h for more details. */ @property (readonly, strong) NSLayoutXAxisAnchor *leadingAnchor; @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor; @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor; @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor; @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor; @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor; @property (readonly, strong) NSLayoutDimension *widthAnchor; @property (readonly, strong) NSLayoutDimension *heightAnchor; @property (readonly, strong) NSLayoutXAxisAnchor *centerXAnchor; @property (readonly, strong) NSLayoutYAxisAnchor *centerYAnchor; #if !TARGET_OS_IPHONE // For debugging purposes: @property (readonly) BOOL hasAmbiguousLayout API_AVAILABLE(macos(10.12)); - (NSArray<NSLayoutConstraint *> *)constraintsAffectingLayoutForOrientation:(NSLayoutConstraintOrientation)orientation API_AVAILABLE(macos(10.12)); #endif @end /* A layout guide can be used in place of a view for layout purposes. */ @interface NSView (NSLayoutGuideSupport) - (void)addLayoutGuide:(NSLayoutGuide *)guide API_AVAILABLE(macos(10.11)); - (void)removeLayoutGuide:(NSLayoutGuide *)guide API_AVAILABLE(macos(10.11)); @property (readonly, copy) NSArray<NSLayoutGuide *> *layoutGuides API_AVAILABLE(macos(10.11)); // This array may contain guides owned by the system, and the ordering is not guaranteed. Please be careful. @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSFontAssetRequest.h
/* NSFontAssetRequest.h Application Kit Copyright (c) 2017-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSObject.h> #import <Foundation/NSArray.h> #import <Foundation/NSProgress.h> #import <AppKit/AppKitDefines.h> @class NSFontDescriptor; NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST typedef NS_OPTIONS(NSUInteger, NSFontAssetRequestOptions) { NSFontAssetRequestOptionUsesStandardUI = 1 << 0, // Use standard system UI for downloading. } API_AVAILABLE(macos(10.13)); /* The NSFontAssetRequest class is used to interact with the on demand font assets. The purpose of the system is to allow an application to download certain font assets on demand, when they are required. This also means that the system can purge any asset from disk when it is no longer required, which will save disk space. This class describes which assets are required, makes the request and reports progress, allows the app to specify how long during its execution that they are required. Assets are downloaded into the application container for sandboxed applications, or shared by all applications for non-sandboxed applications, and are made available via the standard NSFont lookup API. The request object itself is lightweight. You may create as many as you need, for example to request the same set of font descriptors in different components of your application. */ API_AVAILABLE(macos(10.13)) @interface NSFontAssetRequest : NSObject <NSProgressReporting> - (instancetype)init NS_UNAVAILABLE; /* An array of font descriptors is required argument to the init method. The fontDescriptors argument describes queries for downloadable font assets (list available at https://support.apple.com/en-us/HT206872#download). Any assets downloaded can be found using the standard NSFont lookup API once the request is completed. */ - (instancetype)initWithFontDescriptors:(NSArray<NSFontDescriptor *> *)fontDescriptors options:(NSFontAssetRequestOptions)options NS_DESIGNATED_INITIALIZER; /* The downloaded font descriptors up to this point. */ @property (readonly, copy) NSArray<NSFontDescriptor *> *downloadedFontDescriptors; /* Progress for the request. The progress object will be valid at initialization and begin updating after the -downloadFontAssetsWithCompletionHandler: method is called. */ @property (readonly, strong) NSProgress *progress; /* Start the download process. completionHandler will be called whenever encounters any error, or when all download has been completed without error. completionHandler should return NO if you wish to stop downloading from that point, or YES if you wish to continue trying downloading the next font. */ - (void)downloadFontAssetsWithCompletionHandler:(BOOL (^)(NSError * _Nullable error))completionHandler; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSTextAlternatives.h
#if !__has_include(<UIFoundation/NSTextAlternatives.h>) /* NSTextAlternatives.h Application Kit Copyright (c) 2011-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSObject.h> #import <Foundation/NSArray.h> #import <Foundation/NSNotification.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN #if !TARGET_OS_IPHONE @class NSString; API_AVAILABLE(macos(10.8)) @interface NSTextAlternatives : NSObject <NSSecureCoding> - (instancetype)initWithPrimaryString:(NSString *)primaryString alternativeStrings:(NSArray<NSString *> *)alternativeStrings; @property (readonly, copy) NSString *primaryString; @property (readonly, copy) NSArray<NSString *> *alternativeStrings; - (void)noteSelectedAlternativeString:(NSString *)alternativeString; @end APPKIT_EXTERN NSNotificationName NSTextAlternativesSelectedAlternativeStringNotification API_AVAILABLE(macos(10.8)); // @"NSAlternativeString" #endif // !TARGET_OS_IPHONE NS_ASSUME_NONNULL_END #else #import <UIFoundation/NSTextAlternatives.h> #endif
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSBox.h
/* NSBox.h Application Kit Copyright (c) 1994-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSView.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSFont; typedef NS_ENUM(NSUInteger, NSTitlePosition) { NSNoTitle = 0, NSAboveTop = 1, NSAtTop = 2, NSBelowTop = 3, NSAboveBottom = 4, NSAtBottom = 5, NSBelowBottom = 6, }; typedef NS_ENUM(NSUInteger, NSBoxType) { /* Group subviews with a standard look. This is the default style. */ NSBoxPrimary = 0, /* Vertical or horizontal separtor line. Not used with subviews. */ NSBoxSeparator = 2, /* Custom boxes draw based entirely on user parameters; see the fillColor, borderColor, borderWidth, and cornerRadius properties for more information. */ NSBoxCustom API_AVAILABLE(macos(10.5)) = 4, }; @interface NSBox : NSView @property NSBoxType boxType; @property NSTitlePosition titlePosition; @property (copy) NSString *title; @property (strong) NSFont *titleFont; @property (readonly) NSRect borderRect; @property (readonly) NSRect titleRect; @property (readonly, strong) id titleCell; @property NSSize contentViewMargins; - (void)sizeToFit; - (void)setFrameFromContentFrame:(NSRect)contentFrame; /* Get and set the content view for the box. Note that subviews added to the NSBox will be really added as subviews of the contentView. */ @property (nullable, strong) __kindof NSView *contentView; /* Transparent boxes do not draw anything. Subview drawing is unaffected. The 'transparent' property corresponds to the binding 'NSTransparentBinding'. */ @property (getter=isTransparent) BOOL transparent API_AVAILABLE(macos(10.5)); /* For boxType == NSBoxCustom: Get and set the border width of the box. The default value is 1.0. */ @property CGFloat borderWidth API_AVAILABLE(macos(10.5)); /* For boxType == NSBoxCustom: Get and set the corner radius of the box. The default value is 0.0 (no corner radius). */ @property CGFloat cornerRadius API_AVAILABLE(macos(10.5)); /* For boxType == NSBoxCustom: Get and set the border color the box. The default value is +[NSColor secondaryLabelColor], and may vary release-to-release. */ @property (copy) NSColor *borderColor API_AVAILABLE(macos(10.5)); /* For boxType == NSBoxCustom: Get and set the fill (background) color the box. The default value is NSColor.clearColor. */ @property (copy) NSColor *fillColor API_AVAILABLE(macos(10.5)); @end /* Deprecated Interfaces */ @interface NSBox (NSDeprecated) @property NSBorderType borderType API_DEPRECATED("borderType is only applicable to NSBoxOldStyle, which is deprecated. To replace a borderType of NSNoBorder, use the `transparent` property.", macos(10.0, 10.15)); /* Mnemonics are deprecated in 10.8. Historically they have not done anything. For compatability, this method still calls setTitle: with the ampersand stripped from it. */ - (void)setTitleWithMnemonic:(null_unspecified NSString *)stringWithAmpersand API_DEPRECATED("", macos(10.0,10.8)); @end /* The Secondary box type has been identical to Primary since Mac OS X 10.3. Use NSBoxPrimary instead. */ static const NSBoxType NSBoxSecondary API_DEPRECATED_WITH_REPLACEMENT("NSBoxPrimary", macos(10.0, 10.15)) = (NSBoxType)1; /* Draws a border in the style of Mac OS X 10.2 and earlier. This style is not recommended. */ static const NSBoxType NSBoxOldStyle API_DEPRECATED("NSBoxOldStyle is discouraged in modern application design. It should be replaced with either NSBoxPrimary or NSBoxCustom.", macos(10.0, 10.15)) = (NSBoxType)3; API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSSliderTouchBarItem.h
/* NSSliderTouchBarItem.h Application Kit Copyright (c) 2016-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSUserInterfaceCompression.h> #import <AppKit/NSTouchBarItem.h> NS_ASSUME_NONNULL_BEGIN @class NSSliderAccessory, NSSlider; typedef CGFloat NSSliderAccessoryWidth NS_TYPED_EXTENSIBLE_ENUM API_AVAILABLE(macos(10.12.2), ios(13.0)); /// The default width for slider accessories. APPKIT_EXTERN const NSSliderAccessoryWidth NSSliderAccessoryWidthDefault API_AVAILABLE(macos(10.12.2), ios(13.0)); /// The standard "wide" width for slider accessories. APPKIT_EXTERN const NSSliderAccessoryWidth NSSliderAccessoryWidthWide API_AVAILABLE(macos(10.12.2), ios(13.0)); API_AVAILABLE(macos(10.12.2), ios(13.0)) @interface NSSliderTouchBarItem : NSTouchBarItem @property (readonly, nonnull) NSView<NSUserInterfaceCompression> *view API_UNAVAILABLE(ios); /// The slider displayed by the bar item. It is automatically created, but can be set to a custom subclass. doubleValue, minValue, maxValue, etc can all be read and set through the slider. @property (strong) NSSlider *slider API_UNAVAILABLE(ios); /// The double value of the control @property double doubleValue API_AVAILABLE(macos(10.15), ios(13.0)); /// The width boundaries of the slider track of this item. /// The system defines the default minimum. The maximum defaults to MAXFLOAT @property CGFloat minimumSliderWidth API_AVAILABLE(macos(10.15), ios(13.0)); @property CGFloat maximumSliderWidth API_AVAILABLE(macos(10.15), ios(13.0)); /// The text label displayed along with the slider. If set to nil, the label will not have space reserved in the item. @property (nullable, copy) NSString *label; /// The accessory that appears on the end of the slider with the minimum value @property (strong, nullable) NSSliderAccessory *minimumValueAccessory; /// The accessory that appears on the end of the slider with the maximum value @property (strong, nullable) NSSliderAccessory *maximumValueAccessory; /// The width of the value accessories. Defaults to `.default`, but can be set to `.wide` or a custom value. @property NSSliderAccessoryWidth valueAccessoryWidth; /// The target of the item, notified when the slider or accessories receive user interaction. @property (weak, nullable) id target; /// The action of the item, called when the slider or accessories receive user interaction. @property (nullable) SEL action; /// The localized string labelling this item during user customization. The default value is empty string. @property (readwrite, copy, null_resettable) NSString *customizationLabel; @end NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSTextTable.h
#if !__has_include(<UIFoundation/NSTextTable.h>) /* NSTextTable.h Copyright (c) 2004-2021, Apple Inc. All rights reserved. Classes to represent text tables and other text blocks. NSTextBlock represents a single block of text. NSTextTableBlock is a subclass used to represent a block that is a cell in a table. NSTextTable represents a whole table. */ #import <AppKit/NSText.h> @class NSTextTable; @class NSLayoutManager; @class NSTextContainer; NS_ASSUME_NONNULL_BEGIN #if !TARGET_OS_IPHONE /* Values for NSTextBlockValueType */ typedef NS_ENUM(NSUInteger, NSTextBlockValueType) { NSTextBlockAbsoluteValueType = 0, // Absolute value in points NSTextBlockPercentageValueType = 1 // Percentage value (out of 100) }; /* Values for NSTextBlockDimension */ typedef NS_ENUM(NSUInteger, NSTextBlockDimension) { NSTextBlockWidth = 0, NSTextBlockMinimumWidth = 1, NSTextBlockMaximumWidth = 2, NSTextBlockHeight = 4, NSTextBlockMinimumHeight = 5, NSTextBlockMaximumHeight = 6 }; /* Values for NSTextBlockLayer */ typedef NS_ENUM(NSInteger, NSTextBlockLayer) { NSTextBlockPadding = -1, NSTextBlockBorder = 0, NSTextBlockMargin = 1 }; /* Values for NSTextBlockVerticalAlignment */ typedef NS_ENUM(NSUInteger, NSTextBlockVerticalAlignment) { NSTextBlockTopAlignment = 0, NSTextBlockMiddleAlignment = 1, NSTextBlockBottomAlignment = 2, NSTextBlockBaselineAlignment = 3 }; /* Values for NSTextTableLayoutAlgorithm */ typedef NS_ENUM(NSUInteger, NSTextTableLayoutAlgorithm) { NSTextTableAutomaticLayoutAlgorithm = 0, NSTextTableFixedLayoutAlgorithm = 1 }; /* NSTextBlock is the basic object for text block layout, and the superclass of the other classes. */ @interface NSTextBlock : NSObject <NSSecureCoding, NSCopying> - (instancetype)init NS_DESIGNATED_INITIALIZER; /* Content size */ - (void)setValue:(CGFloat)val type:(NSTextBlockValueType)type forDimension:(NSTextBlockDimension)dimension; - (CGFloat)valueForDimension:(NSTextBlockDimension)dimension; - (NSTextBlockValueType)valueTypeForDimension:(NSTextBlockDimension)dimension; /* Convenience methods for content width in particular, using the above methods with dimension == NSTextBlockWidth */ - (void)setContentWidth:(CGFloat)val type:(NSTextBlockValueType)type; @property (readonly) CGFloat contentWidth; @property (readonly) NSTextBlockValueType contentWidthValueType; /* Margin, border, and padding */ - (void)setWidth:(CGFloat)val type:(NSTextBlockValueType)type forLayer:(NSTextBlockLayer)layer edge:(NSRectEdge)edge; - (void)setWidth:(CGFloat)val type:(NSTextBlockValueType)type forLayer:(NSTextBlockLayer)layer; // Convenience method sets all edges at once - (CGFloat)widthForLayer:(NSTextBlockLayer)layer edge:(NSRectEdge)edge; - (NSTextBlockValueType)widthValueTypeForLayer:(NSTextBlockLayer)layer edge:(NSRectEdge)edge; /* Alignment */ @property NSTextBlockVerticalAlignment verticalAlignment; /* Colors */ @property (nullable, copy) NSColor *backgroundColor; - (void)setBorderColor:(nullable NSColor *)color forEdge:(NSRectEdge)edge; - (void)setBorderColor:(nullable NSColor *)color; // Convenience method sets all edges at once - (nullable NSColor *)borderColorForEdge:(NSRectEdge)edge; /* These methods will be called during layout to determine the size and position of the block. The first will be called before the block is laid out to determine the rect within which glyphs should be laid. The second will be called after the block is laid out to determine the rect the block occupies with borders and margins. */ - (NSRect)rectForLayoutAtPoint:(NSPoint)startingPoint inRect:(NSRect)rect textContainer:(NSTextContainer *)textContainer characterRange:(NSRange)charRange; - (NSRect)boundsRectForContentRect:(NSRect)contentRect inRect:(NSRect)rect textContainer:(NSTextContainer *)textContainer characterRange:(NSRange)charRange; /* This method will be called during drawing to draw any colors and other decorations before the text is drawn. */ - (void)drawBackgroundWithFrame:(NSRect)frameRect inView:(NSView *)controlView characterRange:(NSRange)charRange layoutManager:(NSLayoutManager *)layoutManager; @end /* NSTextTableBlock is a subclass of NSTextBlock used for a block that appears as a cell in a text table. */ @interface NSTextTableBlock : NSTextBlock - (instancetype)initWithTable:(NSTextTable *)table startingRow:(NSInteger)row rowSpan:(NSInteger)rowSpan startingColumn:(NSInteger)col columnSpan:(NSInteger)colSpan NS_DESIGNATED_INITIALIZER; // Designated initializer /* These methods determine the block's role in its enclosing table. */ @property (readonly, strong) NSTextTable *table; @property (readonly) NSInteger startingRow; @property (readonly) NSInteger rowSpan; @property (readonly) NSInteger startingColumn; @property (readonly) NSInteger columnSpan; @end /* NSTextTable represents a table as a whole. */ @interface NSTextTable : NSTextBlock /* These methods control the basic parameters of the table. */ @property NSUInteger numberOfColumns; @property NSTextTableLayoutAlgorithm layoutAlgorithm; @property BOOL collapsesBorders; @property BOOL hidesEmptyCells; /* An NSTextTableBlock delegates its layout and drawing operations to its enclosing table, using the following NSTextTable methods. */ - (NSRect)rectForBlock:(NSTextTableBlock *)block layoutAtPoint:(NSPoint)startingPoint inRect:(NSRect)rect textContainer:(NSTextContainer *)textContainer characterRange:(NSRange)charRange; - (NSRect)boundsRectForBlock:(NSTextTableBlock *)block contentRect:(NSRect)contentRect inRect:(NSRect)rect textContainer:(NSTextContainer *)textContainer characterRange:(NSRange)charRange; - (void)drawBackgroundForBlock:(NSTextTableBlock *)block withFrame:(NSRect)frameRect inView:(NSView *)controlView characterRange:(NSRange)charRange layoutManager:(NSLayoutManager *)layoutManager; @end #endif // !TARGET_OS_IPHONE NS_ASSUME_NONNULL_END #else #import <UIFoundation/NSTextTable.h> #endif
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSMenuToolbarItem.h
/* NSMenuToolbarItem.h Application Kit Copyright (c) 2015-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSToolbarItem.h> @class NSMenu; NS_ASSUME_NONNULL_BEGIN API_AVAILABLE(macos(10.15), ios(13.0)) @interface NSMenuToolbarItem : NSToolbarItem /* The menu presented to the user from the item. If the item has an action, an arrow will be shown to the user next to the button to access the menu. This will also be shown as the menuFormRepresentation unless otherwise set. */ @property (strong) NSMenu *menu API_UNAVAILABLE(ios); /* When YES, an indicator will be visible to the user as part of the control indicating that additional functionality is available. Defaults to YES. */ @property BOOL showsIndicator; @end NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h
/* NSResponder.h Application Kit Copyright (c) 1994-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSObject.h> #import <Foundation/NSArray.h> #import <AppKit/NSEvent.h> #import <AppKit/NSAccessibilityProtocols.h> #import <AppKit/NSPasteboard.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSError, NSEvent, NSMenu, NSUndoManager, NSWindow; NS_SWIFT_UI_ACTOR @interface NSResponder : NSObject <NSCoding> - (instancetype)init NS_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER; @property (nullable, assign) NSResponder *nextResponder; - (BOOL)tryToPerform:(SEL)action with:(nullable id)object; - (BOOL)performKeyEquivalent:(NSEvent *)event; - (nullable id)validRequestorForSendType:(nullable NSPasteboardType)sendType returnType:(nullable NSPasteboardType)returnType; - (void)mouseDown:(NSEvent *)event; - (void)rightMouseDown:(NSEvent *)event; - (void)otherMouseDown:(NSEvent *)event; - (void)mouseUp:(NSEvent *)event; - (void)rightMouseUp:(NSEvent *)event; - (void)otherMouseUp:(NSEvent *)event; - (void)mouseMoved:(NSEvent *)event; - (void)mouseDragged:(NSEvent *)event; - (void)scrollWheel:(NSEvent *)event; - (void)rightMouseDragged:(NSEvent *)event; - (void)otherMouseDragged:(NSEvent *)event; - (void)mouseEntered:(NSEvent *)event; - (void)mouseExited:(NSEvent *)event; - (void)keyDown:(NSEvent *)event; - (void)keyUp:(NSEvent *)event; - (void)flagsChanged:(NSEvent *)event; - (void)tabletPoint:(NSEvent *)event; - (void)tabletProximity:(NSEvent *)event; - (void)cursorUpdate:(NSEvent *)event API_AVAILABLE(macos(10.5)); /* The following *WithEvent methods are available on 10.5.2 or later, and will be sent only on hardware capable of generating the corresponding NSEvent types */ - (void)magnifyWithEvent:(NSEvent *)event API_AVAILABLE(macos(10.5)); - (void)rotateWithEvent:(NSEvent *)event API_AVAILABLE(macos(10.5)); - (void)swipeWithEvent:(NSEvent *)event API_AVAILABLE(macos(10.5)); - (void)beginGestureWithEvent:(NSEvent *)event API_AVAILABLE(macos(10.5)); - (void)endGestureWithEvent:(NSEvent *)event API_AVAILABLE(macos(10.5)); - (void)smartMagnifyWithEvent:(NSEvent *)event API_AVAILABLE(macos(10.8)); /* Issued in response to a double-tap on the side of the Apple Pencil */ - (void)changeModeWithEvent:(NSEvent *)event API_AVAILABLE(macos(10.15)); /* A new set of touches has been recognized. To get the set of touches that began for this view (or descendants of this view): [event touchesMatchingPhase:NSTouchPhaseBegan inView:self]; Note: this is not always the point of contact with the touch device. A touch that transitions from resting to active may be part of a Began set. */ - (void)touchesBeganWithEvent:(NSEvent *)event API_AVAILABLE(macos(10.6)); /* One or more touches has moved. To get the set of touches that moved for this view (or descendants of this view): [event touchesMatchingPhase:NSTouchPhaseMoved inView:self]; */ - (void)touchesMovedWithEvent:(NSEvent *)event API_AVAILABLE(macos(10.6)); /* A set of touches have been removed. To get the set of touches that ended for this view (or descendants of this view): [event touchesMatchingPhase:NSTouchPhaseEnded inView:self]; Note: this is not always the point of removal with the touch device. A touch that transitions from active to resting may be part of an Ended set. */ - (void)touchesEndedWithEvent:(NSEvent *)event API_AVAILABLE(macos(10.6)); /* The System has cancelled the tracking of touches for any reason. */ - (void)touchesCancelledWithEvent:(NSEvent *)event API_AVAILABLE(macos(10.6)); /* Perform a Quick Look on the content at location in the event. If there are no Quick Look items at the location, call super. Also, see quickLookPreviewItems: further below. */ - (void)quickLookWithEvent:(NSEvent *)event API_AVAILABLE(macos(10.8)); - (void)pressureChangeWithEvent:(NSEvent *)event API_AVAILABLE(macos(10.10.3)); - (void)noResponderFor:(SEL)eventSelector; @property (readonly) BOOL acceptsFirstResponder; - (BOOL)becomeFirstResponder; - (BOOL)resignFirstResponder; - (void)interpretKeyEvents:(NSArray<NSEvent *> *)eventArray; - (void)flushBufferedKeyEvents; @property (nullable, strong) NSMenu *menu; - (void)showContextHelp:(nullable id)sender; - (void)helpRequested:(NSEvent *)eventPtr; - (BOOL)shouldBeTreatedAsInkEvent:(NSEvent *)event; /* Some views process gesture scroll events to perform elastic scrolling. In some cases, you may want to track gesture scroll events like a swipe. (see -trackSwipeEventWithOptions:dampenAmountThresholdMin:max:usingHandler: in NSEvent.h) Implement this method and return YES in your swipe controller and views that perform elastic scrolling will forward gesture scroll events up the responder chain on the following condition: the content to be scrolled is already at the edge of the scrolled direction at the beginning of the scroll gesture. Otherwise, the view will perform elastic scrolling. Default implementation returns NO. */ - (BOOL)wantsScrollEventsForSwipeTrackingOnAxis:(NSEventGestureAxis)axis API_AVAILABLE(macos(10.7)); /* Some views process gesture scroll events to perform elastic scrolling. In some cases, the scroll events should be forwarded up the responder chain for further processing (for example an enclosing scroll view). Implement this method returning yes and views that perform elastic scrolling will forward gesture scroll events up the responder chain on the following condition: the content to be scrolled is already at the edge of the scrolled direction at the beginning of the scroll gesture. Otherwise, the view will perform elastic scrolling. Note: If you intend to call -trackSwipeEventWithOptions:dampenAmountThresholdMin:max:usingHandler: implement -wantsToTrackScrollEventsAsSwipeForAxis, as defined above instead. Default implementation returns NO. */ - (BOOL)wantsForwardedScrollEventsForAxis:(NSEventGestureAxis)axis API_AVAILABLE(macos(10.7)); /* This method is used in the process of finding a target for an action method. If this NSResponder instance does not itself respondsToSelector:action, then supplementalTargetForAction:sender: is called. This method should return an object which responds to the action; if this responder does not have a supplemental object that does that, the implementation of this method should call super's supplementalTargetForAction:sender:. NSResponder's implementation returns nil. */ - (nullable id)supplementalTargetForAction:(SEL)action sender:(nullable id)sender API_AVAILABLE(macos(10.7)); @end /* This protocol contains a large number of methods intended for use as key binding commands. NSResponder does not implement any of them. NSTextView implements a certain subset of them (see the NSTextView.h header). Your responder subclasses can implement any that make sense. You can make up your own as well, but you should use these if the concepts map. If your view is key and uses key binding and the user types a key sequence which is bound to a command which is not implemented in your class, it is OK, nothing will happen by default. */ @protocol NSStandardKeyBindingResponding <NSObject> @optional /************************* Key binding entry-points *************************/ - (void)insertText:(id)insertString; // When key events have been passed off to the key binding mechanism through interpretKeyEvents:, they end up back in the view through either this method or the below doCommand... methods. insertText: is used to pass through text that was not a command. - (void)doCommandBySelector:(SEL)selector; // Performs the given selector if possible. /************************* Standard bindable commands *************************/ /* Selection movement and scrolling */ - (void)moveForward:(nullable id)sender; - (void)moveRight:(nullable id)sender; - (void)moveBackward:(nullable id)sender; - (void)moveLeft:(nullable id)sender; - (void)moveUp:(nullable id)sender; - (void)moveDown:(nullable id)sender; - (void)moveWordForward:(nullable id)sender; - (void)moveWordBackward:(nullable id)sender; - (void)moveToBeginningOfLine:(nullable id)sender; - (void)moveToEndOfLine:(nullable id)sender; - (void)moveToBeginningOfParagraph:(nullable id)sender; - (void)moveToEndOfParagraph:(nullable id)sender; - (void)moveToEndOfDocument:(nullable id)sender; - (void)moveToBeginningOfDocument:(nullable id)sender; - (void)pageDown:(nullable id)sender; - (void)pageUp:(nullable id)sender; - (void)centerSelectionInVisibleArea:(nullable id)sender; - (void)moveBackwardAndModifySelection:(nullable id)sender; - (void)moveForwardAndModifySelection:(nullable id)sender; - (void)moveWordForwardAndModifySelection:(nullable id)sender; - (void)moveWordBackwardAndModifySelection:(nullable id)sender; - (void)moveUpAndModifySelection:(nullable id)sender; - (void)moveDownAndModifySelection:(nullable id)sender; - (void)moveToBeginningOfLineAndModifySelection:(nullable id)sender; - (void)moveToEndOfLineAndModifySelection:(nullable id)sender; - (void)moveToBeginningOfParagraphAndModifySelection:(nullable id)sender; - (void)moveToEndOfParagraphAndModifySelection:(nullable id)sender; - (void)moveToEndOfDocumentAndModifySelection:(nullable id)sender; - (void)moveToBeginningOfDocumentAndModifySelection:(nullable id)sender; - (void)pageDownAndModifySelection:(nullable id)sender; - (void)pageUpAndModifySelection:(nullable id)sender; - (void)moveParagraphForwardAndModifySelection:(nullable id)sender; - (void)moveParagraphBackwardAndModifySelection:(nullable id)sender; - (void)moveWordRight:(nullable id)sender; - (void)moveWordLeft:(nullable id)sender; - (void)moveRightAndModifySelection:(nullable id)sender; - (void)moveLeftAndModifySelection:(nullable id)sender; - (void)moveWordRightAndModifySelection:(nullable id)sender; - (void)moveWordLeftAndModifySelection:(nullable id)sender; - (void)moveToLeftEndOfLine:(nullable id)sender API_AVAILABLE(macos(10.6)); - (void)moveToRightEndOfLine:(nullable id)sender API_AVAILABLE(macos(10.6)); - (void)moveToLeftEndOfLineAndModifySelection:(nullable id)sender API_AVAILABLE(macos(10.6)); - (void)moveToRightEndOfLineAndModifySelection:(nullable id)sender API_AVAILABLE(macos(10.6)); - (void)scrollPageUp:(nullable id)sender; - (void)scrollPageDown:(nullable id)sender; - (void)scrollLineUp:(nullable id)sender; - (void)scrollLineDown:(nullable id)sender; - (void)scrollToBeginningOfDocument:(nullable id)sender; - (void)scrollToEndOfDocument:(nullable id)sender; /* Graphical Element transposition */ - (void)transpose:(nullable id)sender; - (void)transposeWords:(nullable id)sender; /* Selections */ - (void)selectAll:(nullable id)sender; - (void)selectParagraph:(nullable id)sender; - (void)selectLine:(nullable id)sender; - (void)selectWord:(nullable id)sender; /* Insertions and Indentations */ - (void)indent:(nullable id)sender; - (void)insertTab:(nullable id)sender; - (void)insertBacktab:(nullable id)sender; - (void)insertNewline:(nullable id)sender; - (void)insertParagraphSeparator:(nullable id)sender; - (void)insertNewlineIgnoringFieldEditor:(nullable id)sender; - (void)insertTabIgnoringFieldEditor:(nullable id)sender; - (void)insertLineBreak:(nullable id)sender; - (void)insertContainerBreak:(nullable id)sender; - (void)insertSingleQuoteIgnoringSubstitution:(nullable id)sender API_AVAILABLE(macos(10.5)); - (void)insertDoubleQuoteIgnoringSubstitution:(nullable id)sender API_AVAILABLE(macos(10.5)); /* Case changes */ - (void)changeCaseOfLetter:(nullable id)sender; - (void)uppercaseWord:(nullable id)sender; - (void)lowercaseWord:(nullable id)sender; - (void)capitalizeWord:(nullable id)sender; /* Deletions */ - (void)deleteForward:(nullable id)sender; - (void)deleteBackward:(nullable id)sender; - (void)deleteBackwardByDecomposingPreviousCharacter:(nullable id)sender; - (void)deleteWordForward:(nullable id)sender; - (void)deleteWordBackward:(nullable id)sender; - (void)deleteToBeginningOfLine:(nullable id)sender; - (void)deleteToEndOfLine:(nullable id)sender; - (void)deleteToBeginningOfParagraph:(nullable id)sender; - (void)deleteToEndOfParagraph:(nullable id)sender; - (void)yank:(nullable id)sender; /* Completion */ - (void)complete:(nullable id)sender; /* Mark/Point manipulation */ - (void)setMark:(nullable id)sender; - (void)deleteToMark:(nullable id)sender; - (void)selectToMark:(nullable id)sender; - (void)swapWithMark:(nullable id)sender; /* Cancellation */ - (void)cancelOperation:(nullable id)sender; /* Writing Direction */ - (void)makeBaseWritingDirectionNatural:(nullable id)sender API_AVAILABLE(macos(10.6)); - (void)makeBaseWritingDirectionLeftToRight:(nullable id)sender API_AVAILABLE(macos(10.6)); - (void)makeBaseWritingDirectionRightToLeft:(nullable id)sender API_AVAILABLE(macos(10.6)); - (void)makeTextWritingDirectionNatural:(nullable id)sender API_AVAILABLE(macos(10.6)); - (void)makeTextWritingDirectionLeftToRight:(nullable id)sender API_AVAILABLE(macos(10.6)); - (void)makeTextWritingDirectionRightToLeft:(nullable id)sender API_AVAILABLE(macos(10.6)); /* Quick Look */ /* Perform a Quick Look on the text cursor position, selection, or whatever is appropriate for your view. If there are no Quick Look items, then call [[self nextResponder] tryToPerform:_cmd with:sender]; to pass the request up the responder chain. Eventually AppKit will attempt to perform a dictionary look up. Also see quickLookWithEvent: above. */ - (void)quickLookPreviewItems:(nullable id)sender API_AVAILABLE(macos(10.8)); @end @interface NSResponder (NSStandardKeyBindingMethods) <NSStandardKeyBindingResponding> @end @interface NSResponder(NSUndoSupport) @property (nullable, readonly, strong) NSUndoManager *undoManager; @end @interface NSResponder (NSControlEditingSupport) /* This is a responder chain method to allow controls to determine when they should become first responder or not. Some controls, such as NSTextField, should only become first responder when the enclosing NSTableView/NSBrowser indicates that the view can begin editing. It is up to the particular control that wants to be validated to call this method in its -mouseDown: (or other time) to determine if it should attempt to become the first responder or not. The default implementation returns YES when there is no -nextResponder, otherwise, it is forwarded up the responder chain. NSTableView/NSBrowser implements this to only allow first responder status if the responder is a view in a selected row. It also delays the first responder assignment if a doubleAction needs to (possibly) be sent. 'event' may be nil if there is no applicable event. */ - (BOOL)validateProposedFirstResponder:(NSResponder *)responder forEvent:(nullable NSEvent *)event API_AVAILABLE(macos(10.7)); @end @interface NSResponder(NSErrorPresentation) /* Present an error alert to the user, as a document-modal panel. When the user has dismissed the alert and any recovery possible for the error and chosen by the user has been attempted, send the selected message to the specified delegate. The method selected by didPresentSelector must have the same signature as: - (void)didPresentErrorWithRecovery:(BOOL)didRecover contextInfo:(void *)contextInfo; The default implementation of this method always invokes [self willPresentError:error] to give subclassers an opportunity to customize error presentation. It then forwards the message, passing the customized error, to the next responder or, if there is no next responder, NSApp. NSApplication's override of this method invokes [[NSAlert alertWithError:errorToPresent] beginSheetModalForWindow:window modalDelegate:self didEndSelector:selectorForAPrivateMethod contextInfo:privateContextInfo]. When the user has dismissed the alert, the error's recovery attempter is sent an -attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo: message, if the error had recovery options and a recovery delegate. Errors for which ([[error domain] isEqualToString:NSCocoaErrorDomain] && [error code]==NSUserCancelledError) are a special case, because they do not actually represent errors and should not be presented as such to the user. NSApplication's override of this method does not present an alert to the user for these kinds of errors. Instead it merely invokes the delegate specifying didRecover==NO. Between the responder chain in a typical application and various overrides of this method in AppKit classes, objects are given the opportunity to present errors in orders like these: For windows owned by documents: view -> superviews -> window -> window controller -> document -> document controller -> application For windows that have window controllers but aren't associated with documents: view -> superviews -> window -> window controller -> application For windows that have no window controller at all: view -> superviews -> window -> application You can invoke this method to present error alert sheets. For example, Cocoa's own -[NSDocument saveToURL:ofType:forSaveOperation:delegate:didSaveSelector:contextInfo:] invokes this method when it's just invoked -saveToURL:ofType:forSaveOperation:completionHandler: and that method has signalled an error. You probably shouldn't override this method, because you have no way of reliably predicting whether this method vs. -presentError will be invoked for any particular error. You should instead override the -willPresentError: method described below. */ - (void)presentError:(NSError *)error modalForWindow:(NSWindow *)window delegate:(nullable id)delegate didPresentSelector:(nullable SEL)didPresentSelector contextInfo:(nullable void *)contextInfo; /* Present an error alert to the user, as an application-modal panel, and return YES if error recovery was done, NO otherwise. This method behaves much like the previous one except it does not return until the user has dismissed the alert and, if the error had recovery options and a recovery delegate, the error's recovery delegate has been sent an -attemptRecoveryFromError:optionIndex: message. You can invoke this method to present error alert dialog boxes. For example, Cocoa's own [NSDocumentController openDocument:] invokes this method when document opening fails. You probably shouldn't override this method, because you have no way of reliably predicting whether this method vs. -presentError:modalForWindow:delegate:didPresentSelector:contextInfo: will be invoked for any particular error. You should instead override the -willPresentError: method described below. */ - (BOOL)presentError:(NSError *)error; /* Given that the receiver is about to present an error (perhaps by just forwarding it to the next responder), return the error that should actually be presented. The default implementation of this method merely returns the passed-in error. You can override this method to customize the presentation of errors by examining the passed-in error and if, for example, its localized description or recovery information is unsuitably generic, returning a more specific one. When you override this method always check the NSError's domain and code to discriminate between errors whose presentation you want to customize and those you don't. For those you don't just return [super willPresentError:error]. Don't make decisions based on the NSError's localized description, recovery suggestion, or recovery options because it's usually not a good idea to try to parse localized text. */ - (NSError *)willPresentError:(NSError *)error; @end @interface NSResponder(NSTextFinderSupport) - (void)performTextFinderAction:(nullable id)sender API_AVAILABLE(macos(10.7)); @end @interface NSResponder(NSWindowTabbing) /* For automatic window tabbing: This method can be implemented in the responder chain. It is automatically called for tabbed windows when the plus button is clicked, and the next window that is created and shown will be placed in a tab. This can be implemented in an NSDocumentController subclass, or somewhere in the responder chain starting at NSWindow (such as NSWindow, the window delegate, the windowController, the NSApp delegate, etc. A plus button on tabbed windows will only be shown if this method exists in the responder chain. */ - (IBAction)newWindowForTab:(nullable id)sender API_AVAILABLE(macos(10.12)); @end @interface NSResponder(NSDeprecated) - (BOOL)performMnemonic:(NSString *)string API_DEPRECATED("This has always returned NO and had no effect on macOS", macos(10.0,10.8)); @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSTitlebarAccessoryViewController.h
/* NSTitlebarAccessoryViewController.h Application Kit Copyright (c) 2014-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSViewController.h> #import <AppKit/NSLayoutConstraint.h> #import <AppKit/AppKitDefines.h> @class NSClipView; NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST /* For use with NSWindow's API addTitlebarAccessoryViewController:, etc. */ API_AVAILABLE(macos(10.10)) @interface NSTitlebarAccessoryViewController : NSViewController <NSAnimationDelegate, NSAnimatablePropertyContainer> #if !TARGET_OS_IPHONE /* The layoutAttribute defaults to NSLayoutAttributeBottom, telling the window to place this view controller's view under the titlebar. NSLayoutAttributeRight is also supported, telling the window to place the view controller's view on the right side of the window. For applications linked on Mac OS 10.11 or later, NSLayoutAttributeLeft is also supported; placing the item on the left side of the window (adjacent and to the right of the close/minimize/maximize buttons). All other values are currently invalid and will assert. A layoutAttribute == NSLayoutAttributeRight will indent toolbar items for all toolbar styles except NSToolbarStyleExpanded and NSToolbarStyleCompact. For applications linked on 10.12 and higher, NSLayoutAttributeLeading and NSLayoutAttributeTrailing can also be used to specify an abstract position that automatically flips depending on the localized language. For applications that do not link on 10.12, NSLayoutAttributeLeft will automatically flip to the Right when in a Right To Left language. For applications linked on 10.13 and higher, NSLayoutAttributeTop can also be used to specify a view that will be at the top of the titlebar area. Only one should be used per window, and if one is set the normal titlebar will not be drawn. Using the top attributed requires the window to have the NSWindowStyleMaskFullSizeContentView style mask set. The "hidden" property can be used to show and hide the view. The "hidden" property will animate the view via an alpha fade in and out if accessed through the animator proxy (such as: viewController.animator.hidden = YES). */ @property NSLayoutAttribute layoutAttribute; #endif /* The fullScreenMinHeight controls the visual minimum height of the view when it is in full screen. It only applies to controllers with the layoutAttribute set to NSLayoutAttributeBottom. Note that the view's height is never actually changed, and it is automatically clipped by an internal clip view. The minimum height is used when the menu bar is hidden. A minimum height of 0 will fully hide the view when the menu bar is hidden. To always show a portion of the view, set the fullScreenMinHeight to some value greater than 0. To always have the view fully shown (i.e.: a fixed height accessory view), set the fullScreenMinHeight to the view.frame.size.height (and be sure to update it if you ever change the view's height). The default value is 0. */ @property CGFloat fullScreenMinHeight; /* Indicates whether the accessory view is actually visible in the window. This property only applies to controllers set with the top or bottom layoutAtribute. When set, this property will collapse the accessory view to 0 height (animatable) but NOT remove it from the window. That way, you can easily show and hide it without difficulty. Set through the animator object to animate it. */ @property (getter=isHidden) BOOL hidden API_AVAILABLE(macos(10.12)); /* Whether the accessory should automatically size to the standard system default sizing over the view's current frame size. Only valid for accessories with a layoutAttribute of NSLayoutAttributeBottom. The default value is YES. */ @property BOOL automaticallyAdjustsSize API_AVAILABLE(macos(11.0)); - (void)viewWillAppear NS_REQUIRES_SUPER; - (void)viewDidAppear NS_REQUIRES_SUPER; - (void)viewDidDisappear NS_REQUIRES_SUPER; /* NOTE: Do not override the -view property! Instead, override loadView, and set the view property in that method (i.e.: self.view = ...; ) NOTE: NSTitlebarAccessoryViewController will observe the view's frame for changes. You can change the view's frame in a direction that "makes sense". For instance, changing the height when the layoutAttribute is NSLayoutAttributeBottom, or changing the width when the layoutAttribute is NSLayoutAttributeRight. The other size direction will automatically be filled to the maximum size as required for the window. */ @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h
/* NSFont.h Application Kit Copyright (c) 1994-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSObject.h> #import <Foundation/NSString.h> // for NSStringEncoding #import <AppKit/AppKitDefines.h> #import <AppKit/NSCell.h> // for NSControlSize #import <AppKit/NSFontDescriptor.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSFontDescriptor, NSAffineTransform, NSGraphicsContext; /********* Font Matrix *********/ /* This is a font matrix value representing [1 0 0 1 0 0]. */ APPKIT_EXTERN const CGFloat * NSFontIdentityMatrix; NS_AUTOMATED_REFCOUNT_WEAK_UNAVAILABLE @interface NSFont : NSObject <NSCopying, NSSecureCoding> /********* Factory *********/ + (nullable NSFont *)fontWithName:(NSString *)fontName size:(CGFloat)fontSize; + (nullable NSFont *)fontWithName:(NSString *)fontName matrix:(const CGFloat *)fontMatrix; /* Instantiates an NSFont object matching fontDescriptor. If fontSize is greater than 0.0, it has precedence over NSFontSizeAttribute in fontDescriptor. */ + (nullable NSFont *)fontWithDescriptor:(NSFontDescriptor *)fontDescriptor size:(CGFloat)fontSize; /* Instantiates an NSFont object matching fontDescriptor. If textTransform is non-nil, it has precedence over NSFontMatrixAttribute in fontDescriptor. */ + (nullable NSFont *)fontWithDescriptor:(NSFontDescriptor *)fontDescriptor textTransform:(nullable NSAffineTransform *)textTransform; /********* Meta Font *********/ /* User font settings */ + (nullable NSFont *)userFontOfSize:(CGFloat)fontSize; // Application font + (nullable NSFont *)userFixedPitchFontOfSize:(CGFloat)fontSize; // fixed-pitch font + (void)setUserFont:(nullable NSFont *)font; // set preference for Application font. + (void)setUserFixedPitchFont:(nullable NSFont *)font; // set preference for fixed-pitch. /* UI font settings */ + (NSFont *)systemFontOfSize:(CGFloat)fontSize; // System font with NSFontWeightRegular and proportional digits + (NSFont *)boldSystemFontOfSize:(CGFloat)fontSize; // System font with NSFontWeightBold and proportional digits + (NSFont *)labelFontOfSize:(CGFloat)fontSize; // Label font + (NSFont *)titleBarFontOfSize:(CGFloat)fontSize; + (NSFont *)menuFontOfSize:(CGFloat)fontSize; + (NSFont *)menuBarFontOfSize:(CGFloat)fontSize; + (NSFont *)messageFontOfSize:(CGFloat)fontSize; + (NSFont *)paletteFontOfSize:(CGFloat)fontSize; + (NSFont *)toolTipsFontOfSize:(CGFloat)fontSize; + (NSFont *)controlContentFontOfSize:(CGFloat)fontSize; /* Following two factory methods return system font with NSFontWeightTrait. Returns the system font object corresponding to fontSize and weight. +monospacedDigitSystemFontOfSize:weight: always return a system font instance with monospaced digit glyphs. It's recommended to use the symbolic weight values declared in NSFontDescriptor.h. Due to sophisticated system font weight matching logic underneath, it's recommended to use this factory method all the time when getting non-standard weight system fonts instead of transforming existing instances via methods like -[NSFontManager convertFont:toSize]. When asked for a missing weight for the running version of OS X, this method returns the nearest heavier weight available if the application is linked against the current or older SDK; otherwise, it returns the nearest lighter weight available. */ + (NSFont *)systemFontOfSize:(CGFloat)fontSize weight:(NSFontWeight)weight API_AVAILABLE(macos(10.11)); + (NSFont *)monospacedDigitSystemFontOfSize:(CGFloat)fontSize weight:(NSFontWeight)weight API_AVAILABLE(macos(10.11)); /* Returns current default monospaced font for system UI. Clients of this API should be aware that the monospaced system font has a similar coverage of default system UI font, which includes Latin and common symbols used for displaying text like source code. For the characters it does not cover, the subtituted fonts are usually not the same width as the monospaced system font, they can be wider, narrower, or variable. To ensure fixed advances in text layout, clients can consider using string attributes like NSFontFixedAdvanceAttribute. */ + (NSFont *)monospacedSystemFontOfSize:(CGFloat)fontSize weight:(NSFontWeight)weight API_AVAILABLE(macos(10.15)); // Use instead of -[NSFontManager convertFont:toSize:]. - (NSFont *)fontWithSize:(CGFloat)fontSize API_AVAILABLE(macos(10.15)); /* UI font size settings */ @property (class, readonly) CGFloat systemFontSize; // size of the standard System font. @property (class, readonly) CGFloat smallSystemFontSize; // size of standard small System font. @property (class, readonly) CGFloat labelFontSize; // size of the standard Label Font. + (CGFloat)systemFontSizeForControlSize:(NSControlSize)controlSize; /********* Core font attribute *********/ @property (readonly, copy) NSString *fontName; @property (readonly) CGFloat pointSize; @property (readonly) const CGFloat *matrix NS_RETURNS_INNER_POINTER; @property (nullable, readonly, copy) NSString *familyName; @property (nullable, readonly, copy) NSString *displayName; @property (readonly, strong) NSFontDescriptor *fontDescriptor; @property (readonly, copy) NSAffineTransform *textTransform; /********* Glyph coverage *********/ @property (readonly) NSUInteger numberOfGlyphs; @property (readonly) NSStringEncoding mostCompatibleStringEncoding; @property (readonly, strong) NSCharacterSet *coveredCharacterSet; /********* Font instance-wide metrics *********/ /* These methods return scaled numbers. If the font was created with a matrix, the matrix is applied automatically; otherwise the coordinates are multiplied by size. */ @property (readonly) NSRect boundingRectForFont; @property (readonly) NSSize maximumAdvancement; @property (readonly) CGFloat ascender; @property (readonly) CGFloat descender; @property (readonly) CGFloat leading; @property (readonly) CGFloat underlinePosition; @property (readonly) CGFloat underlineThickness; @property (readonly) CGFloat italicAngle; @property (readonly) CGFloat capHeight; @property (readonly) CGFloat xHeight; @property (getter=isFixedPitch, readonly) BOOL fixedPitch; /********* Glyph metrics *********/ /********* Glyph metrics *********/ - (NSRect)boundingRectForCGGlyph:(CGGlyph)glyph API_AVAILABLE(macos(10.13)); - (NSSize)advancementForCGGlyph:(CGGlyph)glyph API_AVAILABLE(macos(10.13)); // bulk query - (void)getBoundingRects:(NSRectArray)bounds forCGGlyphs:(const CGGlyph *)glyphs count:(NSUInteger)glyphCount API_AVAILABLE(macos(10.13)); - (void)getAdvancements:(NSSizeArray)advancements forCGGlyphs:(const CGGlyph *)glyphs count:(NSUInteger)glyphCount API_AVAILABLE(macos(10.13)); /********* NSGraphicsContext-related *********/ - (void)set; - (void)setInContext:(NSGraphicsContext *)graphicsContext; /********* Vertical mode *********/ /* Returns a vertical version of the receiver if such a configuration is supported. Returns the receiver if no vertical variant available. A vertical font applies appropriate rotation to the text matrix in -setInContext:, returns vertical metrics, and enables the vertical glyph substitution feature by default. */ @property (readonly, copy) NSFont *verticalFont API_AVAILABLE(macos(10.7)); /* Returns YES if a vertical variant */ @property (getter=isVertical, readonly) BOOL vertical API_AVAILABLE(macos(10.7)); @end /********* Notifications *********/ /* This notification is posted when the antialias threshold is changed by the user. */ APPKIT_EXTERN NSNotificationName NSAntialiasThresholdChangedNotification; /* This notification is posted when the available font set is modified as a result of activation/deactivation. */ APPKIT_EXTERN NSNotificationName NSFontSetChangedNotification; /********* Deprecated API *********/ // NSGlyph and related API are soft deprecated. They will be formally deprecated in a future version. Use CGGlyph-based TextKit API instead typedef unsigned int NSGlyph; // Use CGGlyph instead enum { NSControlGlyph = 0x00FFFFFF, // Deprecated. Use NSGlyphPropertyControlCharacter instead NSNullGlyph = 0x0 // Deprecated. Use NSGlyphPropertyNull instead }; // NSFontRenderingMode-related API is now deprecated. /********* Screen Font Rendering Mode *********/ typedef NS_ENUM(NSUInteger, NSFontRenderingMode) { NSFontDefaultRenderingMode = 0, // Determines the actual mode based on the user preference settings NSFontAntialiasedRenderingMode = 1, // Antialiased, floating-point advancements rendering mode (synonym to printerFont) NSFontIntegerAdvancementsRenderingMode = 2, // integer advancements rendering mode NSFontAntialiasedIntegerAdvancementsRenderingMode = 3 // Antialiased, integer advancements rendering mode }; typedef NS_ENUM(NSUInteger, NSMultibyteGlyphPacking) { NSNativeShortGlyphPacking API_DEPRECATED("", macos(10.0,10.13)) = 5 } API_DEPRECATED("", macos(10.0,10.13)); APPKIT_EXTERN NSInteger NSConvertGlyphsToPackedGlyphs(NSGlyph * _Nonnull glBuf, NSInteger count, NSMultibyteGlyphPacking packing, char * _Nonnull packedGlyphs) API_DEPRECATED("", macos(10.0,10.13)); @interface NSFont (NSFont_Deprecated) - (NSGlyph)glyphWithName:(NSString *)name; - (NSRect)boundingRectForGlyph:(NSGlyph)glyph; // Deprecated. Use -boundingRectForCGGlyph: instead - (NSSize)advancementForGlyph:(NSGlyph)glyph; // Deprecated. Use -advancementForCGGlyph: instead // bulk query - (void)getBoundingRects:(NSRectArray)bounds forGlyphs:(const NSGlyph *)glyphs count:(NSUInteger)glyphCount; // Deprecated. Use -getBoundingRects:forCGGlyphs:count: instead - (void)getAdvancements:(NSSizeArray)advancements forGlyphs:(const NSGlyph *)glyphs count:(NSUInteger)glyphCount; // Deprecated. Use -getAdvancements:forCGGlyphs:count: insteda - (void)getAdvancements:(NSSizeArray)advancements forPackedGlyphs:(const void *)packedGlyphs length:(NSUInteger)length; // Deprecated. Use -getAdvancements:forCGGlyphs:count: instead /********* Rendering mode *********/ @property (readonly, copy) NSFont *printerFont; @property (readonly, copy) NSFont *screenFont; - (NSFont *)screenFontWithRenderingMode:(NSFontRenderingMode)renderingMode; @property (readonly) NSFontRenderingMode renderingMode; @end @interface NSFont (NSFont_TextStyles) // Returns an instance of the font associated with the text style. See NSFontDescriptor.h for the complete list. + (NSFont *)preferredFontForTextStyle:(NSFontTextStyle)style options:(NSDictionary<NSFontTextStyleOptionKey, id> *)options API_AVAILABLE(macos(11.0)); @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSClipView.h
/* NSClipView.h Application Kit Copyright (c) 1994-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSView.h> #import <AppKit/AppKitDefines.h> #import <Foundation/Foundation.h> #import <Availability.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSColor; @interface NSClipView : NSView @property (copy) NSColor *backgroundColor; @property BOOL drawsBackground; @property (nullable, strong) __kindof NSView *documentView; @property (readonly) NSRect documentRect; @property (nullable, strong) NSCursor *documentCursor; @property (readonly) NSRect documentVisibleRect; - (void)viewFrameChanged:(NSNotification *)notification; - (void)viewBoundsChanged:(NSNotification *)notification; - (BOOL)autoscroll:(NSEvent *)event; - (void)scrollToPoint:(NSPoint)newOrigin; /* This is used to constrain the bounds of the clip view under magnification and scrolling. This also comes with the deprecation of -constrainScrollPoint:. The logic of an existing -constrainScrollPoint: can be moved to -constrainBoundsRect: by adjusting the proposedBounds origin (as opposed to 'newOrigin'). To preserve compatibility, if a subclass overrides -constrainScrollPoint:, the default behavior of -constrainBoundsRect: will be to use that -constrainScrollPoint: to adjust the proposedBounds origin, and to not change the size. */ - (NSRect)constrainBoundsRect:(NSRect)proposedBounds API_AVAILABLE(macos(10.9)); /* The distance that the content view is inset from the enclosing scroll view. Note: animate with [self animator] */ @property NSEdgeInsets contentInsets API_AVAILABLE(macos(10.10)); /* When YES, and used as the contentView of an NSScrollView, the clip view will automatically account for other scroll view subviews such as rulers and headers. Defaults to YES. */ @property BOOL automaticallyAdjustsContentInsets API_AVAILABLE(macos(10.10)); @end @interface NSView (NSClipViewSuperview) - (void)reflectScrolledClipView:(NSClipView *)clipView; - (void)scrollClipView:(NSClipView *)clipView toPoint:(NSPoint)point; @end #pragma mark Deprecated declarations @interface NSClipView () - (NSPoint)constrainScrollPoint:(NSPoint)newOrigin API_DEPRECATED("Use -constrainBoundsRect: instead.", macos(10.0,10.10)); @property BOOL copiesOnScroll API_DEPRECATED("Setting this property has no effect. NSClipView will always minimize the area of the document view that is invalidated. To force invalidation of the document view, use -[NSView setNeedsDisplayInRect:].", macos(10.0, 11.0)); @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSBrowser.h
/* NSBrowser.h Application Kit Copyright (c) 1994-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSArray.h> #import <AppKit/NSControl.h> #import <AppKit/NSDragging.h> #import <AppKit/NSViewController.h> #import <AppKit/NSApplication.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST static const NSAppKitVersion NSAppKitVersionNumberWithContinuousScrollingBrowser = 680.0; static const NSAppKitVersion NSAppKitVersionNumberWithColumnResizingBrowser = 685.0; typedef NSString * NSBrowserColumnsAutosaveName NS_SWIFT_BRIDGED_TYPEDEF; @class NSMatrix, NSScroller, NSIndexSet; @protocol NSBrowserDelegate; typedef NS_ENUM(NSUInteger, NSBrowserColumnResizingType) { /* Column sizes are fixed and set by developer. */ NSBrowserNoColumnResizing = 0, /* No user resizing. Columns grow as window grows. */ NSBrowserAutoColumnResizing = 1, /* Columns fixed as window grows. User can resize. */ NSBrowserUserColumnResizing = 2, }; /* In drag and drop, used to specify the drop operation from inside the delegate method browser:validateDrop:proposedRow:column:dropOperation. See the delegate method description for more information. */ typedef NS_ENUM(NSUInteger, NSBrowserDropOperation) { NSBrowserDropOn, NSBrowserDropAbove, } API_AVAILABLE(macos(10.5)); @interface NSBrowser : NSControl @property (class, readonly) Class cellClass; - (void)loadColumnZero; @property (getter=isLoaded, readonly) BOOL loaded; @property (nullable) SEL doubleAction; - (void)setCellClass:(Class)factoryId; @property (null_resettable, strong) id /* NSCell * */ cellPrototype; @property (nullable, weak) id<NSBrowserDelegate> delegate; @property BOOL reusesColumns; @property BOOL hasHorizontalScroller; @property BOOL autohidesScroller API_AVAILABLE(macos(10.6)); @property BOOL separatesColumns; @property (getter=isTitled) BOOL titled; @property CGFloat minColumnWidth; @property NSInteger maxVisibleColumns; @property BOOL allowsMultipleSelection; @property BOOL allowsBranchSelection; @property BOOL allowsEmptySelection; @property BOOL takesTitleFromPreviousColumn; @property BOOL sendsActionOnArrowKeys; /* Returns the item at the given index path. This method can only be used if the delegate implements the item data source methods. The indexPath must be displayable in the browser. */ - (nullable id)itemAtIndexPath:(NSIndexPath *)indexPath API_AVAILABLE(macos(10.6)); /* Returns the item located at 'row' in 'column'. */ - (nullable id)itemAtRow:(NSInteger)row inColumn:(NSInteger)column API_AVAILABLE(macos(10.6)); /* Returns the index path of the item whose children are displayed in the given column. This method can only be used if the delegate implements the item data source methods. */ - (NSIndexPath *)indexPathForColumn:(NSInteger)column API_AVAILABLE(macos(10.6)); /* Returns whether the given item is a leaf item. This method can only be used if the delegate implements the item data source methods. */ - (BOOL)isLeafItem:(nullable id)item API_AVAILABLE(macos(10.6)); /* Updates a particular set of rows in 'column'. For rows that are visible, appropriate dataSource and delegate methods will be called and the row will be redrawn. For browsers that support variable row heights, the row height will not be re-queried from the delegate. This method can only be used if the delegate implements the item data source methods. */ - (void)reloadDataForRowIndexes:(NSIndexSet *)rowIndexes inColumn:(NSInteger)column API_AVAILABLE(macos(10.6)); /* Returns the item that contains all children located in 'column'. In other words, it is the parent item for that column. */ - (nullable id)parentForItemsInColumn:(NSInteger)column API_AVAILABLE(macos(10.6)); /* Scrolls 'row' to be visible within 'column'. 'column' will not be scrolled visible. To scroll 'column' to visible, first call -[browser scrollColumnToVisible:column]. */ - (void)scrollRowToVisible:(NSInteger)row inColumn:(NSInteger)column API_AVAILABLE(macos(10.6)); - (void)setTitle:(NSString *)string ofColumn:(NSInteger)column; - (nullable NSString *)titleOfColumn:(NSInteger)column; @property (copy) NSString *pathSeparator; - (BOOL)setPath:(NSString *)path; - (NSString *)path; - (NSString *)pathToColumn:(NSInteger)column; /* Returns the column and row clicked on to display a context menu. These methods will return -1 when no menu is active. */ @property (readonly) NSInteger clickedColumn API_AVAILABLE(macos(10.6)); @property (readonly) NSInteger clickedRow API_AVAILABLE(macos(10.6)); @property (readonly) NSInteger selectedColumn; /* For the item based browser, selectedCell returns the prepared cell at the selected row in the selected column. */ @property (nullable, readonly, strong) id selectedCell; - (nullable id)selectedCellInColumn:(NSInteger)column; /* For the item based browser, selectedCells returns a copy of all prepared cells in the selected row in the selected column */ @property (nullable, readonly, copy) NSArray<NSCell *> *selectedCells; - (void)selectRow:(NSInteger)row inColumn:(NSInteger)column; - (NSInteger)selectedRowInColumn:(NSInteger)column; /* Returns the index path of the item selected in the browser, or nil if there is no selection. The setter sets the browser's selection to the item at path. Throws an exception if the path is invalid. This method can only be used if the delegate implements the item data source methods. */ @property (nullable, copy) NSIndexPath *selectionIndexPath API_AVAILABLE(macos(10.6)); /* Returns the index paths of all items selected in the browser. The setter sets the browser's selection to the specified index paths. Throws an exception if any of the paths are invalid. This method can only be used if the delegate implements the item data source methods. */ @property (copy) NSArray<NSIndexPath *> *selectionIndexPaths API_AVAILABLE(macos(10.6)); /* Sets the selected row 'indexes' in the matrix located at 'column'. */ - (void)selectRowIndexes:(NSIndexSet *)indexes inColumn:(NSInteger)column API_AVAILABLE(macos(10.5)); /* Returns the selected cell indexes in the matrix located at 'column'. */ - (nullable NSIndexSet *)selectedRowIndexesInColumn:(NSInteger)column API_AVAILABLE(macos(10.5)); - (void)reloadColumn:(NSInteger)column; - (void)validateVisibleColumns; - (void)scrollColumnsRightBy:(NSInteger)shiftAmount; - (void)scrollColumnsLeftBy:(NSInteger)shiftAmount; - (void)scrollColumnToVisible:(NSInteger)column; /* Returns the last loaded column. This is equal to the total number of columns minus 1. When setting. 'column' must be equal to or less than -lastColumn. To add more columns, use -addColumn. */ @property NSInteger lastColumn; /* Adds a column at the end. To remove columns, use -setLastColumn: */ - (void)addColumn; @property (readonly) NSInteger numberOfVisibleColumns; @property (readonly) NSInteger firstVisibleColumn; @property (readonly) NSInteger lastVisibleColumn; - (nullable id)loadedCellAtRow:(NSInteger)row column:(NSInteger)col; - (void)selectAll:(nullable id)sender; - (void)tile; - (void)doClick:(nullable id)sender; - (void)doDoubleClick:(nullable id)sender; - (BOOL)sendAction; - (NSRect)titleFrameOfColumn:(NSInteger)column; - (void)drawTitleOfColumn:(NSInteger)column inRect:(NSRect)rect; @property (readonly) CGFloat titleHeight; - (NSRect)frameOfColumn:(NSInteger)column; - (NSRect)frameOfInsideOfColumn:(NSInteger)column; /* Returns the frame of the row at 'row' / 'column' including the area for the expandable arrow. The returned NSRect is in the NSBrowser coordinate space. */ - (NSRect)frameOfRow:(NSInteger)row inColumn:(NSInteger)column API_AVAILABLE(macos(10.6)); /* Finds the row and column located at 'point', returning YES if both can be found. If a row does not exist at 'point', then -1 is set for the row. If a column does not exist at 'point', then -1 is set for the column. 'point' is expected to be in the NSBrowser's coordinate system. */ - (BOOL)getRow:(nullable NSInteger *)row column:(nullable NSInteger *)column forPoint:(NSPoint)point API_AVAILABLE(macos(10.6)); /* These methods convert between column width (the column's scrollview), and the content width (the matrix in the scrollview). For example, to guarantee that 16 pixels of your browser cell are always visible, call [browser setMinColumnWidth:[browser columnWidthForColumnContentWidth:16]] */ - (CGFloat)columnWidthForColumnContentWidth:(CGFloat)columnContentWidth; - (CGFloat)columnContentWidthForColumnWidth:(CGFloat)columnWidth; /* Default is NSBrowserAutoColumnResizing. This setting is persistent. */ @property NSBrowserColumnResizingType columnResizingType; /* Default is NO. This setting is persistent. This setting only applies to NSBrowserUserColumnResizing type browsers. If YES, the browser defaults to resizing all columns simultaneously, otherwise it defaults to single column resizing. Holding down the option key while resizing switches the type of resizing used. */ @property BOOL prefersAllColumnUserResizing; /* setWidth:ofColumn: does nothing if columnResizingType is NSBrowserAutoColumnResizing. Otherwise, Sets the width of the specified column. Due to binary compatibility constraints, you may still set the default width for new columns by passing a columnIndex of -1; you are encouraged to use -setDefaultColumnWidth: instead. NSBrowserColumnConfigurationDidChangeNotification will be posted (not immediately) if necessary. The receiver will autosave its column configuration if necessary. */ - (void)setWidth:(CGFloat)columnWidth ofColumn:(NSInteger)columnIndex; - (CGFloat)widthOfColumn:(NSInteger)column; /* Get and set the rowHeight. The value must be greater than 0. Calling -setRowHeight: with a non-pixel aligning (fractional) value will be forced to a pixel aligning (integral) value. For variable row height browsers (ones that have the delegate implement -browser:heightOfRow:column:), -rowHeight will be used to draw alternating rows past the last row in each browser column. The default value is 17.0. Note: The rowHeight methods are only valid when using the item delegate methods introduced in Mac OS 10.6. (see NSObject(NSBrowserDelegate)). An exception is thrown if using the older matrix delegate methods */ @property CGFloat rowHeight API_AVAILABLE(macos(10.6)); /* If the delegate implements -browser:heightOfRow:inColumn:, this method immediately re-tiles the browser columns using row heights it provides. */ - (void)noteHeightOfRowsWithIndexesChanged:(NSIndexSet *)indexSet inColumn:(NSInteger)columnIndex API_AVAILABLE(macos(10.6)); /* Persistently sets the default width for new columns which don't otherwise have initial width from either defaults or the delegate. This method replaces -setWidth:ofColumn: with a columnIndex of -1. */ - (void)setDefaultColumnWidth:(CGFloat)columnWidth API_AVAILABLE(macos(10.6)); - (CGFloat)defaultColumnWidth API_AVAILABLE(macos(10.6)); /* Sets the name used to automatically save the receivers column configuration. This setting is persistent. If name is different from the current name, this method also reads in the saved column configuration for the new name and applies the values to the browser. Column configuration is defined as an array of column content widths. One width is saved for each level the user has reached. That is, browser saves column width based on depth, not based on unique paths. To do more complex column persistence, you should register for NSBrowserColumnConfigurationDidChangeNotifications and handle persistence yourself. */ @property (copy) NSBrowserColumnsAutosaveName columnsAutosaveName; /* Removes the column data stored under name from the applications user defaults. */ + (void)removeSavedColumnsWithAutosaveName:(NSBrowserColumnsAutosaveName)name; #pragma mark - #pragma mark **** Drag and Drop Support **** /* The return value indicates whether the receiver can attempt to initiate a drag for the given event. You can override this method and return NO to disallow initiating drags at the location in the given event. By default, the method will return YES if rowIndexes contains at least one item, and each item is enabled. If the equivalent delegate method is present, it will be preferred over this method, and you can safely call this method from your delegate. */ - (BOOL)canDragRowsWithIndexes:(NSIndexSet *)rowIndexes inColumn:(NSInteger)column withEvent:(NSEvent *)event API_AVAILABLE(macos(10.5)); /* This method computes and returns an image to use for dragging. You can override this to return a custom drag image, or call it to get the default drag image from the delegate method. 'rowIndexes' are the indexes of the cells being dragged in matrix 'column'. 'event' is a reference to the mouse down event that began the drag. 'dragImageOffset' is an in/out parameter. This method will be called with dragImageOffset set to NSZeroPoint, but it can be modified to re-position the returned image. A dragImageOffset of NSZeroPoint will cause the image to be centered under the mouse. By default, an image will be created that contain the visible cells within 'rowIndexes'. If the equivalent delegate method is present, it will be preferred over this method, and you can safely call this method from your delegate. */ - (nullable NSImage *)draggingImageForRowsWithIndexes:(NSIndexSet *)rowIndexes inColumn:(NSInteger)column withEvent:(NSEvent *)event offset:(nullable NSPointPointer)dragImageOffset API_AVAILABLE(macos(10.5)); /* Configures the value returned from -draggingSourceOperationMaskForLocal:. An isLocal value of YES indicates that 'mask' applies when the destination object is in the same application. By default, NSDragOperationEvery will be returned. An isLocal value of NO indicates that 'mask' applies when the destination object in an application outside the receiver's application. By default, NSDragOperationNone is returned. NSBrowser will save the values you set for each isLocal setting. You typically will invoke this method, and not override it. */ - (void)setDraggingSourceOperationMask:(NSDragOperation)mask forLocal:(BOOL)isLocal API_AVAILABLE(macos(10.5)); #pragma mark - /* Allow type selection in this NSBrowser. The default for 'allowsTypeSelect' is YES. */ @property BOOL allowsTypeSelect API_AVAILABLE(macos(10.5)); /* The background color to be drawn. By default, it will be set [NSColor whiteColor]. You can use [NSColor clearColor] to make the background transparent. NSBrowser will return YES from isOpaque if the backgroundColor has an alphaComponent of 1.0 and it doesn't have a title, otherwise, it will return NO. Calling setBackgroundColor: will cause all NSMatrix instances have setDrawsBackground:NO be called in order for the NSBrowser's background color to show through. When drawing with the background color, NSCompositeSourceOver is used for the compositing operation. */ @property (strong) NSColor *backgroundColor API_AVAILABLE(macos(10.5)); /* Begins editing the item at the specified path. event may be nil if programatically editing. The cell's contents will be selected if select is YES. Overriding this method will not affect the editing behavior of the browser. */ - (void)editItemAtIndexPath:(NSIndexPath *)indexPath withEvent:(nullable NSEvent *)event select:(BOOL)select API_AVAILABLE(macos(10.6)); @end #pragma mark - #pragma mark **** Notifications **** /* The -object in the NSNotification is the browser whose column sizes need to be persisted. There is no userInfo. */ APPKIT_EXTERN NSNotificationName NSBrowserColumnConfigurationDidChangeNotification; #pragma mark - #pragma mark **** Delegate methods **** @protocol NSBrowserDelegate <NSObject> @optional /* As of Mac OS X 10.6, browser has two different mechanisms for populating columns. You may implement either the matrix or item delegate methods listed below. Many newer features of the browser are only available if you implement the item delegate methods. */ /* Implement one of the following two methods to populate the browser's columns with instances of NSMatrix. Note: the matrix based NSBrowser is deprecated in Mac OS 10.10. New code should use the item based interface. */ /* Called by the browser to determine the number of rows in the given column. The delegate will be called with -browser:willDisplayCell:atRow:column: before displaying each cell, giving it a chance to fill in the NSBrowserCell properties. */ - (NSInteger)browser:(NSBrowser *)sender numberOfRowsInColumn:(NSInteger)column; /* Called by the browser to fill in the matrix with populated NSBrowserCells. */ - (void)browser:(NSBrowser *)sender createRowsForColumn:(NSInteger)column inMatrix:(NSMatrix *)matrix; #pragma mark - /* Alternatively, implement all of the following methods, patterned after NSOutlineView's data source methods. Note that browsers with delegates implementing these methods do not use NSMatrix to populate columns; the implementation is private. The item parameter passed to each of these methods will be nil if the browser is querying about the root of the tree, unless -rootItemForBrowser: is implemented. */ /* Return the number of children of the given item. */ - (NSInteger)browser:(NSBrowser *)browser numberOfChildrenOfItem:(nullable id)item API_AVAILABLE(macos(10.6)); /* Return the indexth child of item. You may expect that index is never equal to or greater to the number of children of item as reported by -browser:numberOfChildrenOfItem:. */ - (id)browser:(NSBrowser *)browser child:(NSInteger)index ofItem:(nullable id)item API_AVAILABLE(macos(10.6)); /* Return whether item should be shown as a leaf item; that is, an item that can not be expanded into another column. Returning NO does not prevent you from returning 0 from -browser:numberOfChildrenOfItem:. */ - (BOOL)browser:(NSBrowser *)browser isLeafItem:(nullable id)item API_AVAILABLE(macos(10.6)); /* Return the object value passed to the cell displaying item. */ - (nullable id)browser:(NSBrowser *)browser objectValueForItem:(nullable id)item API_AVAILABLE(macos(10.6)); /* Optional - Variable Row Heights Implement this method to support varying row heights per column. The height returned by this method should not include intercell spacing and must be greater than zero. NSBrowser may cache the values this method returns. So if you would like to change a row's height make sure to invalidate the row height by calling -noteHeightOfRowsWithIndexesChanged:inColumn:. */ - (CGFloat)browser:(NSBrowser *)browser heightOfRow:(NSInteger)row inColumn:(NSInteger)columnIndex API_AVAILABLE(macos(10.6)); #pragma mark - /* Optional - Alternate root item. By default, NSBrowser uses 'nil' to identify the root item. It can optionally use a different root item provided by this delegate method. To reload the rootItem that was previously set, call -loadColumnZero, and NSBrowser will call -rootItemForBrowser: again. */ - (nullable id)rootItemForBrowser:(NSBrowser *)browser API_AVAILABLE(macos(10.6)); /* Optional - editing support. Implement this method to support editing of browser items. The browser will pass back the object value from the cell displaying item. */ - (void)browser:(NSBrowser *)browser setObjectValue:(nullable id)object forItem:(nullable id)item API_AVAILABLE(macos(10.6)); /* Optional - editing support. Implement this method to control whether the browser may start an editing session for item. */ - (BOOL)browser:(NSBrowser *)browser shouldEditItem:(nullable id)item API_AVAILABLE(macos(10.6)); #pragma mark - /* Optional - display support. Called by the browser before displaying a cell at the given location. */ - (void)browser:(NSBrowser *)sender willDisplayCell:(id)cell atRow:(NSInteger)row column:(NSInteger)column; - (nullable NSString *)browser:(NSBrowser *)sender titleOfColumn:(NSInteger)column; /* Called by the browser when selecting cells by title, either from -setPath:, or when recomputing the selection after -reloadColumn:. Return NO if a matching cell could not be found. */ - (BOOL)browser:(NSBrowser *)sender selectCellWithString:(NSString *)title inColumn:(NSInteger)column; /* Called by the browser when selecting a cell using -selectRow:inColumn:. Return NO if a matching cell could not be found. */ - (BOOL)browser:(NSBrowser *)sender selectRow:(NSInteger)row inColumn:(NSInteger)column; /* Called by the browser from -validateVisibleColumns to determine whether the currently-displayed columns are valid. Returning NO will prompt the browser to call -reloadColumn:. */ - (BOOL)browser:(NSBrowser *)sender isColumnValid:(NSInteger)column; - (void)browserWillScroll:(NSBrowser *)sender; - (void)browserDidScroll:(NSBrowser *)sender; /* * Delegate methods used by resizable column browsers. */ /* Optional for browsers with resize type NSBrowserNoColumnResizing, and NSBrowserUserColumnResizing. This method is used for both constraining column resize, and determining a columns initial size. If 'forUserResize' is NO, this method should return the initial width for a newly added column. If 'forUserResize' is YES, this method can be used to constrain resizing on a per-column basis. (Currently per-column constraining is only implemented for single column resize). */ - (CGFloat)browser:(NSBrowser *)browser shouldSizeColumn:(NSInteger)columnIndex forUserResize:(BOOL)forUserResize toWidth:(CGFloat)suggestedWidth; /* Optional for browsers with resize type NSBrowserUserColumnResizing only. This method returns the "ideal" width for a column. This method is used when performing a "right-size-each" or "right-size-one" operation. If columnIndex is -1, the result is used for a "right-size-all-simultaneous" operation. In this case, you should return a best uniform right size for all column (every column will be set to this size). You can opt out on a per column basis by returning -1 for that column. It is assumed that the implementation may be expensive, so it will be called only when necessary. (See documentation for definitions of right-size one/each/all). */ - (CGFloat)browser:(NSBrowser *)browser sizeToFitWidthOfColumn:(NSInteger)columnIndex; /* Optional and used for browsers with resize type NSBrowserUserColumnResizing only. This method is intended to be used by clients wishing to implement their own column width persistence. It is called when the width of any browser columns has changed. User column resizing will cause a single notification to be posted when the user is finished resizing. (See NSBrowserColumnConfigurationDidChangeNotification for more information.) */ - (void)browserColumnConfigurationDidChange:(NSNotification *)notification; /* Optional - Expansion ToolTip support. Implement this method and return NO to prevent an expansion tooltip from appearing for a particular cell at 'row' in 'column'. See NSCell.h for more information on expansion tool tips. */ - (BOOL)browser:(NSBrowser *)browser shouldShowCellExpansionForRow:(NSInteger)row column:(NSInteger)column API_AVAILABLE(macos(10.5)); #pragma mark - #pragma mark **** Optional Drag and Drop Support Methods **** #pragma mark ** Dragging Source Methods ** /* This method is called after it has been determined that a drag should begin, but before the drag has been started. To refuse the drag, return NO. To start a drag, declared the pasteboard types that you support with [pasteboard declareTypes:owner:], place your data on the pasteboard, and return YES from the method. The drag image and other drag related information will be set up and provided by the view once this call returns with YES. You need to implement this method for your browser to be a drag source. */ - (BOOL)browser:(NSBrowser *)browser writeRowsWithIndexes:(NSIndexSet *)rowIndexes inColumn:(NSInteger)column toPasteboard:(NSPasteboard *)pasteboard API_AVAILABLE(macos(10.5)); /* The delegate can support file promise drags by adding NSFilesPromisePboardType to the pasteboard in browser:writeRowsWithIndexes:inColumn:toPasteboard:. NSBrowser implements -namesOfPromisedFilesDroppedAtDestination: to return the results of this data source method. This method should returns an array of filenames for the created files (filenames only, not full paths). The URL represents the drop location. For more information on file promise dragging, see documentation on the NSDraggingSource protocol and -namesOfPromisedFilesDroppedAtDestination:. You do not need to implement this method for your browser to be a drag source. */ - (NSArray<NSString *> *)browser:(NSBrowser *)browser namesOfPromisedFilesDroppedAtDestination:(NSURL *)dropDestination forDraggedRowsWithIndexes:(NSIndexSet *)rowIndexes inColumn:(NSInteger)column API_DEPRECATED("Use NSFilePromiseReceiver objects instead", macos(10.5,10.13)); /* The delegate can control if some particular rows can be dragged or not for a particular event. You do not need to implement this method for your browser to be a drag source. */ - (BOOL)browser:(NSBrowser *)browser canDragRowsWithIndexes:(NSIndexSet *)rowIndexes inColumn:(NSInteger)column withEvent:(NSEvent *)event API_AVAILABLE(macos(10.5)); /* Allows the delegate to compute a dragging image for the particular cells being dragged. 'rowIndexes' are the indexes of the cells being dragged in the matrix in 'column'. 'event' is a reference to the mouse down event that began the drag. 'dragImageOffset' is an in/out parameter. This method will be called with dragImageOffset set to NSZeroPoint, but it can be modified to re-position the returned image. A dragImageOffset of NSZeroPoint will cause the image to be centered under the mouse. You can safely call [browser dragImageForRowsWithIndexes:inColumn:withEvent:offset:] from inside this method. You do not need to implement this method for your browser to be a drag source. You can safely call the corresponding NSBrowser method. */ - (nullable NSImage *)browser:(NSBrowser *)browser draggingImageForRowsWithIndexes:(NSIndexSet *)rowIndexes inColumn:(NSInteger)column withEvent:(NSEvent *)event offset:(NSPointPointer)dragImageOffset API_AVAILABLE(macos(10.5)); #pragma mark ** Dragging Destination Methods ** /* This method is used by the browser to determine a valid drop target. Based on the mouse position, the browser will suggest a proposed row, column and dropOperation. These values are in/out parameters and can be changed by the delegate to retarget the drop operation. The dropOperation suggested will be NSBrowserDropOn if the drag location is closer to the middle of a row. If it is closer to being between two rows, it will be NSBrowserDropAbove, indicating a drop above 'row' and below 'row - 1'. This method must return a value that indicates which dragging operation the data source will perform. It must return something other than NSDragOperationNone to accept the drop. To retarget a drop and specify a drop on row 2 (with the first visual row being row 0), one would set *row=2, and set *dropOperation=NSBrowserDropOn. To specify a drop below the last row, one would specify *row=[browser numberOfRows], and *dropOperation=NSBrowserDropAbove. To specify a drop on the entire column, you will specify *row=-1, and *dropOperation=NSBrowserDropOn. To specify a drop between rows 2 and 3, one would set *row=3 and *dropOperation=NSBrowserDropAbove. Note: to receive drag messages, you must first call [NSBrowser registerForDraggedTypes:] for the drag types you want to support (typically this is done in awakeFromNib). You must implement this method for your browser to be a drag destination. */ - (NSDragOperation)browser:(NSBrowser *)browser validateDrop:(id <NSDraggingInfo>)info proposedRow:(NSInteger *)row column:(NSInteger *)column dropOperation:(NSBrowserDropOperation *)dropOperation API_AVAILABLE(macos(10.5)); /* This method is called when the mouse is released over a browser that previously decided to allow a drop via the above validateDrop method. The delegate should incorporate the data from the dragging pasteboard at this time. You must implement this method for your browser to be a drag destination. */ - (BOOL)browser:(NSBrowser *)browser acceptDrop:(id <NSDraggingInfo>)info atRow:(NSInteger)row column:(NSInteger)column dropOperation:(NSBrowserDropOperation)dropOperation API_AVAILABLE(macos(10.5)); #pragma mark - #pragma mark **** Type Select Support **** /* Optional - Type select support Implement this method if you want to control the string that is used for type selection. You may want to change what is searched for based on what is displayed, or simply return an empty string for that row and/or column to not be searched. You can also return 'nil' if the cell does not contain any text. By default, all cells with text in them are searched. The default value when this delegate method is not implemented is the stringValue for the cell at that location. */ - (nullable NSString *)browser:(NSBrowser *)browser typeSelectStringForRow:(NSInteger)row inColumn:(NSInteger)column API_AVAILABLE(macos(10.5)); /* Optional - Type select support Implement this method if you would like to prevent a type select from happening based on the current event and current search string. Generally, this will be called from keyDown: and the event will be a key event. The search string will be nil if no type select has began. */ - (BOOL)browser:(NSBrowser *)browser shouldTypeSelectForEvent:(NSEvent *)event withCurrentSearchString:(nullable NSString *)searchString API_AVAILABLE(macos(10.5)); /* Optional - Type select support Implement this method if you want to control how type selection works. Return the first row that matches searchString from within the range of startRow to endRow. It is possible for endRow to be less than startRow if the search will wrap. Return -1 when there is no match. Include startRow as a possible match, but do not include endRow. It is not necessary to implement this method in order to support type select. */ - (NSInteger)browser:(NSBrowser *)browser nextTypeSelectMatchFromRow:(NSInteger)startRow toRow:(NSInteger)endRow inColumn:(NSInteger)column forString:(nullable NSString *)searchString API_AVAILABLE(macos(10.5)); #pragma mark - /* Optional - Preview column support Implement this method to provide a preview column for leaf items. Return nil to suppress the preview column. The controller's representedObject will be set to the browser's selected leaf item. This method is only called if the delegate implements the item data source methods. */ - (nullable NSViewController *)browser:(NSBrowser *)browser previewViewControllerForLeafItem:(id)item API_AVAILABLE(macos(10.6)); /* Optional - Column header support Implement this method to provide a header view for columns. Return nil to omit the header view. The controller's representedObject will be set to the column's item. This method is only called if the delegate implements the item data source methods. */ - (nullable NSViewController *)browser:(NSBrowser *)browser headerViewControllerForItem:(nullable id)item API_AVAILABLE(macos(10.6)); /* Optional - Notification when the lastColumn changes. */ - (void)browser:(NSBrowser *)browser didChangeLastColumn:(NSInteger)oldLastColumn toColumn:(NSInteger)column; /* Optional - Return a set of new indexes to select when the user changes the selection with the keyboard or mouse. This method may be called multiple times with one new index added to the existing selection to find out if a particular index can be selected when the user is extending the selection with the keyboard or mouse. Note that 'proposedSelectionIndexes' will contain the entire newly suggested selection, and you can return the exsiting selection to avoid changing the selection. This method only works for item-based NSBrowsers. */ - (NSIndexSet *)browser:(NSBrowser *)browser selectionIndexesForProposedSelection:(NSIndexSet *)proposedSelectionIndexes inColumn:(NSInteger)column API_AVAILABLE(macos(10.6)); @end #pragma mark - #pragma mark **** Deprecated Methods **** @interface NSBrowser(NSDeprecated) /* This property has been non-functional since before 10.0. */ - (void)setAcceptsArrowKeys:(BOOL)flag API_DEPRECATED("", macos(10.0,10.6)); - (BOOL)acceptsArrowKeys API_DEPRECATED("", macos(10.0,10.6)); /* Use of -displayColumn: is deprecated in 10.3. Use setNeedsDisplayInRect: instead. */ - (void)displayColumn:(NSInteger)column API_DEPRECATED("", macos(10.0,10.3)); /* Use of -displayAllColumns; is deprecated in 10.3. Use setNeedsDisplay/InRect: instead. */ - (void)displayAllColumns API_DEPRECATED("", macos(10.0,10.3)); /* Use of -scrollViaScroller: is deprecated in 10.3. Continuous scrolling no longer requires this functionality. */ - (void)scrollViaScroller:(null_unspecified NSScroller *)sender API_DEPRECATED("", macos(10.0,10.3)); /* Use of -updateScroller is deprecated in 10.3. Continuous scrolling no longer requires this functionality. */ - (void)updateScroller API_DEPRECATED("", macos(10.0,10.3)); /* Matrix based NSBrowser is deprecated in 10.10. */ - (void)setMatrixClass:(Class)factoryId API_DEPRECATED("Use the item based NSBrowser instead", macos(10.0,10.10)); - (Class)matrixClass API_DEPRECATED("Use the item based NSBrowser instead", macos(10.0,10.10)); - (NSInteger)columnOfMatrix:(NSMatrix *)matrix API_DEPRECATED("Use the item based NSBrowser instead", macos(10.0,10.10)); - (nullable NSMatrix *)matrixInColumn:(NSInteger)column API_DEPRECATED("Use the item based NSBrowser instead", macos(10.0,10.10)); @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSComboBoxCell.h
/* NSComboBoxCell.h Application Kit Copyright (c) 1996-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSArray.h> #import <AppKit/NSTextFieldCell.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSButtonCell, NSTableView; @protocol NSComboBoxCellDataSource; @interface NSComboBoxCell : NSTextFieldCell @property BOOL hasVerticalScroller; @property NSSize intercellSpacing; @property CGFloat itemHeight; @property NSInteger numberOfVisibleItems; @property (getter=isButtonBordered) BOOL buttonBordered; - (void)reloadData; - (void)noteNumberOfItemsChanged; @property BOOL usesDataSource; - (void)scrollItemAtIndexToTop:(NSInteger)index; - (void)scrollItemAtIndexToVisible:(NSInteger)index; - (void)selectItemAtIndex:(NSInteger)index; - (void)deselectItemAtIndex:(NSInteger)index; @property (readonly) NSInteger indexOfSelectedItem; @property (readonly) NSInteger numberOfItems; @property BOOL completes; - (nullable NSString *)completedString:(NSString *)string; /* These two methods can only be used when usesDataSource is YES */ @property (nullable, assign) id<NSComboBoxCellDataSource> dataSource; /* These methods can only be used when usesDataSource is NO */ - (void)addItemWithObjectValue:(id)object; - (void)addItemsWithObjectValues:(NSArray *)objects; - (void)insertItemWithObjectValue:(id)object atIndex:(NSInteger)index; - (void)removeItemWithObjectValue:(id)object; - (void)removeItemAtIndex:(NSInteger)index; - (void)removeAllItems; - (void)selectItemWithObjectValue:(nullable id)object; - (id)itemObjectValueAtIndex:(NSInteger)index; @property (nullable, readonly, strong) id objectValueOfSelectedItem; - (NSInteger)indexOfItemWithObjectValue:(id)object; @property (readonly, copy) NSArray *objectValues; @end @protocol NSComboBoxCellDataSource <NSObject> @optional /* These two methods are required when not using bindings */ - (NSInteger)numberOfItemsInComboBoxCell:(NSComboBoxCell *)comboBoxCell; - (id)comboBoxCell:(NSComboBoxCell *)comboBoxCell objectValueForItemAtIndex:(NSInteger)index; - (NSUInteger)comboBoxCell:(NSComboBoxCell *)comboBoxCell indexOfItemWithStringValue:(NSString *)string; - (nullable NSString *)comboBoxCell:(NSComboBoxCell *)comboBoxCell completedString:(NSString *)uncompletedString; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSFontCollection.h
/* NSFontCollection.h Application Kit Copyright (c) 2010-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSArray.h> #import <Foundation/NSDictionary.h> #import <Foundation/NSError.h> #import <Foundation/NSLocale.h> #import <Foundation/NSString.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSFontDescriptor; /* Named collection visibility */ typedef NS_OPTIONS(NSUInteger, NSFontCollectionVisibility) { // Visible within this process, not persistent NSFontCollectionVisibilityProcess = (1UL << 0), // Visible to all processes, stored persistently NSFontCollectionVisibilityUser = (1UL << 1), // Visible to all users, stored persistently NSFontCollectionVisibilityComputer = (1UL << 2) }; /* Matching options */ typedef NSString * NSFontCollectionMatchingOptionKey NS_TYPED_ENUM; // NSNumber BOOL specifying whether disabled fonts should be included in the list of matching descriptors (YES) or not (NO). When unspecified, CoreText assumes NO. This option is intended only for font management applications. This option will make descriptor matching slower. APPKIT_EXTERN NSFontCollectionMatchingOptionKey const NSFontCollectionIncludeDisabledFontsOption API_AVAILABLE(macos(10.7)); // NSNumber BOOL controlling whether more than one copy of a font with the same PostScript name should be included in the list of matching descriptors APPKIT_EXTERN NSFontCollectionMatchingOptionKey const NSFontCollectionRemoveDuplicatesOption API_AVAILABLE(macos(10.7)); // NSNumber BOOL specifying that auto-activation should not be used to find missing fonts APPKIT_EXTERN NSFontCollectionMatchingOptionKey const NSFontCollectionDisallowAutoActivationOption API_AVAILABLE(macos(10.7)); typedef NSString * NSFontCollectionName NS_TYPED_EXTENSIBLE_ENUM; /* NSFontCollection - immutable font list */ API_AVAILABLE(macos(10.7)) @interface NSFontCollection : NSObject <NSCopying, NSMutableCopying, NSCoding> /* Creating collections */ // Return a font collection matching the given descriptors + (NSFontCollection *)fontCollectionWithDescriptors:(NSArray<NSFontDescriptor *> *)queryDescriptors; // Return a font collection matching all registered fonts @property (class, readonly, copy) NSFontCollection *fontCollectionWithAllAvailableDescriptors; // Return a collection with fonts for the specified locale. + (nullable NSFontCollection *)fontCollectionWithLocale:(NSLocale *)locale; /* Naming collections These methods allow you to associate a name with a collection. Named collections are shown by user interfaces such as NSFontPanel. Set the visibility to NSFontCollectionVisibilityProcess if you wish to make the collection visible to the current process, but not to other processes. NSFontCollectionVisibilityUser will archive the collection to persistent storage and make it visible to other processes. NSFontCollectionVisibilityComputer is like NSFontCollectionVisibilityUser but makes the collection visible to all users of the computer. There is no association between the the NSFontCollection instance and the name from which it was created. When you change the collection, you must show it again to see the changes reflected on disk or in font UI. Errors returned from these methods are NSFileManager errors. */ // Make the font collection visible by giving it a name + (BOOL)showFontCollection:(NSFontCollection *)collection withName:(NSFontCollectionName)name visibility:(NSFontCollectionVisibility)visibility error:(NSError **)error; // Remove font collection from view (for a persistent collection, deletes the named font collection from disk) + (BOOL)hideFontCollectionWithName:(NSFontCollectionName)name visibility:(NSFontCollectionVisibility)visibility error:(NSError **)error; // Rename named collection + (BOOL)renameFontCollectionWithName:(NSFontCollectionName)oldName visibility:(NSFontCollectionVisibility)visibility toName:(NSFontCollectionName)newName error:(NSError **)outError; // Named collections visible to this process (array of NSString) @property (class, readonly, copy) NSArray<NSFontCollectionName> *allFontCollectionNames; // Return the specified named collection + (nullable NSFontCollection *)fontCollectionWithName:(NSFontCollectionName)name; // Return the specified named collection with specified visibility + (nullable NSFontCollection *)fontCollectionWithName:(NSFontCollectionName)name visibility:(NSFontCollectionVisibility)visibility; /* Descriptor matching */ // The list of NSFontDescriptors to match. The matching descriptors are produced by matching this list of descriptors. @property (nullable, readonly, copy) NSArray<NSFontDescriptor *> *queryDescriptors; // A separate list of query descriptors. The matching results from this list are excluded from matchingDescriptors. @property (nullable, readonly, copy) NSArray<NSFontDescriptor *> *exclusionDescriptors; // Returns a list of descriptors matching the logical descriptors. // These are determined at runtime as (matching queryDescriptors - matching exclusionDescriptors). // options may be nil or a dictionary containing any combination of {NSFontCollectionIncludeDisabledFontsOption, NSFontCollectionRemoveDuplicatesOption, NSFontCollectionDisallowAutoActivationOption}. @property (nullable, readonly, copy) NSArray<NSFontDescriptor *> *matchingDescriptors; - (nullable NSArray<NSFontDescriptor *> *)matchingDescriptorsWithOptions:(nullable NSDictionary<NSFontCollectionMatchingOptionKey, NSNumber *> *)options; // Return a list of matching descriptors for a particular family - (nullable NSArray<NSFontDescriptor *> *)matchingDescriptorsForFamily:(NSString *)family; - (nullable NSArray<NSFontDescriptor *> *)matchingDescriptorsForFamily:(NSString *)family options:(nullable NSDictionary<NSFontCollectionMatchingOptionKey, NSNumber *> *)options; @end /* NSMutableFontCollection - mutable font list */ API_AVAILABLE(macos(10.7)) @interface NSMutableFontCollection : NSFontCollection // Return a font collection matching the given descriptors + (NSMutableFontCollection *)fontCollectionWithDescriptors:(NSArray<NSFontDescriptor *> *)queryDescriptors; // Return a font collection matching all registered fonts @property (class, readonly, copy) NSMutableFontCollection *fontCollectionWithAllAvailableDescriptors; // Return a collection with fonts for the specified locale. + (NSMutableFontCollection *)fontCollectionWithLocale:(NSLocale *)locale; // Return the specified named collection + (nullable NSMutableFontCollection *)fontCollectionWithName:(NSFontCollectionName)name; // Return the specified named collection with specified visibility + (nullable NSMutableFontCollection *)fontCollectionWithName:(NSFontCollectionName)name visibility:(NSFontCollectionVisibility)visibility; @property (nullable, copy) NSArray<NSFontDescriptor *> *queryDescriptors; @property (nullable, copy) NSArray<NSFontDescriptor *> *exclusionDescriptors; // Edit the query and exclusion arrays to ensure that the results of querying the given descriptors are included in the matching descriptors. - (void)addQueryForDescriptors:(NSArray<NSFontDescriptor *> *)descriptors; // Edit the query and exclusion arrays to ensure that the results of querying the given descriptors are excluded from the matching descriptors. - (void)removeQueryForDescriptors:(NSArray<NSFontDescriptor *> *)descriptors; @end /* NSFontCollectionDidChangeNotification This notification is sent to the local notification center when a named, persistent collection is modified. User info key NSFontCollectionNotificationAction describes the nature of the change. */ APPKIT_EXTERN NSNotificationName const NSFontCollectionDidChangeNotification API_AVAILABLE(macos(10.7)); // Notification user info dictionary keys typedef NSString * NSFontCollectionUserInfoKey NS_TYPED_ENUM; APPKIT_EXTERN NSFontCollectionUserInfoKey const NSFontCollectionActionKey API_AVAILABLE(macos(10.7)); // NSString: action taken APPKIT_EXTERN NSFontCollectionUserInfoKey const NSFontCollectionNameKey API_AVAILABLE(macos(10.7)); // NSString: current name of affected collection APPKIT_EXTERN NSFontCollectionUserInfoKey const NSFontCollectionOldNameKey API_AVAILABLE(macos(10.7)); // NSString: for NSFontCollectionWasRenamed, previous name of affected collection APPKIT_EXTERN NSFontCollectionUserInfoKey const NSFontCollectionVisibilityKey API_AVAILABLE(macos(10.7)); // NSNumber: visibility of affected collection // Values for NSFontCollectionAction typedef NSString * NSFontCollectionActionTypeKey NS_TYPED_ENUM; APPKIT_EXTERN NSFontCollectionActionTypeKey const NSFontCollectionWasShown API_AVAILABLE(macos(10.7)); APPKIT_EXTERN NSFontCollectionActionTypeKey const NSFontCollectionWasHidden API_AVAILABLE(macos(10.7)); APPKIT_EXTERN NSFontCollectionActionTypeKey const NSFontCollectionWasRenamed API_AVAILABLE(macos(10.7)); /* Standard named collections Standard mutable collection names -- these names are included in the list of allFontCollectionNames -- they have special meaning to the Cocoa font system and should not be hidden or renamed. */ APPKIT_EXTERN NSFontCollectionName const NSFontCollectionAllFonts API_AVAILABLE(macos(10.7)); // All fonts in the system APPKIT_EXTERN NSFontCollectionName const NSFontCollectionUser API_AVAILABLE(macos(10.7)); // Per-user unmodifiable collection APPKIT_EXTERN NSFontCollectionName const NSFontCollectionFavorites API_AVAILABLE(macos(10.7)); // Collection of the user's preferred font descriptors APPKIT_EXTERN NSFontCollectionName const NSFontCollectionRecentlyUsed API_AVAILABLE(macos(10.7)); // Collection automatically maintained by NSFontManager API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSMediaLibraryBrowserController.h
/* NSMediaLibraryBrowserController.h Application Kit Copyright (c) 2012-2021, Apple Inc. All rights reserved. */ /* NSMediaLibraryBrowserController An instance of an NSMediaLibraryBrowserController configures and displays a Media Library Browser Panel. A User can drag and drop media files from the Media Library Browser into views in their application. */ /* typedef NSMediaLibrary: NSMediaLibrary enums are masks used to configure a Media Library Browser to display specific types of media. Combined masks are not yet supported. In other words, only one non zero mask value is supported at a time. If masks are combined, the lowest mask value will be used. */ #import <Foundation/NSObject.h> #import <Foundation/NSGeometry.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST typedef NS_OPTIONS(NSUInteger, NSMediaLibrary) { NSMediaLibraryAudio = 1UL << 0, NSMediaLibraryImage = 1UL << 1, NSMediaLibraryMovie = 1UL << 2 } API_AVAILABLE(macos(10.9)); /* class: NSMediaLibraryBrowserController configures and displays a Media Library Browser Panel. discussion: NSMediaLibraryBrowserController is not an NSPanel! It has NSPanel like methods to remotely control the Media Library Browser. Clients have no direct programmatic access to the panel displaying the Media Library Browser. */ API_AVAILABLE(macos(10.9)) @interface NSMediaLibraryBrowserController : NSObject @property (getter=isVisible) BOOL visible; @property NSRect frame; @property NSMediaLibrary mediaLibraries; @property (class, readonly, strong) NSMediaLibraryBrowserController *sharedMediaLibraryBrowserController; - (IBAction)togglePanel:(nullable id)sender; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSTextList.h
#if !__has_include(<UIFoundation/NSTextList.h>) /* NSTextList.h Copyright (c) 2004-2021, Apple Inc. All rights reserved. Class to represent text lists. */ #import <Foundation/NSObject.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN #if !TARGET_OS_IPHONE typedef NSString * NSTextListMarkerFormat NS_TYPED_EXTENSIBLE_ENUM; APPKIT_EXTERN NSTextListMarkerFormat const NSTextListMarkerBox API_AVAILABLE(macos(10.13)); APPKIT_EXTERN NSTextListMarkerFormat const NSTextListMarkerCheck API_AVAILABLE(macos(10.13)); APPKIT_EXTERN NSTextListMarkerFormat const NSTextListMarkerCircle API_AVAILABLE(macos(10.13)); APPKIT_EXTERN NSTextListMarkerFormat const NSTextListMarkerDiamond API_AVAILABLE(macos(10.13)); APPKIT_EXTERN NSTextListMarkerFormat const NSTextListMarkerDisc API_AVAILABLE(macos(10.13)); APPKIT_EXTERN NSTextListMarkerFormat const NSTextListMarkerHyphen API_AVAILABLE(macos(10.13)); APPKIT_EXTERN NSTextListMarkerFormat const NSTextListMarkerSquare API_AVAILABLE(macos(10.13)); APPKIT_EXTERN NSTextListMarkerFormat const NSTextListMarkerLowercaseHexadecimal API_AVAILABLE(macos(10.13)); APPKIT_EXTERN NSTextListMarkerFormat const NSTextListMarkerUppercaseHexadecimal API_AVAILABLE(macos(10.13)); APPKIT_EXTERN NSTextListMarkerFormat const NSTextListMarkerOctal API_AVAILABLE(macos(10.13)); APPKIT_EXTERN NSTextListMarkerFormat const NSTextListMarkerLowercaseAlpha API_AVAILABLE(macos(10.13)); APPKIT_EXTERN NSTextListMarkerFormat const NSTextListMarkerUppercaseAlpha API_AVAILABLE(macos(10.13)); APPKIT_EXTERN NSTextListMarkerFormat const NSTextListMarkerLowercaseLatin API_AVAILABLE(macos(10.13)); APPKIT_EXTERN NSTextListMarkerFormat const NSTextListMarkerUppercaseLatin API_AVAILABLE(macos(10.13)); APPKIT_EXTERN NSTextListMarkerFormat const NSTextListMarkerLowercaseRoman API_AVAILABLE(macos(10.13)); APPKIT_EXTERN NSTextListMarkerFormat const NSTextListMarkerUppercaseRoman API_AVAILABLE(macos(10.13)); APPKIT_EXTERN NSTextListMarkerFormat const NSTextListMarkerDecimal API_AVAILABLE(macos(10.13)); typedef NS_OPTIONS(NSUInteger, NSTextListOptions) { NSTextListPrependEnclosingMarker = (1 << 0) }; @interface NSTextList : NSObject <NSSecureCoding, NSCopying> - (instancetype)initWithMarkerFormat:(NSTextListMarkerFormat)format options:(NSUInteger)mask; @property (readonly, copy) NSTextListMarkerFormat markerFormat; @property (readonly) NSTextListOptions listOptions; - (NSString *)markerForItemNumber:(NSInteger)itemNum; @property NSInteger startingItemNumber API_AVAILABLE(macos(10.6)); @end #endif // !TARGET_OS_IPHONE NS_ASSUME_NONNULL_END #else #import <UIFoundation/NSTextList.h> #endif
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSSpellChecker.h
/* NSSpellChecker.h Application Kit Copyright (c) 1990-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSObject.h> #import <Foundation/NSArray.h> #import <Foundation/NSDictionary.h> #import <Foundation/NSRange.h> #import <Foundation/NSGeometry.h> #import <Foundation/NSTextCheckingResult.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSString, NSOrthography, NSPanel, NSView, NSViewController, NSMenu; /* Optional keys that may be used in the options dictionary with checkString:range:types:options:inSpellDocumentWithTag:orthography:wordCount:, requestCheckingOfString:range:types:options:inSpellDocumentWithTag:completionHandler:, and menuForResult:string:options:atLocation:inView:. */ typedef NSString * NSTextCheckingOptionKey NS_TYPED_ENUM; APPKIT_EXTERN NSTextCheckingOptionKey NSTextCheckingOrthographyKey API_AVAILABLE(macos(10.6)); // NSOrthography indicating an orthography to be used as a starting point for orthography checking, or as the orthography if orthography checking is not enabled APPKIT_EXTERN NSTextCheckingOptionKey NSTextCheckingQuotesKey API_AVAILABLE(macos(10.6)); // NSArray containing four strings to be used with NSTextCheckingTypeQuote (opening double quote, closing double quote, opening single quote, and closing single quote in that order); if not specified, values will be taken from user's preferences APPKIT_EXTERN NSTextCheckingOptionKey NSTextCheckingReplacementsKey API_AVAILABLE(macos(10.6)); // NSDictionary containing replacements to be used with NSTextCheckingTypeReplacement; if not specified, values will be taken from user's preferences APPKIT_EXTERN NSTextCheckingOptionKey NSTextCheckingReferenceDateKey API_AVAILABLE(macos(10.6)); // NSDate to be associated with the document, used as a referent for relative dates; if not specified, the current date will be used APPKIT_EXTERN NSTextCheckingOptionKey NSTextCheckingReferenceTimeZoneKey API_AVAILABLE(macos(10.6)); // NSTimeZone to be associated with the document, used as a referent for dates without time zones; if not specified, the current time zone will be used APPKIT_EXTERN NSTextCheckingOptionKey NSTextCheckingDocumentURLKey API_AVAILABLE(macos(10.6)); // NSURL to be associated with the document APPKIT_EXTERN NSTextCheckingOptionKey NSTextCheckingDocumentTitleKey API_AVAILABLE(macos(10.6)); // NSString, a title to be associated with the document APPKIT_EXTERN NSTextCheckingOptionKey NSTextCheckingDocumentAuthorKey API_AVAILABLE(macos(10.6)); // NSString, name of an author to be associated with the document APPKIT_EXTERN NSTextCheckingOptionKey NSTextCheckingRegularExpressionsKey API_AVAILABLE(macos(10.7)); // NSArray of NSRegularExpressions to be matched in the text of the document APPKIT_EXTERN NSTextCheckingOptionKey NSTextCheckingSelectedRangeKey API_AVAILABLE(macos(10.12)); // NSValue containing NSRange, should be the portion of the selected range intersecting the string being checked, or a zero-length range if there is an insertion point in or adjacent to the string being checked, or NSMakeRange(NSNotFound, 0) if the selection is entirely outside of the string being checked. /* The NSSpellChecker object is used by a client (e.g. a document in an application) to spell-check a given NSString. There is only one NSSpellChecker instance per application (since spell-checking is interactive and you only have one mouse and one keyboard). The string being spell-checked need only be valid for the duration of the call to checkSpellingOfString:... or countWordsInString:. The usual usage of this is to implement a checkSpelling: method in an object that has text to check, then, upon receiving checkSpelling:, the object calls [[NSSpellChecker sharedInstance] checkSpellingOfString:...] with an NSString object consisting of the text that should be checked. The caller is responsible for selecting the misspelled word that is found and for updating the panel UI if desired with the updateSpellPanelWithMisspelledWord: method. */ @interface NSSpellChecker : NSObject /* Only one per application. */ @property (class, readonly, strong) NSSpellChecker *sharedSpellChecker; @property (class, readonly) BOOL sharedSpellCheckerExists; /* Returns a guaranteed unique tag to use as the spell document tag for a document. You should use this method to generate tags, if possible, to avoid collisions with other objects that can be spell checked. */ + (NSInteger)uniqueSpellDocumentTag; /* Initiates a spell-check of a string. Returns the range of the first misspelled word (and optionally the wordCount by reference). */ - (NSRange)checkSpellingOfString:(NSString *)stringToCheck startingAt:(NSInteger)startingOffset language:(nullable NSString *)language wrap:(BOOL)wrapFlag inSpellDocumentWithTag:(NSInteger)tag wordCount:(nullable NSInteger *)wordCount; - (NSRange)checkSpellingOfString:(NSString *)stringToCheck startingAt:(NSInteger)startingOffset; /* Just counts the words without checking spelling. Returns -1 if counting words isn't supported by the spell server selected. */ - (NSInteger)countWordsInString:(NSString *)stringToCount language:(nullable NSString *)language; /* Initiates a grammar-check of a string. Returns the range of the first flagged sentence (or similar grammatical unit), and optionally an array of dictionaries describing details within this sentence. Keys in the details dictionaries are described in Foundation/NSSpellServer.h. */ - (NSRange)checkGrammarOfString:(NSString *)stringToCheck startingAt:(NSInteger)startingOffset language:(nullable NSString *)language wrap:(BOOL)wrapFlag inSpellDocumentWithTag:(NSInteger)tag details:(NSArray<NSDictionary<NSString *, id> *> * _Nullable * _Nullable)details API_AVAILABLE(macos(10.5)); /* Requests unified text checking for the given range of the given string. The checkingTypes should be a bitmask of checking types from NSTextCheckingResult.h, describing which types of checking are desired. The options dictionary allows clients to pass in options for certain types of checking. The orthography and wordCount arguments will return by reference these two attributes of the range as a whole, while the return value is an array of NSTextCheckingResult objects describing particular items found during checking and their individual ranges, sorted by range origin, then range end, then result type. */ - (NSArray<NSTextCheckingResult *> *)checkString:(NSString *)stringToCheck range:(NSRange)range types:(NSTextCheckingTypes)checkingTypes options:(nullable NSDictionary<NSTextCheckingOptionKey, id> *)options inSpellDocumentWithTag:(NSInteger)tag orthography:(NSOrthography * _Nullable * _Nullable)orthography wordCount:(nullable NSInteger *)wordCount API_AVAILABLE(macos(10.6)); /* Requests unified text checking in the background. The return value is a monotonically increasing sequence number that can be used to keep track of requests in flight. The completion handler will be called (in an arbitrary context) when results are available, with the sequence number and results. The arguments and results are otherwise the same as for the previous method. */ - (NSInteger)requestCheckingOfString:(NSString *)stringToCheck range:(NSRange)range types:(NSTextCheckingTypes)checkingTypes options:(nullable NSDictionary<NSTextCheckingOptionKey, id> *)options inSpellDocumentWithTag:(NSInteger)tag completionHandler:(void (^ _Nullable)(NSInteger sequenceNumber, NSArray<NSTextCheckingResult *> *results, NSOrthography *orthography, NSInteger wordCount))completionHandler API_AVAILABLE(macos(10.6)); /* Requests candidate generation in the background. The return value is a monotonically increasing sequence number that can be used to keep track of requests in flight. The completion handler will be called (in an arbitrary context) when results are available, with the sequence number and results. */ - (NSInteger)requestCandidatesForSelectedRange:(NSRange)selectedRange inString:(NSString *)stringToCheck types:(NSTextCheckingTypes)checkingTypes options:(nullable NSDictionary<NSTextCheckingOptionKey, id> *)options inSpellDocumentWithTag:(NSInteger)tag completionHandler:(void (^ _Nullable)(NSInteger sequenceNumber, NSArray<NSTextCheckingResult *> *candidates))completionHandler API_AVAILABLE(macos(10.12.2)); /* Provides a menu containing contextual menu items suitable for certain kinds of detected results (notably date/time/address results). The options dictionary allows clients to pass in information associated with the document. */ - (nullable NSMenu *)menuForResult:(NSTextCheckingResult *)result string:(NSString *)checkedString options:(nullable NSDictionary<NSTextCheckingOptionKey, id> *)options atLocation:(NSPoint)location inView:(NSView *)view API_AVAILABLE(macos(10.6)); /* Methods for obtaining the default values for NSTextCheckingQuotesKey and NSTextCheckingReplacementsKey. */ - (NSArray<NSString *> *)userQuotesArrayForLanguage:(NSString *)language API_AVAILABLE(macos(10.6)); @property (readonly, copy) NSDictionary<NSString *, NSString *> *userReplacementsDictionary API_AVAILABLE(macos(10.6)); /* The checkSpellingOfString:... methods return the range of the misspelled word found. It is up to the client to select that word in their document and to cause the spelling panel to update itself to reflect the found misspelling. Clients should call updateSpellPanelWithMisspelledWord: to inform the spelling panel of the word to be displayed. */ - (void)updateSpellingPanelWithMisspelledWord:(NSString *)word; /* The checkGrammarOfString:... method return the range of the sentence (or equivalent grammatical unit) with grammar issues, and an array of details describing the individual issues. It is up to the client to select one of those details in their document and to cause the spelling panel to update itself to reflect the found issue. Clients should call updateSpellingPanelWithGrammarString:detail: to inform the spelling panel of this. The string should be the entire sentence, i.e., the substring corresponding to the overall range returned by checkGrammarOfString:..., and the detail should be one of the elements of the details array. */ - (void)updateSpellingPanelWithGrammarString:(NSString *)string detail:(NSDictionary<NSString *, id> *)detail API_AVAILABLE(macos(10.5)); /* Set and get attributes of the spelling and grammar panel. */ @property (readonly, strong) NSPanel *spellingPanel; @property (nullable, strong) NSView *accessoryView; /* Set and get attributes of the substitutions panel. */ @property (readonly, strong) NSPanel *substitutionsPanel API_AVAILABLE(macos(10.6)); @property (nullable, strong) NSViewController *substitutionsPanelAccessoryViewController API_AVAILABLE(macos(10.6)); /* This method should be called when a client changes some relevant setting, such as what kind of spelling, grammar checking, or substitutions it uses. */ - (void)updatePanels API_AVAILABLE(macos(10.6)); /* This method should be called from the client's implementation of -ignoreSpelling: */ - (void)ignoreWord:(NSString *)wordToIgnore inSpellDocumentWithTag:(NSInteger)tag; - (nullable NSArray<NSString *> *)ignoredWordsInSpellDocumentWithTag:(NSInteger)tag; - (void)setIgnoredWords:(NSArray<NSString *> *)words inSpellDocumentWithTag:(NSInteger)tag; /* This method returns multiple proposed alternatives for a given word, whether it is misspelled or not, in the order in which they should be presented. */ - (nullable NSArray<NSString *> *)guessesForWordRange:(NSRange)range inString:(NSString *)string language:(nullable NSString *)language inSpellDocumentWithTag:(NSInteger)tag API_AVAILABLE(macos(10.6)); /* If a word is misspelled, this will return a single proposed correction, if one is available. Correction functionality is available starting in 10.6 as part of unified text checking, but for convenience this method makes it available separately starting in 10.7. */ - (nullable NSString *)correctionForWordRange:(NSRange)range inString:(NSString *)string language:(NSString *)language inSpellDocumentWithTag:(NSInteger)tag API_AVAILABLE(macos(10.7)); /* Returns an array of strings, in the order in which they should be presented, representing complete words that the user might be trying to type when starting by typing the partial word at the given range in the given string. */ - (nullable NSArray<NSString *> *)completionsForPartialWordRange:(NSRange)range inString:(NSString *)string language:(nullable NSString *)language inSpellDocumentWithTag:(NSInteger)tag; /* Clients who have an NSOrthography from NSTextCheckingTypeOrthography checking and wish to determine a specific language from it for a particular word, for example to pass in to -guessesForWordRange:inString:language:inSpellDocumentWithTag:, -correctionForWordRange:inString:language:inSpellDocumentWithTag:, or -completionsForPartialWordRange:inString:language:inSpellDocumentWithTag:, should use this method to obtain it. */ - (nullable NSString *)languageForWordRange:(NSRange)range inString:(NSString *)string orthography:(nullable NSOrthography *)orthography API_AVAILABLE(macos(10.7)); /* When a document closes, it should notify the NSSpellChecker via closeSpellDocumentWithTag: so that any associated data such as its ignored word list can be cleaned up. */ - (void)closeSpellDocumentWithTag:(NSInteger)tag; /* When a correction is automatically proposed, the user may respond in one of several ways. Clients may report this to the spell checker so that it can learn from the user's response and adjust future correction behavior accordingly. The tag, language, word, and correction should match those from the original correction result, so that the spellchecker can match them. This implies that in order to record responses properly, clients must store the original word and original correction at least from the point at which the user accepts it until the user edits or reverts it. */ typedef NS_ENUM(NSInteger, NSCorrectionResponse) { NSCorrectionResponseNone, // No response was received from the user NSCorrectionResponseAccepted, // The user accepted the correction NSCorrectionResponseRejected, // The user rejected the correction NSCorrectionResponseIgnored, // The user continued in such a way as to ignore the correction NSCorrectionResponseEdited, // After the correction was accepted, the user edited the corrected word (to something other than its original form) NSCorrectionResponseReverted // After the correction was accepted, the user reverted the correction back to the original word }; - (void)recordResponse:(NSCorrectionResponse)response toCorrection:(NSString *)correction forWord:(NSString *)word language:(nullable NSString *)language inSpellDocumentWithTag:(NSInteger)tag API_AVAILABLE(macos(10.7)); /* Client views may use the NSCorrectionIndicator APIs to display a suitable user interface to indicate a correction intended to be made, and allowing the user to accept or reject it; or once a correction has been made, to indicate the original form, allowing the user to revert back to it; or to display multiple alternatives from which the user may choose one if desired. The primaryString is the first string displayed, a correction or reversion according to the type of indicator; the alternativeStrings should be additional alternatives, if available. Only one indicator at a time may be displayed for a given view, and the only thing a client may do with the indicator after displaying it is to dismiss it. When an indicator is dismissed, whether by user action or by the view, the completion block will be called, with the acceptedString argument being either the replacement string accepted by the user, or nil if the user has not accepted a replacement. */ typedef NS_ENUM(NSInteger, NSCorrectionIndicatorType) { NSCorrectionIndicatorTypeDefault = 0, // The default indicator shows a proposed correction NSCorrectionIndicatorTypeReversion, // Used to offer to revert to the original form after a correction has been made NSCorrectionIndicatorTypeGuesses // Shows multiple alternatives from which the user may choose }; - (void)showCorrectionIndicatorOfType:(NSCorrectionIndicatorType)type primaryString:(NSString *)primaryString alternativeStrings:(NSArray<NSString *> *)alternativeStrings forStringInRect:(NSRect)rectOfTypedString view:(NSView *)view completionHandler:(void (^ _Nullable)(NSString * _Null_unspecified acceptedString))completionBlock API_AVAILABLE(macos(10.7)); - (void)dismissCorrectionIndicatorForView:(NSView *)view API_AVAILABLE(macos(10.7)); /* In some cases the next typing should prevent a pending correction (if it is an @, for example). This method allows clients to recognize these cases in a standardized way. */ - (BOOL)preventsAutocorrectionBeforeString:(NSString *)string language:(nullable NSString *)language API_AVAILABLE(macos(10.12)); /* In some cases the space automatically inserted after an accepted candidate should be deleted when the next text is typed (e.g. if it is a period or comma). This method allows clients to recognize these cases in a standardized way. */ - (BOOL)deletesAutospaceBetweenString:(NSString *)precedingString andString:(NSString *)followingString language:(nullable NSString *)language API_AVAILABLE(macos(10.12.2)); /* Entries in the availableLanguages list are all available spellchecking languages in user preference order, as described in the spellchecker's info dictionary, usually language abbreviations such as en_US. The userPreferredLanguages will be a subset of the availableLanguages, as selected by the user for use with spellchecking, in preference order. If automaticallyIdentifiesLanguages is YES, then text checking will automatically use these as appropriate; otherwise, it will use the language set by setLanguage:. The older checkSpellingOfString:... and checkGrammarOfString:... methods will use the language set by setLanguage:, if they are called with a nil language argument. */ @property (readonly, copy) NSArray<NSString *> *availableLanguages API_AVAILABLE(macos(10.5)); @property (readonly, copy) NSArray<NSString *> *userPreferredLanguages API_AVAILABLE(macos(10.6)); @property BOOL automaticallyIdentifiesLanguages API_AVAILABLE(macos(10.6)); /* Allows programmatic setting of the misspelled word field. */ - (void)setWordFieldStringValue:(NSString *)string; /* These allow clients to programmatically instruct the spellchecker to learn and unlearn words, and to determine whether a word has been learned (and hence can potentially be unlearned). */ - (void)learnWord:(NSString *)word; - (BOOL)hasLearnedWord:(NSString *)word API_AVAILABLE(macos(10.5)); - (void)unlearnWord:(NSString *)word API_AVAILABLE(macos(10.5)); /* These methods allow clients to determine the global user preference settings for automatic text replacement, spelling correction, quote substitution, dash substitution, autocapitalization, and double-space-to-period substitution. Text views by default will follow these automatically, but clients may override that by programmatically setting the values on the text view. These methods will be useful for non-text view clients and others who wish to keep track of the settings. Notifications are available (see below) when the settings change. */ @property (class, readonly, getter=isAutomaticTextReplacementEnabled) BOOL automaticTextReplacementEnabled API_AVAILABLE(macos(10.7)); @property (class, readonly, getter=isAutomaticSpellingCorrectionEnabled) BOOL automaticSpellingCorrectionEnabled API_AVAILABLE(macos(10.7)); @property (class, readonly, getter=isAutomaticQuoteSubstitutionEnabled) BOOL automaticQuoteSubstitutionEnabled API_AVAILABLE(macos(10.9)); @property (class, readonly, getter=isAutomaticDashSubstitutionEnabled) BOOL automaticDashSubstitutionEnabled API_AVAILABLE(macos(10.9)); @property (class, readonly, getter=isAutomaticCapitalizationEnabled) BOOL automaticCapitalizationEnabled API_AVAILABLE(macos(10.12)); @property (class, readonly, getter=isAutomaticPeriodSubstitutionEnabled) BOOL automaticPeriodSubstitutionEnabled API_AVAILABLE(macos(10.12)); @property (class, readonly, getter=isAutomaticTextCompletionEnabled) BOOL automaticTextCompletionEnabled API_AVAILABLE(macos(10.12.2)); /* Use of the following methods is discouraged; ordinarily language identification should be allowed to take place automatically, or else a specific language should be passed in to the methods that take such an argument, if the language is known in advance. -setLanguage: allows programmatic setting of the language to spell-check in, for compatibility use if other methods are called with no language specified. -setLanguage: accepts any of the language formats used by NSBundle, and tries to find the closest match among the available languages. If -setLanguage: has been called, then -language will return that match; otherwise, it will return Multilingual if there is more than one element in -userPreferredLanguages, or the one element in that array if there is only one. */ - (NSString *)language; - (BOOL)setLanguage:(NSString *)language; @end /* These notifications are made available via the default notification center when the global user preference settings mentioned above are changed. */ APPKIT_EXTERN NSNotificationName const NSSpellCheckerDidChangeAutomaticSpellingCorrectionNotification API_AVAILABLE(macos(10.7)); APPKIT_EXTERN NSNotificationName const NSSpellCheckerDidChangeAutomaticTextReplacementNotification API_AVAILABLE(macos(10.7)); APPKIT_EXTERN NSNotificationName const NSSpellCheckerDidChangeAutomaticQuoteSubstitutionNotification API_AVAILABLE(macos(10.9)); APPKIT_EXTERN NSNotificationName const NSSpellCheckerDidChangeAutomaticDashSubstitutionNotification API_AVAILABLE(macos(10.9)); APPKIT_EXTERN NSNotificationName const NSSpellCheckerDidChangeAutomaticCapitalizationNotification API_AVAILABLE(macos(10.12)); APPKIT_EXTERN NSNotificationName const NSSpellCheckerDidChangeAutomaticPeriodSubstitutionNotification API_AVAILABLE(macos(10.12)); APPKIT_EXTERN NSNotificationName const NSSpellCheckerDidChangeAutomaticTextCompletionNotification API_AVAILABLE(macos(10.12.2)); @interface NSSpellChecker(NSDeprecated) - (null_unspecified NSArray *)guessesForWord:(null_unspecified NSString *)word API_DEPRECATED("Use -guessesForWordRange:inString:language:inSpellDocumentWithTag instead", macos(10.0,10.6)); - (void)forgetWord:(null_unspecified NSString *)word API_DEPRECATED_WITH_REPLACEMENT("unlearnWord:", macos(10.0,10.5)); @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewTransitionLayout.h
/* NSCollectionViewTransitionLayout.h Application Kit Copyright (c) 2015-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSCollectionViewLayout.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST typedef NSString * NSCollectionViewTransitionLayoutAnimatedKey NS_SWIFT_BRIDGED_TYPEDEF; API_AVAILABLE(macos(10.11)) @interface NSCollectionViewTransitionLayout : NSCollectionViewLayout @property (assign) CGFloat transitionProgress; @property (readonly) NSCollectionViewLayout *currentLayout; @property (readonly) NSCollectionViewLayout *nextLayout; // Designated initializer - (instancetype)initWithCurrentLayout:(NSCollectionViewLayout *)currentLayout nextLayout:(NSCollectionViewLayout *)newLayout; - (void)updateValue:(CGFloat)value forAnimatedKey:(NSCollectionViewTransitionLayoutAnimatedKey)key; - (CGFloat)valueForAnimatedKey:(NSCollectionViewTransitionLayoutAnimatedKey)key; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSUserInterfaceItemIdentification.h
/* NSUserInterfaceItemIdentification.h Application Kit Copyright (c) 2006-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSString.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST typedef NSString * NSUserInterfaceItemIdentifier NS_TYPED_EXTENSIBLE_ENUM; /* Introduced in Mac OS 10.7 */ @protocol NSUserInterfaceItemIdentification @required /* A string that identifies this user interface item. The value can be set in Interface Builder. If not set in Interface Builder, it will be automatically set to a value unique within the nib file when loaded from the nib. It should be set to a unique value on NSViews when they are intended to be used inside a view-based NSTableView. Identifiers should be unique per-window. For programmatically created user interface items, you would typically set this value in code after creating a view but before adding it to a window. You may also want to set an identifier on a window, after creating it programmatically, to identify the window easily when it is reopened. You should not change the identifier after a view is added to a window. Identifiers beginning with an underscore are reserved for the system. In framework classes that implement this protocol, the accessor methods are not intended to be overridden. To help avoid collision of identifiers, it is recommended that identifiers use the same prefix as is used for the framework or application. For example, identifiers for standard AppKit interface items, such as the open panel, will begin with "NS". The slash '/', backslash '\', and colon ':' characters are reserved and should not be used in identifiers. */ @property (nullable, copy) NSUserInterfaceItemIdentifier identifier; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSMovie.h
/* NSMovie.h Application Kit Copyright (c) 2000-2021, Apple Inc. All rights reserved. */ #import <Foundation/Foundation.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class QTMovie; API_DEPRECATED("", macos(10.0,10.5)) @interface NSMovie : NSObject <NSCoding> - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER; - (nullable instancetype)init NS_DESIGNATED_INITIALIZER API_DEPRECATED("As of macOS 10.15 this method always returns nil.", macos(10.0,10.5)); - (nullable instancetype)initWithMovie:(QTMovie *)movie NS_DESIGNATED_INITIALIZER API_DEPRECATED("As of macOS 10.15 this method always returns nil.", macos(10.0,10.5)); - (nullable QTMovie *)QTMovie API_DEPRECATED("As of macOS 10.15 this method always returns nil.", macos(10.0,10.5)); @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSImageCell.h
/* NSImageCell.h Application Kit Copyright (c) 1994-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSCell.h> #import <AppKit/AppKitDefines.h> APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSImage; typedef NS_ENUM(NSUInteger, NSImageAlignment) { NSImageAlignCenter = 0, NSImageAlignTop, NSImageAlignTopLeft, NSImageAlignTopRight, NSImageAlignLeft, NSImageAlignBottom, NSImageAlignBottomLeft, NSImageAlignBottomRight, NSImageAlignRight }; typedef NS_ENUM(NSUInteger, NSImageFrameStyle) { NSImageFrameNone = 0, NSImageFramePhoto, NSImageFrameGrayBezel, NSImageFrameGroove, NSImageFrameButton }; @interface NSImageCell : NSCell <NSCopying, NSCoding> @property NSImageAlignment imageAlignment; @property NSImageScaling imageScaling; @property NSImageFrameStyle imageFrameStyle; @end API_UNAVAILABLE_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewLayout.h
/* NSCollectionViewLayout.h Application Kit Copyright (c) 2015-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSObject.h> #import <Foundation/NSDictionary.h> #import <Foundation/NSGeometry.h> #import <AppKit/AppKitDefines.h> #import <AppKit/NSCollectionView.h> /* The NSCollectionViewLayout class is provided as an abstract class for subclassing to define custom collection layouts. Defining a custom layout is an advanced operation intended for applications with complex needs. */ typedef NS_ENUM(NSInteger, NSCollectionElementCategory) { NSCollectionElementCategoryItem, NSCollectionElementCategorySupplementaryView, NSCollectionElementCategoryDecorationView, NSCollectionElementCategoryInterItemGap } API_AVAILABLE(macos(10.11)); @class NSIndexPath; NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST typedef NSString * NSCollectionViewDecorationElementKind NS_SWIFT_BRIDGED_TYPEDEF; /* The elementKind that NSCollectionView uses to identify an inter-item gap, when the proposedDropOperation is NSCollectionViewDropBefore. A client can customize the default look of the inter-item gap drop target indicator by registering a supplementary view nib or class for this elementKind. If your -collectionView:validateDrop:proposedIndexPath:dropOperation: method disallows NSCollectionViewDropBefore operations, the CollectionView won't show this indicator. */ APPKIT_EXTERN NSCollectionViewSupplementaryElementKind const NSCollectionElementKindInterItemGapIndicator API_AVAILABLE(macos(10.11)); @class NSCollectionViewLayoutAttributes; @class NSCollectionView; @class NSNib; API_AVAILABLE(macos(10.11)) @interface NSCollectionViewLayoutAttributes : NSObject <NSCopying> @property NSRect frame; @property NSSize size; @property CGFloat alpha; @property NSInteger zIndex; // default is 0 @property (getter=isHidden) BOOL hidden; // As an optimization, NSCollectionView might not create a view for items whose hidden attribute is YES @property (nullable, strong) NSIndexPath *indexPath; @property (readonly) NSCollectionElementCategory representedElementCategory; @property (nullable, readonly) NSString *representedElementKind; // nil when representedElementCategory is NSCollectionElementCategoryItem. NSCollectionViewSupplementaryElementKind when representedElementCategory is NSCollectionElementCategorySupplementaryView or NSCollectionElementCategoryInterItemGap. NSCollectionViewDecorationElementKind when representedElementCategory is NSCollectionElementCategoryDecorationView. + (instancetype)layoutAttributesForItemWithIndexPath:(NSIndexPath *)indexPath; + (instancetype)layoutAttributesForInterItemGapBeforeIndexPath:(NSIndexPath *)indexPath; + (instancetype)layoutAttributesForSupplementaryViewOfKind:(NSCollectionViewSupplementaryElementKind)elementKind withIndexPath:(NSIndexPath *)indexPath; + (instancetype)layoutAttributesForDecorationViewOfKind:(NSCollectionViewDecorationElementKind)decorationViewKind withIndexPath:(NSIndexPath*)indexPath; @end typedef NS_ENUM(NSInteger, NSCollectionUpdateAction) { NSCollectionUpdateActionInsert, NSCollectionUpdateActionDelete, NSCollectionUpdateActionReload, NSCollectionUpdateActionMove, NSCollectionUpdateActionNone } API_AVAILABLE(macos(10.11)); API_AVAILABLE(macos(10.11)) @interface NSCollectionViewUpdateItem : NSObject @property (nullable, readonly) NSIndexPath *indexPathBeforeUpdate; // nil for NSCollectionUpdateActionInsert @property (nullable, readonly) NSIndexPath *indexPathAfterUpdate; // nil for NSCollectionUpdateActionDelete @property (readonly) NSCollectionUpdateAction updateAction; @end API_AVAILABLE(macos(10.11)) @interface NSCollectionViewLayoutInvalidationContext : NSObject @property (readonly) BOOL invalidateEverything; // set to YES when invalidation occurs because the collection view is sent -reloadData @property (readonly) BOOL invalidateDataSourceCounts; // if YES, the layout should requery section and item counts from the collection view - set to YES when the collection view is sent -reloadData and when items are inserted or deleted - (void)invalidateItemsAtIndexPaths:(NSSet<NSIndexPath *> *)indexPaths; - (void)invalidateSupplementaryElementsOfKind:(NSCollectionViewSupplementaryElementKind)elementKind atIndexPaths:(NSSet<NSIndexPath *> *)indexPaths; - (void)invalidateDecorationElementsOfKind:(NSCollectionViewDecorationElementKind)elementKind atIndexPaths:(NSSet<NSIndexPath *> *)indexPaths; @property (nullable, readonly) NSSet<NSIndexPath *> *invalidatedItemIndexPaths; @property (nullable, readonly) NSDictionary<NSCollectionViewSupplementaryElementKind, NSSet<NSIndexPath *> *> *invalidatedSupplementaryIndexPaths; // keys are element kind strings - values are NSSet<NSIndexPath *> @property (nullable, readonly) NSDictionary<NSCollectionViewDecorationElementKind, NSSet<NSIndexPath *> *> *invalidatedDecorationIndexPaths; // keys are element kind strings - values are NSSet<NSIndexPath *> @property NSPoint contentOffsetAdjustment; // delta to be applied to the collection view's current contentOffset - default is NSZeroPoint @property NSSize contentSizeAdjustment; // delta to be applied to the current content size - default is NSZeroSize @end /* The NSCollectionViewLayout class is provided as an abstract class for subclassing to define custom collection layouts. Defining a custom layout is an advanced operation intended for applications with complex needs. */ API_AVAILABLE(macos(10.11)) @interface NSCollectionViewLayout : NSObject <NSCoding> /* Methods in this class are meant to be overridden and will be called by its collection view to gather layout information. To get the truth on the current state of the collection view, call methods on NSCollectionView rather than these. */ @property (nullable, readonly, weak) NSCollectionView *collectionView; /* Call -invalidateLayout to indicate that the collection view needs to requery the layout information. Subclasses must always call super if they override. */ - (void)invalidateLayout; - (void)invalidateLayoutWithContext:(NSCollectionViewLayoutInvalidationContext *)context; - (void)registerClass:(nullable Class)viewClass forDecorationViewOfKind:(NSCollectionViewDecorationElementKind)elementKind; - (void)registerNib:(nullable NSNib *)nib forDecorationViewOfKind:(NSCollectionViewDecorationElementKind)elementKind; @end @interface NSCollectionViewLayout (NSSubclassingHooks) @property (class, readonly) Class layoutAttributesClass; // override this method to provide a custom class to be used when instantiating instances of NSCollectionViewLayoutAttributes @property (class, readonly) Class invalidationContextClass; // override this method to provide a custom class to be used for invalidation contexts /* The collection view calls -prepareLayout once at its first layout as the first message to the layout instance. The collection view calls -prepareLayout again after layout is invalidated and before requerying the layout information. Subclasses should always call super if they override. */ - (void)prepareLayout; /* NSCollectionView calls these four methods to determine the layout information. Implement -layoutAttributesForElementsInRect: to return layout attributes for for supplementary or decoration views, or to perform layout in an as-needed-on-screen fashion. Additionally, all layout subclasses should implement -layoutAttributesForItemAtIndexPath: to return layout attributes instances on demand for specific index paths. If the layout supports any supplementary or decoration view types, it should also implement the respective atIndexPath: methods for those types. */ - (NSArray<__kindof NSCollectionViewLayoutAttributes *> *)layoutAttributesForElementsInRect:(NSRect)rect; // return an array layout attributes instances for all the views in the given rect - (nullable NSCollectionViewLayoutAttributes *)layoutAttributesForItemAtIndexPath:(NSIndexPath *)indexPath; - (nullable NSCollectionViewLayoutAttributes *)layoutAttributesForSupplementaryViewOfKind:(NSCollectionViewSupplementaryElementKind)elementKind atIndexPath:(NSIndexPath *)indexPath; - (nullable NSCollectionViewLayoutAttributes *)layoutAttributesForDecorationViewOfKind:(NSCollectionViewDecorationElementKind)elementKind atIndexPath:(NSIndexPath *)indexPath; /* Returns an NSCollectionViewLayoutAttributes instance that identifies an appropriate proposed drop target from the given hover point. If the point is between items, the returned layout attributes may describe an inter-item gap, which is distinguished by having a representedElementCategory of NSCollectionElementCategoryInterItemGap, and a representedElementKind of NSCollectionElementKindInterItemGapIndicator. Its "frame" provides a bounding box for the gap, that will be used to position and size a drop target indicator, and its "indexPath" identifies the proposed "insert before" position. The frame might not contain the given point, if the insertion indicator should lie elsewhere. (For example, when a vertical Flow layout hit-tests a gap between rows, it may suggest an insertion gap to the left of the lower row's first item.) Subclasses should override this method to return appropriate results based on their knowledge of the particular layout. This method should return nil if no suitable drop target can be inferred from the given point. */ - (nullable NSCollectionViewLayoutAttributes *)layoutAttributesForDropTargetAtPoint:(NSPoint)pointInCollectionView; /* Returns an NSCollectionViewLayoutAttributes instance that describes the inter-item gap preceding the given item indexPath. You may pass an indexPath whose "item" index equals the number of items in the section, to request a description of the gap after the last item. The result has a representedElementCategory of NSCollectionElementCategoryInterItemGap, and a representedElementKind of NSCollectionElementKindInterItemGapIndicator. Subclasses should override this method to return appropriate results based on their knowledge of the particular layout. */ - (nullable NSCollectionViewLayoutAttributes *)layoutAttributesForInterItemGapBeforeIndexPath:(NSIndexPath *)indexPath; - (BOOL)shouldInvalidateLayoutForBoundsChange:(NSRect)newBounds; // return YES to cause the collection view to requery the layout for geometry information - (NSCollectionViewLayoutInvalidationContext *)invalidationContextForBoundsChange:(NSRect)newBounds; - (BOOL)shouldInvalidateLayoutForPreferredLayoutAttributes:(NSCollectionViewLayoutAttributes *)preferredAttributes withOriginalAttributes:(NSCollectionViewLayoutAttributes *)originalAttributes; - (NSCollectionViewLayoutInvalidationContext *)invalidationContextForPreferredLayoutAttributes:(NSCollectionViewLayoutAttributes *)preferredAttributes withOriginalAttributes:(NSCollectionViewLayoutAttributes *)originalAttributes; - (NSPoint)targetContentOffsetForProposedContentOffset:(NSPoint)proposedContentOffset withScrollingVelocity:(NSPoint)velocity; // return a point at which to rest after scrolling - for layouts that want snap-to-point scrolling behavior - (NSPoint)targetContentOffsetForProposedContentOffset:(NSPoint)proposedContentOffset; // a layout can return the content offset to be applied during transition or update animations @property(readonly) NSSize collectionViewContentSize; // Subclasses must implement a collectionViewContentSize getter that returns the width and height of the collection view’s content. These values represent the width and height of all the content, not just the content that is currently visible. The collection view uses this information to configure its own content size to facilitate scrolling. @end @interface NSCollectionViewLayout (NSUpdateSupportHooks) // This method is called when there is an update with deletes/inserts to the collection view. // It will be called prior to calling the initial/final layout attribute methods below to give the layout an opportunity to do batch computations for the insertion and deletion layout attributes. // The updateItems parameter is an array of NSCollectionViewUpdateItem instances for each element that is moving to a new index path. - (void)prepareForCollectionViewUpdates:(NSArray<NSCollectionViewUpdateItem *> *)updateItems; - (void)finalizeCollectionViewUpdates; // called inside an animation block after the update - (void)prepareForAnimatedBoundsChange:(NSRect)oldBounds; // NSCollectionView calls this when its bounds have changed inside an animation block before displaying items in its new bounds - (void)finalizeAnimatedBoundsChange; // also called inside the animation block // NSCollectionView calls this when prior the layout transition animation on the incoming and outgoing layout - (void)prepareForTransitionToLayout:(NSCollectionViewLayout *)newLayout; - (void)prepareForTransitionFromLayout:(NSCollectionViewLayout *)oldLayout; - (void)finalizeLayoutTransition; // called inside an animation block after the transition // This set of methods is called when the collection view undergoes an animated transition such as a batch update block or an animated bounds change. // For each element on screen before the invalidation, finalLayoutAttributesForDisappearingXXX will be called and an animation setup from what is on screen to those final attributes. // For each element on screen after the invalidation, initialLayoutAttributesForAppearingXXX will be called an an animation setup from those initial attributes to what ends up on screen. - (nullable NSCollectionViewLayoutAttributes *)initialLayoutAttributesForAppearingItemAtIndexPath:(NSIndexPath *)itemIndexPath; - (nullable NSCollectionViewLayoutAttributes *)finalLayoutAttributesForDisappearingItemAtIndexPath:(NSIndexPath *)itemIndexPath; - (nullable NSCollectionViewLayoutAttributes *)initialLayoutAttributesForAppearingSupplementaryElementOfKind:(NSCollectionViewSupplementaryElementKind)elementKind atIndexPath:(NSIndexPath *)elementIndexPath; - (nullable NSCollectionViewLayoutAttributes *)finalLayoutAttributesForDisappearingSupplementaryElementOfKind:(NSCollectionViewSupplementaryElementKind)elementKind atIndexPath:(NSIndexPath *)elementIndexPath; - (nullable NSCollectionViewLayoutAttributes *)initialLayoutAttributesForAppearingDecorationElementOfKind:(NSCollectionViewDecorationElementKind)elementKind atIndexPath:(NSIndexPath *)decorationIndexPath; - (nullable NSCollectionViewLayoutAttributes *)finalLayoutAttributesForDisappearingDecorationElementOfKind:(NSCollectionViewDecorationElementKind)elementKind atIndexPath:(NSIndexPath *)decorationIndexPath; // These methods are called by collection view during an update block. // Return an array of index paths to indicate views that the layout is deleting or inserting in response to the update. - (NSSet<NSIndexPath *> *)indexPathsToDeleteForSupplementaryViewOfKind:(NSCollectionViewSupplementaryElementKind)elementKind; - (NSSet<NSIndexPath *> *)indexPathsToDeleteForDecorationViewOfKind:(NSCollectionViewDecorationElementKind)elementKind; - (NSSet<NSIndexPath *> *)indexPathsToInsertForSupplementaryViewOfKind:(NSCollectionViewSupplementaryElementKind)elementKind; - (NSSet<NSIndexPath *> *)indexPathsToInsertForDecorationViewOfKind:(NSCollectionViewDecorationElementKind)elementKind; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSTypesetter.h
#if !__has_include(<UIFoundation/NSTypesetter.h>) /* NSTypesetter.h Copyright (c) 1994-2021, Apple Inc. All rights reserved. An abstract class to lay glyphs out in horizontal or vertical boxes */ #import <CoreFoundation/CFCharacterSet.h> // for UTF32Char #import <Foundation/NSObject.h> #import <Foundation/NSArray.h> #import <Foundation/NSDictionary.h> #import <AppKit/NSLayoutManager.h> #import <AppKit/NSParagraphStyle.h> NS_ASSUME_NONNULL_BEGIN #if !TARGET_OS_IPHONE @interface NSTypesetter : NSObject /* Primitive typesetting methods */ /* NSLayoutManager attributes */ /* Controls whether leading value specified by fonts affects line spacing */ @property BOOL usesFontLeading; /* Controls various typesetting behavior for backward compatibility */ @property NSTypesetterBehavior typesetterBehavior; /* Controls hyphenation factor. The value should be between 0.0 and 1.0. */ @property float hyphenationFactor; /* NSTextContainer attributes */ /* Controls padding at both ends of line fragment. */ @property CGFloat lineFragmentPadding; /* Screen/printer font mapping */ - (NSFont *)substituteFontForFont:(NSFont *)originalFont; /* Tab stops */ /* Returns an NSTextTab instance for glyphLocation from the current text tab array. glyphLocation must be in the base typesetter coordinate (should not include line fragment rect origin and lineFragmentPadding). direction should be either NSWritingDirectionLeftToRight or NSWritingDirectionRightToLeft. maxLocation specifies the maximum location a glyph can be assigned in the base typesetter coordinate. */ - (nullable NSTextTab *)textTabForGlyphLocation:(CGFloat)glyphLocation writingDirection:(NSWritingDirection)direction maxLocation:(CGFloat)maxLocation; /* Bidi control */ /* Controls whether to perform bi-directional processing. You can disable the layout stage if you know the parapgraph does not need this stage (i.e. the backing-store is in the display order). */ @property BOOL bidiProcessingEnabled; /* Accessors for required paragraph typesetting settings */ // Note this method does not retain attrString @property (nullable, assign) NSAttributedString *attributedString; - (void)setParagraphGlyphRange:(NSRange)paragraphRange separatorGlyphRange:(NSRange)paragraphSeparatorRange; @property (readonly) NSRange paragraphGlyphRange; // does not include paragraphSeparatorGlyphRange @property (readonly) NSRange paragraphSeparatorGlyphRange; @property (readonly) NSRange paragraphCharacterRange; @property (readonly) NSRange paragraphSeparatorCharacterRange; /* layout primitive */ /* lineFragmentOrigin specifies the upper-left corner of line fragment rect. On return, set to the next origin. The method returns the next glyph index. Usually the index right after paragraph separator but can be inside the paragraph range (i.e. text container exhaustion). Concrete subclasses must implement this method. A concrete implementation must invoke -beginParagraph, -endParagraph, -beginLineWithGlyphAtIndex: and -endLineWithGlyphRange:. */ - (NSUInteger)layoutParagraphAtPoint:(NSPointPointer)lineFragmentOrigin; /* Layout parameter setup */ - (void)beginParagraph; // should be invoked at the beginning of -layoutParagraphAtPoint: - (void)endParagraph; // should be invoked at the end of -layoutParagraphAtPoint: - (void)beginLineWithGlyphAtIndex:(NSUInteger)glyphIndex; // should be invoked at the beginning of each line - (void)endLineWithGlyphRange:(NSRange)lineGlyphRange; // should be invoked at the end of each line /* Line/paragraph spacing */ - (CGFloat)lineSpacingAfterGlyphAtIndex:(NSUInteger)glyphIndex withProposedLineFragmentRect:(NSRect)rect; - (CGFloat)paragraphSpacingBeforeGlyphAtIndex:(NSUInteger)glyphIndex withProposedLineFragmentRect:(NSRect)rect; - (CGFloat)paragraphSpacingAfterGlyphAtIndex:(NSUInteger)glyphIndex withProposedLineFragmentRect:(NSRect)rect; /* Empty paragraph handling */ /* This method calculates the line fragment rect/line fragment used rect for blank lines. theParagraphSeparatorGlyphRange with length == 0 indicates extra line fragment. */ - (void)getLineFragmentRect:(NSRectPointer)lineFragmentRect usedRect:(NSRectPointer)lineFragmentUsedRect forParagraphSeparatorGlyphRange:(NSRange)paragraphSeparatorGlyphRange atProposedOrigin:(NSPoint)lineOrigin; /* Extra line fragment handling */ /* This method returns the attributes used to layout the extra line fragment. The default implementation tries to use -[NSTextView typingAttributes] if possible; otherwise, uses attributes for the last character. */ @property (readonly, copy) NSDictionary<NSAttributedStringKey, id> *attributesForExtraLineFragment; /* Control/format character handling */ /* Cocoa Text System specific interface methods */ /* Friend class accessors */ @property (nullable, readonly, assign) NSLayoutManager *layoutManager; @property (nullable, readonly, assign) NSArray<NSTextContainer *> *textContainers; @property (nullable, readonly, assign) NSTextContainer *currentTextContainer; @property (nullable, readonly, copy) NSParagraphStyle *currentParagraphStyle; /* Forces NSLayoutManager to invalidate glyph cache in range when invalidating layout. */ - (void)setHardInvalidation:(BOOL)flag forGlyphRange:(NSRange)glyphRange; /* Actually lay out glyphs starting at the given index. The given number of line fragments will be generated as long as the NSGlyphStorage doesn't run out of glyphs. nextGlyph will be set to the index of the next glyph that needs to be laid out. New applications should use -layoutCharactersInRange:forLayoutManager:maximumNumberOfLineFragments: instead. */ - (void)layoutGlyphsInLayoutManager:(NSLayoutManager *)layoutManager startingAtGlyphIndex:(NSUInteger)startGlyphIndex maxNumberOfLineFragments:(NSUInteger)maxNumLines nextGlyphIndex:(NSUInteger *)nextGlyph; /* Layouts characters in characterRange for layoutManager. The method returns the actual character range that the receiving NSTypesetter processed. The layout process can be interrupted when the number of line fragments exceeds maxNumLines. Specify NSUIntegerMax for unlimited number of line fragments. */ - (NSRange)layoutCharactersInRange:(NSRange)characterRange forLayoutManager:(NSLayoutManager *)layoutManager maximumNumberOfLineFragments:(NSUInteger)maxNumLines API_AVAILABLE(macos(10.5)); /* Returns the offset to be applied to the glyph in question when printing. */ + (NSSize)printingAdjustmentInLayoutManager:(NSLayoutManager *)layoutMgr forNominallySpacedGlyphRange:(NSRange)nominallySpacedGlyphsRange packedGlyphs:(const unsigned char *)packedGlyphs count:(NSUInteger)packedGlyphsCount; - (CGFloat)baselineOffsetInLayoutManager:(NSLayoutManager *)layoutMgr glyphIndex:(NSUInteger)glyphIndex; /* Factory methods */ @property (class, readonly, strong) __kindof NSTypesetter *sharedSystemTypesetter; + (id)sharedSystemTypesetterForBehavior:(NSTypesetterBehavior)behavior; @property (class, readonly) NSTypesetterBehavior defaultTypesetterBehavior; @end /* NSLayoutPhaseInterface declares various subclass override points that are invoked if implemented */ @interface NSTypesetter (NSLayoutPhaseInterface) // Called right before setLineFragmentRect:forGlyphRange:usedRect: - (void)willSetLineFragmentRect:(NSRectPointer)lineRect forGlyphRange:(NSRange)glyphRange usedRect:(NSRectPointer)usedRect baselineOffset:(CGFloat *)baselineOffset; - (BOOL)shouldBreakLineByWordBeforeCharacterAtIndex:(NSUInteger)charIndex; - (BOOL)shouldBreakLineByHyphenatingBeforeCharacterAtIndex:(NSUInteger)charIndex; - (float)hyphenationFactorForGlyphAtIndex:(NSUInteger)glyphIndex; - (UTF32Char)hyphenCharacterForGlyphAtIndex:(NSUInteger)glyphIndex; - (NSRect)boundingBoxForControlGlyphAtIndex:(NSUInteger)glyphIndex forTextContainer:(NSTextContainer *)textContainer proposedLineFragment:(NSRect)proposedRect glyphPosition:(NSPoint)glyphPosition characterIndex:(NSUInteger)charIndex; @end /* NSGlyphStorageInterface declares all primitives interfacing to the glyph storage (usually NSLayoutManager). By overriding all the methods, you can implement an NSTypesetter subclass that interacts with custom glyph storage. */ @interface NSTypesetter (NSGlyphStorageInterface) // Glyph/character range mappings - (NSRange)characterRangeForGlyphRange:(NSRange)glyphRange actualGlyphRange:(nullable NSRangePointer)actualGlyphRange; - (NSRange)glyphRangeForCharacterRange:(NSRange)charRange actualCharacterRange:(nullable NSRangePointer)actualCharRange; // Glyph data // NSTextContainer attribute /* Calculates line fragment rect, line fragment used rect, and remaining rect for a line fragment starting at glyph index startingGlyphIndex with proposedRect. The height is determined using lineSpacing, paragraphSpacingBefore, and paragraphSpacingAfter as well as proposedRect. The width for lineFragmentUsedRect is set to the lineFragmentRect width. In the standard implementation, paragraph spacing is included in the line fragment rect but not the line fragment used rect; line spacing is included in both. */ - (void)getLineFragmentRect:(null_unspecified NSRectPointer)lineFragmentRect usedRect:(null_unspecified NSRectPointer)lineFragmentUsedRect remainingRect:(null_unspecified NSRectPointer)remainingRect forStartingGlyphAtIndex:(NSUInteger)startingGlyphIndex proposedRect:(NSRect)proposedRect lineSpacing:(CGFloat)lineSpacing paragraphSpacingBefore:(CGFloat)paragraphSpacingBefore paragraphSpacingAfter:(CGFloat)paragraphSpacingAfter; // Layout storage - (void)setLineFragmentRect:(NSRect)fragmentRect forGlyphRange:(NSRange)glyphRange usedRect:(NSRect)usedRect baselineOffset:(CGFloat)baselineOffset; - (void)setNotShownAttribute:(BOOL)flag forGlyphRange:(NSRange)glyphRange; - (void)setDrawsOutsideLineFragment:(BOOL)flag forGlyphRange:(NSRange)glyphRange; - (void)setLocation:(NSPoint)location withAdvancements:(null_unspecified const CGFloat *)advancements forStartOfGlyphRange:(NSRange)glyphRange; - (void)setAttachmentSize:(NSSize)attachmentSize forGlyphRange:(NSRange)glyphRange; - (void)setBidiLevels:(null_unspecified const uint8_t *)levels forGlyphRange:(NSRange)glyphRange; @end typedef NS_OPTIONS(NSUInteger, NSTypesetterControlCharacterAction) { NSTypesetterZeroAdvancementAction = (1 << 0), // glyphs with this action are flitered out from layout (notShownAttribute == YES) NSTypesetterWhitespaceAction = (1 << 1), // the width for glyphs with this action are determined by -boundingBoxForControlGlyphAtIndex:forTextContainer:proposedLineFragment:glyphPosition:characterIndex: if the method is implemented; otherwise, same as NSTypesetterZeroAdvancementAction NSTypesetterHorizontalTabAction = (1 << 2), // Treated as tab character NSTypesetterLineBreakAction = (1 << 3), // Causes line break NSTypesetterParagraphBreakAction = (1 << 4), // Causes paragraph break; firstLineIndent will be used for the following glyph NSTypesetterContainerBreakAction = (1 << 5) // Causes container break }; // Deprecated. Use NSControlCharacterAction instead @interface NSTypesetter (NSTypesetter_Deprecated) - (NSTypesetterControlCharacterAction)actionForControlCharacterAtIndex:(NSUInteger)charIndex; // Deprecated. Use -layoutManager:shouldUseAction:forControlCharacterAtIndex: instead - (NSUInteger)getGlyphsInRange:(NSRange)glyphsRange glyphs:(null_unspecified NSGlyph *)glyphBuffer characterIndexes:(null_unspecified NSUInteger *)charIndexBuffer glyphInscriptions:(null_unspecified NSGlyphInscription *)inscribeBuffer elasticBits:(null_unspecified BOOL *)elasticBuffer bidiLevels:(null_unspecified unsigned char *)bidiLevelBuffer API_DEPRECATED("", macos(10.3,10.13)); - (void)substituteGlyphsInRange:(NSRange)glyphRange withGlyphs:(null_unspecified NSGlyph *)glyphs API_DEPRECATED("", macos(10.3,10.13)); - (void)insertGlyph:(NSGlyph)glyph atGlyphIndex:(NSUInteger)glyphIndex characterIndex:(NSUInteger)characterIndex API_DEPRECATED("", macos(10.3,10.13)); - (void)deleteGlyphsInRange:(NSRange)glyphRange API_DEPRECATED("", macos(10.3,10.13)); @end #endif // !TARGET_OS_IPHONE NS_ASSUME_NONNULL_END #else #import <UIFoundation/NSTypesetter.h> #endif
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSCandidateListTouchBarItem.h
/* NSCandidateListTouchBarItem.h Application Kit Copyright (c) 2016-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSTouchBar.h> #import <AppKit/NSTouchBarItem.h> #import <AppKit/NSView.h> #import <AppKit/AppKitDefines.h> @protocol NSCandidateListTouchBarItemDelegate; @protocol NSTextInputClient; NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST /* NSCandidateListTouchBarItem is an NSTouchBarItem that shows the word completion candidates for assisting users typing with text input capable views. In addition to candidates supplied by its client, the NSTouchBarItem can show candidates coming from the active input method. NSCandidateListTouchBarItem has two states: expanded and collapsed. When expanded, the item replaces any NSTouchBarItems occupying its location on the bar. */ #pragma mark NSCandidateListTouchBarItem API_AVAILABLE(macos(10.12.2)) API_UNAVAILABLE(macCatalyst) @interface NSCandidateListTouchBarItem<CandidateType> : NSTouchBarItem #pragma mark Client // The client object for the receiver. @property (nullable, weak) NSView <NSTextInputClient> *client; @property (nullable, weak) id <NSCandidateListTouchBarItemDelegate> delegate API_UNAVAILABLE(macCatalyst); #pragma mark Appearance State // Controls the visible state of the item. The default is YES. @property (getter=isCollapsed) BOOL collapsed API_UNAVAILABLE(macCatalyst); // When YES, the item is allowed to be collapsed. YES by default. @property BOOL allowsCollapsing API_UNAVAILABLE(macCatalyst); // Returns the state of its native candidate list visibility. When -collapsed=NO and not obscured by UI from the text input system, this property returns YES. KVO compliant. Clients should set candidates when YES. @property (readonly, getter=isCandidateListVisible) BOOL candidateListVisible API_UNAVAILABLE(macCatalyst); // Updates the candidate list visibility configuration based on the client's insertion point state. The client is expected to update the candidate list visibility configuration whenever its selection changes. When the selection length is 0 and the insertion cursor is visible, isVisible should be YES; otherwise, it should be NO. When -hasMarkedText is YES, it should be considered the cursor is visible. - (void)updateWithInsertionPointVisibility:(BOOL)isVisible API_UNAVAILABLE(macCatalyst); #pragma mark Input Method support // When YES, the item displays candidates from input methods when available instead of -candidates. YES by default. @property BOOL allowsTextInputContextCandidates; #pragma mark Candidates // A block function for converting a candidate object into an NSAttributedString that will be displayed in the candidate bar. nil by default. Not required for displaying NSString, NSAttributedString, and NSTextCheckingResult candidates. In absence of NSFontAttributeName and NSForegroundColorAttributeName in the returned string, the standard bar appearance font and color are used instead of Helvetica 12.0 and +[NSColor blackColor]. @property (nullable, copy) NSAttributedString * (^attributedStringForCandidate)(CandidateType candidate, NSInteger index) API_UNAVAILABLE(macCatalyst); // Returns an array of candidate objects previously set via -setCandidates:forSelectedRange:inString:view: @property (readonly, copy) NSArray<CandidateType> *candidates API_UNAVAILABLE(macCatalyst); // Sets an array of candidate objects to be displayed in the candidate list bar item. The candidate objects are interpreted by -attributedStringForCandidate if the property is non-nil. NSCandidateListTouchBarItem can format NSString, NSAttributedString, and NSTextCheckingResult without the formatting block specified. The NSTouchBarItem will decide which candidates to place in the candidates array and in which order. The selectedRange and originalString arguments tell the context the list of candidates was originally derived from. For NSTextCheckingResult candidates, the selectedRange and originalString arguments should match those passed in to NSSpellChecker. The NSTouchBarItem will also arrange to display candidates near the selection in the view when appropriate. - (void)setCandidates:(NSArray<CandidateType> *)candidates forSelectedRange:(NSRange)selectedRange inString:(nullable NSString *)originalString API_UNAVAILABLE(macCatalyst); // The label displayed in the customization panel. The default is an empty string. @property (readwrite, copy, null_resettable) NSString *customizationLabel API_UNAVAILABLE(macCatalyst); @end #pragma mark NSCandidateListTouchBarItemDelegate API_UNAVAILABLE(macCatalyst) @protocol NSCandidateListTouchBarItemDelegate <NSObject> @optional // Invoked when user touches down on a candidate in the bar. - (void)candidateListTouchBarItem:(NSCandidateListTouchBarItem *)anItem beginSelectingCandidateAtIndex:(NSInteger)index API_AVAILABLE(macos(10.12.2)) API_UNAVAILABLE(macCatalyst); // Invoked when user moves from touching one candidate in the bar to another. - (void)candidateListTouchBarItem:(NSCandidateListTouchBarItem *)anItem changeSelectionFromCandidateAtIndex:(NSInteger)previousIndex toIndex:(NSInteger)index API_AVAILABLE(macos(10.12.2)) API_UNAVAILABLE(macCatalyst); // Invoked when user stops touching candidates in the bar. If index==NSNotFound, user didn't select any candidate. - (void)candidateListTouchBarItem:(NSCandidateListTouchBarItem *)anItem endSelectingCandidateAtIndex:(NSInteger)index API_AVAILABLE(macos(10.12.2)) API_UNAVAILABLE(macCatalyst); // Invoked when -candidateListVisible changed the visibility state. - (void)candidateListTouchBarItem:(NSCandidateListTouchBarItem *)anItem changedCandidateListVisibility:(BOOL)isVisible API_AVAILABLE(macos(10.12.2)) API_UNAVAILABLE(macCatalyst); @end @interface NSView (NSCandidateListTouchBarItem) // Returns NSCandidateListTouchBarItem used by the receiver when the first responder. The default implementation just returns nil. NSTextInputContext uses the item returned from this method for showing the candidates from input methods. @property (nullable, readonly, strong) NSCandidateListTouchBarItem *candidateListTouchBarItem API_AVAILABLE(macos(10.12.2)); @end // The standard identifier for NSCandidateListTouchBarItem. -[NSView candidateListTouchBarItem] concrete overrides should be using this identifier for instantiating the NSTouchBarItem. APPKIT_EXTERN NSTouchBarItemIdentifier const NSTouchBarItemIdentifierCandidateList API_AVAILABLE(macos(10.12.2)) API_UNAVAILABLE(macCatalyst); API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSAffineTransform.h
/* NSAffineTransform.h Application Kit Copyright (c) 1997-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSAffineTransform.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSBezierPath; @interface NSAffineTransform (NSAppKitAdditions) // Transform a path - (NSBezierPath *)transformBezierPath:(NSBezierPath *)path; // Setting a transform in NSGraphicsContext - (void)set; - (void)concat; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSTokenFieldCell.h
/* NSTokenFieldCell.h Application Kit Copyright (c) 2004-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSTextFieldCell.h> #import <AppKit/AppKitDefines.h> #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSTextContainer; @protocol NSTokenFieldCellDelegate; typedef NS_ENUM(NSUInteger, NSTokenStyle) { NSTokenStyleDefault, // This is equivalent to NSTokenStyleRounded. This may change in future releases. NSTokenStyleNone, // Style to use for data you want represented as plain-text and without any token background. NSTokenStyleRounded, // A token with rounded edges. NSTokenStyleSquared API_AVAILABLE(macos(10.10)), // A token with squared edges. NSTokenStylePlainSquared API_AVAILABLE(macos(10.10)), // A token with squared edges that has no background unless selected or highlighted. }; @interface NSTokenFieldCell : NSTextFieldCell /* Sets the default token style used for each new token. However, if the delegate implements tokenField:styleForRepresentedObject:, that return value will be used instead. */ @property NSTokenStyle tokenStyle; /* Sets the auto-completion delay before the list of possible completions automatically pops up. Completions are only offered if the delegate implements the completion delegate API. A negative delay will disable completion while a delay of 0.0 will make completion UI presentation immediate. */ @property NSTimeInterval completionDelay; @property (class, readonly) NSTimeInterval defaultCompletionDelay; @property (null_resettable, copy) NSCharacterSet *tokenizingCharacterSet; @property (class, readonly, copy) NSCharacterSet *defaultTokenizingCharacterSet; @property (nullable, weak) id<NSTokenFieldCellDelegate> delegate; @end @protocol NSTokenFieldCellDelegate <NSObject> @optional // Each element in the array should be an NSString or an array of NSStrings. // substring is the partial string that is being completed. tokenIndex is the index of the token being completed. // selectedIndex allows you to return by reference an index specifying which of the completions should be selected initially. // The default behavior is not to have any completions. - (NSArray *)tokenFieldCell:(NSTokenFieldCell *)tokenFieldCell completionsForSubstring:(NSString *)substring indexOfToken:(NSInteger)tokenIndex indexOfSelectedItem:(NSInteger *)selectedIndex; // return an array of represented objects you want to add. // If you want to reject the add, return an empty array. // returning nil will cause an error. - (NSArray *)tokenFieldCell:(NSTokenFieldCell *)tokenFieldCell shouldAddObjects:(NSArray *)tokens atIndex:(NSUInteger)index; // If you return nil or don't implement these delegate methods, we will assume // editing string = display string = represented object - (nullable NSString *)tokenFieldCell:(NSTokenFieldCell *)tokenFieldCell displayStringForRepresentedObject:(id)representedObject; - (nullable NSString *)tokenFieldCell:(NSTokenFieldCell *)tokenFieldCell editingStringForRepresentedObject:(id)representedObject; - (nullable id)tokenFieldCell:(NSTokenFieldCell *)tokenFieldCell representedObjectForEditingString: (NSString *)editingString; // We put the string on the pasteboard before calling this delegate method. // By default, we write the NSStringPboardType as well as an array of NSStrings. - (BOOL)tokenFieldCell:(NSTokenFieldCell *)tokenFieldCell writeRepresentedObjects:(NSArray *)objects toPasteboard:(NSPasteboard *)pboard; // Return an array of represented objects to add to the token field. - (nullable NSArray *)tokenFieldCell:(NSTokenFieldCell *)tokenFieldCell readFromPasteboard:(NSPasteboard *)pboard; // By default the tokens have no menu. - (nullable NSMenu *)tokenFieldCell:(NSTokenFieldCell *)tokenFieldCell menuForRepresentedObject:(id)representedObject; - (BOOL)tokenFieldCell:(NSTokenFieldCell *)tokenFieldCell hasMenuForRepresentedObject:(id)representedObject; // This method allows you to change the style for individual tokens as well as have mixed text and tokens. - (NSTokenStyle)tokenFieldCell:(NSTokenFieldCell *)tokenFieldCell styleForRepresentedObject:(id)representedObject; @end static const NSTokenStyle NSDefaultTokenStyle API_DEPRECATED_WITH_REPLACEMENT("NSTokenStyleDefault", macos(10.0,10.14)) = NSTokenStyleDefault; static const NSTokenStyle NSPlainTextTokenStyle API_DEPRECATED_WITH_REPLACEMENT("NSTokenStyleNone", macos(10.0,10.14)) = NSTokenStyleNone; static const NSTokenStyle NSRoundedTokenStyle API_DEPRECATED_WITH_REPLACEMENT("NSTokenStyleRounded", macos(10.0,10.14)) = NSTokenStyleRounded; API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibility.h
/* NSAccessibility.h Application Kit Copyright (c) 2001-2021, Apple Inc. All rights reserved. */ #import <AppKit/AppKitDefines.h> #import <AppKit/NSErrors.h> #import <Foundation/NSGeometry.h> #import <Foundation/NSObject.h> #import <AppKit/NSAccessibilityConstants.h> #import <AppKit/NSAccessibilityProtocols.h> #import <AppKit/NSAccessibilityElement.h> #import <AppKit/NSAccessibilityCustomRotor.h> // #import <AppKit/NSAccessibilityColor.h> - this caused a build failure (60459719), and needs to be disabled until 60467092 is addressed #import <AppKit/NSWorkspace.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSString, NSArray, NSView; /*** Accessibility Informal Protocol ***/ @interface NSObject (NSAccessibility) /* Attribute methods */ - (NSArray<NSAccessibilityAttributeName> *)accessibilityAttributeNames API_DEPRECATED("Use the NSAccessibility protocol methods instead (see NSAccessibilityProtocols.h)", macos(10.1,10.10)); - (nullable id)accessibilityAttributeValue:(NSAccessibilityAttributeName)attribute API_DEPRECATED("Use the NSAccessibility protocol methods instead (see NSAccessibilityProtocols.h)", macos(10.1,10.10)); - (BOOL)accessibilityIsAttributeSettable:(NSAccessibilityAttributeName)attribute API_DEPRECATED("Use the NSAccessibility protocol methods instead (see NSAccessibilityProtocols.h)", macos(10.1,10.10)); - (void)accessibilitySetValue:(nullable id)value forAttribute:(NSAccessibilityAttributeName)attribute API_DEPRECATED("Use the NSAccessibility protocol methods instead (see NSAccessibilityProtocols.h)", macos(10.1,10.10)); /* Parameterized Attribute methods */ - (NSArray<NSAccessibilityParameterizedAttributeName> *)accessibilityParameterizedAttributeNames API_DEPRECATED("Use the NSAccessibility protocol methods instead (see NSAccessibilityProtocols.h)", macos(10.1,10.10)); - (nullable id)accessibilityAttributeValue:(NSAccessibilityParameterizedAttributeName)attribute forParameter:(nullable id)parameter API_DEPRECATED("Use the NSAccessibility protocol methods instead (see NSAccessibilityProtocols.h)", macos(10.1,10.10)); /* Accessibility action methods */ - (NSArray<NSAccessibilityActionName> *)accessibilityActionNames API_DEPRECATED("Use the NSAccessibility protocol methods instead (see NSAccessibilityProtocols.h)", macos(10.1,10.10)); - (nullable NSString *)accessibilityActionDescription:(NSAccessibilityActionName)action API_DEPRECATED("Use the NSAccessibility protocol methods instead (see NSAccessibilityProtocols.h)", macos(10.1,10.10)); - (void)accessibilityPerformAction:(NSAccessibilityActionName)action API_DEPRECATED("Use the NSAccessibility protocol methods instead (see NSAccessibilityProtocols.h)", macos(10.1,10.10)); /* Return YES if the UIElement doesn't show up to the outside world - i.e. its parent should return the UIElement's children as its own - cutting the UIElement out. E.g. NSControls are ignored when they are single-celled. */ - (BOOL)accessibilityIsIgnored API_DEPRECATED("Use isAccessibilityElement instead", macos(10.1,10.10)); /* Returns the deepest descendant of the UIElement hierarchy that contains the point. You can assume the point has already been determined to lie within the receiver. Override this method to do deeper hit testing within a UIElement - e.g. a NSMatrix would test its cells. The point is bottom-left relative screen coordinates. */ - (nullable id)accessibilityHitTest:(NSPoint)point; /* Returns the UI Element that has the focus. You can assume that the search for the focus has already been narrowed down to the receiver. Override this method to do a deeper search with a UIElement - e.g. a NSMatrix would determine if one of its cells has the focus. */ @property (nullable, readonly, strong) id accessibilityFocusedUIElement; /* The following are optional methods to improve performance of accessible objects with large numbers of children or large numbers of UI Elements returned from attributes that return an array (selected children, or visible children, for instance). The default implementation for these operations will call -accessibilityAttributeValue: to retrieve the entire array of values, and then perform the appropriate operation. If these methods are implemented, they will be used instead. For accessibility objects with many children, the results to these methods can sometimes be calculated without generating the entire array of children which can improve performance. */ /* Given an accessibility child of an object, return the index of that child in the parent. If the provided object is not a child of the receiver, this method should return NSNotFound. */ - (NSUInteger)accessibilityIndexOfChild:(id)child; /* Return the count of an accessibility array attribute. */ - (NSUInteger)accessibilityArrayAttributeCount:(NSAccessibilityAttributeName)attribute; /* Return a subarray of values of an accessibility array attribute. Note this method does not take a range. The max count is the maximum desired number of items requested by an accessibility client. This number may be beyond the bounds of your array. */ - (NSArray *)accessibilityArrayAttributeValues:(NSAccessibilityAttributeName)attribute index:(NSUInteger)index maxCount:(NSUInteger)maxCount; /* Prior to OS X 10.9, the only accessible objects that could post accessibility notifications were those that inherited from NSView, NSWindow, or NSCell. An application's custom accessible object, subclassed from NSObject, could not post notifications. In 10.9 and later, an application's custom accessible object may post accessibility notifications if it follows the following guidelines: - the lifetime of the NSObject must match the lifetime of the corresponding element in the application's visual interface. It is common for a custom accessible object that acts as a proxy for an onscreen UI element to be autoreleased and deallocated very quickly, immediately after the application responds to a single accessibility request. This is not sufficient to support posting notifications, because any notification observers that are registered on the object will be removed as soon as the object is deallocated. Instead, the application must arrange for an accessible object that refers to a specific UI element to remain allocated as long as that UI element is visible. - the object must post the NSAccessibilityUIElementDestroyed notification at appropriate times, typically when the corresponding UI element in the application's visual interface is removed from the screen, and certainly when the accessible object is deallocated. - the object must implement -accessibilityNotifiesWhenDestroyed to return YES. */ @property (readonly) BOOL accessibilityNotifiesWhenDestroyed API_AVAILABLE(macos(10.9)); @end @interface NSWorkspace (NSWorkspaceAccessibilityDisplay) /* Get the current accessibility display option for high-contrast UI. If this is true, UI should be presented with high contrast such as utilizing a less subtle color palette or bolder lines. You may listen for NSWorkspaceAccessibilityDisplayOptionsDidChangeNotification to be notified when this changes. */ @property (readonly) BOOL accessibilityDisplayShouldIncreaseContrast API_AVAILABLE(macos(10.10)); /* Get the current accessibility display option for differentiate without color. If this is true, UI should not convey information using color alone and instead should use shapes or glyphs to convey information. You may listen for NSWorkspaceAccessibilityDisplayOptionsDidChangeNotification to be notified when this changes. */ @property (readonly) BOOL accessibilityDisplayShouldDifferentiateWithoutColor API_AVAILABLE(macos(10.10)); /* Get the current accessibility display option for reduce transparency. If this property's value is true, UI (mainly window) backgrounds should not be semi-transparent; they should be opaque. You may listen for NSWorkspaceAccessibilityDisplayOptionsDidChangeNotification to be notified when this changes. */ @property (readonly) BOOL accessibilityDisplayShouldReduceTransparency API_AVAILABLE(macos(10.10)); /* Get the current accessibility display option for reduce motion. If this property's value is true, UI should avoid large animations, especially those that simulate the third dimension. You may listen for NSWorkspaceAccessibilityDisplayOptionsDidChangeNotification to be notified when this changes. */ @property (readonly) BOOL accessibilityDisplayShouldReduceMotion API_AVAILABLE(macos(10.12)); /* Get the current accessibility display option for invert colors. If this property's value is true then the display will be inverted. In these cases it may be needed for UI drawing to be adjusted to in order to display optimally when inverted. You may listen for NSWorkspaceAccessibilityDisplayOptionsDidChangeNotification to be notified when this changes. */ @property (readonly) BOOL accessibilityDisplayShouldInvertColors API_AVAILABLE(macos(10.12)); @end @interface NSWorkspace (NSWorkspaceAccessibility) /* Indicates if VoiceOver is currently running. This is observable through KVO. */ @property (readonly, getter=isVoiceOverEnabled) BOOL voiceOverEnabled API_AVAILABLE(macos(10.13)); /* Indicates if Switch Control is currently running. This is observable through KVO. */ @property (readonly, getter=isSwitchControlEnabled) BOOL switchControlEnabled API_AVAILABLE(macos(10.13)); @end /* Notification posted to the NSWorkspace notification center when accessibility display options have changed. */ APPKIT_EXTERN NSNotificationName const NSWorkspaceAccessibilityDisplayOptionsDidChangeNotification API_AVAILABLE(macos(10.10)); /*** Accessibility Related Methods ***/ @interface NSObject (NSAccessibilityAdditions) /* For changing the set of attributes on an instance - as an alternative to sub-classing. */ - (BOOL)accessibilitySetOverrideValue:(nullable id)value forAttribute:(NSAccessibilityAttributeName)attribute API_DEPRECATED("Use the NSAccessibility protocol methods instead (see NSAccessibilityProtocols.h)", macos(10.1,10.10)); @end // With a NSView and a relative frame, return the frame in screen coordinates for accessibility APPKIT_EXTERN NSRect NSAccessibilityFrameInView(NSView *parentView, NSRect frame) API_AVAILABLE(macos(10.10)); // With a NSView and a relative point, return the frame in screen coordinates for accessibility APPKIT_EXTERN NSPoint NSAccessibilityPointInView(NSView *parentView, NSPoint point) API_AVAILABLE(macos(10.10)); /* Setting whether the application may have protected content. Protected content is identified by a value of TRUE for the accessibility attribute NSAccessibilityContainsProtectedContentAttribute. If NSAccessibilityMayContainProtectedContent returns NO, then NSAccessibilityContainsProtectedContentAttribute is completely ignored. A return value of TRUE indicates success. */ APPKIT_EXTERN BOOL NSAccessibilitySetMayContainProtectedContent(BOOL flag); /* Getting descriptions for standard roles and actions. */ APPKIT_EXTERN NSString * _Nullable NSAccessibilityRoleDescription(NSAccessibilityRole role, NSAccessibilitySubrole _Nullable subrole); APPKIT_EXTERN NSString * _Nullable NSAccessibilityRoleDescriptionForUIElement(id element); APPKIT_EXTERN NSString * _Nullable NSAccessibilityActionDescription(NSAccessibilityActionName action); /* Error signaling for bad setter value or bad parameter. */ APPKIT_EXTERN void NSAccessibilityRaiseBadArgumentException(_Null_unspecified id element, NSAccessibilityAttributeName _Null_unspecified attribute, _Null_unspecified id value) API_DEPRECATED("Exceptions are no longer appropriate for indicating errors in accessibility API. Unexpected values should be handled through appropriate type checking.", macos(10.1,10.11)); /*** Ignored UIElements Utilities ***/ APPKIT_EXTERN _Nullable id NSAccessibilityUnignoredAncestor(id element); APPKIT_EXTERN _Nullable id NSAccessibilityUnignoredDescendant(id element); APPKIT_EXTERN NSArray *NSAccessibilityUnignoredChildren(NSArray *originalChildren); APPKIT_EXTERN NSArray *NSAccessibilityUnignoredChildrenForOnlyChild(id originalChild); /*** Posting Notifications ***/ /* Posts a notification to accessibility client observers. Note that accessibility notifications are not NSNotifications and do not use the NSNotificationCenter mechanism. These notifications are received by client processes using the AX API defined in <HIServices/Accessibility.h> including AXUIElement.h. For all notifications, the observer receives the provided notification string and the AX API representation of the provided element. For most notifications, the provided element is checked for observers of the provided notification. For some notifications, the accessibility parent of the provided element is checked for observers instead. An example is NSAccessibilityCreatedNotification. It is impossible for a client to register to observe this notification on a new element, since the element does not exist yet. So, the function would be called passing in the new element, and the accessibility parent of the element is automatically checked for registered observers. The following notifications check the accessibility parent of the provided element for observers: NSAccessibilityCreatedNotification, NSAccessibilityWindowCreatedNotification, NSAccessibilityDrawerCreatedNotification, NSAccessibilitySheetCreatedNotification, NSAccessibilityHelpTagCreatedNotification, NSAccessibilityRowExpandedNotification, NSAccessibilityRowCollapsedNotification. For another set of notifications, the NSApp instance is always the observed element. An example is NSAccessibilityFocusedUIElementChangedNotification. The provided element would be the element that now has focus, and the function will automatically check NSApp for registered observers. The following notifications always check for accessibility observers of NSApp: NSAccessibilityFocusedUIElementChangedNotification, NSAccessibilityFocusedWindowChangedNotification, NSAccessibilityMainWindowChangedNotification. The rule of thumb is that the affected element should be passed into the function (the newly created element, the newly focused element, the row that was expanded, etc.), and the function will check for observer registrations on the correct element. */ APPKIT_EXTERN void NSAccessibilityPostNotification(id element, NSAccessibilityNotificationName notification); #ifdef __swift__ // This struct is not available in Objective-C. Its only purpose is to create a namespace for accessibility symbols in Swift. typedef struct NSAccessibility { void *_reserved; } NSAccessibility; #endif API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSCursor.h
/* NSCursor.h Application Kit Copyright (c) 1994-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSObject.h> #import <Foundation/NSGeometry.h> #import <AppKit/NSApplication.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN @class NSColor, NSEvent, NSImage; #if TARGET_OS_IPHONE @class UIImage; #endif API_AVAILABLE(macos(10.0), ios(13.0)) @interface NSCursor : NSObject <NSCoding> /* Returns the application's current cursor. This is not necessarily the cursor that is currently being displayed on the system. If you need the currently displayed cursor, use currentSystemCursor. */ @property (class, readonly, strong) NSCursor *currentCursor; /* Returns an NSCursor whose image and hot spot match those of the cursor that is currently being displayed on the system, regardless of which application set that cursor. For example, this allows an inactive application to examine the image and hot spot of a cursor set by the active application. This API doesn't care whether the cursor is hidden; it will return an NSCursor whose image matches the cursor you would see if it were visible. Only the cursor image and hot spot are replicated in the returned NSCursor. Other properties (such as isSetOnMouseExited and isSetOnMouseEntered) will not necessarily be accurate. This method returns nil if the currently displayed cursor could not be fetched. */ @property (class, readonly, nullable, strong) NSCursor *currentSystemCursor API_AVAILABLE(macos(10.6)); @property (class, readonly, strong) NSCursor *arrowCursor; @property (class, readonly, strong) NSCursor *IBeamCursor; @property (class, readonly, strong) NSCursor *pointingHandCursor; @property (class, readonly, strong) NSCursor *closedHandCursor; @property (class, readonly, strong) NSCursor *openHandCursor; @property (class, readonly, strong) NSCursor *resizeLeftCursor; @property (class, readonly, strong) NSCursor *resizeRightCursor; @property (class, readonly, strong) NSCursor *resizeLeftRightCursor; @property (class, readonly, strong) NSCursor *resizeUpCursor; @property (class, readonly, strong) NSCursor *resizeDownCursor; @property (class, readonly, strong) NSCursor *resizeUpDownCursor; @property (class, readonly, strong) NSCursor *crosshairCursor; @property (class, readonly, strong) NSCursor *disappearingItemCursor; @property (class, readonly, strong) NSCursor *operationNotAllowedCursor API_AVAILABLE(macos(10.5)); @property (class, readonly, strong) NSCursor *dragLinkCursor API_AVAILABLE(macos(10.6)); @property (class, readonly, strong) NSCursor *dragCopyCursor API_AVAILABLE(macos(10.6)); @property (class, readonly, strong) NSCursor *contextualMenuCursor API_AVAILABLE(macos(10.6)); @property (class, readonly, strong) NSCursor *IBeamCursorForVerticalLayout API_AVAILABLE(macos(10.7)); #if !TARGET_OS_IPHONE - (instancetype)initWithImage:(NSImage *)newImage hotSpot:(NSPoint)point NS_DESIGNATED_INITIALIZER; #else - (instancetype)initWithImage:(UIImage *)newImage hotSpot:(NSPoint)point NS_DESIGNATED_INITIALIZER; #endif - (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER; + (void)hide; + (void)unhide; + (void)setHiddenUntilMouseMoves:(BOOL)flag; + (void)pop; #if !TARGET_OS_IPHONE @property (readonly, strong) NSImage *image; #else @property (readonly, strong) UIImage *image; #endif @property (readonly) NSPoint hotSpot; - (void)push; - (void)pop; - (void)set; @end APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST static const NSAppKitVersion NSAppKitVersionNumberWithCursorSizeSupport = 682.0; @interface NSCursor (NSDeprecated) - (instancetype)initWithImage:(NSImage *)newImage foregroundColorHint:(nullable NSColor *)fg backgroundColorHint:(nullable NSColor *)bg hotSpot:(NSPoint)hotSpot API_DEPRECATED("Color hints are ignored. Use -initWithImage:hotSpot: instead", macos(10.0,10.12)); - (void)setOnMouseExited:(BOOL)flag API_DEPRECATED("setOnMouseExited is unused and should not be called", macos(10.0,10.13)); - (void)setOnMouseEntered:(BOOL)flag API_DEPRECATED("setOnMouseEntered is unused and should not be called", macos(10.0,10.13)); @property (getter=isSetOnMouseExited, readonly) BOOL setOnMouseExited API_DEPRECATED("isSetOnMouseExited is unused", macos(10.0,10.13)); @property (getter=isSetOnMouseEntered, readonly) BOOL setOnMouseEntered API_DEPRECATED("isSetOnMouseEntered is unused", macos(10.0,10.13)); - (void)mouseEntered:(NSEvent *)event API_DEPRECATED("mouseEntered: is unused and should not be called", macos(10.0,10.13)); - (void)mouseExited:(NSEvent *)event API_DEPRECATED("mouseExited: is unused and should not be called", macos(10.0,10.13)); @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSPathControl.h
/* NSPathControl.h Application Kit Copyright (c) 2005-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSObject.h> #import <Foundation/NSArray.h> #import <AppKit/NSControl.h> #import <AppKit/NSPathCell.h> #import <AppKit/NSDragging.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSPathComponentCell, NSOpenPanel, NSPathControlItem; @protocol NSPathControlDelegate; /* NSPathControl This control maintains a collection of NSPathControlItems that represent a particular path to be displayed to the user. The path shown can be set by calling -setURL:. Doing so will remove all displayed NSPathControlItems and automatically fill it up with items set to have the appropriate icons, display titles, and NSURL values for the particular path component they represent. One can manually fill up the control by setting the array or directly modifying existing item objects. Both an action and doubleAction can be set for the control. To find out what path item was clicked upon in the action, you can access the 'clickedPathItem'. When the style is set to NSPathStylePopUp, the action is still sent, and the 'clickedPathItem' for the represented menu item is correctly set. The 'clickedPathItem' is only valid when the action is being sent. It will also be valid when the keyboard is used to invoke the action. To accept drag and drop, the NSPathControl automatically calls registerForDraggedTypes: with NSFilenamesPboardType and NSURLPboardType. When the URL value in the NSPathControl changes from an automatic drag and drop operation, or from the user selecting a new path via the open panel, the action is sent, but the clickedPathItem will be nil. The NSPathControl supports several path display styles. The NSPathStyleStandard has a light blue background with arrows indicating the path. The NSPathStylePopUp will look and work like an NSPopUpButton to display the full path, or select a new path, if the control is editable. If the control isEditable (the default is YES), one can drag and drop into the control to change the value. You can constrain what can be dropped using UTIs (Uniform Type Identifier) in the allowedTypes, or the appropriate delegate methods on NSPathControl. If the control isSelectable (the default is YES), the control's contents can automatically be dragged out. The proper UTI and filename and URL will be placed on the pasteboard. You can further control or limit this by using the appropriate delegate methods on NSPathControl. If the control isEditable and has the pathStyle set to NSPathStylePopUp, an additional choice in the pop up menu will allow selecting another location. By default, an NSOpenPanel will be configured based on the allowedTypes. The NSOpenPanel that is used can be customized with a delegate method. */ API_AVAILABLE(macos(10.5)) @interface NSPathControl : NSControl @property(getter=isEditable) BOOL editable API_AVAILABLE(macos(10.10)); /* Specifies the allowed types when the control isEditable. The allowedTypes can contain a file extension (without the period that begins the extension) or UTI (Uniform Type Identifier). To allow folders, include the UTI 'public.folder'. To allow all types, use 'nil'. If allowedTypes is an empty array, nothing will be allowed. The default value is 'nil', allowing all types. */ @property(nullable, copy) NSArray<NSString *> *allowedTypes API_AVAILABLE(macos(10.10)); /* If there are no components in the path, the placeholder is drawn instead (if non-nil). We first try to draw the placeholderAttributedString. If it's nil, then the placeholderString will be drawn with correct default attributes. */ @property(nullable, copy) NSString *placeholderString API_AVAILABLE(macos(10.10)); @property(nullable, copy) NSAttributedString *placeholderAttributedString API_AVAILABLE(macos(10.10)); /* Gets and sets the path value displayed. When setting, an array of NSPathControlItems will automatically be set based on the path in the 'url'. If the 'url' is a file URL (returns YES from isFileURL), the images will automatically be filled up with file icons, if the path exists. The URL value itself is stored in the objectValue of the control. */ @property (nullable, copy) NSURL *URL; /* The selector that will be called when the user double clicks on a NSPathControlItem. */ @property (nullable) SEL doubleAction; /* The style/mode of the NSPathControl. Defaults to NSPathStyleStandard. */ @property NSPathStyle pathStyle; /* The clicked NSPathControlItem, or nil, if no item has been clicked. The clickedPathItem is generally only valid while the action or doubleAction is being sent. */ @property (nullable, readonly) NSPathControlItem *clickedPathItem API_AVAILABLE(macos(10.10)); /* The array of NSPathControlItems currently being displayed. Each item must be an NSPathControlItem. Do not subclass NSPathControlItem. You cannot set this value to nil, but should instead set it to an empty array. */ @property (copy) NSArray<NSPathControlItem *> *pathItems API_AVAILABLE(macos(10.10)); /* The background color to be drawn. By default, it will be set to a light blue color for NSPathStyleStandard, and nil for everything else. You can use [NSColor clearColor] to make the background transparent. */ @property (nullable, copy) NSColor *backgroundColor; /* The delegate for this control. The delegate is weakly referenced for zeroing-weak compatible objects in apps linked on 10.10 or later. Otherwise the behavior of this property is 'assign'. */ @property (nullable, weak) id <NSPathControlDelegate> delegate; /* Configures the default value returned from -draggingSourceOperationMaskForLocal:. An 'isLocal' value of YES indicates that 'mask' applies when the destination object is in the same application. An 'isLocal' value of NO indicates that 'mask' applies when the destination object in a destination object outside the receiver's application. By default, -draggingSourceOperationMaskForLocal: returns NSDragOperationEvery when 'isLocal' is YES, and NSDragOperationNone when 'isLocal' is NO. */ - (void)setDraggingSourceOperationMask:(NSDragOperation)mask forLocal:(BOOL)isLocal; /* The menu used when the syle is NSPathStylePopUp. */ @property (nullable, strong) NSMenu *menu; @end @protocol NSPathControlDelegate <NSObject> @optional /* Optional dragging source support. These methods are called when a drag is about to begin. One of these two methods must be implemented to allow dragging from the control. You can refuse to allow the drag to happen by returning NO, and allow it by returning YES. By default, 'pasteboard' automatically has the following types on it: NSStringPboardType, NSURLPboardType (if there is a URL value for the item being dragged), and NSFilenamesPboardType (if the URL value returns YES from -isFileURL). You can customize the types placed on the pasteboard at this time, if desired. */ - (BOOL)pathControl:(NSPathControl *)pathControl shouldDragItem:(NSPathControlItem *)pathItem withPasteboard:(NSPasteboard *)pasteboard; - (BOOL)pathControl:(NSPathControl *)pathControl shouldDragPathComponentCell:(NSPathComponentCell *)pathComponentCell withPasteboard:(NSPasteboard *)pasteboard; /* Optional dragging destination support. This method is called when something is dragged over the control. This method can be implemented to allow dragging onto the control. The delegate method will be called even for instances that are "disabled" (ie: return NO from -isEnabled). Return NSDragOperationNone to refuse the drop, or anything else to accept it. If not implemented, and the control isEnabled and isEditable, the drop will be accepted if the pasteboard contains NSURLPboardType or NSFilenamesPboardType, and if the type of the referenced file conforms to the allowedTypes. */ - (NSDragOperation)pathControl:(NSPathControl *)pathControl validateDrop:(id <NSDraggingInfo>)info; /* Optional dragging destination support. In order to accept the dropped contents previously accepted from validateDrop:, you must implement this method. This method is called from -performDragOperation:. You should change the URL value based on the dragged information. If not implemented, and the control isEditable, the drop will be accepted if the pasteboard contains NSURLPboardType or NSFilenamesPboardType, and if the type of the referenced file conforms to the allowedTypes. The control's URL value will automatically be changed, and the action will be invoked. */ - (BOOL)pathControl:(NSPathControl *)pathControl acceptDrop:(id <NSDraggingInfo>)info; /* Called before the 'openPanel' is shown, but after the 'openPanel' has allowedFileTypes set to the control's allowedTypes. At this time, you can further customize the 'openPanel' as required. This is only ever called when the style is set to NSPathStylePopUp. */ - (void)pathControl:(NSPathControl *)pathControl willDisplayOpenPanel:(NSOpenPanel *)openPanel; /* Called before the 'menu' is shown. At this time, you can further customize the 'menu' as required, adding and removing items. This is only ever called when the style is set to NSPathStylePopUp. */ - (void)pathControl:(NSPathControl *)pathControl willPopUpMenu:(NSMenu *)menu; @end @interface NSPathControl (NSDeprecated) - (nullable NSPathComponentCell *)clickedPathComponentCell API_DEPRECATED("Use -clickedPathItem instead", macos(10.0,10.14)); - (NSArray<NSPathComponentCell *> *)pathComponentCells API_DEPRECATED("Use -pathItems instead", macos(10.0,10.14)); - (void)setPathComponentCells:(NSArray<NSPathComponentCell *> *)cells API_DEPRECATED("Use -setPathItems: instead", macos(10.0,10.14)); @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSAnimation.h
/* NSAnimation.h Application Kit Copyright (c) 2004-2021, Apple Inc. All rights reserved. */ #import <AppKit/AppKitDefines.h> #import <Foundation/Foundation.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSGraphicsContext, NSString; @protocol NSAnimationDelegate; typedef NS_ENUM(NSUInteger, NSAnimationCurve) { NSAnimationEaseInOut, // default NSAnimationEaseIn, NSAnimationEaseOut, NSAnimationLinear }; typedef NS_ENUM(NSUInteger, NSAnimationBlockingMode) { NSAnimationBlocking, NSAnimationNonblocking, NSAnimationNonblockingThreaded }; typedef float NSAnimationProgress; APPKIT_EXTERN NSNotificationName NSAnimationProgressMarkNotification; // has single entry in user info dictionary APPKIT_EXTERN NSString * NSAnimationProgressMark; // NSNumber(float) with NSAnimationProgress @interface NSAnimation : NSObject <NSCopying, NSCoding> - (instancetype)initWithDuration:(NSTimeInterval)duration animationCurve:(NSAnimationCurve)animationCurve NS_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER; - (void)startAnimation; - (void)stopAnimation; @property (getter=isAnimating, readonly) BOOL animating; @property NSAnimationProgress currentProgress; @property NSTimeInterval duration; @property NSAnimationBlockingMode animationBlockingMode; @property float frameRate; @property NSAnimationCurve animationCurve; @property (readonly) float currentValue; @property (nullable, weak) id<NSAnimationDelegate> delegate; @property (copy) NSArray<NSNumber *> *progressMarks; - (void)addProgressMark:(NSAnimationProgress)progressMark; - (void)removeProgressMark:(NSAnimationProgress)progressMark; - (void)startWhenAnimation:(NSAnimation *)animation reachesProgress:(NSAnimationProgress)startProgress; - (void)stopWhenAnimation:(NSAnimation *)animation reachesProgress:(NSAnimationProgress)stopProgress; - (void)clearStartAnimation; - (void)clearStopAnimation; @property (nullable, readonly, copy) NSArray<NSRunLoopMode> *runLoopModesForAnimating; @end @protocol NSAnimationDelegate <NSObject> @optional - (BOOL)animationShouldStart:(NSAnimation *)animation; - (void)animationDidStop:(NSAnimation *)animation; - (void)animationDidEnd:(NSAnimation *)animation; - (float)animation:(NSAnimation *)animation valueForProgress:(NSAnimationProgress)progress; - (void)animation:(NSAnimation *)animation didReachProgressMark:(NSAnimationProgress)progress; @end /*-----------------------------------------------------------------------------------------*/ typedef NSString * NSViewAnimationKey NS_TYPED_ENUM; APPKIT_EXTERN NSViewAnimationKey NSViewAnimationTargetKey; // NSWindow* or NSView* (required) APPKIT_EXTERN NSViewAnimationKey NSViewAnimationStartFrameKey; // NSValue*(NSRect) (optional) APPKIT_EXTERN NSViewAnimationKey NSViewAnimationEndFrameKey; // NSValue*(NSRect) (optional) APPKIT_EXTERN NSViewAnimationKey NSViewAnimationEffectKey; // NSViewAnimationEffectName (optional) typedef NSString * NSViewAnimationEffectName NS_TYPED_ENUM; APPKIT_EXTERN NSViewAnimationEffectName NSViewAnimationFadeInEffect; APPKIT_EXTERN NSViewAnimationEffectName NSViewAnimationFadeOutEffect; @interface NSViewAnimation : NSAnimation - (instancetype)initWithViewAnimations:(NSArray<NSDictionary<NSViewAnimationKey, id> *> *)viewAnimations; @property (copy) NSArray<NSDictionary<NSViewAnimationKey, id> *> *viewAnimations; @end typedef NSString * NSAnimatablePropertyKey NS_SWIFT_BRIDGED_TYPEDEF; API_AVAILABLE(macos(10.5), ios(10.13)) @protocol NSAnimatablePropertyContainer /* Returns a proxy object for the receiver that can be used to initiate implied animation of property changes. An object's "animator" should be treated as if it was the object itself, and may be passed to any code that accepts the object as a parameter. Sending of KVC-compliant "set" messages to the proxy will trigger animation for automatically animated properties of its target object, if the active NSAnimationContext in the current thread has a duration value greater than zero, and an animation to use for the property key is found by the -animationForKey: search mechanism defined below. An object's automatically animated properties are those for which [theObject animationForKey:] finds and returns an CAAnimation instead of nil, often because [[theObject class] defaultAnimationForKey:] specifies a default animation for the key. It's perfectly valid to set a new value for a property for which an animation is currently in progress; this simply sets a new target value for that property, with animation to the new target proceeding from whatever current value the property has reached. An in-flight property animation can be stopped by setting a new value for the property with 0.0 as the surrounding NSAnimationContext's duration value. */ - (instancetype)animator API_AVAILABLE(macos(10.5)); /* An animatable property container's optional "animations" dictionary maps NSString keys to CAAnimation values. When an occurrence matching the key fires for the view, -animationForKey: first looks in this dictionary for an animation to execute in response. Typically, the key will name a property of the object whose value has just changed, but it may instead specify a special event trigger (NSAnimationTriggerOrderIn or NSAnimationTriggerOrderOut). */ @property (readwrite, copy) NSDictionary<NSAnimatablePropertyKey, id> *animations API_AVAILABLE(macos(10.5)); /* When the occurrence specified by "key" fires for an object, this method is consulted to find the animation, if any, that should be performed in response. Like its counterpart, -[CALayer actionForKey:], this method is a funnel point that defines the order in which the search for an animation proceeds, and is not one that clients would typically need to override. It first checks the receiver's "animations" dictionary, then falls back to +defaultAnimationForKey: for the receiver's class. */ - (nullable id)animationForKey:(NSAnimatablePropertyKey)key API_AVAILABLE(macos(10.5)); /* As described above, -animationForKey: consults this class method when its search of an instance's "animations" dictionary doesn't turn up an animation to use for a given property change. An animatable property container should implement +defaultAnimationForKey: to return a default animation to be performed for each key that it wants to make auto-animatable, where "key" usually names a property of the receiver, but can also specify a special animation trigger (NSAnimationTriggerOrderIn or NSAnimationTriggerOrderOut). A developer implementing a custom view subclass, for example, can enable automatic animation the subclass' added properties by overriding this method, and having it return the desired default CAAnimation to use for each of the property keys of interest. The override should defer to super for any keys it doesn't specifically handle, facilitating inheritance of default animation specifications. The full set of available CAAnimation classes can be found in QuartzCore/CAAnimation.h. Useful concrete animation classes are CABasicAnimation, CAKeyframeAnimation, CAAnimationGroup, and CATransition, all of which can be instantiated with default parameters by sending the class an +animation message. @implementation MyView + (id)defaultAnimationForKey:(NSString *)key { if ([key isEqualToString:@"borderColor"]) { // By default, animate border color changes with simple linear interpolation to the new color value. return [CABasicAnimation animation]; } else { // Defer to super's implementation for any keys we don't specifically handle. return [super defaultAnimationForKey:key]; } } @end */ + (nullable id)defaultAnimationForKey:(NSAnimatablePropertyKey)key API_AVAILABLE(macos(10.5)); @end /* @protocol NSAnimatablePropertyContainer */ APPKIT_EXTERN NSAnimatablePropertyKey NSAnimationTriggerOrderIn API_AVAILABLE(macos(10.5)); APPKIT_EXTERN NSAnimatablePropertyKey NSAnimationTriggerOrderOut API_AVAILABLE(macos(10.5)); API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSSegmentedControl.h
/* NSSegmentedControl.h Application Kit Copyright (c) 2003-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSControl.h> #import <AppKit/NSCell.h> #import <AppKit/NSUserInterfaceCompression.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSImage; typedef NS_ENUM(NSUInteger, NSSegmentSwitchTracking) { NSSegmentSwitchTrackingSelectOne = 0, // only one button can be selected NSSegmentSwitchTrackingSelectAny = 1, // any button can be selected NSSegmentSwitchTrackingMomentary = 2, // only selected while tracking NSSegmentSwitchTrackingMomentaryAccelerator API_AVAILABLE(macos(10.10.3)) = 3, // accelerator behavior, only selected while tracking }; typedef NS_ENUM(NSInteger, NSSegmentStyle) { NSSegmentStyleAutomatic = 0, //Appearance is chosen depending on the type of window and the control's position inside it NSSegmentStyleRounded = 1, NSSegmentStyleRoundRect = 3, NSSegmentStyleTexturedSquare = 4, NSSegmentStyleSmallSquare = 6, NSSegmentStyleSeparated API_AVAILABLE(macos(10.10)) = 8, /* In Mac OS X 10.10 and later, the following styles have identical artwork */ NSSegmentStyleTexturedRounded API_AVAILABLE(macos(10.5)) = 2, NSSegmentStyleCapsule API_AVAILABLE(macos(10.5)) = 5 } API_AVAILABLE(macos(10.5)); typedef NS_ENUM(NSInteger, NSSegmentDistribution) { /// Dynamically sized segments will be sized to fit their contents, any remaining space will be left blank. This style is equivalent to the way segments were distributed on older systems. NSSegmentDistributionFit = 0, /// Dynamically sized segments will be sized to fill the available space, with extra space being distributed equally among them. Default value. NSSegmentDistributionFill, /// Dynamically sized segments will be sized to fill the available space, and kept the same size as each other. NSSegmentDistributionFillEqually, /// Dynamically sized segments will be sized to fill the available space, and kept proportional to their fitting size. NSSegmentDistributionFillProportionally, } API_AVAILABLE(macos(10.13)); @interface NSSegmentedControl : NSControl <NSUserInterfaceCompression> @property NSInteger segmentCount; @property NSInteger selectedSegment; - (BOOL)selectSegmentWithTag:(NSInteger)tag; - (void)setWidth:(CGFloat)width forSegment:(NSInteger)segment; - (CGFloat)widthForSegment:(NSInteger)segment; - (void)setImage:(nullable NSImage *)image forSegment:(NSInteger)segment; - (nullable NSImage *)imageForSegment:(NSInteger)segment; - (void)setImageScaling:(NSImageScaling)scaling forSegment:(NSInteger)segment API_AVAILABLE(macos(10.5)); - (NSImageScaling)imageScalingForSegment:(NSInteger)segment API_AVAILABLE(macos(10.5)); - (void)setLabel:(NSString *)label forSegment:(NSInteger)segment; - (nullable NSString *)labelForSegment:(NSInteger)segment; - (void)setMenu:(nullable NSMenu *)menu forSegment:(NSInteger)segment; - (nullable NSMenu *)menuForSegment:(NSInteger)segment; - (void)setSelected:(BOOL)selected forSegment:(NSInteger)segment; - (BOOL)isSelectedForSegment:(NSInteger)segment; - (void)setEnabled:(BOOL)enabled forSegment:(NSInteger)segment; - (BOOL)isEnabledForSegment:(NSInteger)segment; - (void)setToolTip:(nullable NSString *)toolTip forSegment:(NSInteger)segment API_AVAILABLE(macos(10.13)); - (nullable NSString *)toolTipForSegment:(NSInteger)segment API_AVAILABLE(macos(10.13)); - (void)setTag:(NSInteger)tag forSegment:(NSInteger)segment API_AVAILABLE(macos(10.13)); - (NSInteger)tagForSegment:(NSInteger)segment API_AVAILABLE(macos(10.13)); - (void)setShowsMenuIndicator:(BOOL)showsMenuIndicator forSegment:(NSInteger)segment API_AVAILABLE(macos(10.13)); - (BOOL)showsMenuIndicatorForSegment:(NSInteger)segment API_AVAILABLE(macos(10.13)); @property NSSegmentStyle segmentStyle API_AVAILABLE(macos(10.5)); @property (getter=isSpringLoaded) BOOL springLoaded API_AVAILABLE(macos(10.10.3)); // sends action on deep-press or extended hover while dragging. Defaults to NO. @property NSSegmentSwitchTracking trackingMode API_AVAILABLE(macos(10.10.3)); /* This message is valid only for trackingMode=NSSegmentSwitchTrackingMomentaryAccelerator and provides the double value for the selected segment. */ @property (readonly) double doubleValueForSelectedSegment API_AVAILABLE(macos(10.10.3)); @property (nullable, copy) NSColor *selectedSegmentBezelColor API_AVAILABLE(macos(10.12.2)); // The color of the selected segment's bevel, in appearances that support it @property (readonly) NSInteger indexOfSelectedItem API_AVAILABLE(macos(10.4)); // same as selectedSegment, but useful for connecting a segmented control to -[NSTabView takeSelectedTabViewItemFromSender:] #if !TARGET_OS_IPHONE - (void)setAlignment:(NSTextAlignment)alignment forSegment:(NSInteger)segment API_AVAILABLE(macos(10.13)); // Controls the content alignment of the specified segment. Defaults to NSTextAlignmentCenter and results in the standard centered cluster of content - (NSTextAlignment)alignmentForSegment:(NSInteger)segment API_AVAILABLE(macos(10.13)); #endif @property NSSegmentDistribution segmentDistribution API_AVAILABLE(macos(10.13)); // Defaults to NSSegmentDistributionFill on 10.13, older systems will continue to behave similarly to NSSegmentDistributionFit - (void)compressWithPrioritizedCompressionOptions:(NSArray<NSUserInterfaceCompressionOptions *> *)prioritizedOptions API_AVAILABLE(macos(10.13)); - (NSSize)minimumSizeWithPrioritizedCompressionOptions:(NSArray<NSUserInterfaceCompressionOptions *> *)prioritizedOptions API_AVAILABLE(macos(10.13)); @property (readonly, copy) NSUserInterfaceCompressionOptions *activeCompressionOptions API_AVAILABLE(macos(10.13)); @end @interface NSSegmentedControl (NSSegmentedControlConvenience) /*! Creates a standard segmented control containing one segment for each of the provided labels. @param labels An array of localized label strings to use for the control's segments. @param trackingMode The selection mode for the control. The NSSegmentSwitchTracking enum describes the possible values and their effects. @param target The target object that receives action messages from the control. @param action The action message sent by the control. @return An initialized segmented control. */ + (instancetype)segmentedControlWithLabels:(NSArray<NSString *> *)labels trackingMode:(NSSegmentSwitchTracking)trackingMode target:(nullable id)target action:(nullable SEL)action API_AVAILABLE(macos(10.12)); /*! Creates a standard segmented control containing one segment for each of the provided images. To ensure accessibility for this control, set the accessibilityDescription property on each of the provided images. @param images An array of image objects to use for the control's segments. @param trackingMode The selection mode for the control. The NSSegmentSwitchTracking enum describes the possible values and their effects. @param target The target object that receives action messages from the control. @param action The action message sent by the control. @return An initialized segmented control. */ + (instancetype)segmentedControlWithImages:(NSArray<NSImage *> *)images trackingMode:(NSSegmentSwitchTracking)trackingMode target:(nullable id)target action:(nullable SEL)action API_AVAILABLE(macos(10.12)); @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSPDFInfo.h
/* NSPDFInfo.h Application Kit Copyright (c) 2013-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSObject.h> #import <Foundation/NSArray.h> #import <Foundation/NSDictionary.h> #import <Foundation/NSGeometry.h> #import <AppKit/NSPrintInfo.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSURL; API_AVAILABLE(macos(10.9)) @interface NSPDFInfo : NSObject <NSCopying, NSCoding> @property (copy, nullable) NSURL *URL; @property (getter=isFileExtensionHidden) BOOL fileExtensionHidden; @property (copy) NSArray<NSString *> *tagNames; @property NSPaperOrientation orientation; @property NSSize paperSize; @property (readonly) NSMutableDictionary<NSPrintInfoAttributeKey, id> *attributes; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSEPSImageRep.h
/* NSEPSImageRep.h Application Kit Copyright (c) 1994-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSImageRep.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSPDFImageRep; @interface NSEPSImageRep : NSImageRep + (nullable instancetype)imageRepWithData:(NSData *)epsData; /* Convenience of initWithData: */ - (nullable instancetype)initWithData:(NSData *)epsData; /* prepareGState is unused */ - (void)prepareGState API_DEPRECATED("", macos(10.0,10.10)); @property (readonly, copy) NSData *EPSRepresentation; @property (readonly) NSRect boundingBox; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/AppKitErrors.h
/* AppKitErrors.h Application Kit Copyright (c) 2004-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSObject.h> #import <AppKit/AppKitDefines.h> APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST /* NSError codes for AppKit added errors in NSCocoaErrorDomain. Foundation error codes can be found in <Foundation/FoundationErrors.h>; CoreData error codes in <CoreData/CoreDataErrors.h>. */ enum { NSTextReadInapplicableDocumentTypeError = 65806, // NSAttributedString parsing error NSTextWriteInapplicableDocumentTypeError = 66062, // NSAttributedString generating error // Inclusive error range definitions, for checking future error codes NSTextReadWriteErrorMinimum = 65792, NSTextReadWriteErrorMaximum = 66303, // Font error codes NSFontAssetDownloadError API_AVAILABLE(macos(10.13)) = 66304, // Generic code when font asset download error occurs. NSFontErrorMinimum API_AVAILABLE(macos(10.13)) = 66304, NSFontErrorMaximum API_AVAILABLE(macos(10.13)) = 66335, // Service error codes NSServiceApplicationNotFoundError = 66560, // The service provider could not be found. NSServiceApplicationLaunchFailedError = 66561, // The service providing application could not be launched. This will typically contain an underlying error with an LS error code (check MacErrors.h for their meanings). NSServiceRequestTimedOutError = 66562, // The service providing application did not open its service listening port in time, or the app didn't respond to the request in time; see the Console log to figure out which (the errors are typically reported the same way to the user). NSServiceInvalidPasteboardDataError = 66563, // The service providing app did not return a pasteboard with any of the promised types, or we couldn't write the data from the pasteboard to the object receiving the returned data. NSServiceMalformedServiceDictionaryError = 66564, // The service dictionary did not contain the necessary keys. Messages will typically be logged to the console giving more details. NSServiceMiscellaneousError = 66800, // Other errors, representing programmatic mistakes in the service consuming application. These show a generic error message to the user. // Inclusive service error range, for checking future error codes NSServiceErrorMinimum = 66560, NSServiceErrorMaximum = 66817, // Sharing Service Error NSSharingServiceNotConfiguredError = 67072, // The service is not configured in the Preferences // Inclusive service error range, for checking future error codes NSSharingServiceErrorMinimum = 67072, NSSharingServiceErrorMaximum = 67327, // NSWorkspaceAuthorization NSWorkspaceAuthorizationInvalidError API_AVAILABLE(macos(10.14)) = 67328, NSWorkspaceErrorMinimum API_AVAILABLE(macos(10.14)) = 67328, NSWorkspaceErrorMaximum API_AVAILABLE(macos(10.14)) = 67455, }; API_UNAVAILABLE_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSToolbar.h
/* NSToolbar.h Application Kit Copyright (c) 2000-2021, Apple Inc. All rights reserved. */ #import <AppKit/AppKitDefines.h> #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN typedef NSString * NSToolbarIdentifier NS_SWIFT_BRIDGED_TYPEDEF API_AVAILABLE(ios(13.0)); typedef NSString * NSToolbarItemIdentifier NS_TYPED_EXTENSIBLE_ENUM API_AVAILABLE(ios(13.0)); @class NSToolbarItem, NSWindow, NSView; @protocol NSToolbarDelegate; typedef NS_ENUM(NSUInteger, NSToolbarDisplayMode) { NSToolbarDisplayModeDefault, NSToolbarDisplayModeIconAndLabel, NSToolbarDisplayModeIconOnly, NSToolbarDisplayModeLabelOnly } API_AVAILABLE(ios(13.0)); typedef NS_ENUM(NSUInteger, NSToolbarSizeMode) { NSToolbarSizeModeDefault, NSToolbarSizeModeRegular, NSToolbarSizeModeSmall }; API_AVAILABLE(ios(13.0)) NS_SWIFT_UI_ACTOR @interface NSToolbar : NSObject /* The identifier is used to form the toolbar's autosave name. Also, toolbars with the same identifier are implicitly synchronized so that they maintain the same state. */ - (instancetype)initWithIdentifier:(NSToolbarIdentifier)identifier NS_DESIGNATED_INITIALIZER; /* Calls through to -initWithIdentifier: with an empty string identifier. Customizable toolbars should use -initWithIdentifier: with a unique identifier instead. */ - (instancetype)init API_AVAILABLE(macos(10.13)); /* Primitives for explicitly adding and removing items. Any change made will be propogated immediately to all other toolbars with the same identifier. */ - (void)insertItemWithItemIdentifier:(NSToolbarItemIdentifier)itemIdentifier atIndex:(NSInteger)index; - (void)removeItemAtIndex:(NSInteger)index; /* Customizable toolbars must have a delegate, and must implement the required NSToolbarDelegate methods. */ @property (nullable, weak) id<NSToolbarDelegate> delegate; /* toggles the visibliity of the toolbar. */ @property (getter=isVisible) BOOL visible; /* Customizable toolbars (those with delegates) can show a palette which allows users to populate the toolbar with individual items or to reset the toolbar to some default set of items. The items and item sets in the palette are specified by the delegate (-toolbarAllowedItemIdentifiers: and -toolbarDefaultItemIdentifiers:). When the user is done configuring, they will dismiss the palette. */ - (void)runCustomizationPalette:(nullable id)sender; @property (readonly) BOOL customizationPaletteIsRunning; // ----- Toolbar Attributes ----- @property NSToolbarDisplayMode displayMode; /* Sets the toolbar's selected item by identifier. Use this to force an item identifier to be selected. Toolbar manages selection of image items automatically. This method can be used to select identifiers of custom view items, or to force a selection change. (see toolbarSelectableItemIdentifiers: delegate method for more details). */ @property (nullable, copy) NSToolbarItemIdentifier selectedItemIdentifier; @property NSToolbarSizeMode sizeMode API_UNAVAILABLE(ios); /* Use this API to hide the baseline NSToolbar draws between itself and the main window contents. The default is YES. This method should only be used before the toolbar is attached to its window (-[NSWindow setToolbar:]). */ @property BOOL showsBaselineSeparator; /* This flag controls whether or not users can configure the toolbar by dragging items around, and whether or not the customization palette can be used. The default value is NO, but can be changed at any time. For instance, a developer may not want users to be able to edit the toolbar while some event is being processed. */ @property BOOL allowsUserCustomization; // ----- Accessing toolbar info ----- /* All toolbars with the same name will share the same display attributes, and item order. Also, if a toolbar autosaves its configuration, the item identifier will be used as the autosave name. */ @property (readonly, copy) NSToolbarIdentifier identifier; /* Allows you to access all current items in the toolbar. */ @property (readonly, copy) NSArray<__kindof NSToolbarItem *> *items; /* Allows you to access the current visible items (non clipped). */ @property (nullable, readonly, copy) NSArray<__kindof NSToolbarItem *> *visibleItems; /* The item with the specified identifier will be positioned in the absolute center of the Toolbar relative to the window assuming space allows. When the window shrinks, the highest priority is to have the most items visible. Thus, centering is broken first (it'll be pushed off to the left/right as necessary). Next, items will be shrunk down a little at a time towards their min size, at the same rate. Finally, items will be removed based on their visibility priority. This property is archived. */ @property (nullable, copy) NSToolbarItemIdentifier centeredItemIdentifier API_AVAILABLE(macos(10.14)); // ----- Autosaving The Configuration ----- /* If autosavesConfiguration is YES, the toolbar will automatically write changes the user makes to user defaults. Customizable toolbars will want to set this flag to YES. Setting this to NO means changes in configuration are not written automatically, however you can use the configurationDictionary method to do it yourself. Default is NO. */ @property BOOL autosavesConfiguration; /* Set and get the current toolbar configuration using a dictionary representation. */ - (void)setConfigurationFromDictionary:(NSDictionary<NSString *, id> *)configDict API_UNAVAILABLE(ios); @property (readonly, copy) NSDictionary<NSString *, id> *configurationDictionary API_UNAVAILABLE(ios); // ----- Validation of the items ----- /* Typically you should not invoke this method. This method is called on window updates with the purpose of validating each of the visible items. The toolbar will iterate through the list of visible items, sending each a -validate message. */ - (void)validateVisibleItems API_UNAVAILABLE(ios); // ----- Extension toolbar items ----- /* When YES, the receiver can dynamically create toolbar items for Action extensions in the toolbar configuration panel. To be included, an extension needs to declare NSExtensionServiceAllowsToolbarItem=YES in its Info.plist. The default value is NO. */ @property BOOL allowsExtensionItems API_AVAILABLE(macos(10.10)) API_UNAVAILABLE(ios); @end API_AVAILABLE(ios(13.0)) @protocol NSToolbarDelegate <NSObject> /*The following three methods are required for toolbars that are not created in Interface Builder. If the toolbar is created in IB, you may omit them. If you do implement them, any items returned by the delegate will be used alongside items created in Interface Builder. */ @optional /* Given an item identifier, this method returns an item. Note that, it is expected that each toolbar receives its own distinct copies. If the item has a custom view, that view should be in place when the item is returned. Finally, do not assume the returned item is going to be added as an active item in the toolbar. In fact, the toolbar may ask for items here in order to construct the customization palette (it makes copies of the returned items). if willBeInsertedIntoToolbar is YES, the returned item will be inserted, and you can expect toolbarWillAddItem: is about to be posted. */ - (nullable NSToolbarItem *)toolbar:(NSToolbar *)toolbar itemForItemIdentifier:(NSToolbarItemIdentifier)itemIdentifier willBeInsertedIntoToolbar:(BOOL)flag; /* Returns the ordered list of items to be shown in the toolbar by default. If during initialization, no overriding values are found in the user defaults, or if the user chooses to revert to the default items this set will be used. */ - (NSArray<NSToolbarItemIdentifier> *)toolbarDefaultItemIdentifiers:(NSToolbar *)toolbar; /* Returns the list of all allowed items by identifier. By default, the toolbar does not assume any items are allowed, even the separator. So, every allowed item must be explicitly listed. The set of allowed items is used to construct the customization palette. The order of items does not necessarily guarantee the order of appearance in the palette. At minimum, you should return the default item list.*/ - (NSArray<NSToolbarItemIdentifier> *)toolbarAllowedItemIdentifiers:(NSToolbar *)toolbar; @optional /* Optional method. Those wishing to indicate item selection in a toolbar should implement this method to return a non-empty array of selectable item identifiers. If implemented, the toolbar will remember and display the selected item with a special highlight. A selected item is one whose item identifier matches the current selected item identifier. Clicking on an item whose identifier is selectable will automatically update the toolbar's selectedItemIdentifier when possible. (see setSelectedItemIdentifier: for more details) */ - (NSArray<NSToolbarItemIdentifier> *)toolbarSelectableItemIdentifiers:(NSToolbar *)toolbar; /* Notifications */ /* Before a new item is added to the toolbar, this notification is posted. This is the best place to notice a new item is going into the toolbar. For instance, if you need to cache a reference to the toolbar item or need to set up some initial state, this is the best place to do it. The notification object is the toolbar to which the item is being added. The item being added is found by referencing the @"item" key in the userInfo. */ - (void)toolbarWillAddItem:(NSNotification *)notification; /* After an item is removed from a toolbar the notification is sent. This allows the chance to tear down information related to the item that may have been cached. The notification object is the toolbar from which the item is being removed. The item being removed is found by referencing the @"item" key in the userInfo. */ - (void)toolbarDidRemoveItem:(NSNotification *)notification; @end /* Notifications */ APPKIT_EXTERN NSNotificationName NSToolbarWillAddItemNotification API_AVAILABLE(ios(13.0)); APPKIT_EXTERN NSNotificationName NSToolbarDidRemoveItemNotification API_AVAILABLE(ios(13.0)); APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @interface NSToolbar(NSDeprecated) /* Sets the toolbar full screen accessory view. When entering full screen, the accessory view is removed from the window if necessary, and attaches underneath the toolbar. When leaving full screen, the accessory view is returned to the window, if it was in the window previously. To customize this latter behavior, you can implement the NSWindow delegate method windowWillExitFullScreen:. */ @property (nullable, strong) NSView *fullScreenAccessoryView API_DEPRECATED("Use NSTitlebarAccessoryViewController with NSWindow instead", macos(10.7,10.13)); /* The following properties control the minimum and maximum height of the accessory view. The minimum height is used when the menu bar is hidden, and the max height to a fully revealed menu bar. During the reveal, the accessory view's frame is interpolated between its minimum and maximum height. If the minimum height is zero (which it is by default), the accessory view is not resized; instead a special transition is used to reveal it with the menu bar. This simplifies the accessory view's task, because it does not have to handle the case of being set to zero height. To create a fixed-height accessory view, set the min and max height to be equal. By default, the min height is 0 and the max height gets set to the height of the accessory view's frame when it is set. */ @property CGFloat fullScreenAccessoryViewMinHeight API_DEPRECATED("Use NSTitlebarAccessoryViewController and its fullScreenMinHeight property with NSWindow instead.", macos(10.7,10.13)); @property CGFloat fullScreenAccessoryViewMaxHeight API_DEPRECATED("Use NSTitlebarAccessoryViewController with NSWindow instead. The max height of a titlebar accessory is implied by its view's height.", macos(10.7,10.13)); @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSAnimationContext.h
/* NSAnimationContext.h Application Kit Copyright (c) 2006-2021, Apple Inc. All rights reserved. */ #import <AppKit/AppKitDefines.h> #import <Foundation/NSObject.h> #import <Foundation/NSDate.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class CAMediaTimingFunction; API_AVAILABLE(macos(10.5)) @interface NSAnimationContext : NSObject + (void)runAnimationGroup:(void (NS_NOESCAPE ^)(NSAnimationContext * context))changes completionHandler:(nullable void (^)(void))completionHandler API_AVAILABLE(macos(10.7)); + (void)runAnimationGroup:(void (NS_NOESCAPE ^)(NSAnimationContext * context))changes API_AVAILABLE(macos(10.12)); + (void)beginGrouping; + (void)endGrouping; @property (class, readonly, strong) NSAnimationContext *currentContext; @property NSTimeInterval duration; @property (nullable, strong) CAMediaTimingFunction *timingFunction API_AVAILABLE(macos(10.7)); @property (nullable, copy) void (^completionHandler)(void) API_AVAILABLE(macos(10.7)); /* Determine if animations are enabled or not. Using the -animator proxy will automatically set allowsImplicitAnimation to YES. When YES, other properties can implicitly animate along with the initially changed property. For instance, calling [[view animator] setFrame:frame] will allow subviews to also animate their frame positions. This is only applicable when layer backed on Mac OS 10.8 and later. The default value is NO. */ @property BOOL allowsImplicitAnimation API_AVAILABLE(macos(10.8)); @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSDatePickerCell.h
/* NSDatePickerCell.h Application Kit Copyright (c) 2004-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSDate.h> #import <AppKit/NSActionCell.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST typedef NS_ENUM(NSUInteger, NSDatePickerStyle) { NSDatePickerStyleTextFieldAndStepper = 0, NSDatePickerStyleClockAndCalendar = 1, NSDatePickerStyleTextField = 2 }; typedef NS_ENUM(NSUInteger, NSDatePickerMode) { NSDatePickerModeSingle = 0, NSDatePickerModeRange = 1 }; typedef NS_OPTIONS(NSUInteger, NSDatePickerElementFlags) { /* Time Elements */ NSDatePickerElementFlagHourMinute = 0x000c, NSDatePickerElementFlagHourMinuteSecond = 0x000e, NSDatePickerElementFlagTimeZone = 0x0010, /* Date Elements */ NSDatePickerElementFlagYearMonth = 0x00c0, NSDatePickerElementFlagYearMonthDay = 0x00e0, NSDatePickerElementFlagEra = 0x0100, }; @class NSCalendar, NSLocale, NSTimeZone; @protocol NSDatePickerCellDelegate; @interface NSDatePickerCell : NSActionCell - (instancetype)initTextCell:(NSString *)string NS_DESIGNATED_INITIALIZER; - (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER; - (instancetype)initImageCell:(nullable NSImage *)image NS_UNAVAILABLE; #pragma mark *** Appearance Control *** @property NSDatePickerStyle datePickerStyle; @property BOOL drawsBackground; @property (copy) NSColor *backgroundColor; @property (copy) NSColor *textColor; #pragma mark *** Range Mode Control *** @property NSDatePickerMode datePickerMode; #pragma mark *** Date Presentation Control *** @property NSDatePickerElementFlags datePickerElements; @property (nullable, copy) NSCalendar *calendar; @property (nullable, copy) NSLocale *locale; @property (nullable, copy) NSTimeZone *timeZone; #pragma mark *** Object Value Access *** @property (copy) NSDate *dateValue; @property NSTimeInterval timeInterval; #pragma mark *** Constraints on Displayable/Selectable Range *** @property (nullable, copy) NSDate *minDate; @property (nullable, copy) NSDate *maxDate; #pragma mark *** Delegate *** @property (nullable, weak) id<NSDatePickerCellDelegate> delegate; @end @protocol NSDatePickerCellDelegate <NSObject> @optional - (void)datePickerCell:(NSDatePickerCell *)datePickerCell validateProposedDateValue:(NSDate * _Nonnull *_Nonnull)proposedDateValue timeInterval:(nullable NSTimeInterval *)proposedTimeInterval; @end /* Deprecated legacy date picker style constants. Prefer to use NSDatePickerStyle values instead. */ static const NSDatePickerStyle NSTextFieldAndStepperDatePickerStyle API_DEPRECATED_WITH_REPLACEMENT("NSDatePickerStyleTextFieldAndStepper", macos(10.0, 11.0)) = NSDatePickerStyleTextFieldAndStepper; static const NSDatePickerStyle NSClockAndCalendarDatePickerStyle API_DEPRECATED_WITH_REPLACEMENT("NSDatePickerStyleClockAndCalendar", macos(10.0, 11.0)) = NSDatePickerStyleClockAndCalendar; static const NSDatePickerStyle NSTextFieldDatePickerStyle API_DEPRECATED_WITH_REPLACEMENT("NSDatePickerStyleTextField", macos(10.0, 11.0)) = NSDatePickerStyleTextField; /* Deprecated legacy date picker mode constants. Prefer to use NSDatePickerMode values instead. */ static const NSDatePickerMode NSSingleDateMode API_DEPRECATED_WITH_REPLACEMENT("NSDatePickerModeSingle", macos(10.0, 11.0)) = NSDatePickerModeSingle; static const NSDatePickerMode NSRangeDateMode API_DEPRECATED_WITH_REPLACEMENT("NSDatePickerModeRange", macos(10.0, 11.0)) = NSDatePickerModeRange; /* Deprecated legacy date picker element flag constants. Prefer to use NSDatePickerElementFlags values instead. */ static const NSDatePickerElementFlags NSHourMinuteDatePickerElementFlag API_DEPRECATED_WITH_REPLACEMENT("NSDatePickerElementFlagHourMinute", macos(10.0, 11.0)) = NSDatePickerElementFlagHourMinute; static const NSDatePickerElementFlags NSHourMinuteSecondDatePickerElementFlag API_DEPRECATED_WITH_REPLACEMENT("NSDatePickerElementFlagHourMinuteSecond", macos(10.0, 11.0)) = NSDatePickerElementFlagHourMinuteSecond; static const NSDatePickerElementFlags NSTimeZoneDatePickerElementFlag API_DEPRECATED_WITH_REPLACEMENT("NSDatePickerElementFlagTimeZone", macos(10.0, 11.0)) = NSDatePickerElementFlagTimeZone; static const NSDatePickerElementFlags NSYearMonthDatePickerElementFlag API_DEPRECATED_WITH_REPLACEMENT("NSDatePickerElementFlagYearMonth", macos(10.0, 11.0)) = NSDatePickerElementFlagYearMonth; static const NSDatePickerElementFlags NSYearMonthDayDatePickerElementFlag API_DEPRECATED_WITH_REPLACEMENT("NSDatePickerElementFlagYearMonthDay", macos(10.0, 11.0)) = NSDatePickerElementFlagYearMonthDay; static const NSDatePickerElementFlags NSEraDatePickerElementFlag API_DEPRECATED_WITH_REPLACEMENT("NSDatePickerElementFlagEra", macos(10.0, 11.0)) = NSDatePickerElementFlagEra; API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSTrackingArea.h
/* NSTrackingArea.h Application Kit Copyright (c) 2006-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSObject.h> #import <Foundation/NSDictionary.h> #import <Foundation/NSObjCRuntime.h> #import <Foundation/NSGeometry.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST typedef NS_OPTIONS(NSUInteger, NSTrackingAreaOptions) { /* Type of tracking area. You must specify one or more type from this list in the NSTrackingAreaOptions argument of -initWithRect:options:owner:userInfo: */ NSTrackingMouseEnteredAndExited = 0x01, // owner receives mouseEntered when mouse enters area, and mouseExited when mouse leaves area NSTrackingMouseMoved = 0x02, // owner receives mouseMoved while mouse is within area. Note that mouseMoved events do not contain userInfo NSTrackingCursorUpdate = 0x04, // owner receives cursorUpdate when mouse enters area. Cursor is set appropriately when mouse exits area /* When tracking area is active. You must specify one of the following in the NSTrackingAreaOptions argument of -initWithRect:options:owner:userInfo: */ NSTrackingActiveWhenFirstResponder = 0x10, // owner receives mouseEntered/Exited, mouseMoved, or cursorUpdate when view is first responder NSTrackingActiveInKeyWindow = 0x20, // owner receives mouseEntered/Exited, mouseMoved, or cursorUpdate when view is in key window NSTrackingActiveInActiveApp = 0x40, // owner receives mouseEntered/Exited, mouseMoved, or cursorUpdate when app is active NSTrackingActiveAlways = 0x80, // owner receives mouseEntered/Exited or mouseMoved regardless of activation. Not supported for NSTrackingCursorUpdate. /* Behavior of tracking area. These values are used in NSTrackingAreaOptions. You may specify any number of the following in the NSTrackingAreaOptions argument of -initWithRect:options:owner:userInfo: */ NSTrackingAssumeInside = 0x100, // If set, generate mouseExited event when mouse leaves area (same as assumeInside argument in deprecated addTrackingRect:owner:userData:assumeInside:) NSTrackingInVisibleRect = 0x200, // If set, tracking occurs in visibleRect of view and rect is ignored NSTrackingEnabledDuringMouseDrag = 0x400 // If set, mouseEntered events will be generated as mouse is dragged. If not set, mouseEntered events will be generated as mouse is moved, and on mouseUp after a drag. mouseExited events are paired with mouseEntered events so their delivery is affected indirectly. That is, if a mouseEntered event is generated and the mouse subsequently moves out of the trackingArea, a mouseExited event will be generated whether the mouse is being moved or dragged, independent of this flag. }; API_AVAILABLE(macos(10.5)) @interface NSTrackingArea : NSObject <NSCopying, NSCoding> - (instancetype)initWithRect:(NSRect)rect options:(NSTrackingAreaOptions)options owner:(nullable id)owner userInfo:(nullable NSDictionary<id, id> *)userInfo; @property (readonly) NSRect rect; @property (readonly) NSTrackingAreaOptions options; @property (nullable, readonly, weak) id owner; @property (nullable, readonly, copy) NSDictionary<id, id> *userInfo; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSScrubberLayout.h
/* NSScrubberLayout.h Application Kit Copyright (c) 2016-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSGeometry.h> #import <AppKit/AppKitDefines.h> @protocol NSScrubberDelegate; NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSScrubber, NSScrubberFlowLayout, NSIndexSet; #pragma mark - Layout Attributes /*! @class NSScrubberLayoutAttributes @abstract @c NSScrubberLayoutAttributes describes the layout of a single @c NSScrubber item. @discussion @c NSScrubberLayout objects transact in terms of @c NSScrubberLayoutAttributes. @c NSScrubberLayoutAttributes can be subclassed if a layout object wants to include more layout information than the base implementation provides. Subclasses of @c NSScrubberLayoutAttributes must implement @c isEqual:, @c hash, and the @c NSCopying protocol. */ API_AVAILABLE(macos(10.12.2)) @interface NSScrubberLayoutAttributes : NSObject <NSCopying> @property NSInteger itemIndex; @property NSRect frame; @property CGFloat alpha; + (instancetype)layoutAttributesForItemAtIndex:(NSInteger)index; @end #pragma mark - Base Layout Object /*! @class NSScrubberLayout @abstract @c NSScrubberLayout is an abstract class that describes the layout of items within a @c NSScrubber control. */ API_AVAILABLE(macos(10.12.2)) NS_SWIFT_UI_ACTOR @interface NSScrubberLayout : NSObject <NSCoding> #pragma mark Base Implementation /* The following properties and methods are provided by the base implementation */ /// Specifies a class for describing layout attributes. By default, this is @c NSScrubberLayoutAttributes, but subclasses may override this method to use a custom subclass of @c NSScrubberLayoutAttributes. @property (class, readonly) Class layoutAttributesClass; /// The NSScrubber control that this layout is assigned to, or @c nil if the receiver is not assigned to a scrubber. @property (weak, nullable, readonly) NSScrubber *scrubber; /// The currently visible rectangle, in the coordinate space of the scrubber content. Returns @c NSZeroRect if the receiver is not assigned to a scrubber. @property (readonly) NSRect visibleRect; - (instancetype)init NS_DESIGNATED_INITIALIZER; - (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER; /// Signals that layout has been invalidated and the NSScrubber should run a fresh layout pass. Subclasses may define more granular invalidation methods suitable for their own data structures, but those methods should always call up to -invalidateLayout. - (void)invalidateLayout NS_REQUIRES_SUPER; #pragma mark Subclassing Hooks /* The following methods and properties should be implemented by subclasses. */ /// Following any invalidation in layout, @c NSScrubber will call @c prepareLayout on its layout object prior to requesting any other layout information. Subclasses should use this method to perform upfront calculations and caching. The base implementation of this method does nothing. - (void)prepareLayout; /// Returns the content size for all elements within the scrubber. The base implementation returns @c NSZeroSize. @property (readonly) NSSize scrubberContentSize; /// Returns the layout attributes for a single item within the scrubber. The base implementation returns @c nil. - (nullable __kindof NSScrubberLayoutAttributes *)layoutAttributesForItemAtIndex:(NSInteger)index; /// Returns the set of layout attributes for all items within the provided rectangle. The base implementation returns an empty set. - (NSSet<__kindof NSScrubberLayoutAttributes *> *)layoutAttributesForItemsInRect:(NSRect)rect; /// If @c YES, the scrubber will invalidate its layout when the selection changes. The default value is @c NO. Subclasses should return @c YES if the selection index affects the item layout. @property (readonly) BOOL shouldInvalidateLayoutForSelectionChange; /// If @c YES, the scrubber will invalidate its layout when an item is highlighted. The default value is @c NO. Subclasses should return @c YES if the highlight state affects the item layout. @property (readonly) BOOL shouldInvalidateLayoutForHighlightChange; /// If @c YES, the scrubber will invalidate its layout in response to a change in the visible region. The default value is @c NO. Subclasses which rely on the size or origin of the visible region should return @c YES. - (BOOL)shouldInvalidateLayoutForChangeFromVisibleRect:(NSRect)fromVisibleRect toVisibleRect:(NSRect)toVisibleRect; /// If @c YES, the layout object will automatically have its inputs and outputs mirrored in right-to-left interfaces. The default value is @c YES. Subclasses that wish to handle RTL layout manually should return @c NO. @property (readonly) BOOL automaticallyMirrorsInRightToLeftLayout; @end #pragma mark - Flow Layout @protocol NSScrubberFlowLayoutDelegate <NSScrubberDelegate> @optional - (NSSize)scrubber:(NSScrubber *)scrubber layout:(NSScrubberFlowLayout *)layout sizeForItemAtIndex:(NSInteger)itemIndex; @end /*! @class NSScrubberFlowLayout @abstract @c NSScrubberFlowLayout is a concrete layout object that arranges items end-to-end in a linear strip. It supports a fixed inter-item spacing and both fixed- and variable-sized items. @discussion If the associated scrubber's @c delegate conforms to @c NSScrubberFlowLayoutDelegate, and it implements the @c scrubber:layout:sizeForItemAtIndex: method, @c NSScrubberFlowLayout will obtain the item size from the delegate. If the delegate does not implement that method, or if the method returns @c NSZeroSize, it will fall back to using the layout's @c itemSize property. By default, NSScrubberFlowLayout does not invalidate its layout on selection change, highlight change, or visible rectangle change. */ API_AVAILABLE(macos(10.12.2)) @interface NSScrubberFlowLayout : NSScrubberLayout /// The amount of horizontal spacing between items in points. The default value is 0.0. @property CGFloat itemSpacing; /// The frame size for each item, if not provided by the scrubber's delegate. The default value is { 50.0, 30.0 }. @property NSSize itemSize; - (void)invalidateLayoutForItemsAtIndexes:(NSIndexSet *)invalidItemIndexes; @end #pragma mark - Proportional Layout /*! @class NSScrubberProportionalLayout @abstract @c NSScrubberProportionalLayout is a concrete layout object that sizes each item to some fraction of the scrubber's visible size. */ API_AVAILABLE(macos(10.12.2)) @interface NSScrubberProportionalLayout : NSScrubberLayout /// The number of items that should fit within the scrubber's viewport at once. @property NSInteger numberOfVisibleItems; - (instancetype)initWithNumberOfVisibleItems:(NSInteger)numberOfVisibleItems NS_DESIGNATED_INITIALIZER; - (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSPressGestureRecognizer.h
/* NSPressGestureRecognizer.h Application Kit Copyright (c) 2013-2021, Apple Inc. All rights reserved. */ #import <Foundation/Foundation.h> #import <AppKit/NSGestureRecognizer.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST API_AVAILABLE(macos(10.10)) @interface NSPressGestureRecognizer : NSGestureRecognizer <NSCoding> /* bitfield of the button(s) required to recognize this click where bit 0 is the primary button, 1 is the secondary button, etc... NSPressGestureRecognizer dynamically returns YES to delay primary, secondary and other mouse events depending on this value. */ @property NSUInteger buttonMask; // Defaults to 0x1 /* Time in seconds the mouse button must be held down for the gesture to be recognized */ @property NSTimeInterval minimumPressDuration; // Defaults to the user double-click interval /* Maximum movement in screen points allowed before the gesture fails. Once recognized (after minimumPressDuration) there is no limit on cursor movement for the remainder of the gesture tracking */ @property CGFloat allowableMovement; // in screen points. Defaults to double-click distance @property NSInteger numberOfTouchesRequired API_AVAILABLE(macos(10.12.2)); @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSDragging.h
/* NSDragging.h Application Kit Copyright (c) 1994-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSObjCRuntime.h> #import <Foundation/NSObject.h> #import <Foundation/NSArray.h> #import <Foundation/NSDictionary.h> #import <Foundation/NSGeometry.h> #import <limits.h> #import <AppKit/NSPasteboard.h> #import <AppKit/AppKitDefines.h> @protocol NSPasteboardWriting; NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSDraggingItem, NSDraggingSession, NSImage, NSPasteboard, NSView, NSWindow; @class NSURL; typedef NS_OPTIONS(NSUInteger, NSDragOperation) { NSDragOperationNone = 0, NSDragOperationCopy = 1, NSDragOperationLink = 2, NSDragOperationGeneric = 4, NSDragOperationPrivate = 8, NSDragOperationMove = 16, NSDragOperationDelete = 32, NSDragOperationEvery = NSUIntegerMax, NSDragOperationAll_Obsolete API_DEPRECATED("", macos(10.0,10.10)) = 15, // Use NSDragOperationEvery NSDragOperationAll API_DEPRECATED("", macos(10.0,10.10)) = NSDragOperationAll_Obsolete, // Use NSDragOperationEvery }; typedef NS_ENUM(NSInteger, NSDraggingFormation) { NSDraggingFormationDefault = 0, // System determined formation. NSDraggingFormationNone, // Drag images maintain their set positions relative to each other NSDraggingFormationPile, // Drag images are placed on top of each other with random rotations NSDraggingFormationList, // Drag images are laid out vertically, non-overlapping with the left edges aligned NSDraggingFormationStack // Drag images are laid out overlapping diagonally } API_AVAILABLE(macos(10.7)); typedef NS_ENUM(NSInteger, NSDraggingContext) { NSDraggingContextOutsideApplication = 0, NSDraggingContextWithinApplication } API_AVAILABLE(macos(10.7)); typedef NS_OPTIONS(NSUInteger, NSDraggingItemEnumerationOptions) { NSDraggingItemEnumerationConcurrent = NSEnumerationConcurrent, /* When the following option is set, AppKit will automatically set the imageComponentProvider to nil for all dragging items that do not meet the classes/searchOptions criteria. Effectively, this hides the drag image for non valid items for this destination. */ NSDraggingItemEnumerationClearNonenumeratedImages = (1UL << 16), } API_AVAILABLE(macos(10.7)); /* The spring loading highlight styles roughly correlate to {None: NotSpringLoadable, Light: SpringLoadable, Dark: SpringLoadingEngaged}. However, this not not strictly true as Drag & Drop may switch between highlight styles as an animated signal to the user. */ typedef NS_ENUM(NSInteger, NSSpringLoadingHighlight) { NSSpringLoadingHighlightNone = 0, NSSpringLoadingHighlightStandard, NSSpringLoadingHighlightEmphasized } API_AVAILABLE(macos(10.11)); /* protocol for the sender argument of the messages sent to a drag destination. The view or window that registered dragging types sends these messages as dragging is happening to find out details about that session of dragging. */ @protocol NSDraggingInfo <NSObject> @required @property (nullable, readonly) NSWindow *draggingDestinationWindow; @property (readonly) NSDragOperation draggingSourceOperationMask; @property (readonly) NSPoint draggingLocation; /* Returns the current location of the current composited dragging image’s origin in NSDraggingFormationNone translated to the base coordinate system of the destination object’s window */ @property (readonly) NSPoint draggedImageLocation; @property (nullable, readonly) NSImage *draggedImage API_DEPRECATED("Use NSDraggingItem objects instead", macos(10.0, 11.0)); @property (readonly) NSPasteboard *draggingPasteboard; @property (nullable, readonly) id draggingSource; @property (readonly) NSInteger draggingSequenceNumber; - (void)slideDraggedImageTo:(NSPoint)screenPoint; - (nullable NSArray<NSString *> *)namesOfPromisedFilesDroppedAtDestination:(NSURL *)dropDestination API_DEPRECATED("Use NSFilePromiseReceiver objects instead", macos(10.0,10.13)); /* Controls the dragging formation while the drag is over this destination. The default value is the current drag formation. */ @property NSDraggingFormation draggingFormation API_AVAILABLE(macos(10.7)); /* During the conclusion of an accepted drag, if this property is set to YES, the drag manager will animate each dragging image to their NSDraggingFormationNone locations. Otherwise, the drag images are removed without any animation. Note: This property is inspected between -prepareForDragOperation: and -performDragOperation:. If the final destination frames do not match the current NSDraggingFormationNone frames, then enumerate through the draggingItems during -performDragOperation: to set thier NSDraggingFormationNone frames to the correct destinations. */ @property BOOL animatesToDestination API_AVAILABLE(macos(10.7)); /* During draggingEntered: or draggingUpdated:, you are responsible for returning the drag operation. In some cases, you may accept some, but not all items on the dragging pasteboard. (For example, you only accept image files.) If you only accept some of the items, you should set this property so the drag manager can update the drag count badge. When -updateItems: is called, you should set the image of non valid dragging items to nil. If none of the drag items are valid then do not call this method. Simply return NSDragOperationNone from draggingEntered: and/or draggingUpdated: and do not modify any drag item properties. */ @property NSInteger numberOfValidItemsForDrop API_AVAILABLE(macos(10.7)); /* Use the following enumerate method to modify the properties of each dragging item. For example, change the drag image and size. Note: All changes made here are only in effect while the drag is over the destination. When the drag exits the destination all properties return to the values last set by the dragging session. */ /* Enumerate through each dragging item. Any changes made to the properties of the draggingItem are reflected in the drag and are automatically removed when the drag exits. Classes in the provided array must implement the NSPasteboardReading protocol. Cocoa classes that implement this protocol include NSImage, NSString, NSURL, NSColor, NSAttributedString, and NSPasteboardItem. For every item on the pasteboard, each class in the provided array will be queried for the types it can read using -readableTypesForPasteboard:. An instance will be created of the first class found in the provided array whose readable types match a conforming type contained in that pasteboard item. If an Instance is created from the pasteboard item data, it is placed into an NSDraggingItem along with the dragging properties of that item such as the dragging image. The NSDraggingItem is then passed as a parameter to the provided block. Additional search options, such as restricting the search to file URLs with particular content types, can be specified with a search options dictionary. See the comments for the Pasteboard Reading Options keys in NSPasteboard.h for a full description. Note: all coordinate properties in the NSDraggingItem are in the coordinate system of view. If view is nil, the screen coordinate space is used. */ - (void)enumerateDraggingItemsWithOptions:(NSDraggingItemEnumerationOptions)enumOpts forView:(nullable NSView *)view classes:(NSArray<Class> *)classArray searchOptions:(NSDictionary<NSPasteboardReadingOptionKey, id> *)searchOptions usingBlock:(void (^)(NSDraggingItem *draggingItem, NSInteger idx, BOOL *stop))block API_AVAILABLE(macos(10.7)); @property (readonly) NSSpringLoadingHighlight springLoadingHighlight API_AVAILABLE(macos(10.11)); /* Used when the drag crosses two distinct but valid spring loading regions within the same destination. The hover timer is reset and if the user is currently in a force click, they must release and re-force click to highlight the new region. */ - (void)resetSpringLoading API_AVAILABLE(macos(10.11)); @end /* Methods implemented by an object that receives dragged images. The destination view or window is sent these messages during dragging if it responds to them. */ @protocol NSDraggingDestination <NSObject> @optional - (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender; - (NSDragOperation)draggingUpdated:(id <NSDraggingInfo>)sender; /* if the destination responded to draggingEntered: but not to draggingUpdated: the return value from draggingEntered: is used */ - (void)draggingExited:(nullable id <NSDraggingInfo>)sender; - (BOOL)prepareForDragOperation:(id <NSDraggingInfo>)sender; - (BOOL)performDragOperation:(id <NSDraggingInfo>)sender; - (void)concludeDragOperation:(nullable id <NSDraggingInfo>)sender; /* draggingEnded: is implemented as of Mac OS 10.5 */ - (void)draggingEnded:(id<NSDraggingInfo>)sender; /* the receiver of -wantsPeriodicDraggingUpdates should return NO if it does not require periodic -draggingUpdated messages (eg. not autoscrolling or otherwise dependent on draggingUpdated: sent while mouse is stationary) */ - (BOOL)wantsPeriodicDraggingUpdates; /* While a destination may change the dragging images at any time, it is recommended to wait until this method is called before updating the dragging image. This allows the system to delay changing the dragging images until it is likely that the user will drop on this destination. Otherwise, the dragging images will change too often during the drag which would be distracting to the user. The destination may update the dragging images by calling one of the -enumerateDraggingItems methods on the sender. */ - (void)updateDraggingItemsForDrag:(nullable id <NSDraggingInfo>)sender API_AVAILABLE(macos(10.7)); @end @protocol NSDraggingSource <NSObject> /* Methods implemented by an object that initiates a drag session. The source application is sent these messages during dragging. The first must be implemented, the others are sent if the source responds to them. */ @required /* Declares what types of operations the source allows to be performed. Apple may provide more specific "within" values in the future. To account for this, for unrecongized localities, return the operation mask for the most specific context that you are concerned with. For example: switch(context) { case NSDraggingContextOutsideApplication: return ... break; case NSDraggingContextWithinApplication: default: return ... break; } */ - (NSDragOperation)draggingSession:(NSDraggingSession *)session sourceOperationMaskForDraggingContext:(NSDraggingContext)context; @optional - (void)draggingSession:(NSDraggingSession *)session willBeginAtPoint:(NSPoint)screenPoint; - (void)draggingSession:(NSDraggingSession *)session movedToPoint:(NSPoint)screenPoint; - (void)draggingSession:(NSDraggingSession *)session endedAtPoint:(NSPoint)screenPoint operation:(NSDragOperation)operation; - (BOOL)ignoreModifierKeysForDraggingSession:(NSDraggingSession *)session; @end typedef NS_OPTIONS(NSUInteger, NSSpringLoadingOptions) { NSSpringLoadingDisabled = 0, // Spring loading disabled NSSpringLoadingEnabled = 1UL << 0, // Spring loading allowed (via Force Click release and hover timeout depending on user preferences) /* Activate spring loading when user enters Force Click as opposed to release from Force Click. Spring loading is de-activated when Force Click is released. If hover is enabled, spring loading is activated on hover timeout and deactivates when the drag exits the target. This option should be used sparingly. */ NSSpringLoadingContinuousActivation = 1UL << 1, /* Disable spring loading activation via hover. This option should be used sparingly, but there are some rare cases where spring loading via hover results in too many false positives, but is otherwise very useful with a Force Click. These are generally cases when the destination view is very large, such as a canvas. */ NSSpringLoadingNoHover = 1UL << 3 } API_AVAILABLE(macos(10.11)); @protocol NSSpringLoadingDestination <NSObject> @required /* Perform the spring loading action (For example, the button's action, or select the tab). Normally, spring loading is a discrete action that only activates after the user completes the spring loading input. When the NSSpringLoadingContinuousActivation option set, spring loading become a continuous action that activates (YES) when the user starts spring loading and then deactivates (NO) when the user releases spring loading. See NSSpringLoadingContinuousActivation for more information. */ - (void)springLoadingActivated:(BOOL)activated draggingInfo:(id <NSDraggingInfo>)draggingInfo API_AVAILABLE(macos(10.11)); /* Called when the spring loading highlight changes */ - (void)springLoadingHighlightChanged:(id <NSDraggingInfo>)draggingInfo API_AVAILABLE(macos(10.11)); /* Note: You must also implement either -springLoadingEntered: or -springLoadingUpdated: */ @optional /* Called when a drag enters the spring loading destination. Return NSSpringLoadingEnabled to enable spring loading. A view is not considered valid spring loading drag destination if neither this method nor springLoadingUpdated: is implemented */ - (NSSpringLoadingOptions)springLoadingEntered:(id <NSDraggingInfo>)draggingInfo API_AVAILABLE(macos(10.11)); /* Called when a drag moves or the drag info changes. If this method is not implemented, then the value from -springLoadingEntered: is used. */ - (NSSpringLoadingOptions)springLoadingUpdated:(id <NSDraggingInfo>)draggingInfo API_AVAILABLE(macos(10.11)); /* Called when a drag exits the spring loading destination */ - (void)springLoadingExited:(id <NSDraggingInfo>)draggingInfo API_AVAILABLE(macos(10.11)); /* The drag & drop operation has ended. Un-spring if needed. Note: If this obejct is both an NSSpringLoadingDestination and NSDraggingDestination, draggingEnded: will only be called once. */ - (void)draggingEnded:(id <NSDraggingInfo>)draggingInfo API_AVAILABLE(macos(10.11)); @end @interface NSObject(NSDraggingSourceDeprecated) - (nullable NSArray<NSString *> *)namesOfPromisedFilesDroppedAtDestination:(NSURL *)dropDestination API_DEPRECATED("Use NSFilePromiseProvider objects instead", macos(10.0,10.13)); - (NSDragOperation)draggingSourceOperationMaskForLocal:(BOOL)flag API_DEPRECATED("Use -draggingSession:sourceOperationMaskForDraggingContext: instead", macos(10.0,10.7)); - (void)draggedImage:(null_unspecified NSImage *)image beganAt:(NSPoint)screenPoint API_DEPRECATED("Use -draggingSession:willBeginAtPoint: instead", macos(10.0,10.7)); - (void)draggedImage:(null_unspecified NSImage *)image endedAt:(NSPoint)screenPoint operation:(NSDragOperation)operation API_DEPRECATED("Use -draggingSession:endedAtPoint:operation: instead", macos(10.0,10.7)); - (void)draggedImage:(null_unspecified NSImage *)image movedTo:(NSPoint)screenPoint API_DEPRECATED("Use -draggingSession:movedToPoint: instead", macos(10.0,10.7)); - (BOOL)ignoreModifierKeysWhileDragging API_DEPRECATED("Use -ignoreModifierKeysForDraggingSession: instead", macos(10.0,10.7)); - (void)draggedImage:(null_unspecified NSImage *)image endedAt:(NSPoint)screenPoint deposited:(BOOL)flag DEPRECATED_IN_MAC_OS_X_VERSION_10_1_AND_LATER; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSMovieView.h
/* NSMovieView.h Copyright (c) 1998-2021, Apple Inc. All rights reserved. */ #warning NSMovieView is deprecated, and does not exist on 64-bit architectures. This header will be removed from the framework in a future release.
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h
/* NSPasteboard.h Application Kit Copyright (c) 1994-2021, Apple Inc. All rights reserved. */ #import <AppKit/AppKitDefines.h> #import <Foundation/NSObject.h> #import <Foundation/NSArray.h> #import <Foundation/NSDictionary.h> #import <Foundation/NSString.h> #import <Foundation/NSURL.h> #import <CoreFoundation/CFBase.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSData, NSFileWrapper, NSMutableDictionary, NSPasteboard; @protocol NSPasteboardWriting; /* Standard Pasteboard Types */ typedef NSString * NSPasteboardType NS_TYPED_EXTENSIBLE_ENUM; APPKIT_EXTERN NSPasteboardType const NSPasteboardTypeString API_AVAILABLE(macos(10.6)); // Replaces NSStringPboardType APPKIT_EXTERN NSPasteboardType const NSPasteboardTypePDF API_AVAILABLE(macos(10.6)); // Replaces NSPDFPboardType APPKIT_EXTERN NSPasteboardType const NSPasteboardTypeTIFF API_AVAILABLE(macos(10.6)); // Replaces NSTIFFPboardType APPKIT_EXTERN NSPasteboardType const NSPasteboardTypePNG API_AVAILABLE(macos(10.6)); APPKIT_EXTERN NSPasteboardType const NSPasteboardTypeRTF API_AVAILABLE(macos(10.6)); // Replaces NSRTFPboardType APPKIT_EXTERN NSPasteboardType const NSPasteboardTypeRTFD API_AVAILABLE(macos(10.6)); // Replaces NSRTFDPboardType APPKIT_EXTERN NSPasteboardType const NSPasteboardTypeHTML API_AVAILABLE(macos(10.6)); // Replaces NSHTMLPboardType APPKIT_EXTERN NSPasteboardType const NSPasteboardTypeTabularText API_AVAILABLE(macos(10.6)); // Replaces NSTabularTextPboardType APPKIT_EXTERN NSPasteboardType const NSPasteboardTypeFont API_AVAILABLE(macos(10.6)); // Replaces NSFontPboardType APPKIT_EXTERN NSPasteboardType const NSPasteboardTypeRuler API_AVAILABLE(macos(10.6)); // Replaces NSRulerPboardType APPKIT_EXTERN NSPasteboardType const NSPasteboardTypeColor API_AVAILABLE(macos(10.6)); // Replaces NSColorPboardType APPKIT_EXTERN NSPasteboardType const NSPasteboardTypeSound API_AVAILABLE(macos(10.6)); // Replaces NSSoundPboardType APPKIT_EXTERN NSPasteboardType const NSPasteboardTypeMultipleTextSelection API_AVAILABLE(macos(10.6)); // Replaces NSMultipleTextSelectionPboardType APPKIT_EXTERN NSPasteboardType const NSPasteboardTypeTextFinderOptions API_AVAILABLE(macos(10.7)); // Replaces NSPasteboardTypeFindPanelSearchOptions APPKIT_EXTERN NSPasteboardType const NSPasteboardTypeURL API_AVAILABLE(macos(10.13)); // Equivalent to kUTTypeURL APPKIT_EXTERN NSPasteboardType const NSPasteboardTypeFileURL API_AVAILABLE(macos(10.13)); // Equivalent to kUTTypeFileURL /* Standard Pasteboard Names */ typedef NSString * NSPasteboardName NS_TYPED_EXTENSIBLE_ENUM; APPKIT_EXTERN NSPasteboardName NSPasteboardNameGeneral API_AVAILABLE(macos(10.13)); APPKIT_EXTERN NSPasteboardName NSPasteboardNameFont API_AVAILABLE(macos(10.13)); APPKIT_EXTERN NSPasteboardName NSPasteboardNameRuler API_AVAILABLE(macos(10.13)); APPKIT_EXTERN NSPasteboardName NSPasteboardNameFind API_AVAILABLE(macos(10.13)); APPKIT_EXTERN NSPasteboardName NSPasteboardNameDrag API_AVAILABLE(macos(10.13)); /* Options for prepareForNewContentsWithOptions: */ typedef NS_OPTIONS(NSUInteger, NSPasteboardContentsOptions) { NSPasteboardContentsCurrentHostOnly = 1 << 0, // Specifies that the pasteboard contents should not be available to other devices } API_AVAILABLE(macos(10.12)); /* Pasteboard Reading Options These options can be used for both the -readObjectsForClasses:options: and -canReadObjectForClasses:options: methods, unless otherwise specified. The currently available options allow for customization of how NSURLs are read from the pasteboard. */ typedef NSString * NSPasteboardReadingOptionKey NS_TYPED_ENUM; /* Option for reading NSURLs to restrict the results to file URLs only. The value for this key is an NSNumber with a boolean value. */ APPKIT_EXTERN NSPasteboardReadingOptionKey const NSPasteboardURLReadingFileURLsOnlyKey API_AVAILABLE(macos(10.6)); /* Option for reading NSURLs to restrict the results to URLs with contents that conform to any of the provided UTI types. If the content type of a URL cannot be determined, it will not be considered to match. The value for this key is an array of UTI type strings. */ APPKIT_EXTERN NSPasteboardReadingOptionKey const NSPasteboardURLReadingContentsConformToTypesKey API_AVAILABLE(macos(10.6)); /* An NSPasteboard can contain multiple items. Any object that implements the NSPasteboardWriting and NSPasteboardReading protocols can be written and read on the pasteboard directly. This allows common pasteboard classes such as URLs, colors, images, strings, attributed strings, and sounds to be written and read without an intermediary object. The custom classes of an application can also implement these protocols for use with the pasteboard. */ @class NSPasteboardItem; @interface NSPasteboard : NSObject @property (class, readonly, strong) NSPasteboard *generalPasteboard; + (NSPasteboard *)pasteboardWithName:(NSPasteboardName)name; + (NSPasteboard *)pasteboardWithUniqueName; @property (readonly, copy) NSPasteboardName name; @property (readonly) NSInteger changeCount; - (oneway void)releaseGlobally; /* Prepares the pasteboard for new contents, clearing the existing contents of the pasteboard. This is the first step in providing data on the pasteboard. Any options specified will persist until prepareForNewContentsWithOptions: or clearContents is called. Returns the change count of the pasteboard. */ - (NSInteger)prepareForNewContentsWithOptions:(NSPasteboardContentsOptions)options API_AVAILABLE(macos(10.12)); /* Prepares the pasteboard for new contents, clearing the existing contents of the pasteboard. This is equivalent to calling prepareForNewContentsWithOptions: with no options. Returns the change count of the pasteboard. */ - (NSInteger)clearContents API_AVAILABLE(macos(10.6)); /* Writes the data of an array of objects that implement the NSPasteboardWriting protocol (including NSPasteboardItem instances). Returns NO if the items were not successfully added to the pasteboard. */ - (BOOL)writeObjects:(NSArray<id<NSPasteboardWriting>> *)objects API_AVAILABLE(macos(10.6)); /* Classes in the provided array must implement the NSPasteboardReading protocol. Cocoa classes that implement this protocol include NSImage, NSString, NSURL, NSColor, NSAttributedString, and NSPasteboardItem. For every item on the pasteboard, each class in the provided array will be queried for the types it can read using -readableTypesForPasteboard:. An instance will be created of the first class found in the provided array whose readable types match a conforming type contained in that pasteboard item. Any instances that could be created from pasteboard item data is returned to the caller. Additional options, such as restricting the search to file URLs with particular content types, can be specified with an options dictionary. See the comments for the option keys for a full description. Returns nil if there is an error in retrieving the requested items from the pasteboard or if no objects of the specified types can be created. Example: there are five items on the pasteboard, two contain TIFF data, two contain RTF data, one contains a private data type. Calling -readObjectsForClasses: with just the NSImage class, will return an array containing two image objects. Calling with just the NSAttributedString class, will return an array containing two attributed strings. Calling with both classes will return two image objects and two attributed strings. Note that in the above examples, the count of objects returned is less than the number of items on the pasteboard. Only objects of the requested classes are returned. You can always ensure to receive one object per item on the pasteboard by including the NSPasteboardItem class in the array of classes. In this example, an array containing the NSImage, NSAttributedString, and NSSPasteboardItem classes will return an array with two images, two attributed strings, and one pasteboard item containing the private data type. */ - (nullable NSArray *)readObjectsForClasses:(NSArray<Class> *)classArray options:(nullable NSDictionary<NSPasteboardReadingOptionKey, id> *)options API_AVAILABLE(macos(10.6)); /* Returns all pasteboard items. Returns nil if there is an error retrieving pasteboard items. */ @property (nullable, readonly, copy) NSArray<NSPasteboardItem *> *pasteboardItems API_AVAILABLE(macos(10.6)); /* The index of the provided pasteboard item in the pasteboard. If the pasteboard item has not been added to any pasteboard, or is owned by another pasteboard, returns the value NSNotFound. An item's index in the pasteboard is useful for a pasteboard item data provider that has promised data for multiple items, to be able to easily match the pasteboard item to an array of source data from which to derive the promised data. */ - (NSUInteger)indexOfPasteboardItem:(NSPasteboardItem *)pasteboardItem API_AVAILABLE(macos(10.6)); /* Method to validate whether the pasteboard contains at least one item that conforms to the specified UTIs. */ - (BOOL)canReadItemWithDataConformingToTypes:(NSArray<NSString *> *)types API_AVAILABLE(macos(10.6)); /* Method to validate whether at least one instance of any of the provided classes can be created with data on the pasteboard. Classes in the provided array must implement the NSPasteboardReading protocol. Additional options, such as restricting the search to file URLs, or URLs particular content types, can be specified with an options dictionary. See the comments for the reading option keys for a full description. */ - (BOOL)canReadObjectForClasses:(NSArray<Class> *)classArray options:(nullable NSDictionary<NSPasteboardReadingOptionKey, id> *)options API_AVAILABLE(macos(10.6)); /* The following methods all operate on what is conceptually the first item on the pasteboard. They accept UTIs and pboard type strings. In a future release they may take only UTIs. */ /* This method is the equivalent of calling -clearContents, implicitly writing the first pasteboard item, and then calling -addTypes:owner: to promise types for the first pasteboard item. In general, this method should not be used with -writeObjects: since -writeObjects: will always write additional items to the pasteboard, and will not affect items already on the pasteboard, including the item implicitly created by this method. */ - (NSInteger)declareTypes:(NSArray<NSPasteboardType> *)newTypes owner:(nullable id)newOwner; /* This method adds promises for the specified types to the first pasteboard item. If the data for those types is provided immediately, the owner can be nil. If the data for the added types will be provided lazily when requested from the pasteboard, an owner object must be provided that implements the -pasteboard:provideDataForType: method of the NSPasteboardOwner informal protocol. */ - (NSInteger)addTypes:(NSArray<NSPasteboardType> *)newTypes owner:(nullable id)newOwner; /* These methods provide information about the types available from the entire pasteboard. */ @property (nullable, readonly, copy) NSArray<NSPasteboardType> *types; - (nullable NSPasteboardType)availableTypeFromArray:(NSArray<NSPasteboardType> *)types; /* These methods set data for the specified type on the first pasteboard item. */ - (BOOL)setData:(nullable NSData *)data forType:(NSPasteboardType)dataType; - (BOOL)setPropertyList:(id)plist forType:(NSPasteboardType)dataType; - (BOOL)setString:(NSString *)string forType:(NSPasteboardType)dataType; /* These methods return a best representation of all items on the pasteboard for the requested type. For almost all data types, this simply means returning the data for the first item on the pasteboard that contains that type. For standard text data types such as string, RTF, and RTFD, the text data from each item will be returned as one combined result separated by newlines. */ - (nullable NSData *)dataForType:(NSPasteboardType)dataType; - (nullable id)propertyListForType:(NSPasteboardType)dataType; - (nullable NSString *)stringForType:(NSPasteboardType)dataType; @end @interface NSPasteboard(FilterServices) + (NSArray<NSPasteboardType> *)typesFilterableTo:(NSPasteboardType)type; + (NSPasteboard *)pasteboardByFilteringFile:(NSString *)filename; + (NSPasteboard *)pasteboardByFilteringData:(NSData *)data ofType:(NSPasteboardType)type; + (NSPasteboard *)pasteboardByFilteringTypesInPasteboard:(NSPasteboard *)pboard; @end @protocol NSPasteboardTypeOwner <NSObject> - (void)pasteboard:(NSPasteboard *)sender provideDataForType:(NSPasteboardType)type; @optional - (void)pasteboardChangedOwner:(NSPasteboard *)sender; @end #if __swift__ < 40200 @interface NSObject(NSPasteboardOwner) - (void)pasteboard:(NSPasteboard *)sender provideDataForType:(NSPasteboardType)type API_DEPRECATED("This is now a method of the NSPasteboardTypeOwner protocol.", macos(10.0, 11.0)); - (void)pasteboardChangedOwner:(NSPasteboard *)sender API_DEPRECATED("This is now an optional method of the NSPasteboardTypeOwner protocol.", macos(10.0, 11.0)); @end #endif /*** NSPasteboardWriting and NSPasteboardReading Protocols ***/ /* The NSPasteboardWriting protocol enables instances of a class to be used with the -writeObjects: method of NSPasteboard. The Cocoa framework classes NSString, NSAttributedString, NSURL, NSColor, NSSound, NSImage, and NSPasteboardItem implement this protocol. The protocol can also be implemented by custom application classes for use with -writeObjects: */ typedef NS_OPTIONS(NSUInteger, NSPasteboardWritingOptions) { NSPasteboardWritingPromised = 1 << 9, // Data for a type with this option will be promised, not immediately written } API_AVAILABLE(macos(10.6)); @protocol NSPasteboardWriting <NSObject> @required /* Returns an array of UTI strings of data types the receiver can write to the pasteboard. By default, data for the first returned type is put onto the pasteboard immediately, with the remaining types being promised. To change the default behavior, implement -writingOptionsForType:pasteboard: and return NSPasteboardWritingPromised to lazily provided data for types, return no option to provide the data for that type immediately. Use the pasteboard argument to provide different types based on the pasteboard name, if desired. Do not perform other pasteboard operations in the method implementation. */ - (NSArray<NSPasteboardType> *)writableTypesForPasteboard:(NSPasteboard *)pasteboard; @optional /* Returns options for writing data of a type to a pasteboard. Use the pasteboard argument to provide different options based on the pasteboard name, if desired. Do not perform other pasteboard operations in the method implementation. */ - (NSPasteboardWritingOptions)writingOptionsForType:(NSPasteboardType)type pasteboard:(NSPasteboard *)pasteboard; @required /* Returns the appropriate property list object for the provided type. This will commonly be the NSData for that data type. However, if this method returns either a string, or any other property-list type, the pasteboard will automatically convert these items to the correct NSData format required for the pasteboard. */ - (nullable id)pasteboardPropertyListForType:(NSPasteboardType)type; @end /* The NSPasteboardReading protocol enables instances of a class to be created from pasteboard data by using the -readObjectsForClasses:options: method of NSPasteboard. The Cocoa framework classes NSString, NSAttributedString, NSURL, NSColor, NSSound, NSImage, and NSPasteboardItem implement this protocol. The protocol can also be implemented by custom application classes for use with -readObjectsForClasses:options: */ /* NSPasteboardReadingOptions specify how data is read from the pasteboard. You can specify only one option from this list. If you do not specify an option, the default NSPasteboardReadingAsData is used. The first three options specify how and if pasteboard data should be pre-processed by the pasteboard before being passed to -initWithPasteboardPropertyList:ofType. The fourth option, NSPasteboardReadingAsKeyedArchive, should be used when the data on the pasteboard is a keyed archive of this class. Using this option, a keyed unarchiver will be used and -initWithCoder: will be called to initialize the new instance. */ typedef NS_OPTIONS(NSUInteger, NSPasteboardReadingOptions) { NSPasteboardReadingAsData = 0, // Reads data from the pasteboard as-is and returns it as an NSData NSPasteboardReadingAsString = 1 << 0, // Reads data from the pasteboard and converts it to an NSString NSPasteboardReadingAsPropertyList = 1 << 1, // Reads data from the pasteboard and un-serializes it as a property list NSPasteboardReadingAsKeyedArchive = 1 << 2, // Reads data from the pasteboard and uses initWithCoder: to create the object } API_AVAILABLE(macos(10.6)); @protocol NSPasteboardReading <NSObject> /* Returns an array of data types as UTI strings that the receiver can read from the pasteboard and be initialized from. By default, the NSData for the type is provided to -initWithPasteboardPropertyList:ofType:. By implementing -readingOptionsForType:pasteboard: and specifying a different option, the NSData for that type can be automatically converted to an NSString or property list object before being passed to -readingOptionsForType:pasteboard:. Use the pasteboard argument to provide different types based on the pasteboard name, if desired. Do not perform other pasteboard operations in the method implementation. */ @required + (NSArray<NSPasteboardType> *)readableTypesForPasteboard:(NSPasteboard *)pasteboard; @optional /* Returns options for reading data of a type from a pasteboard. Use the pasteboard argument to provide different options based on the pasteboard name, if desired. Do not perform other pasteboard operations in the method implementation. */ + (NSPasteboardReadingOptions)readingOptionsForType:(NSPasteboardType)type pasteboard:(NSPasteboard *)pasteboard; /* Initializes an instance with a property list object and a type string. By default, the property list object is the NSData for that type on the pasteboard. By specifying an NSPasteboardReading option for a type, the data on the pasteboard can be retrieved and automatically converted to a string or property list instead. This method is considered optional because if there is a single type returned from +readableTypesForPasteboard, and that type uses the NSPasteboardReadingAsKeyedArchive reading option, then initWithCoder: will be called to initialize a new instance from the keyed archive. */ @optional - (nullable id)initWithPasteboardPropertyList:(id)propertyList ofType:(NSPasteboardType)type; @end /*** NSURL Pasteboard Support ***/ /* The recommended approach for writing URLs to the pasteboard is as follows: NSArray *arrayOfURLs; // assume this exists NSPasteboard *pasteboard = [NSPasteboard generalPasteboard]; // get pasteboard [pasteboard clearContents]; // clear pasteboard to take ownership [pasteboard writeObjects:arrayOfURLs]; // write the URLs The recommended approach for reading URLs is as follows: NSPasteboard *pasteboard = [NSPasteboard generalPasteboard]; // get pasteboard NSArray *classArray = [NSArray arrayWithObject:[NSURL class]]; // types of objects you are looking for NSArray *arrayOfURLs = [pasteboard readObjectsForClasses:classArray options:nil]; // read objects of those classes To read only file URLs, use the NSPasteboardURLReadingFileURLsOnlyKey option in a dictionary provided to -readObjectsForClasses:options:. NSDictionary *options = [NSDictionary dictionaryWithObject:[NSNumber numberWithBool:YES] forKey:NSPasteboardURLReadingFileURLsOnlyKey]; To read only URLs with particular content types, use the NSPasteboardURLReadingContentsConformToTypesKey option in a dictionary provided to -readObjectsForClasses:options:. In the sample below, only URLs whose content types are images will be returned. NSDictionary *options = [NSDictionary dictionaryWithObject:[NSImage imageTypes] forKey:NSPasteboardURLReadingContentsConformToTypesKey]; To read only file URLs with particular content types, combine the two options. */ @interface NSURL(NSPasteboardSupport) <NSPasteboardWriting, NSPasteboardReading> + (nullable NSURL *)URLFromPasteboard:(NSPasteboard *)pasteBoard; - (void)writeToPasteboard:(NSPasteboard *)pasteBoard; @end /*** NSString Pasteboard Support ***/ @interface NSString(NSPasteboardSupport) <NSPasteboardWriting, NSPasteboardReading> @end /*** File Contents ***/ /* The file contents pboard type allowed you to synthesize a pboard type for a file's contents based on the file's extension. Using the UTI of a file to represent its contents now replaces this functionality.*/ @interface NSPasteboard(NSFileContents) - (BOOL)writeFileContents:(NSString *)filename; - (nullable NSString *)readFileContentsType:(nullable NSPasteboardType)type toFile:(NSString *)filename; - (BOOL)writeFileWrapper:(NSFileWrapper *)wrapper; - (nullable NSFileWrapper *)readFileWrapper; @end APPKIT_EXTERN NSPasteboardType NSFileContentsPboardType; APPKIT_EXTERN NSPasteboardType _Nullable NSCreateFilenamePboardType(NSString *fileType); APPKIT_EXTERN NSPasteboardType _Nullable NSCreateFileContentsPboardType(NSString *fileType); APPKIT_EXTERN NSString * _Nullable NSGetFileType(NSPasteboardType pboardType); APPKIT_EXTERN NSArray<NSString *> * _Nullable NSGetFileTypes(NSArray<NSPasteboardType> *pboardTypes); /*** Deprecated ***/ APPKIT_EXTERN NSPasteboardType NSStringPboardType API_DEPRECATED_WITH_REPLACEMENT("NSPasteboardTypeString", macos(10.0,10.14)); APPKIT_EXTERN NSPasteboardType NSFilenamesPboardType API_DEPRECATED("Create multiple pasteboard items with NSPasteboardTypeFileURL or kUTTypeFileURL instead", macos(10.0,10.14)); APPKIT_EXTERN NSPasteboardType NSTIFFPboardType API_DEPRECATED_WITH_REPLACEMENT("NSPasteboardTypeTIFF", macos(10.0,10.14)); APPKIT_EXTERN NSPasteboardType NSRTFPboardType API_DEPRECATED_WITH_REPLACEMENT("NSPasteboardTypeRTF", macos(10.0,10.14)); APPKIT_EXTERN NSPasteboardType NSTabularTextPboardType API_DEPRECATED_WITH_REPLACEMENT("NSPasteboardTypeTabularText", macos(10.0,10.14)); APPKIT_EXTERN NSPasteboardType NSFontPboardType API_DEPRECATED_WITH_REPLACEMENT("NSPasteboardTypeFont", macos(10.0,10.14)); APPKIT_EXTERN NSPasteboardType NSRulerPboardType API_DEPRECATED_WITH_REPLACEMENT("NSPasteboardTypeRuler", macos(10.0,10.14)); APPKIT_EXTERN NSPasteboardType NSColorPboardType API_DEPRECATED_WITH_REPLACEMENT("NSPasteboardTypeColor", macos(10.0,10.14)); APPKIT_EXTERN NSPasteboardType NSRTFDPboardType API_DEPRECATED_WITH_REPLACEMENT("NSPasteboardTypeRTFD", macos(10.0,10.14)); APPKIT_EXTERN NSPasteboardType NSHTMLPboardType API_DEPRECATED_WITH_REPLACEMENT("NSPasteboardTypeHTML", macos(10.0,10.14)); APPKIT_EXTERN NSPasteboardType NSURLPboardType API_DEPRECATED_WITH_REPLACEMENT("NSPasteboardTypeURL", macos(10.0,10.14)); APPKIT_EXTERN NSPasteboardType NSPDFPboardType API_DEPRECATED_WITH_REPLACEMENT("NSPasteboardTypePDF", macos(10.0,10.14)); APPKIT_EXTERN NSPasteboardType NSMultipleTextSelectionPboardType API_DEPRECATED_WITH_REPLACEMENT("NSPasteboardTypeMultipleTextSelection", macos(10.5,10.14)); APPKIT_EXTERN NSPasteboardType NSPostScriptPboardType API_DEPRECATED_WITH_REPLACEMENT("@\"com.adobe.encapsulated-postscript\"", macos(10.0,10.14)); APPKIT_EXTERN NSPasteboardType NSVCardPboardType API_DEPRECATED_WITH_REPLACEMENT("kUTTypeVCard", macos(10.0,10.14)); APPKIT_EXTERN NSPasteboardType NSInkTextPboardType API_DEPRECATED_WITH_REPLACEMENT("kUTTypeInkText", macos(10.0,10.14)); // HFS Promise type for dragging only APPKIT_EXTERN NSPasteboardType NSFilesPromisePboardType API_DEPRECATED_WITH_REPLACEMENT("kPasteboardTypeFileURLPromise", macos(10.0,10.14)); APPKIT_EXTERN NSPasteboardType const NSPasteboardTypeFindPanelSearchOptions API_DEPRECATED_WITH_REPLACEMENT("NSPasteboardTypeTextFinderOptions", macos(10.6,10.14)); APPKIT_EXTERN NSPasteboardName NSGeneralPboard API_DEPRECATED_WITH_REPLACEMENT("NSPasteboardNameGeneral", macos(10.0,10.13)); APPKIT_EXTERN NSPasteboardName NSFontPboard API_DEPRECATED_WITH_REPLACEMENT("NSPasteboardNameFont", macos(10.0,10.13)); APPKIT_EXTERN NSPasteboardName NSRulerPboard API_DEPRECATED_WITH_REPLACEMENT("NSPasteboardNameRuler", macos(10.0,10.13)); APPKIT_EXTERN NSPasteboardName NSFindPboard API_DEPRECATED_WITH_REPLACEMENT("NSPasteboardNameFind", macos(10.0,10.13)); APPKIT_EXTERN NSPasteboardName NSDragPboard API_DEPRECATED_WITH_REPLACEMENT("NSPasteboardNameDrag", macos(10.0,10.13)); /* NSPICTPboardType is deprecated in SnowLeopard. The PICT format was formally deprecated in Tiger along with QuickDraw. Applications should not be explicitly providing or looking for PICT data on the pasteboard. To aid in this deprecation, if PICT is the only image type on the pasteboard, as is sometimes the case when copying images from 32-bit Carbon applications, a translated image type will be automatically reported and provided by NSPasteboard. The translated type is added to the types array ahead of PICT so that the deprecated PICT format is not the preferred format. In addition, when an application provides image data to NSPasteboard, the Carbon Pasteboard Manager will automatically make a PICT translation available to 32-bit Carbon applications. Although NSPICTPboardType and its UTI equivalent kUTTypePICT will appear in a pasteboard's type array retrieved from the existing NSPasteboard API, it may cease to be reported in future releases. */ APPKIT_EXTERN NSPasteboardType NSPICTPboardType API_DEPRECATED("", macos(10.0,10.6)); API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSBitmapImageRep.h
/* NSBitmapImageRep.h Application Kit Copyright (c) 1994-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSArray.h> #import <Foundation/NSDictionary.h> #import <AppKit/NSImageRep.h> #import <AppKit/AppKitDefines.h> #import <ApplicationServices/ApplicationServices.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class CIImage; @class NSColor; @class NSColorSpace; typedef NS_ENUM(NSUInteger, NSTIFFCompression) { NSTIFFCompressionNone = 1, NSTIFFCompressionCCITTFAX3 = 3, /* 1 bps only */ NSTIFFCompressionCCITTFAX4 = 4, /* 1 bps only */ NSTIFFCompressionLZW = 5, NSTIFFCompressionJPEG = 6, /* No longer supported for input or output */ NSTIFFCompressionNEXT = 32766, /* Input only */ NSTIFFCompressionPackBits = 32773, NSTIFFCompressionOldJPEG = 32865 /* No longer supported for input or output */ }; typedef NS_ENUM(NSUInteger, NSBitmapImageFileType) { NSBitmapImageFileTypeTIFF, NSBitmapImageFileTypeBMP, NSBitmapImageFileTypeGIF, NSBitmapImageFileTypeJPEG, NSBitmapImageFileTypePNG, NSBitmapImageFileTypeJPEG2000 }; typedef NS_ENUM(NSInteger, NSImageRepLoadStatus) { NSImageRepLoadStatusUnknownType = -1, // not enough data to determine image format. please feed me more data NSImageRepLoadStatusReadingHeader = -2, // image format known, reading header. not yet valid. more data needed NSImageRepLoadStatusWillNeedAllData = -3, // can't read incrementally. will wait for complete data to become avail. NSImageRepLoadStatusInvalidData = -4, // image decompression encountered error. NSImageRepLoadStatusUnexpectedEOF = -5, // ran out of data before full image was decompressed. NSImageRepLoadStatusCompleted = -6 // all is well, the full pixelsHigh image is valid. }; typedef NS_OPTIONS(NSUInteger, NSBitmapFormat) { NSBitmapFormatAlphaFirst = 1 << 0, // 0 means is alpha last (RGBA, CMYKA, etc.) NSBitmapFormatAlphaNonpremultiplied = 1 << 1, // 0 means is premultiplied NSBitmapFormatFloatingPointSamples = 1 << 2, // 0 is integer NSBitmapFormatSixteenBitLittleEndian API_AVAILABLE(macos(10.10)) = (1 << 8), NSBitmapFormatThirtyTwoBitLittleEndian API_AVAILABLE(macos(10.10)) = (1 << 9), NSBitmapFormatSixteenBitBigEndian API_AVAILABLE(macos(10.10)) = (1 << 10), NSBitmapFormatThirtyTwoBitBigEndian API_AVAILABLE(macos(10.10)) = (1 << 11) }; typedef NSString * NSBitmapImageRepPropertyKey NS_TYPED_EXTENSIBLE_ENUM; APPKIT_EXTERN NSBitmapImageRepPropertyKey NSImageCompressionMethod; // TIFF input/output (NSTIFFCompression in NSNumber) APPKIT_EXTERN NSBitmapImageRepPropertyKey NSImageCompressionFactor; // TIFF/JPEG input/output (float in NSNumber) APPKIT_EXTERN NSBitmapImageRepPropertyKey NSImageDitherTransparency; // GIF output (BOOL in NSNumber) APPKIT_EXTERN NSBitmapImageRepPropertyKey NSImageRGBColorTable; // GIF input/output (packed RGB in NSData) APPKIT_EXTERN NSBitmapImageRepPropertyKey NSImageInterlaced; // PNG output (BOOL in NSNumber) APPKIT_EXTERN NSBitmapImageRepPropertyKey NSImageColorSyncProfileData; // TIFF,GIF input/output (NSData) APPKIT_EXTERN NSBitmapImageRepPropertyKey NSImageFrameCount; // GIF input (int in NSNumber) (read-only) APPKIT_EXTERN NSBitmapImageRepPropertyKey NSImageCurrentFrame; // GIF input (int in NSNumber) APPKIT_EXTERN NSBitmapImageRepPropertyKey NSImageCurrentFrameDuration; // GIF input (float in NSNumber) (read-only) APPKIT_EXTERN NSBitmapImageRepPropertyKey NSImageLoopCount; // GIF input (int in NSNumber) (read-only) APPKIT_EXTERN NSBitmapImageRepPropertyKey NSImageGamma; // PNG input/output (float in NSNumber) APPKIT_EXTERN NSBitmapImageRepPropertyKey NSImageProgressive; // JPEG input/output (BOOL in NSNumber) APPKIT_EXTERN NSBitmapImageRepPropertyKey NSImageEXIFData; // JPEG input/output (NSDictionary) APPKIT_EXTERN NSBitmapImageRepPropertyKey NSImageIPTCData; // Photo Metadata (NSDictionary) APPKIT_EXTERN NSBitmapImageRepPropertyKey NSImageFallbackBackgroundColor API_AVAILABLE(macos(10.5)); // JPEG output (NSColor) @interface NSBitmapImageRep : NSImageRep <NSSecureCoding> - (nullable instancetype)initWithFocusedViewRect:(NSRect)rect API_DEPRECATED("Use -[NSView cacheDisplayInRect:toBitmapImageRep:] to snapshot a view.", macos(10.0,10.14)); - (nullable instancetype)initWithBitmapDataPlanes:(unsigned char *_Nullable *_Nullable)planes pixelsWide:(NSInteger)width pixelsHigh:(NSInteger)height bitsPerSample:(NSInteger)bps samplesPerPixel:(NSInteger)spp hasAlpha:(BOOL)alpha isPlanar:(BOOL)isPlanar colorSpaceName:(NSColorSpaceName)colorSpaceName bytesPerRow:(NSInteger)rBytes bitsPerPixel:(NSInteger)pBits; - (nullable instancetype)initWithBitmapDataPlanes:(unsigned char *_Nullable *_Nullable)planes pixelsWide:(NSInteger)width pixelsHigh:(NSInteger)height bitsPerSample:(NSInteger)bps samplesPerPixel:(NSInteger)spp hasAlpha:(BOOL)alpha isPlanar:(BOOL)isPlanar colorSpaceName:(NSColorSpaceName)colorSpaceName bitmapFormat:(NSBitmapFormat)bitmapFormat bytesPerRow:(NSInteger)rBytes bitsPerPixel:(NSInteger)pBits; - (instancetype)initWithCGImage:(CGImageRef)cgImage API_AVAILABLE(macos(10.5)); - (instancetype)initWithCIImage:(CIImage *)ciImage API_AVAILABLE(macos(10.5)); + (NSArray<NSImageRep *> *)imageRepsWithData:(NSData *)data; /* some file formats can contain multiple images */ + (nullable instancetype)imageRepWithData:(NSData *)data; /* Convenience of initWithData: */ - (nullable instancetype)initWithData:(NSData *)data; @property (nullable, readonly) unsigned char *bitmapData NS_RETURNS_INNER_POINTER; - (void)getBitmapDataPlanes:(unsigned char *_Nullable *_Nonnull)data; @property (getter=isPlanar, readonly) BOOL planar; @property (readonly) NSInteger samplesPerPixel; @property (readonly) NSInteger bitsPerPixel; @property (readonly) NSInteger bytesPerRow; @property (readonly) NSInteger bytesPerPlane; @property (readonly) NSInteger numberOfPlanes; @property (readonly) NSBitmapFormat bitmapFormat; - (void)getCompression:(nullable NSTIFFCompression *)compression factor:(nullable float *)factor; - (void)setCompression:(NSTIFFCompression)compression factor:(float)factor; @property (nullable, readonly, copy) NSData *TIFFRepresentation; - (nullable NSData *)TIFFRepresentationUsingCompression:(NSTIFFCompression)comp factor:(float)factor; + (nullable NSData *)TIFFRepresentationOfImageRepsInArray:(NSArray<NSImageRep *> *)array; + (nullable NSData *)TIFFRepresentationOfImageRepsInArray:(NSArray<NSImageRep *> *)array usingCompression:(NSTIFFCompression)comp factor:(float)factor; + (void)getTIFFCompressionTypes:(const NSTIFFCompression * _Nullable * _Nonnull)list count:(NSInteger *)numTypes; + (nullable NSString *)localizedNameForTIFFCompressionType:(NSTIFFCompression)compression; - (BOOL)canBeCompressedUsing:(NSTIFFCompression)compression; /* Support for colorization of grayscale images. Maps the image such that: Gray value of midPoint -> midPointColor, black -> shadowColor, white -> lightColor. Works on images with 8-bit SPP; thus either 8-bit gray or 24-bit color (with optional alpha). */ - (void)colorizeByMappingGray:(CGFloat)midPoint toColor:(nullable NSColor *)midPointColor blackMapping:(nullable NSColor *)shadowColor whiteMapping:(nullable NSColor *)lightColor; - (instancetype)initForIncrementalLoad; - (NSInteger)incrementalLoadFromData:(NSData*)data complete:(BOOL)complete; - (void)setColor:(NSColor*)color atX:(NSInteger)x y:(NSInteger)y; - (nullable NSColor *)colorAtX:(NSInteger)x y:(NSInteger)y; - (void)getPixel:(NSUInteger[_Nonnull])p atX:(NSInteger)x y:(NSInteger)y; - (void)setPixel:(NSUInteger[_Nonnull])p atX:(NSInteger)x y:(NSInteger)y; @property (nullable, readonly) CGImageRef CGImage API_AVAILABLE(macos(10.5)); @property (readonly, strong) NSColorSpace *colorSpace API_AVAILABLE(macos(10.6)); - (nullable NSBitmapImageRep *)bitmapImageRepByConvertingToColorSpace:(NSColorSpace *)targetSpace renderingIntent:(NSColorRenderingIntent)renderingIntent API_AVAILABLE(macos(10.6)); - (nullable NSBitmapImageRep *)bitmapImageRepByRetaggingWithColorSpace:(NSColorSpace *)newSpace API_AVAILABLE(macos(10.6)); @end @interface NSBitmapImageRep (NSBitmapImageFileTypeExtensions) + (nullable NSData *)representationOfImageRepsInArray:(NSArray<NSImageRep *> *)imageReps usingType:(NSBitmapImageFileType)storageType properties:(NSDictionary<NSBitmapImageRepPropertyKey, id> *)properties; - (nullable NSData *)representationUsingType:(NSBitmapImageFileType)storageType properties:(NSDictionary<NSBitmapImageRepPropertyKey, id> *)properties; - (void)setProperty:(NSBitmapImageRepPropertyKey)property withValue:(nullable id)value; - (nullable id)valueForProperty:(NSBitmapImageRepPropertyKey)property; @end static const NSBitmapImageFileType NSTIFFFileType API_DEPRECATED_WITH_REPLACEMENT("NSBitmapImageFileTypeTIFF", macos(10.0,10.14)) = NSBitmapImageFileTypeTIFF; static const NSBitmapImageFileType NSBMPFileType API_DEPRECATED_WITH_REPLACEMENT("NSBitmapImageFileTypeBMP", macos(10.0,10.14)) = NSBitmapImageFileTypeBMP; static const NSBitmapImageFileType NSGIFFileType API_DEPRECATED_WITH_REPLACEMENT("NSBitmapImageFileTypeGIF", macos(10.0,10.14)) = NSBitmapImageFileTypeGIF; static const NSBitmapImageFileType NSJPEGFileType API_DEPRECATED_WITH_REPLACEMENT("NSBitmapImageFileTypeJPEG", macos(10.0,10.14)) = NSBitmapImageFileTypeJPEG; static const NSBitmapImageFileType NSPNGFileType API_DEPRECATED_WITH_REPLACEMENT("NSBitmapImageFileTypePNG", macos(10.0,10.14)) = NSBitmapImageFileTypePNG; static const NSBitmapImageFileType NSJPEG2000FileType API_DEPRECATED_WITH_REPLACEMENT("NSBitmapImageFileTypeJPEG2000", macos(10.0,10.14)) = NSBitmapImageFileTypeJPEG2000; static const NSBitmapFormat NSAlphaFirstBitmapFormat API_DEPRECATED_WITH_REPLACEMENT("NSBitmapFormatAlphaFirst", macos(10.5,10.14)) = NSBitmapFormatAlphaFirst; static const NSBitmapFormat NSAlphaNonpremultipliedBitmapFormat API_DEPRECATED_WITH_REPLACEMENT("NSBitmapFormatAlphaNonpremultiplied", macos(10.0,10.14)) = NSBitmapFormatAlphaNonpremultiplied; static const NSBitmapFormat NSFloatingPointSamplesBitmapFormat API_DEPRECATED_WITH_REPLACEMENT("NSBitmapFormatFloatingPointSamples", macos(10.0,10.14)) = NSBitmapFormatFloatingPointSamples; static const NSBitmapFormat NS16BitLittleEndianBitmapFormat API_DEPRECATED_WITH_REPLACEMENT("NSBitmapFormatSixteenBitLittleEndian", macos(10.5,10.14)) = NSBitmapFormatSixteenBitLittleEndian; static const NSBitmapFormat NS32BitLittleEndianBitmapFormat API_DEPRECATED_WITH_REPLACEMENT("NSBitmapFormatThirtyTwoBitLittleEndian", macos(10.0,10.14)) = NSBitmapFormatThirtyTwoBitLittleEndian; static const NSBitmapFormat NS16BitBigEndianBitmapFormat API_DEPRECATED_WITH_REPLACEMENT("NSBitmapFormatSixteenBitBigEndian", macos(10.0,10.14)) = NSBitmapFormatSixteenBitBigEndian; static const NSBitmapFormat NS32BitBigEndianBitmapFormat API_DEPRECATED_WITH_REPLACEMENT("NSBitmapFormatThirtyTwoBitBigEndian", macos(10.0,10.14)) = NSBitmapFormatThirtyTwoBitBigEndian; API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSFileWrapperExtensions.h
/* NSFileWrapperExtensions.h Application Kit Copyright (c) 2002-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSFileWrapper.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSImage; @interface NSFileWrapper(NSExtensions) /* The icon. -icon may return nil even if the receiver is the result of reading a parent from the file system (use NSFileWrapperReadingImmediately if appropriate to prevent that). The image that's returned might be shared by many NSFileWrappers so your application must not mutate it. If your application needs to mutate the returned image it should make a copy and mutate the copy instead. */ @property (nullable, strong) NSImage *icon; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSTableRowView.h
/* NSTableRowView.h Application Kit Copyright (c) 2008-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSObject.h> #import <AppKit/NSView.h> #import <AppKit/NSCell.h> #import <AppKit/NSTableView.h> #import <AppKit/AppKitDefines.h> /* View Based TableView: The NSTableRowView is the view shown for a row in the table. It is responsible for drawing things associated with the row, including the selection highlight, and group row look. Properties can be changed on a row-by-row basis by using the table delegate method -tableView:didAddRowView:forRow:. Modifications of the properties are NOT reflected by the NSTableView instance; the NSTableRowView is simply a representation of the state. In other words, setting rowView.selected will NOT change the -selectedRowIndexes in NSTableView. */ NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSLayoutConstraint; API_AVAILABLE(macos(10.7)) @interface NSTableRowView : NSView <NSAccessibilityRow> /* The tableView sets the selectionHighlightStyle based on its current value. */ @property NSTableViewSelectionHighlightStyle selectionHighlightStyle; /* When emphasized is YES, the view should draw with the (typically) blue [NSColor alternateSelectedControlColor]. When NO, it should use the (typically) gray [NSColor secondarySelectedControlColor]. */ @property(getter=isEmphasized) BOOL emphasized; /* When groupRowStyle is set to YES, this row is a group row and will draw appropriately. */ @property(getter=isGroupRowStyle) BOOL groupRowStyle; /* Selection state. The selection will be drawn when selected and the selectionHighlightStyle is not NSTableViewSelectionHighlightStyleNone. */ @property(getter=isSelected) BOOL selected; /* Next and previous row selection state. Allows subclassers to draw selection differently based on the previous next row being selected. State is automatically updated by NSTableView, however, the changing of the state does not invalidate the row view. If a row view depends on this state, it should override the particular setter and call [self setNeedsDisplay:YES] before or after calling super. */ @property(getter=isPreviousRowSelected) BOOL previousRowSelected API_AVAILABLE(macos(10.10)); @property(getter=isNextRowSelected) BOOL nextRowSelected; /* Floating is a temporary attribute that is set when a particular group row is actually floating above other rows. The state may change dynamically based on the position of the group row. Drawing may be different for rows that are currently 'floating'. The TableView's delegate must implement tableView:isGroupRow: (or outlineView:isGroupItem:) to enable floating group rows. */ @property(getter=isFloating) BOOL floating; /* Drag and drop state. When targetForDropOperation is set to YES, the NSTableRowView will draw a drop on indicator based on the current draggingDestinationFeedbackStyle. The indentationForDropOperation is set appropriately by NSOutlineView if the drop target row should be indented. Otherwise it is 0. On Mac OS 10.0.2, the indentation is always 0, and the feedback style is now drawn similar to selection. */ @property(getter=isTargetForDropOperation) BOOL targetForDropOperation; @property NSTableViewDraggingDestinationFeedbackStyle draggingDestinationFeedbackStyle; @property CGFloat indentationForDropOperation; /* The interiorBackgroundStyle can be used as an indication of how the subviews should draw. This value is dynamically computed based on the set of properties set for the NSTableRowView. Subclassers can override this value when they draw differently based on the currently displayed properties. This method can also be called to determine what color a subview should use, or alternatively, NSControls can have the -backgroundStyle set on their cell to this value. */ @property(readonly) NSBackgroundStyle interiorBackgroundStyle; /* The backgroundColor property defaults to the Table View's backgroundColor, unless usesAlternatingRowBackgroundColors is set to YES. In that case, the colors alternate, and are automatically updated as required by insertions and deletions. The value can be customized in the delegate method -tableView:didAddRowView:forRow:. The property is animatable. */ @property(copy) NSColor *backgroundColor; /* NOTE: NSTableRowView overrides isFlipped and returns YES. */ #pragma mark - #pragma mark ***** Drawing override points ***** /* Row view drawing can be customized by overriding the following set of methods. -drawRect: calls them in the following deterministic order: -drawBackgroundInRect: -drawSelectionInRect: (only called if selection should be drawn (selected==YES, or alpha fading it in or out)) -drawSeparatorInRect: (only called if the table has a grid mask set to include a horizontal separator). -drawDraggingDestinationFeedbackInRect: (only called if targetForDropOperation==YES) */ /* Override point to draw a custom background. 'dirtyRect' is the current dirty rect passed from -drawRect:. By default, this method draws the background color or "group row" style look. It will also draw the below look for a drop target if targetForDropOperation is YES. It is also recommended to override interiorBackgroundStyle when overriding this method. */ - (void)drawBackgroundInRect:(NSRect)dirtyRect; /* Override point for drawing the selection. 'dirtyRect' is the current dirty rect passed from -drawRect:. This method is only called if the selection should be drawn. The selection will automatically be alpha-blended if the selection is animating in or out. The default selection drawn is dependent on the selectionHighlightStyle. It is also recommended to override interiorBackgroundStyle when overriding this method. Note: For 10.10 drawSelectionInRect: will not be called when the selectionHighlightStyle is set to NSTableViewSelectionHighlightStyleSourceList. */ - (void)drawSelectionInRect:(NSRect)dirtyRect; /* Override point for drawing the (horizontal) separator.'dirtyRect' is the current dirty rect passed from -drawRect:. By default, the separator is only drawn if the enclosing table's gridStyleMask is set to include a horizontal separator. The separator should be drawn at the bottom of the row view, indicating a separation from this row and the next. */ - (void)drawSeparatorInRect:(NSRect)dirtyRect; /* Override point for drawing the dragging destination feedback when the entire row is a "drop target". 'dirtyRect' is the current dirty rect passed from -drawRect:. This method only is called if targetForDropOperation is YES, and will draw based on the properties set (such as the group row style). */ - (void)drawDraggingDestinationFeedbackInRect:(NSRect)dirtyRect; #pragma mark - #pragma mark ***** Cell View Access ***** /* Provides access to the given view at a particular column. This is the only way to access cell views after the row view has been removed from the table. */ - (nullable id)viewAtColumn:(NSInteger)column; /* Provides access to the number of columns represented by views in this NSTableRowView. This may not be equal to the number of columns in the enclosing NSTableView, if this row view is a group style and has a single view that spans the entire width of the row. */ @property(readonly) NSInteger numberOfColumns; #pragma mark - @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSSplitViewItem.h
/* NSSplitViewItem.h Application Kit Copyright (c) 2014-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSLayoutConstraint.h> #import <AppKit/AppKitDefines.h> #import <AppKit/NSAnimation.h> #import <AppKit/NSWindow.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSViewController; typedef NS_ENUM(NSInteger, NSSplitViewItemBehavior) { NSSplitViewItemBehaviorDefault, NSSplitViewItemBehaviorSidebar, NSSplitViewItemBehaviorContentList } API_AVAILABLE(macos(10.11)); typedef NS_ENUM(NSInteger, NSSplitViewItemCollapseBehavior) { /// The item uses the default collapsing behavior for its set `behavior`. The default may change over time. NSSplitViewItemCollapseBehaviorDefault, /// The item prefers to keep the other panes at their current size and position on screen, potentially growing or shrinking the window in the direction to best preserve that. But it will break that preference in order to keep the window fully on screen or when in full screen. NSSplitViewItemCollapseBehaviorPreferResizingSplitViewWithFixedSiblings, /// The item prefers to resize the other split panes. This will be broken when uncollapsing if the item can't fully uncollapse before hitting the minimum size of the other panes or the window. NSSplitViewItemCollapseBehaviorPreferResizingSiblingsWithFixedSplitView, /// The item will collapse/uncollapse purely from a constraint animation, with a constraint priority of the item’s `holdingPriority`. This could result in a partial internal content resize and window resize, and has no implications for keeping the window on screen. External constraints can be used to tweak exactly how the animation affects item, sibling, and window size and positions. NSSplitViewItemCollapseBehaviorUseConstraints } API_AVAILABLE(macos(10.11)); /// This constant can be used with any sizing related \c NSSplitViewItem properties to unset their values. APPKIT_EXTERN const CGFloat NSSplitViewItemUnspecifiedDimension API_AVAILABLE(macos(10.11)); /*! * NSSplitViewItem implements the items used in an NSSplitViewController. * The item describes a child ViewController's state in a SplitViewController, e.g. its collapsibility, holding priority and other metrics, and collapsed state. */ API_AVAILABLE(macos(10.10)) @interface NSSplitViewItem : NSObject <NSAnimatablePropertyContainer, NSCoding> /*! * Creates an autoreleased SplitViewItem that represents the provided ViewController. All other properties are left at their default. * \param viewController The view controller used to set the viewController property * \return An autoreleased SplitViewItem. */ + (instancetype)splitViewItemWithViewController:(NSViewController *)viewController; /*! * Creates a split view item representing a sidebar for the provided ViewController. * Sidebars have standard system behavior, specifically: * - Translucent material background * - The ability to collapse/uncollapse on split view size changes * - The ability to overlay at small split view sizes when in fullscreen * - canCollapse is set to YES * - minimumThickness and maximumThickness are set to the standard minimum and maximum sidebar size * - preferredThicknessFraction is set to the standard fraction for sidebars (0.15) * - springLoaded is set to YES * \param viewController The view controller used to set the viewController property * \return An autoreleased SplitViewItem that acts as a sidebar. */ + (instancetype)sidebarWithViewController:(NSViewController *)viewController API_AVAILABLE(macos(10.11)); /*! * Creates a split view item representing a content list for the provided ViewController, akin to Mail's message list, Note's note list. * Content lists have system standard defaults, specifically: * - minimumThickness and maximumThickness are set to the system standard for content lists * - automaticMaximumThickness is set to the system standard for content lists * - preferredThicknessFraction is set to the standard fraction for content lists (0.28 when a neighbor sidebar is visible, 0.33 if not) * \param viewController The view controller used to set the viewController property * \return An autoreleased SplitViewItem that acts as a content list. */ + (instancetype)contentListWithViewController:(NSViewController *)viewController API_AVAILABLE(macos(10.11)); /// The standard behavior type of the receiver. See initializers for descriptions of each behavior. @property (readonly) NSSplitViewItemBehavior behavior API_AVAILABLE(macos(10.11)); /// The view controller represented by the SplitViewItem. An exception will be thrown if a new viewController is set while the receiving SplitViewItem is added to a SplitViewController. @property (strong) NSViewController *viewController; /// Whether or not the child ViewController corresponding to the SplitViewItem is collapsed in the SplitViewController. The default is \c NO. This can be set with the animator proxy to animate the collapse or uncollapse. The exact animation used can be customized by setting it in the -animations dictionary with a key of "collapsed". If this is set to YES before it is added to the SplitViewController, it will be initially collapsed and the SplitViewController will not cause the view to be loaded until it is uncollapsed. This is KVC/KVO compliant and will be updated if the value changes from user interaction. @property (getter=isCollapsed) BOOL collapsed; /// Whether or not the child view controller is collapsible from user interaction - whether by dragging or double clicking a divider. The default is \c NO. @property BOOL canCollapse; /// The resize behavior when the receiver toggles its `collapsed` state programmatically, both animatedly and not. Defaults to `.Default`. @property NSSplitViewItemCollapseBehavior collapseBehavior API_AVAILABLE(macos(10.11)); /// A convenience to set the minimum thickness of the split view item -- width for "vertical" split views, height otherwise. If NSSplitViewItemUnspecifiedDimension, no minimum size is enforced by the SplitViewItem, although constraints in the contained view hierarchy might have constraints specify some minimum size on their own. Defaults to NSSplitViewItemUnspecifiedDimension. @property CGFloat minimumThickness API_AVAILABLE(macos(10.11)); /// A convenience to set the maximum thickness of the split view item -- width for "vertical" split views, height otherwise. If NSSplitViewItemUnspecifiedDimension, no maximum size is enforced by the SplitViewItem, although constraints in the contained view hierarchy might have constraints specify some maximum size on their own. Defaults to NSSplitViewItemUnspecifiedDimension. @property CGFloat maximumThickness API_AVAILABLE(macos(10.11)); /// The percentage of the contained NSSplitView that the NSSplitViewItem prefers to encompass. This is used when double-clicking on a neighbor divider to return to that standard ratio. As well as after entering fullscreen to determine the initial size of the receiver. Defaults to NSSplitViewItemUnspecifiedDimension, which means no resize will occur on double-clicks, and the absolute size is preserved when entering fullscreen. @property CGFloat preferredThicknessFraction API_AVAILABLE(macos(10.11)); #if !TARGET_OS_IPHONE /// Sets the priority under which a SplitViewItem will hold its width (for a vertical split view) or height (for a horizontal split view). The view with the lowest priority will be the first to take on additional width if the split view grows or shrinks. The default is \c NSLayoutPriorityDefaultLow. @property NSLayoutPriority holdingPriority; #endif /// The maximum thickness of the split view item when resizing due to automatic sizing, such as entering fullscreen with a set preferredThicknessFraction or proportional sizing. The user can still resize up to the absolute maximum size by dragging the divider or otherwise. If NSSplitViewItemUnspecifiedDimension, no automatic maximum is enforced. Defaults to NSSplitViewItemUnspecifiedDimension. @property CGFloat automaticMaximumThickness API_AVAILABLE(macos(10.11)); /// If YES, the split view item can be temporarily uncollapsed during a drag by hovering or deep clicking on its neighboring divider. Defaults to NO. @property (getter=isSpringLoaded) BOOL springLoaded API_AVAILABLE(macos(10.11)); /// Whether or not a sidebar is allowed to be full height in the window when the `NSFullSizeContentViewWindowMask` style mask is also set. Only applies to NSSplitViewItemBehaviorSidebar. Defaults to YES @property BOOL allowsFullHeightLayout API_AVAILABLE(macos(11.0)); /// Specifies a preference for the style of separator displayed between the titlebar and the content of the split view item. /// /// For this value to be applicable, the item's view must be associated with its own titlebar section (see `NSTrackingSeparatorToolbarItem` for more info). /// The default value is NSTitlebarSeparatorStyleAutomatic. This value is subject to the containing window's preference and can be overridden. @property NSTitlebarSeparatorStyle titlebarSeparatorStyle API_AVAILABLE(macos(11.0)); @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSTextLineFragment.h
#if (defined(USE_APPKIT_PUBLIC_HEADERS) && USE_APPKIT_PUBLIC_HEADERS) || !__has_include(<UIFoundation/NSTextLineFragment.h>) #include <TargetConditionals.h> #if !TARGET_OS_IPHONE // // NSTextLineFragment.h // Text Kit // // Copyright (c) 2017-2021, Apple Inc. All rights reserved. // #import <Foundation/NSArray.h> #import <Foundation/NSAttributedString.h> #import <CoreGraphics/CoreGraphics.h> NS_ASSUME_NONNULL_BEGIN #pragma mark NSTextLineFragment // NSTextLineFragment represents a single textual layout and rendering unit inside NSTextLayoutFragment. API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos) @interface NSTextLineFragment : NSObject <NSSecureCoding> #pragma mark Initialization - (instancetype)initWithAttributedString:(NSAttributedString *)attributedString range:(NSRange)range NS_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER; - (instancetype)initWithString:(NSString *)string attributes:(NSDictionary<NSAttributedStringKey, id> *)attributes range:(NSRange)range; - (instancetype)init NS_UNAVAILABLE; #pragma mark Basic properties // The source attributed string @property (strong, readonly) NSAttributedString *attributedString; // The string range for the source attributed string corresponding to this line fragment @property (readonly) NSRange characterRange; #pragma mark Typographic bounds // The typographic bounds specifying the dimensions of the line fragment for laying out line fragments to each other. The origin value is offset from the beginning of the line fragment group belonging to the parent layout fragment. @property (readonly) CGRect typographicBounds; #pragma mark Rendering // Rendering origin for the left most glyph in the line fragment coordinate system @property (readonly) CGPoint glyphOrigin; // Renders the line fragment contents at the rendering origin. The origin can be specified as (NSMinX(typographicBounds) + glyphOrigin.x, NSMinY(typographicBounds) + glyphOrigin.y) relative to the line fragment group coordinate system - (void)drawAtPoint:(CGPoint)point inContext:(CGContextRef)context; #pragma mark Character and point mappings // The location of the character at the specified index. It is on the upstream edge of the glyph. It is in the coordinate system relative to the line fragment origin - (CGPoint)locationForCharacterAtIndex:(NSInteger)index; // The character index for point inside the line fragment coordinate system. The fraction of distance is from the upstream edge - (NSInteger)characterIndexForPoint:(CGPoint)point; - (CGFloat)fractionOfDistanceThroughGlyphForPoint:(CGPoint)point; @end NS_ASSUME_NONNULL_END #endif // !TARGET_OS_IPHONE #else #import <UIFoundation/NSTextLineFragment.h> #endif
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSPersistentDocument.h
/* NSPersistentDocument.h Application Kit Copyright (c) 2004-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSDictionary.h> #import <AppKit/NSDocument.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSManagedObjectModel, NSManagedObjectContext; @interface NSPersistentDocument : NSDocument // Persistent documents always have a managed context (and a persistent store coordinator through that context). @property (nullable, strong) NSManagedObjectContext *managedObjectContext; // By default the framework will create a merged model of all models found in the main bundle. Subclasses can return a specific model to use for creating persistent stores. @property (nullable, readonly, strong) NSManagedObjectModel *managedObjectModel; // Configures the persistent store coordinator with the appropriate stores. Subclasses can create the store to save to or load from (invoked from within the other NSDocument methods to read/write files), which gives developers the ability to load/save from/to different persistent store types (default type is XML). - (BOOL)configurePersistentStoreCoordinatorForURL:(NSURL *)url ofType:(NSString *)fileType modelConfiguration:(nullable NSString *)configuration storeOptions:(nullable NSDictionary<NSString *, id> *)storeOptions error:(NSError **)error API_AVAILABLE(macos(10.5)); - (NSString *)persistentStoreTypeForFileType:(NSString *)fileType; // Returns the name identifying the store type to save to for the given fileType. The default implementation of this method returns information derived from the application's Info.plist. If no store type information is in the Info.plist, the default implementation returns NSXMLStoreType. See NSPersistentStoreCoordinator.h for store type information. - (BOOL)writeToURL:(NSURL *)absoluteURL ofType:(NSString *)typeName forSaveOperation:(NSSaveOperationType)saveOperation originalContentsURL:(nullable NSURL *)absoluteOriginalContentsURL error:(NSError **)error; // Overridden to save the document's managed objects referenced by the managed object context. If this is the first time the document is being saved, simply pass nil as the originalContentsURL. - (BOOL)readFromURL:(NSURL *)absoluteURL ofType:(NSString *)typeName error:(NSError **)error; // Overridden to load the document's managed objects through the managed object context. - (BOOL)revertToContentsOfURL:(NSURL *)inAbsoluteURL ofType:(NSString *)inTypeName error:(NSError **)outError; //Overridden to clean up the managedObjectContext and controllers during a revert. @end @interface NSPersistentDocument (NSDeprecated) // This method is deprecated. Please use -configurePersistentStoreCoordinatorForURL:ofType:modelConfiguration:storeOptions:error: instead - (BOOL)configurePersistentStoreCoordinatorForURL:(null_unspecified NSURL *)url ofType:(null_unspecified NSString *)fileType error:(NSError **)error API_DEPRECATED("", macos(10.4,10.5)); @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSPathControlItem.h
/* NSPathControlItem.h Application Kit Copyright (c) 2013-2021, Apple Inc. All rights reserved. */ #import <Foundation/Foundation.h> #import <AppKit/AppKitDefines.h> #import <AppKit/NSImage.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSPathComponentCell; /* NSPathControlItem is used to represent an individual path segment in an NSPathControl. NSPathControlItem should not be subclassed. */ API_AVAILABLE(macos(10.10)) @interface NSPathControlItem : NSObject /* The title of the path item. */ @property(copy) NSString *title; @property(copy) NSAttributedString *attributedTitle; /* The image/icon shown for this particular component along the path. The NSPathControlItem can display both an image and title. When drawing, your image will be scaled to fit the available area, which in 10.10 and earlier releases is 16x16 points for NSPathStyleStandard or NSPathStylePopUp, and 14x14 points for NSPathStyleNavigationBar. */ @property (nullable, strong) NSImage *image; /* A url for the partial path from the beginning up to this particular item. */ @property (nullable, readonly) NSURL *URL; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSTextField.h
/* NSTextField.h Application Kit Copyright (c) 1994-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSControl.h> #import <AppKit/NSTextFieldCell.h> #import <AppKit/NSUserInterfaceValidation.h> #import <AppKit/AppKitDefines.h> #import <AppKit/NSTextContent.h> #import <AppKit/NSParagraphStyle.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @protocol NSTextFieldDelegate; @interface NSTextField : NSControl <NSUserInterfaceValidations, NSAccessibilityNavigableStaticText, NSTextContent> @property (nullable, copy) NSString *placeholderString API_AVAILABLE(macos(10.10)); @property (nullable, copy) NSAttributedString *placeholderAttributedString API_AVAILABLE(macos(10.10)); @property (nullable, copy) NSColor *backgroundColor; @property BOOL drawsBackground; @property (nullable, copy) NSColor *textColor; @property (getter=isBordered) BOOL bordered; @property (getter=isBezeled) BOOL bezeled; @property (getter=isEditable) BOOL editable; @property (getter=isSelectable) BOOL selectable; - (void)selectText:(nullable id)sender; @property (nullable, weak) id<NSTextFieldDelegate> delegate; - (BOOL)textShouldBeginEditing:(NSText *)textObject; - (BOOL)textShouldEndEditing:(NSText *)textObject; - (void)textDidBeginEditing:(NSNotification *)notification; - (void)textDidEndEditing:(NSNotification *)notification; - (void)textDidChange:(NSNotification *)notification; @property (readonly) BOOL acceptsFirstResponder; @property NSTextFieldBezelStyle bezelStyle; /* The preferredMaxLayoutWidth determines the maximum width of the intrinsicContentSize. If the text field wraps, the intrinsic height will be large enough to show the entire text contents at that width. The default is 0, which implies no maximum preferred width. */ @property CGFloat preferredMaxLayoutWidth API_AVAILABLE(macos(10.8)); /* For text that wraps (see NSCell’s lineBreakMode), this property determines the maximum number of lines to display. A value of 0 means there is no limit, which is the default, and the text fills the cell’s bounds. If the text reaches the number of lines allowed, or the height of the container cannot accommodate the number of lines needed, the text will be clipped (or truncated if truncatesLastVisibleLine is set). The value of this property also affects -[NSControl sizeThatFits:], -[NSView fittingSize] and -[NSView intrinsicContentSize]. Most importantly, if the value of this property is not 1, multiple lines may be used to find the field’s intrinsicContentSize. Prior to 10.11, the intrinsicContentSize would be determined as if the maximumNumberOfLines was 1. */ @property NSInteger maximumNumberOfLines API_AVAILABLE(macos(10.11)); /* Maps to -[NSParagraphStyle allowsDefaultTighteningForTruncation] in rendering and sizing the text field. Ignored when the content value is an attributed string. */ @property BOOL allowsDefaultTighteningForTruncation API_AVAILABLE(macos(10.11)); #if !TARGET_OS_IPHONE /* Specifies the line break strategies that may be used for laying out the text in this text field. If this property is not set, the default for non-editable and selectable text fields is NSLineBreakStrategyStandard and the default for editable text fields is NSLineBreakStrategyNone. If the text field contains an attributed string value with paragraph style(s) that specify a set of line break strategies, the set of strategies in the paragraph style(s) will be used instead of the set of strategies defined by this property. */ @property NSLineBreakStrategy lineBreakStrategy API_AVAILABLE(macos(10.15)); #endif @end #pragma mark NSTextField NSTouchBar Properties @interface NSTextField (NSTouchBar) @property (getter=isAutomaticTextCompletionEnabled) BOOL automaticTextCompletionEnabled API_AVAILABLE(macos(10.12.2)); @property BOOL allowsCharacterPickerTouchBarItem API_AVAILABLE(macos(10.12.2)); @end @interface NSTextField(NSTextFieldConvenience) /*! Creates a non-wrapping, non-editable, non-selectable text field that displays text in the default system font. @param stringValue The title text to display in the field. @return An initialized text field object. */ + (instancetype)labelWithString:(NSString *)stringValue API_AVAILABLE(macos(10.12)); /*! Creates a wrapping, non-editable, selectable text field that displays text in the default system font. @param stringValue The title text to display in the field. @return An initialized text field object. */ + (instancetype)wrappingLabelWithString:(NSString *)stringValue API_AVAILABLE(macos(10.12)); /*! Creates a non-editable, non-selectable text field that displays attributed text. The line break mode of this field is determined by the attributed string's NSParagraphStyle attribute. @param attributedStringValue The attributed string to display in the field. @return An initialized text field object. */ + (instancetype)labelWithAttributedString:(NSAttributedString *)attributedStringValue API_AVAILABLE(macos(10.12)); /*! Creates a non-wrapping editable text field. @param stringValue The initial contents of the text field, or empty string for an initially empty text field. @return An initialized text field object. */ + (instancetype)textFieldWithString:(NSString *)stringValue API_AVAILABLE(macos(10.12)); @end @interface NSTextField(NSTextFieldAttributedStringMethods) @property BOOL allowsEditingTextAttributes; @property BOOL importsGraphics; @end @protocol NSTextFieldDelegate <NSControlTextEditingDelegate> @optional - (nullable NSArray *)textField:(NSTextField *)textField textView:(NSTextView *)textView candidatesForSelectedRange:(NSRange)selectedRange API_AVAILABLE(macos(10.12.2)); - (NSArray<NSTextCheckingResult *> *)textField:(NSTextField *)textField textView:(NSTextView *)textView candidates:(NSArray<NSTextCheckingResult *> *)candidates forSelectedRange:(NSRange)selectedRange API_AVAILABLE(macos(10.12.2)); - (BOOL)textField:(NSTextField *)textField textView:(NSTextView *)textView shouldSelectCandidateAtIndex:(NSUInteger)index API_AVAILABLE(macos(10.12.2)); @end @interface NSTextField(NSDeprecated) /* This method is deprecated in 10.8 and higher. Use setTitle: instead. */ - (void)setTitleWithMnemonic:(null_unspecified NSString *)stringWithAmpersand API_DEPRECATED("", macos(10.0,10.8)); @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSPathComponentCell.h
/* NSPathComponentCell.h Application Kit Copyright (c) 2006-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSObject.h> #import <AppKit/NSTextFieldCell.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSImage, NSString, NSURL; /* Use the 'stringValue' or 'attributedStringValue' to set the display title for this component cell. Use 'image' and 'setImage:' to control the icon displayed for this component cell. */ API_AVAILABLE(macos(10.5)) @interface NSPathComponentCell : NSTextFieldCell /* See NSPathComponent.h for details on the image & URL properties. */ @property (nullable, strong) NSImage *image; @property (nullable, copy) NSURL *URL; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSTextStorage.h
#if !__has_include(<UIFoundation/NSTextStorage.h>) /* NSTextStorage.h Copyright (c) 1994-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSObject.h> #import <Foundation/NSNotification.h> #import <AppKit/NSAttributedString.h> @class NSArray, NSLayoutManager, NSNotification; @protocol NSTextStorageDelegate; @protocol NSTextStorageObserving; NS_ASSUME_NONNULL_BEGIN #if !TARGET_OS_IPHONE typedef NS_OPTIONS(NSUInteger, NSTextStorageEditActions) { NSTextStorageEditedAttributes API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0)) = (1 << 0), NSTextStorageEditedCharacters API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0)) = (1 << 1) } API_AVAILABLE(macos(10.11), ios(7.0), tvos(9.0)); /* Note for subclassing NSTextStorage: NSTextStorage is a semi-abstract subclass of NSMutableAttributedString. It implements change management (beginEditing/endEditing), verification of attributes, delegate handling, and layout management notification. The one aspect it does not implement is the actual attributed string storage --- this is left up to the subclassers, which need to override the two NSMutableAttributedString primitives in addition to two NSAttributedString primitives: - (NSString *)string; - (NSDictionary *)attributesAtIndex:(NSUInteger)location effectiveRange:(NSRangePointer)range; - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)str; - (void)setAttributes:(NSDictionary *)attrs range:(NSRange)range; These primitives should perform the change then call edited:range:changeInLength: to get everything else to happen. */ API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0)) @interface NSTextStorage : NSMutableAttributedString <NSSecureCoding> /**************************** Layout manager ****************************/ // NSLayoutManager objects owned by the receiver. @property (readonly, copy) NSArray<NSLayoutManager *> *layoutManagers; // Adds aLayoutManager to the receiver. Sends -[NSLayoutManager setTextStorage:] to aLayoutManager with the receiver. - (void)addLayoutManager:(NSLayoutManager *)aLayoutManager; // Removes aLayoutManager from the receiver if already owned by it. Sends -[NSLayoutManager setTextStorage:] to aLayoutManager with nil. - (void)removeLayoutManager:(NSLayoutManager *)aLayoutManager; /**************************** Pending edit info ****************************/ // These methods return information about the editing status. Especially useful when there are outstanding beginEditing calls or during processEditing... // The NSTextStorageEditActions mask indicating that there are pending changes for attributes, characters, or both. @property (readonly) NSTextStorageEditActions editedMask; // The range for pending changes. {NSNotFound, 0} when there is no pending changes. @property (readonly) NSRange editedRange; // The length delta for the pending changes. @property (readonly) NSInteger changeInLength; /**************************** Delegate ****************************/ @property (nullable, weak) id <NSTextStorageDelegate> delegate; /**************************** Edit management ****************************/ // Notifies and records a recent change. If there are no outstanding -beginEditing calls, this method calls -processEditing to trigger post-editing processes. This method has to be called by the primitives after changes are made if subclassed and overridden. editedRange is the range in the original string (before the edit). - (void)edited:(NSTextStorageEditActions)editedMask range:(NSRange)editedRange changeInLength:(NSInteger)delta; // Sends out -textStorage:willProcessEditing, fixes the attributes, sends out -textStorage:didProcessEditing, and notifies the layout managers of change with the -processEditingForTextStorage:edited:range:changeInLength:invalidatedRange: method. Invoked from -edited:range:changeInLength: or -endEditing. - (void)processEditing; /**************************** Attribute fixing ****************************/ // Indicates if the receiver fixes invalidated attributes lazily. The concrete UIKit subclass fixes attributes lazily by default. The abstract class (hence, all custom subclasses) is not lazy. @property (readonly) BOOL fixesAttributesLazily; // Notes the range of attributes that requires validation. If the NSTextStorage is not lazy this just calls fixAttributesInRange:. If it is lazy this instead just records the range needing fixing in order to do it later. - (void)invalidateAttributesInRange:(NSRange)range; // Ensures all attributes in range are validated and ready to be used. An NSTextStorage that is lazy is required to call the following method before accessing any attributes. This gives the attribute fixing a chance to occur if necessary. NSTextStorage subclasses that wish to support laziness must call it from all attribute accessors that they implement. The default concrete subclass does call this from its accessors. - (void)ensureAttributesAreFixedInRange:(NSRange)range; /**************************** NSTextStorageObserving ****************************/ // An object conforming to NSTextStorageObserving observing and retaining NSTextStorage @property (nullable, weak) id <NSTextStorageObserving> textStorageObserver API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos); @end /**** NSTextStorage delegate methods ****/ @protocol NSTextStorageDelegate <NSObject> @optional // Sent inside -processEditing right before fixing attributes. Delegates can change the characters or attributes. - (void)textStorage:(NSTextStorage *)textStorage willProcessEditing:(NSTextStorageEditActions)editedMask range:(NSRange)editedRange changeInLength:(NSInteger)delta API_AVAILABLE(macos(10.11), ios(7.0), tvos(9.0)); // Sent inside -processEditing right before notifying layout managers. Delegates can change the attributes. - (void)textStorage:(NSTextStorage *)textStorage didProcessEditing:(NSTextStorageEditActions)editedMask range:(NSRange)editedRange changeInLength:(NSInteger)delta API_AVAILABLE(macos(10.11), ios(7.0), tvos(9.0)); @end /**** Notifications ****/ APPKIT_EXTERN NSNotificationName NSTextStorageWillProcessEditingNotification API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0)); APPKIT_EXTERN NSNotificationName NSTextStorageDidProcessEditingNotification API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0)); #pragma mark NSTextStorageObserving // NSTextStorageObserving defines the protocol for NSTextStorage controller objects observing changes in the text backing-store. API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos) @protocol NSTextStorageObserving <NSObject> // The document object @property (nullable, strong) NSTextStorage *textStorage; // The newCharRange is the range in the final string which was explicitly edited. The invalidatedRange includes portions that changed as a result of attribute fixing. invalidatedRange is either equal to newCharRange or larger. Controllers should not change the contents of the text storage during the execution of this message. - (void)processEditingForTextStorage:(NSTextStorage *)textStorage edited:(NSTextStorageEditActions)editMask range:(NSRange)newCharRange changeInLength:(NSInteger)delta invalidatedRange:(NSRange)invalidatedCharRange; // Transactional editing support - (void)performEditingTransactionForTextStorage:(NSTextStorage *)textStorage usingBlock:(void (NS_NOESCAPE ^) (void))transaction; @end /**** Deprecations ****/ // NSTextStorageEditedOptions is deprecated along with -[NSLayoutManager textStorage:edited:range:changeInLength:invalidatedRange:. Use NSTextStorageEditActions. typedef NSUInteger NSTextStorageEditedOptions; @interface NSObject (NSDeprecatedTextStorageDelegateInterface) - (void)textStorageWillProcessEditing:(NSNotification *)notification API_DEPRECATED("Use -textStorage:willProcessEditing:range:changeInLength: instead.", macos(10.0,10.11)); - (void)textStorageDidProcessEditing:(NSNotification *)notification API_DEPRECATED("Use -textStorage:didProcessEditing:range:changeInLength: instead.", macos(10.0,10.11)); @end #endif // !TARGET_OS_IPHONE NS_ASSUME_NONNULL_END #else #import <UIFoundation/NSTextStorage.h> #endif
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSNibConnector.h
/* NSNibConnector.h Application Kit Copyright (c) 1994-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSObject.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @interface NSNibConnector : NSObject <NSCoding> @property (nullable, weak) id source; @property (nullable, weak) id destination; @property (copy) NSString *label; - (void)replaceObject:(id)oldObject withObject:(id)newObject; - (void)establishConnection; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSLevelIndicatorCell.h
/* NSLevelIndicatorCell.h Application Kit Copyright (c) 2004-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSActionCell.h> #import <AppKit/NSSliderCell.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST typedef NS_ENUM(NSUInteger, NSLevelIndicatorStyle) { NSLevelIndicatorStyleRelevancy, NSLevelIndicatorStyleContinuousCapacity, NSLevelIndicatorStyleDiscreteCapacity, NSLevelIndicatorStyleRating }; @interface NSLevelIndicatorCell : NSActionCell - (instancetype)initWithLevelIndicatorStyle:(NSLevelIndicatorStyle)levelIndicatorStyle; @property NSLevelIndicatorStyle levelIndicatorStyle; @property double minValue; @property double maxValue; @property double warningValue; @property double criticalValue; @property NSTickMarkPosition tickMarkPosition; @property NSInteger numberOfTickMarks; @property NSInteger numberOfMajorTickMarks; - (NSRect)rectOfTickMarkAtIndex:(NSInteger)index; - (double)tickMarkValueAtIndex:(NSInteger)index; @end static const NSLevelIndicatorStyle NSRelevancyLevelIndicatorStyle API_DEPRECATED_WITH_REPLACEMENT("NSLevelIndicatorStyleRelevancy", macos(10.0,10.14)) = NSLevelIndicatorStyleRelevancy; static const NSLevelIndicatorStyle NSContinuousCapacityLevelIndicatorStyle API_DEPRECATED_WITH_REPLACEMENT("NSLevelIndicatorStyleContinuousCapacity", macos(10.0,10.14)) = NSLevelIndicatorStyleContinuousCapacity; static const NSLevelIndicatorStyle NSDiscreteCapacityLevelIndicatorStyle API_DEPRECATED_WITH_REPLACEMENT("NSLevelIndicatorStyleDiscreteCapacity", macos(10.0,10.14)) = NSLevelIndicatorStyleDiscreteCapacity; static const NSLevelIndicatorStyle NSRatingLevelIndicatorStyle API_DEPRECATED_WITH_REPLACEMENT("NSLevelIndicatorStyleRating", macos(10.0,10.14)) = NSLevelIndicatorStyleRating; API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSTextElement.h
#if (defined(USE_APPKIT_PUBLIC_HEADERS) && USE_APPKIT_PUBLIC_HEADERS) || !__has_include(<UIFoundation/NSTextElement.h>) #include <TargetConditionals.h> #if !TARGET_OS_IPHONE // // NSTextElement.h // Text Kit // // Copyright (c) 2018-2021, Apple Inc. All rights reserved. // #import <Foundation/NSObject.h> @class NSTextRange; @class NSTextContentManager; NS_ASSUME_NONNULL_BEGIN // NSTextElement is an abstract base class for representing the smallest text layout unit typically paragraphs, tables, or attachments. A text element is associated with an NSTextContentManager. API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos) @interface NSTextElement : NSObject #pragma mark Initialization - (instancetype)initWithTextContentManager:(nullable NSTextContentManager *)textContentManager NS_DESIGNATED_INITIALIZER; #pragma mark Properties // Returns the owner NSTextContentManager. A text element can migrate between text content managers. @property (nullable, weak) NSTextContentManager *textContentManager; // Represents the range of the element inside the document. @property (nullable, strong) NSTextRange *elementRange; @end #pragma mark NSTextParagraph // NSTextParagraph represents a single paragraph backed by NSAttributedString as the contents. API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos) @interface NSTextParagraph : NSTextElement #pragma mark Initialization - (instancetype)initWithAttributedString:(nullable NSAttributedString *)attributedString NS_DESIGNATED_INITIALIZER; #pragma mark Contents @property (strong, readonly) NSAttributedString *attributedString; // The paragraph ranges are derived from elementRange and attributedString. @property (nullable, strong, readonly) NSTextRange *paragraphContentRange; @property (nullable, strong, readonly) NSTextRange *paragraphSeparatorRange; @end NS_ASSUME_NONNULL_END #endif // !TARGET_OS_IPHONE #else #import <UIFoundation/NSTextElement.h> #endif
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSNibControlConnector.h
/* NSNibControlConnector.h Application Kit Copyright (c) 1994-2021, Apple Inc. All rights reserved. */ #import <AppKit/NSNibConnector.h> #import <AppKit/AppKitDefines.h> APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @interface NSNibControlConnector : NSNibConnector - (void)establishConnection; @end API_UNAVAILABLE_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSFontManager.h
/* NSFontManager.h Application Kit Copyright (c) 1994-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSObject.h> #import <Foundation/NSArray.h> #import <Foundation/NSDictionary.h> #import <Foundation/NSGeometry.h> #import <AppKit/AppKitDefines.h> #import <AppKit/NSMenu.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSFont, NSFontPanel, NSMenu, NSFontDescriptor; /* * Font Traits * * This list should be kept small since the more traits that are assigned * to a given font, the harder it will be to map it to some other family. * Some traits are mutually exclusive such as NSExpanded and NSCondensed. */ typedef NS_OPTIONS(NSUInteger, NSFontTraitMask) { NSItalicFontMask = 0x00000001, NSBoldFontMask = 0x00000002, NSUnboldFontMask = 0x00000004, NSNonStandardCharacterSetFontMask = 0x00000008, NSNarrowFontMask = 0x00000010, NSExpandedFontMask = 0x00000020, NSCondensedFontMask = 0x00000040, NSSmallCapsFontMask = 0x00000080, NSPosterFontMask = 0x00000100, NSCompressedFontMask = 0x00000200, NSFixedPitchFontMask = 0x00000400, NSUnitalicFontMask = 0x01000000 }; typedef NS_OPTIONS(NSUInteger, NSFontCollectionOptions) { NSFontCollectionApplicationOnlyMask = 1 << 0 }; /* And these "actions" are really tag values in Font Menu cells which send any of the action messages listed above. Normally, they're pre-defined in the font panel. */ typedef NS_ENUM(NSUInteger, NSFontAction) { NSNoFontChangeAction = 0, NSViaPanelFontAction = 1, NSAddTraitFontAction = 2, NSSizeUpFontAction = 3, NSSizeDownFontAction = 4, NSHeavierFontAction = 5, NSLighterFontAction = 6, NSRemoveTraitFontAction = 7 }; @interface NSFontManager : NSObject <NSMenuItemValidation> + (void)setFontPanelFactory:(nullable Class)factoryId; + (void)setFontManagerFactory:(nullable Class)factoryId; @property (class, readonly, strong) NSFontManager *sharedFontManager; @property (getter=isMultiple, readonly) BOOL multiple; @property (nullable, readonly, strong) NSFont *selectedFont; - (void)setSelectedFont:(NSFont *)fontObj isMultiple:(BOOL)flag; - (void)setFontMenu:(NSMenu *)newMenu; - (nullable NSMenu *)fontMenu:(BOOL)create; - (nullable NSFontPanel *)fontPanel:(BOOL)create; - (nullable NSFont *)fontWithFamily:(NSString *)family traits:(NSFontTraitMask)traits weight:(NSInteger)weight size:(CGFloat)size; - (NSFontTraitMask)traitsOfFont:(NSFont *)fontObj; - (NSInteger)weightOfFont:(NSFont *)fontObj; /* Three methods for supporting app font management. The fonts and names used/returned by these functions are the same as those used by the NSFontPanel. The third method below takes as input a name as returned by "availableFontFamilies" and returns an NSArray of NSArrays. The elements of the "inner" arrays are: (0) the font's name, (1) non-family part of the name as used by NSFontPanel, (2) an NSNumber indicating the weight, and (3) an NSNumber indicating the traits. */ @property (readonly, copy) NSArray<NSString *> *availableFonts; @property (readonly, copy) NSArray<NSString *> *availableFontFamilies; - (nullable NSArray<NSArray *> *)availableMembersOfFontFamily:(NSString *)fam; - (NSFont *)convertFont:(NSFont *)fontObj; - (NSFont *)convertFont:(NSFont *)fontObj toSize:(CGFloat)size; - (nullable NSFont *)convertFont:(NSFont *)fontObj toFace:(NSString *)typeface; - (NSFont *)convertFont:(NSFont *)fontObj toFamily:(NSString *)family; - (NSFont *)convertFont:(NSFont *)fontObj toHaveTrait:(NSFontTraitMask)trait; - (NSFont *)convertFont:(NSFont *)fontObj toNotHaveTrait:(NSFontTraitMask)trait; - (NSFont *)convertWeight:(BOOL)upFlag ofFont:(NSFont *)fontObj; @property (getter=isEnabled) BOOL enabled; @property SEL action; @property (nullable, assign) id delegate API_DEPRECATED("NSFontManager doesn't have any delegate method. This property should not be used.", macos(10.0,10.11)); - (BOOL)sendAction; - (NSString *) localizedNameForFamily:(NSString *)family face:(nullable NSString *)faceKey; - (void)setSelectedAttributes:(NSDictionary<NSString *, id> *)attributes isMultiple:(BOOL)flag; - (NSDictionary<NSString *, id> *)convertAttributes:(NSDictionary<NSString *, id> *)attributes; - (nullable NSArray *)availableFontNamesMatchingFontDescriptor:(NSFontDescriptor *)descriptor API_DEPRECATED("Use -[NSFontDescriptor matchingFontDescriptorsWithMandatoryKeys:] instead", macos(10.0,10.11)); @property (readonly, copy) NSArray *collectionNames API_DEPRECATED("Use +[NSFontCollection allFontCollectionNames] instead", macos(10.0,10.11)); - (nullable NSArray *)fontDescriptorsInCollection:(NSString *)collectionNames API_DEPRECATED("Use -[NSFontCollection matchingDescriptors] instead", macos(10.0,10.11)); - (BOOL)addCollection:(NSString *)collectionName options:(NSFontCollectionOptions)collectionOptions API_DEPRECATED("Use +[NSFontCollection showFontCollection:withName:visibility:name:] instead", macos(10.0,10.11)); - (BOOL)removeCollection:(NSString *)collectionName API_DEPRECATED("Use +[NSFontCollection hideFontCollectionWithName:visibility:error:] instead", macos(10.0,10.11)); - (void)addFontDescriptors:(NSArray *)descriptors toCollection:(NSString *)collectionName API_DEPRECATED("Use -[NSMutableFontCollection addQueryForDescriptors:] instead", macos(10.0,10.11)); - (void)removeFontDescriptor:(NSFontDescriptor *)descriptor fromCollection:(NSString *)collection API_DEPRECATED("Use -[NSMutableFontCollection removeQueryForDescriptors:] instead", macos(10.0,10.11)); /* Returns the current font action used by -convertFont:. This method is intended to be invoked to query the font conversion action while the action message (usually -changeFont:) is being invoked. */ @property (readonly) NSFontAction currentFontAction API_AVAILABLE(macos(10.5)); /* Converts fontTraits to a new traits mask value just as -convertFont:. This method is intended to be invoked to query the font traits while the action message (usually -changeFont:) is being invoked when the current font action is either NSAddTraitFontAction or NSRemoveTraitFontAction. */ - (NSFontTraitMask)convertFontTraits:(NSFontTraitMask)traits API_AVAILABLE(macos(10.5)); @property (nullable, weak) id target API_AVAILABLE(macos(10.5)); @end @interface NSFontManager(NSFontManagerMenuActionMethods) - (BOOL)fontNamed:(NSString *)fName hasTraits:(NSFontTraitMask)someTraits; /* The following is like "availableFonts", but checks traits. Returns an auto-released instance. To get fonts with "non-italic" or "non-bold" combine the flags NSUnitalicFontMask and/or NSUnboldFontMask as the argument "someTraits". */ - (nullable NSArray<NSString *> *)availableFontNamesWithTraits:(NSFontTraitMask)someTraits; /* These methods are action messages sent from Font Menu items: */ - (void)addFontTrait:(nullable id)sender; - (void)removeFontTrait:(nullable id)sender; - (void)modifyFontViaPanel:(nullable id)sender; - (void)modifyFont:(nullable id)sender; - (void)orderFrontFontPanel:(nullable id)sender; - (void)orderFrontStylesPanel:(nullable id)sender; @end /* This method is perhaps inappropriately named; it is sent to the delegate of the shared NSFontPanel instance, not to the delegate of the NSFontManager. */ @interface NSObject(NSFontManagerDelegate) - (BOOL)fontManager:(id)sender willIncludeFont:(NSString *)fontName API_DEPRECATED("Use NSFontCollection for providing filtered font lists", macos(10.0,10.11)); @end #if __swift__ < 40200 /* This is the message that's propagated up the responder chain. */ @interface NSObject(NSFontManagerResponderMethod) - (void)changeFont:(nullable id)sender API_DEPRECATED("This is now an optional method of the NSFontChanging protocol.", macos(10.0, 11.0)); @end #endif API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSTableCellView.h
/* NSTableCellView.h Application Kit Copyright (c) 2009-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSObject.h> #import <Foundation/NSArray.h> #import <AppKit/AppKitDefines.h> #import <AppKit/NSNibDeclarations.h> #import <AppKit/NSView.h> #import <AppKit/NSCell.h> #import <AppKit/NSTableView.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSTextField, NSImageView, NSDraggingImageComponent; /* View Based NSTableView: The NSTableCellView is a reusable container view shown for a particular cell in the table. See NSTableView.h for more information. */ API_AVAILABLE(macos(10.7)) @interface NSTableCellView : NSView /* The 'objectValue' is automatically set by the table when using bindings, or the result from the dataSource method -tableView:objectValueForTableColumn:row:. Key Value Observing (KVO) compliant so user interface elements can be bound to the 'objectValue'. */ @property (nullable, strong) id objectValue; /* The following two properties are provided for the developer to hook up as outlets. These outlets can then be accessed in -tableView:viewForTableColumn:row: and modified. Additional outlets can be added by subclassing NSTableCellView, adding appropriate ivars and properties, and hooking it up in Interface Builder. */ @property (nullable, assign) IBOutlet NSTextField *textField; @property (nullable, assign) IBOutlet NSImageView *imageView; /* The backgroundStyle property is automatically set by the enclosing NSTableRowView to let this view know what its background looks like. For instance, when the -backgroundStyle is NSBackgroundStyleEmphasized, the view should use a contrasting text color. The system label colors (labelColor, secondaryLabelColor, tertiaryLabelColor, and quaternaryLabelColor) automatically adapt when displayed with an emphasized backgroundStyle. Upon setting, the default implementation automatically forwards calls to all subviews that implement -setBackgroundStyle: or are an NSControl (which have NSCells that respond to -setBackgroundStyle:). */ @property NSBackgroundStyle backgroundStyle; /* The rowSizeStyle is set by the NSTableView to its -effectiveRowSizeStyle. The cell view will layout the textField and imageView based on the rowSizeStyle. A value of NSTableViewRowSizeStyleDefault should never be set on the cell view, as it is an appropriate value only for the table. See NSTableView.h for more information. */ @property NSTableViewRowSizeStyle rowSizeStyle; /* Multi-Item Drag Support. The default implementation will return an array of up to two NSDraggingImageComponent instances -- one for the imageView and another for the textField (if not nil). These methods can be subclassed and overridden to provide a custom set of NSDraggingImageComponents to create the drag image from this view. */ @property (readonly, strong) NSArray<NSDraggingImageComponent *> *draggingImageComponents; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSTextFinder.h
/* NSTextFinder.h Application Kit Copyright (c) 2003-2021, Apple Inc. All rights reserved. */ #import <Foundation/NSObject.h> #import <Foundation/NSArray.h> #import <Foundation/NSGeometry.h> #import <Foundation/NSRange.h> #import <AppKit/NSNibDeclarations.h> #import <AppKit/AppKitDefines.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSView, NSOperationQueue; @protocol NSTextFinderClient, NSTextFinderBarContainer; typedef NS_ENUM(NSInteger, NSTextFinderAction) { NSTextFinderActionShowFindInterface = 1, NSTextFinderActionNextMatch = 2, NSTextFinderActionPreviousMatch = 3, NSTextFinderActionReplaceAll = 4, NSTextFinderActionReplace = 5, NSTextFinderActionReplaceAndFind = 6, NSTextFinderActionSetSearchString = 7, NSTextFinderActionReplaceAllInSelection = 8, NSTextFinderActionSelectAll = 9, NSTextFinderActionSelectAllInSelection = 10, NSTextFinderActionHideFindInterface = 11, NSTextFinderActionShowReplaceInterface = 12, NSTextFinderActionHideReplaceInterface = 13 } API_AVAILABLE(macos(10.7)); /* Values for communicating NSTextFinder search options via pasteboard. Use the NSPasteboardTypeTextFinderOptions type. */ typedef NSString * NSPasteboardTypeTextFinderOptionKey NS_TYPED_ENUM; APPKIT_EXTERN NSPasteboardTypeTextFinderOptionKey const NSTextFinderCaseInsensitiveKey API_AVAILABLE(macos(10.7)); // BOOL APPKIT_EXTERN NSPasteboardTypeTextFinderOptionKey const NSTextFinderMatchingTypeKey API_AVAILABLE(macos(10.7)); // NSNumber containing NSTextFinderMatchingType typedef NS_ENUM(NSInteger, NSTextFinderMatchingType) { NSTextFinderMatchingTypeContains = 0, NSTextFinderMatchingTypeStartsWith = 1, NSTextFinderMatchingTypeFullWord = 2, NSTextFinderMatchingTypeEndsWith = 3 } API_AVAILABLE(macos(10.7)); API_AVAILABLE(macos(10.7)) @interface NSTextFinder : NSObject <NSCoding> - (instancetype)init NS_DESIGNATED_INITIALIZER; - (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER; /* A text finder must be associated with an object which implements the NSTextFinderClient protocol for it to function. The client is responsible for providing the string to be searched, the location for the find bar, and methods which control feedback to the user about the search results. */ @property (nullable, assign) IBOutlet id <NSTextFinderClient> client; /* Responders to -performTextFinderAction: should call these methods. The -validateAction: method should be called by an implementation of -validateUserInterfaceItem: to properly validate items with an action of -performTextFinderAction:. The -performAction: method should be called by the implementation of -performTextFinderAction:. Both methods should pass the item's or sender's tag as the action parameter to an instance of NSTextFinder that it creates and initializes with the above method. */ - (void)performAction:(NSTextFinderAction)op; - (BOOL)validateAction:(NSTextFinderAction)op; /* This property must be set to support the find bar. When the find bar is requested to be shown, NSTextFinder will call -showFindBarView: on the container, passing the view for the find bar, which it should display somewhere that is easily associated with the content being searched. NSScrollView already implements NSTextFinderBarContainer and is an excellent place to display the find bar, in most circumstances. The container may freely modify the find bar view's width and origin, but not its height. If this property is not set, then the find bar cannot be shown. */ @property (nullable, assign) IBOutlet id <NSTextFinderBarContainer> findBarContainer; /* Find indicator control - NSTextFinder and NSView will handle the find indicator correctly when a content view is resized, moved, or removed from the view hierarchy. If your content view's scrolling is done by an NSScrollView, the find indicator will also be handled for you during scrolling. The following methods allow a client to deal with situations outside of these. */ /* There may be some circumstances where the find indicator should be immediately cancelled or hidden, such as when the view's content or selection is changed without the knowledge of the NSTextFinder. This method will immediately cancel the current find indicator. */ - (void)cancelFindIndicator; /* If your client's document is not scrolled by NSScrollView, then you should set this property to YES when scrolling occurs to cause the find indicator to be updated appropriately. */ @property BOOL findIndicatorNeedsUpdate; /* Incremental Search */ /* An NSTextFinder uses this property's value to determine if it should perform regular or incremental searches. If YES, then the find bar will do incremental searches. If it returns NO, then the find bar will behave regularly. The default value is NO. */ @property (getter=isIncrementalSearchingEnabled) BOOL incrementalSearchingEnabled; /* NSTextFinder uses this property's value to determine what kind of incremental search feedback should be presented. If YES, then when an incremental search begins, the findBarContainer's contentView will be dimmed, except for the locations of the incremental matches. If NO, then the incremental matches will not be highlighted automatically, but you can use incrementalMatchRanges to highlight the matches yourself. The default value is YES. */ @property BOOL incrementalSearchingShouldDimContentView; /* This array is updated periodically on the main queue as the incremental search operation on a background queue finds matches. You can use this property when incrementalSearchingShouldDimContentView is NO to know where to draw highlights for incremental matches. This array is KVO compliant and can be observed to know when to update your highlights. When NSKeyValueObservingOptionNew and NSKeyValueObservingOptionOld are used, the KVO change dictionary provides the ranges (and their indexes) that are added or removed so you can invalidate the minimal region needed to bring your highlights into sync with the NSTextFinder's results. If no incremental search is active, or there are no matches found, this array will be empty. If an incremental search is currently in progress, but not yet complete, this will return all the ranges found so far. */ @property (readonly, copy) NSArray<NSValue *> *incrementalMatchRanges; /* If you set incrementalSearchingShouldDimContentView is NO to highlight incremental matches in your own view, you are encouraged to use this method to draw the highlight. */ + (void)drawIncrementalMatchHighlightInRect:(NSRect)rect; /* When incremental search is enabled, this method must be called when it is known that the client's string will be modified, but before the modification takes place. */ - (void)noteClientStringWillChange; @end @protocol NSTextFinderClient <NSObject> /* All user interface items that control text finding ("Find...", "Find Next", etc.) have -performTextFinderAction: as their action and a tag that corresponds to one of the values in the NSTextFinderAction enum. A responder may implement this method by calling +performAction:forClient: on an NSTextFinder instance. The responder passes both the sender's tag, and the client that the NSTextFinder will interact with. The responder to -performTextFinderAction: should also implement -validateUserInterfaceItem:. When the parameter to this method has an action equal to -performTextFinderAction:, the responder should call +[NSTextFinder validateAction:forClient:], passing the item's tag and the client in a similar manner to its implementation of -performTextFinderAction:. */ @optional /* NSTextFinder uses the following properties to validate individual actions. If these properties are not implemented, NSTextFinder will act as if they returned YES. */ @property (getter=isSelectable, readonly) BOOL selectable; @property (readonly) BOOL allowsMultipleSelection; @property (getter=isEditable, readonly) BOOL editable; /* The client must implement at least one of the following two sets of API to provide NSTextFinder access to the content to be searched. If both sets are implemented by the client, the last one will be preferred over the first. */ /* If the client contains a single string, then the client can implement this property to return that string to be searched. */ @property (readonly, strong) NSString *string; /* If the client cannot logically or efficiently flatten itself into a single string, then the following two methods should be used instead. These methods require the client to conceptually map its content to a single string, which is composed of a concatenation of all its substrings. The first method asks for the string that contains the given character index, which the client should return. This client should also return, by reference, the "effective range" of that substring in the full conceptually concatenated string. Finally, the client should return whether the substring ends with a "search boundary", meaning that NSTextFinder should not attempt to find any matches that overlap this boundary. The client should report the full length of the conceptually concatenated string in the second model -- the sum of the lengths of all of its substrings. */ - (NSString *)stringAtIndex:(NSUInteger)characterIndex effectiveRange:(NSRangePointer)outRange endsWithSearchBoundary:(BOOL *)outFlag; - (NSUInteger)stringLength; /* When an action is sent via +performAction:withClient:, NSTextFinder will perform that action, but it may need additional information from the client, or it may require the client to perform some actions on its behalf. The following methods and properties provide the hooks NSTextFinder needs for each of the actions it supports. If the client does not implement one of these methods or properties, then the action that requires it will be disabled. */ /* This property is required for the NextMatch, PreviousMatch, Replace, ReplaceAndFind, and SetSearchString actions. The client just needs to return its first selected range, or {index, 0} to indicate the location of the insertion point if there is no selection. */ @property (readonly) NSRange firstSelectedRange; /* This property is required for the ReplaceAllInSelection, SelectAll, and SelectAllInSelection actions. The NSArray should contain NSRanges wrapped by NSValues. */ @property (copy) NSArray<NSValue *> *selectedRanges; /* This method is used by all actions, but is not strictly required by any. This method instructs the client to scroll its view to make the given range visible. */ - (void)scrollRangeToVisible:(NSRange)range; /* These methods are used by the ShowReplaceInterface, Replace, ReplaceAll(InSelection) and ReplaceAndFind actions. Since NSTextFinder can only read the content from the client, the client is responsible for performing replace operations itself, which are done via these methods. Before a replace operation is performed, NSTextFinder calls the first method to determine if a replacement should take place. If it returns NO, then the characters in the given ranges will not be replaced. If the method returns YES, or is not implemented, then it will call the second method, instructing the client to carry out the replacement. Finally, the third method will be called, if implemented, to indicate that the replacement was completed. For ReplaceAll actions, these methods will be called multiple times, starting from the last match and moving toward the first, in order to preserve the indexes of the matches which precede the current one. */ - (BOOL)shouldReplaceCharactersInRanges:(NSArray<NSValue *> *)ranges withStrings:(NSArray<NSString *> *)strings; - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)string; - (void)didReplaceCharacters; /* This method is used when displaying feedback about find operations to the user. The client should return the view the contains the character at the given index. It should also return by reference the entire range of the string displayed by the view. */ - (NSView *)contentViewAtIndex:(NSUInteger)index effectiveCharacterRange:(NSRangePointer)outRange; /* NSTextFinder uses this method to determine the location to display the find indicator. The client should convert the given content range to an array of rectangles in the contentView's coordinate system and return that array. The given range is guaranteed not to overlap multiple views. */ - (nullable NSArray<NSValue *> *)rectsForCharacterRange:(NSRange)range; /* NSTextFinder uses this property's value to determine which ranges it should search to show all of the incremental matches that are currently visible. If this property is not implemented, then the incremental matches cannot be shown. */ @property (readonly, copy) NSArray<NSValue *> *visibleCharacterRanges; /* Draw the glyphs for the requested character range as they are drawn in the given content view. If the character range partially intersects a glyph range, then the full glyph is can be drawn to avoid additional layout. The given range is guaranteed to be completely contained by the given view. When this method is called, a drawing context effectively identical to the one provided to the view’s -drawRect: will be set up. This method is mainly used to draw find indicator contents, so implementations should check -isDrawingFindIndicator to ensure that the text will be easily readable against the background of the find indicator when it returns YES. If this method is not implemented, then the find indicator will be drawn using the content view’s -drawRect: method instead. */ - (void)drawCharactersInRange:(NSRange)range forContentView:(NSView *)view; @end @protocol NSTextFinderBarContainer <NSObject> @required /* This property is used by NSTextFinder to assign a find bar to a container. The container may freely modify the view's width, but should not modify its height. This property is managed by NSTextFinder. You should not set this property. */ @property (nullable, strong) NSView *findBarView; /* This property controls whether the receiver should display its find bar or not. When this property is YES and the findBarView property is set, then the find bar should be displayed by the container. Otherwise, the find bar should not be displayed. The default value should be NO. */ @property (getter=isFindBarVisible) BOOL findBarVisible; /* A notification that the find bar changed height, signaling the container to re-tile, if appropriate. */ - (void)findBarViewDidChangeHeight; @optional /* This contentView should contain all the views which display the contents being searched. This content view defines the area to be dimmed during incremental search, if incrementalSearchingShouldDimContentView is YES. If this method is not implemented or returns nil, then NSTextFinder will act as if incrementalSearchingShouldDimContentView is NO. */ - (nullable NSView *)contentView; @end API_UNAVAILABLE_END NS_ASSUME_NONNULL_END
0
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework
repos/simulations/libs/system-sdk/macos12/System/Library/Frameworks/AppKit.framework/Headers/NSColor.h
/* NSColor.h Application Kit Copyright (c) 1994-2021, Apple Inc. All rights reserved. */ /* NSColors store colors. Often the only NSColor message you send is the "set" method, which makes the receiver the current color in the drawing context. There is usually no need to dive in and get the individual components (for instance, red, green, blue) that make up a color. There are three types of NSColors: Component based, pattern, and catalog. Different types of NSColors provide different ways of getting at the values that define the colors: NSColorTypeComponentBased Colors which have a color space (specified as NSColorSpace) and appropriate number of CGFloat components. NSColorTypePattern Colors that draw a pattern, specified as an NSImage. NSColorTypeCatalog Color with a catalog name and a color name. These colors can be dynamic and have multiple underlying color values. Calling set will choose the right underlying implementation. It's illegal to ask a color for components or other information that are not valid for the color's type. If you need to ask a color for a certain set of components, use methods such as colorUsingType: or colorUsingColorSpace: to first convert the color, and assuming you do not get back nil, then ask for the appropriate component. If the color is already the specified type or in the specified color space, you get the same color back; otherwise a conversion occurs. So, to get the colorSpace of an arbitrary color whose type you don't know: NSColorSpace *colorSpace = [color colorUsingType:NSColorTypeComponentBased].colorSpace; To get the sRGB red component of a color: NSColor *sRGBColor = color.colorUsingColorSpace(NSColorSpace.sRGBColorSpace); CGFloat red = sRGBColor ? sRGBColor.redComponent : someFallBackValue; From the above example it's important to note that the explicitly named component accessors such as redComponent, cyanComponent, whiteComponent don't work on all component based colors. For example, only component-based colors whose color space has an RGB model will respond to red/blue/greenComponent, so hence the conversion above. Instead of doing a conversion, you could also validate the color you have with something like: if ((color.type == NSColorTypeComponentBased) && (color.colorSpace.colorSpaceModel == NSColorSpaceModelRGB)) red = color.redComponent; But very often doing a conversion is a better approach since it will let you extract the value you want from any color, as long as conversion is possible. All colors have an alphaComponent property, which defines opacity (1.0 == full opacity). For some color types 1.0 is the only valid value. Note that prior to 10.13, NSColor used its colorSpaceName property to distinguish different types of colors, rather than type. The name colorSpaceName is a bit misleading since the value doesn't literally correspond to the name of an NSColorSpace. Like type, colors with different colorSpaceName values provide different ways of getting at the components: NSNamedColorSpace corresponds to NSColorTypeCatalog, NSPatternColorSpace corresponds to NSColorTypePattern, and NSCustomColorSpace corresponds to NSColorTypeComponentBased. There are five other colorSpaceName values which all also correspond to color type of NSColorTypeComponentBased: NSDeviceWhiteColorSpace, NSCalibratedWhiteColorSpace, NSDeviceRGBColorSpace, NSCalibratedRGBColorSpace, NSDeviceCMYKColorSpace. In new code where possible use type instead of colorSpaceName. Subclassers of NSColor need to implement the methods type, set, setFill, setStroke, the accessors appropriate for the color's type, and the NSCoding protocol. In code that needs to run prior to 10.13, colorSpaceName should also be implemented. Some other methods such as colorWithAlphaComponent:, isEqual:, colorUsingType:, colorUsingColorSpaceName:, and CGColor may also be implemented if needed. If isEqual: is overridden, so should hash (because if [a isEqual:b] then [a hash] == [b hash]). Mutable subclassers (if any) should also implement copyWithZone: to a true copy. */ #import <Foundation/NSObject.h> #import <Foundation/NSArray.h> #import <Foundation/NSDictionary.h> #import <Foundation/NSGeometry.h> #import <AppKit/AppKitDefines.h> #import <AppKit/NSApplication.h> #import <AppKit/NSCell.h> #import <AppKit/NSColorList.h> #import <AppKit/NSPasteboard.h> #import <AppKit/AppKitDefines.h> #import <CoreImage/CIColor.h> NS_ASSUME_NONNULL_BEGIN APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST @class NSImage, NSColorSpace, NSAppearance; static const NSAppKitVersion NSAppKitVersionNumberWithPatternColorLeakFix = 641.0; /* Enum to distinguish types of colors. The color type of a color determines which properties are valid for that color; it's an exception-raising error to use properties that are not valid for a color. */ typedef NS_ENUM(NSInteger, NSColorType) { NSColorTypeComponentBased, // Colors with colorSpace, and floating point color components NSColorTypePattern, // Colors with patternImage NSColorTypeCatalog // Colors with catalogNameComponent and colorNameComponent; these colors may have device and appearance specific representations }; typedef NS_ENUM(NSInteger, NSColorSystemEffect) { NSColorSystemEffectNone, NSColorSystemEffectPressed, NSColorSystemEffectDeepPressed, NSColorSystemEffectDisabled, NSColorSystemEffectRollover, } API_AVAILABLE(macos(10.14)); @interface NSColor : NSObject <NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting> - (instancetype)init NS_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER; /* Create component-based colors with arbitrary colorspace. The colorspace should be component-based, and the number of components in the provided array should match the number dictated by the specified colorspace, plus one for alpha (supply 1.0 for opaque colors); otherwise an exception will be raised. */ + (NSColor *)colorWithColorSpace:(NSColorSpace *)space components:(const CGFloat *)components count:(NSInteger)numberOfComponents; /* Create component-based colors in the sRGB, GenericGamma22Gray, or P3 colorspaces. */ + (NSColor *)colorWithSRGBRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha API_AVAILABLE(macos(10.7)); + (NSColor *)colorWithGenericGamma22White:(CGFloat)white alpha:(CGFloat)alpha API_AVAILABLE(macos(10.7)); + (NSColor *)colorWithDisplayP3Red:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha API_AVAILABLE(macos(10.12)); /* Create component-based colors that are compatible with sRGB colorspace; these methods are effectively same as colorWithSRGBRed:... or colorWithGenericGamma22White:..., but provided for easier reuse of code that uses UIColor on iOS. If red, green, blue, or saturation, brightness, or white values are outside of the 0..1 range, these will create colors in the extended sRGB (or for colorWithWhite:alpha:, extendedGenericGamma22GrayColorSpace) color spaces. This behavior is compatible with iOS UIColor. */ + (NSColor *)colorWithWhite:(CGFloat)white alpha:(CGFloat)alpha API_AVAILABLE(macos(10.9)); + (NSColor *)colorWithRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha API_AVAILABLE(macos(10.9)); + (NSColor *)colorWithHue:(CGFloat)hue saturation:(CGFloat)saturation brightness:(CGFloat)brightness alpha:(CGFloat)alpha API_AVAILABLE(macos(10.9)); /* Create a RGB-based color using HSB component values. An exception will be raised if the color model of the provided color space is not RGB. */ + (NSColor *)colorWithColorSpace:(NSColorSpace *)space hue:(CGFloat)hue saturation:(CGFloat)saturation brightness:(CGFloat)brightness alpha:(CGFloat)alpha API_AVAILABLE(macos(10.12)); /* Look up and return catalog colors from standard color catalogs, or from NSColorList whose name matches the specified catalog name. */ + (nullable NSColor *)colorWithCatalogName:(NSColorListName)listName colorName:(NSColorName)colorName; /* Create catalog colors from values stored with the given name in the Asset Catalog of the specified bundle. To look in the main bundle, use the method without the bundle argument, or specify a nil bundle argument. */ + (nullable NSColor *)colorNamed:(NSColorName)name bundle:(nullable NSBundle *)bundle API_AVAILABLE(macos(10.13)); + (nullable NSColor *)colorNamed:(NSColorName)name API_AVAILABLE(macos(10.13)); /* Create a dynamic catalog color with a provider that is used to lazily resolve the exact color value. * * When methods are called on this color that need color component values, the provider is called with +NSAppearance.currentAppearance. The provider can use the appearance to return another color to be used for drawing. As much as possible, use the given appearance to make that decision, not other state. * The `colorName` should be universally unique and equates to the identity of the color, if nil is provided a unique name will be generated. * The name and the Aqua appearance color fallback will be encoded as part of the color. The decoded color is also able to 'join' to a color that gets registered with the same name and become dynamic again. */ + (NSColor *)colorWithName:(nullable NSColorName)colorName dynamicProvider:(NSColor * (^)(NSAppearance *))dynamicProvider API_AVAILABLE(macos(10.15)); /* Create component-based colors in various device color spaces. */ + (NSColor *)colorWithDeviceWhite:(CGFloat)white alpha:(CGFloat)alpha; + (NSColor *)colorWithDeviceRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha; + (NSColor *)colorWithDeviceHue:(CGFloat)hue saturation:(CGFloat)saturation brightness:(CGFloat)brightness alpha:(CGFloat)alpha; + (NSColor *)colorWithDeviceCyan:(CGFloat)cyan magenta:(CGFloat)magenta yellow:(CGFloat)yellow black:(CGFloat)black alpha:(CGFloat)alpha; /* Create component-based colors in NSCalibratedWhiteColorSpace or NSCalibratedRGBColorSpace color spaces. In general it's best to avoid these methods, since sRGB or P3 colors are preferred over the calibrated (aka "generic") color spaces. */ + (NSColor *)colorWithCalibratedWhite:(CGFloat)white alpha:(CGFloat)alpha; + (NSColor *)colorWithCalibratedRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha; + (NSColor *)colorWithCalibratedHue:(CGFloat)hue saturation:(CGFloat)saturation brightness:(CGFloat)brightness alpha:(CGFloat)alpha; /* Create pattern colors that paint with the specified image. */ + (NSColor *)colorWithPatternImage:(NSImage *)image; /* Return the type of the color, which in turn determines which accessors are valid for this color. It's an exception-raising error to use properties that are not valid for a color; so, before using a given accessor on a color, call colorUsingType: to convert the color to the appropriate type. Or, if wanting to use colorSpace-specific accessors such as redComponent, convert to the desired colorSpace with colorUsingColorSpace:. Note that as of macOS 10.13, the new APIs type and colorUsingType: replace colorSpaceName and colorUsingColorSpaceName: as the funnel APIs for determining the type of color. In code destined to run on 10.13 and newer systems, subclassers are encouraged to implement these two rather than the older colorSpaceName based methods. */ @property (readonly) NSColorType type API_AVAILABLE(macos(10.13)); /* Convert the color to a color of different type; return nil if conversion is not possible. */ - (nullable NSColor *)colorUsingType:(NSColorType)type API_AVAILABLE(macos(10.13)); /* colorUsingColorSpace: will convert existing color to a new color space, if the receiver can be represented as a component-based color. This method will return the receiver if its colorspace is already the same as the one specified. Will return nil if conversion is not possible. This method is highly recommended before using any specialized component accessors such as redComponent, cyanComponent, etc, since these will raise an exception if the color is not in an appropriate color space. */ - (nullable NSColor *)colorUsingColorSpace:(NSColorSpace *)space; /* Some convenience methods to create standard colors, typically should not be used for display in user interface elements. Do not make any assumptions about the actual color spaces used: For applications built against the 10.13 SDK these return colors in the sRGB or genericGamma22GrayColorSpace color spaces, while in older apps they use calibrated color spaces. */ @property (class, strong, readonly) NSColor *blackColor; /* 0.0 white */ @property (class, strong, readonly) NSColor *darkGrayColor; /* 0.333 white */ @property (class, strong, readonly) NSColor *lightGrayColor; /* 0.667 white */ @property (class, strong, readonly) NSColor *whiteColor; /* 1.0 white */ @property (class, strong, readonly) NSColor *grayColor; /* 0.5 white */ @property (class, strong, readonly) NSColor *redColor; /* 1.0, 0.0, 0.0 RGB */ @property (class, strong, readonly) NSColor *greenColor; /* 0.0, 1.0, 0.0 RGB */ @property (class, strong, readonly) NSColor *blueColor; /* 0.0, 0.0, 1.0 RGB */ @property (class, strong, readonly) NSColor *cyanColor; /* 0.0, 1.0, 1.0 RGB */ @property (class, strong, readonly) NSColor *yellowColor; /* 1.0, 1.0, 0.0 RGB */ @property (class, strong, readonly) NSColor *magentaColor; /* 1.0, 0.0, 1.0 RGB */ @property (class, strong, readonly) NSColor *orangeColor; /* 1.0, 0.5, 0.0 RGB */ @property (class, strong, readonly) NSColor *purpleColor; /* 0.5, 0.0, 0.5 RGB */ @property (class, strong, readonly) NSColor *brownColor; /* 0.6, 0.4, 0.2 RGB */ @property (class, strong, readonly) NSColor *clearColor; /* 0.0 white, 0.0 alpha */ /* The following are semantic system colors that are used for drawing user interface elements. These colors are implemented as dynamic named colors whose values may vary between releases and between different appearances (such as Aqua vs DarkAqua vs TouchBar). Do not make assumptions about the color spaces or actual colors used. If you do need to extract a CGColor (to use with a layer, say), always do it as lazily/late as possible, and update it whenever needed. If you do need to extract color components, always convert to the desired color space first as described at the top of this file. */ /* Foreground Colors */ @property (class, strong, readonly) NSColor *labelColor API_AVAILABLE(macos(10.10)); // Foreground color for static text and related elements @property (class, strong, readonly) NSColor *secondaryLabelColor API_AVAILABLE(macos(10.10)); // Foreground color for secondary static text and related elements @property (class, strong, readonly) NSColor *tertiaryLabelColor API_AVAILABLE(macos(10.10)); // Foreground color for disabled static text and related elements @property (class, strong, readonly) NSColor *quaternaryLabelColor API_AVAILABLE(macos(10.10)); // Foreground color for large secondary or disabled static text, separators, large glyphs/icons, etc @property (class, strong, readonly) NSColor *linkColor API_AVAILABLE(macos(10.10)); // Foreground color for standard system links @property (class, strong, readonly) NSColor *placeholderTextColor API_AVAILABLE(macos(10.10)); // Foreground color for placeholder text in controls or text views @property (class, strong, readonly) NSColor *windowFrameTextColor; // Foreground color on window chrome @property (class, strong, readonly) NSColor *selectedMenuItemTextColor; // Foreground color inside selected menu items. Equivalent to +labelColor in a NSBackgroundStyleEmphasized context. @property (class, strong, readonly) NSColor *alternateSelectedControlTextColor; // Foreground color inside emphasized and selected content: table views rows, collection views, etc. Equivalent to +labelColor in a NSBackgroundStyleEmphasized context. @property (class, strong, readonly) NSColor *headerTextColor; // Foreground color for header cells in Table/OutlineView @property (class, strong, readonly) NSColor *separatorColor API_AVAILABLE(macos(10.14)); // Foreground used for separators between sections of content. Not appropriate for use as split view or window chrome dividers. @property (class, strong, readonly) NSColor *gridColor; // Grids in controls /* Background Colors */ @property (class, strong, readonly) NSColor *windowBackgroundColor; // Background for windows. This should not be used for drawing, and NSVisualEffectMaterialWindowBackground should be used instead. @property (class, strong, readonly) NSColor *underPageBackgroundColor API_AVAILABLE(macos(10.8)); // Background areas revealed behind documents. This should not be used for drawing, and NSVisualEffectMaterialUnderPageBackground should be used instead. @property (class, strong, readonly) NSColor *controlBackgroundColor; // Background for content areas: scroll views, table views, collection views. This should not be used for drawing, and NSVisualEffectMaterialContentBackground should be used instead. @property (class, strong, readonly) NSColor *selectedContentBackgroundColor API_AVAILABLE(macos(10.14)); // The background color of selected and emphasized (focused) content: table views rows, collection views, etc. Alias for +alternateSelectedControlColor @property (class, strong, readonly) NSColor *unemphasizedSelectedContentBackgroundColor API_AVAILABLE(macos(10.14)); // The background color of selected and unemphasized content: table views rows, collection views, etc. Alias for +secondarySelectedControlColor @property (class, strong, readonly) NSArray<NSColor *> *alternatingContentBackgroundColors API_AVAILABLE(macos(10.14)); // The background colors for alternating content items: such as table view rows, collection view items. Alias for +controlAlternatingRowBackgroundColors @property (class, strong, readonly) NSColor *findHighlightColor API_AVAILABLE(macos(10.13)); // Background color of find indicators: the bubbles that show inline search result hits /* Text Colors */ @property (class, strong, readonly) NSColor *textColor; // Document text @property (class, strong, readonly) NSColor *textBackgroundColor; // Document text background @property (class, strong, readonly) NSColor *selectedTextColor; // Selected document text @property (class, strong, readonly) NSColor *selectedTextBackgroundColor; // Selected document text background @property (class, strong, readonly) NSColor *unemphasizedSelectedTextBackgroundColor API_AVAILABLE(macos(10.14)); // The background for unemphasized text selection (e.g. when the associated control/view/window is not key) @property (class, strong, readonly) NSColor *unemphasizedSelectedTextColor API_AVAILABLE(macos(10.14)); // The foreground for unemphasized text selection (e.g. when the associated control/view/window is not key) /* Control Colors */ @property (class, strong, readonly) NSColor *controlColor; // Approximate background for the color of control faces (such as buttons). @property (class, strong, readonly) NSColor *controlTextColor; // Text on controls @property (class, strong, readonly) NSColor *selectedControlColor; // Control face for selected controls @property (class, strong, readonly) NSColor *selectedControlTextColor; // Text on selected controls @property (class, strong, readonly) NSColor *disabledControlTextColor; // Text on disabled controls @property (class, strong, readonly) NSColor *keyboardFocusIndicatorColor; // Keyboard focus ring around controls @property (class, strong, readonly) NSColor *scrubberTexturedBackgroundColor API_AVAILABLE(macos(10.12.2)); // Patterned background color for use in NSScrubber /* Some colors that are used by system elements and applications. Like the above dynamic system colors, these return named colors whose values may vary between different appearances and releases. Do not make assumptions about the color spaces or actual colors used. */ @property (class, strong, readonly) NSColor *systemRedColor API_AVAILABLE(macos(10.10)); @property (class, strong, readonly) NSColor *systemGreenColor API_AVAILABLE(macos(10.10)); @property (class, strong, readonly) NSColor *systemBlueColor API_AVAILABLE(macos(10.10)); @property (class, strong, readonly) NSColor *systemOrangeColor API_AVAILABLE(macos(10.10)); @property (class, strong, readonly) NSColor *systemYellowColor API_AVAILABLE(macos(10.10)); @property (class, strong, readonly) NSColor *systemBrownColor API_AVAILABLE(macos(10.10)); @property (class, strong, readonly) NSColor *systemPinkColor API_AVAILABLE(macos(10.10)); @property (class, strong, readonly) NSColor *systemPurpleColor API_AVAILABLE(macos(10.10)); @property (class, strong, readonly) NSColor *systemGrayColor API_AVAILABLE(macos(10.10)); @property (class, strong, readonly) NSColor *systemTealColor API_AVAILABLE(macos(10.12)); @property (class, strong, readonly) NSColor *systemIndigoColor API_AVAILABLE(macos(10.15)); @property (class, strong, readonly) NSColor *systemMintColor API_AVAILABLE(macos(10.12)); @property (class, strong, readonly) NSColor *systemCyanColor API_AVAILABLE(macos(12.0)); /*! A dynamic color that reflects the user's current preferred accent color. This color automatically updates when the accent color preference changes. Do not make assumptions about the color space of this color, which may change across releases. */ @property (class, strong, readonly) NSColor *controlAccentColor API_AVAILABLE(macos(10.14)); @property (class, readonly) NSControlTint currentControlTint; // returns current system control tint + (NSColor *)colorForControlTint:(NSControlTint)controlTint API_DEPRECATED("NSControlTint does not describe the full range of available control accent colors. Use +[NSColor controlAccentColor] instead.", macos(10.0, 11.0)); @property (class, strong, readonly) NSColor *highlightColor; // Highlight color for UI elements (this is abstract and defines the color all highlights tend toward) @property (class, strong, readonly) NSColor *shadowColor; // Shadow color for UI elements (this is abstract and defines the color all shadows tend toward) - (nullable NSColor *)highlightWithLevel:(CGFloat)val; // val = 0 => receiver, val = 1 => highlightColor - (nullable NSColor *)shadowWithLevel:(CGFloat)val; // val = 0 => receiver, val = 1 => shadowColor /// Returns a color representing the base color with a system defined effect applied to it. This color is safe to create before draw time, as the resolution of the final color only happens when being `-set`, retrieving its `CGColor`, resolving with `-colorWithType:`, etc. The return color type is `.named`. - (NSColor *)colorWithSystemEffect:(NSColorSystemEffect)systemEffect API_AVAILABLE(macos(10.14)); /* Set the color: Sets the fill and stroke colors in the current drawing context. If the color doesn't know about alpha, it's set to 1.0. Should be implemented by subclassers. */ - (void)set; /* Set the fill or stroke colors individually. These should be implemented by subclassers. */ - (void)setFill; - (void)setStroke; /* Blend using the NSCalibratedRGB color space. Both colors are converted into the calibrated RGB color space, and they are blended by taking fraction of color and 1 - fraction of the receiver. The result is in the calibrated RGB color space. If the colors cannot be converted into the calibrated RGB color space the blending fails and nil is returned. */ - (nullable NSColor *)blendedColorWithFraction:(CGFloat)fraction ofColor:(NSColor *)color; /* Returns a color in the same color space as the receiver with the specified alpha component. The abstract implementation of this method returns the receiver if alpha is 1.0, otherwise it returns nil; subclassers who have explicit opacity components override this method to actually return a color with the specified alpha. */ - (NSColor *)colorWithAlphaComponent:(CGFloat)alpha; /*** Methods to get various components of colors. Not all of the methods apply to all colors; if called, they raise. ***/ /* Get the catalog and color name of standard colors from catalogs. Valid only on colors whose type is NSColorTypeCatalog. These colors are special colors which can have different device or appearance specific underlying colors. */ @property (readonly, copy) NSColorListName catalogNameComponent; @property (readonly, copy) NSColorName colorNameComponent; /* Return localized versions of the above. */ @property (readonly, copy) NSString *localizedCatalogNameComponent; @property (readonly, copy) NSString *localizedColorNameComponent; /* Get the red, green, or blue components of NSColorTypeComponentBased colors whose colorSpace model is RGB. Raise for other types of colors. To call these safely on unknown colors, you can use code like: NSColor *sRGBColor = color.colorUsingColorSpace(NSColorSpace.sRGBColorSpace); CGFloat red = sRGBColor ? sRGBColor.redComponent : someFallBackValue; */ @property (readonly) CGFloat redComponent; // Valid only on component based colors whose colorSpace model is NSColorSpaceModelRGB. @property (readonly) CGFloat greenComponent; // Valid only on component based colors whose colorSpace model is NSColorSpaceModelRGB. @property (readonly) CGFloat blueComponent; // Valid only on component based colors whose colorSpace model is NSColorSpaceModelRGB. - (void)getRed:(nullable CGFloat *)red green:(nullable CGFloat *)green blue:(nullable CGFloat *)blue alpha:(nullable CGFloat *)alpha; // Valid only on component based colors whose colorSpace model is NSColorSpaceModelRGB. /* Get the components of NSCalibratedRGB or NSDeviceRGB colors as hue, saturation, or brightness. Raise for other types of colors. */ @property (readonly) CGFloat hueComponent; // Valid only on component based colors whose colorSpace model is NSColorSpaceModelRGB. @property (readonly) CGFloat saturationComponent; // Valid only on component based colors whose colorSpace model is NSColorSpaceModelRGB. @property (readonly) CGFloat brightnessComponent; // Valid only on component based colors whose colorSpace model is NSColorSpaceModelRGB. - (void)getHue:(nullable CGFloat *)hue saturation:(nullable CGFloat *)saturation brightness:(nullable CGFloat *)brightness alpha:(nullable CGFloat *)alpha; // Valid only on component based colors whose colorSpace model is NSColorSpaceModelRGB. /* Get the white component of NSCalibratedWhite or NSDeviceWhite colors, or NSCustomColorSpace colors with color spaces with grayscale model. Raise for other types of colors. */ @property (readonly) CGFloat whiteComponent; // Valid only on component based colors whose colorSpace model is NSColorSpaceModelGray. - (void)getWhite:(nullable CGFloat *)white alpha:(nullable CGFloat *)alpha; // Valid only on component based colors whose colorSpace model is NSColorSpaceModelGray. /* Get the CMYK components of NSDeviceCMYK colors, or NSCustomColorSpace colors with color spaces with CMYK model. Raise for other types of colors. */ @property (readonly) CGFloat cyanComponent; // Valid only on component based colors whose colorSpace model is NSColorSpaceModelCMYK. @property (readonly) CGFloat magentaComponent; // Valid only on component based colors whose colorSpace model is NSColorSpaceModelCMYK. @property (readonly) CGFloat yellowComponent; // Valid only on component based colors whose colorSpace model is NSColorSpaceModelCMYK. @property (readonly) CGFloat blackComponent; // Valid only on component based colors whose colorSpace model is NSColorSpaceModelCMYK. - (void)getCyan:(nullable CGFloat *)cyan magenta:(nullable CGFloat *)magenta yellow:(nullable CGFloat *)yellow black:(nullable CGFloat *)black alpha:(nullable CGFloat *)alpha; // Valid only on component based colors whose colorSpace model is NSColorSpaceModelCMYK. /* In colors with type == NSColorTypeComponentBased, return the colorspace and individual floating point components, including alpha. Like other colorspace-specific methods these will raise exceptions on other color types. */ @property (readonly, strong) NSColorSpace *colorSpace; @property (readonly) NSInteger numberOfComponents; - (void)getComponents:(CGFloat *)components; /* Return the image used for the pattern color. Will raise exception for colors other than type == NSColorTypePattern. */ @property (readonly, strong) NSImage *patternImage; /* Get the alpha component. Valid on all colors; for colors which do not have alpha components, this will return 1.0 (opaque). */ @property (readonly) CGFloat alphaComponent; /* Pasteboard methods */ + (nullable NSColor *)colorFromPasteboard:(NSPasteboard *)pasteBoard; - (void)writeToPasteboard:(NSPasteboard *)pasteBoard; /* Draws the color and adorns it to indicate the type of color. Used by colorwells, swatches, and other UI objects that need to display colors. Implementation in NSColor simply draws the color (with an indication of transparency if the color isn't fully opaque); subclassers can draw more stuff as they see fit. */ - (void)drawSwatchInRect:(NSRect)rect; /* Convert to and from CGColorRef. */ + (nullable NSColor *)colorWithCGColor:(CGColorRef)cgColor API_AVAILABLE(macos(10.8)); // May return nil @property (readonly) CGColorRef CGColor NS_RETURNS_INNER_POINTER API_AVAILABLE(macos(10.8)); // Returns an autoreleased CGColor. This will never be NULL, although the return value may be an approximation in some cases, so there isn't guaranteed round-trip fidelity. /* Global flag for determining whether an application supports alpha. This flag is consulted when an application imports alpha (through color dragging, for instance). The value of this flag also determines whether the color panel has an opacity slider. This value is YES by default, indicating that the opacity components of imported colors will be set to 1.0. If an application wants alpha, it can either set the "NSIgnoreAlpha" default to NO or call the set method below. This method provides a global approach to removing alpha which might not always be appropriate. Applications which need to import alpha sometimes should set this flag to NO and explicitly make colors opaque in cases where it matters to them. */ @property (class) BOOL ignoresAlpha; @end @interface NSColor (NSDeprecated) /// Historically used as the inner border highlight color for beveled buttons. No longer used. @property (class, strong, readonly) NSColor *controlHighlightColor API_DEPRECATED("Use a color that matches the semantics being used, such as `separatorColor`", macos(10.0, 11.0)); /// Historically used as the outer border highlight color for beveled buttons. No longer used. @property (class, strong, readonly) NSColor *controlLightHighlightColor API_DEPRECATED("Use a color that matches the semantics being used, such as `separatorColor`", macos(10.0, 11.0)); /// Historically used as the inner border shadow color for beveled buttons. No longer used. @property (class, strong, readonly) NSColor *controlShadowColor API_DEPRECATED("Use a color that matches the semantics being used, such as `separatorColor`", macos(10.0, 11.0)); /// Historically used as the outer border shadow color for beveled buttons. No longer used. @property (class, strong, readonly) NSColor *controlDarkShadowColor API_DEPRECATED("Use a color that matches the semantics being used, such as `separatorColor`", macos(10.0, 11.0)); /// Historically used as the color of scroll bars. No longer used. @property (class, strong, readonly) NSColor *scrollBarColor API_DEPRECATED("Use NSScroller instead", macos(10.0, 11.0)); /// Historically used as the color of scroll bar knobs. No longer used. @property (class, strong, readonly) NSColor *knobColor API_DEPRECATED("Use NSScroller instead", macos(10.0, 11.0)); /// Historically used as the color of scroll bar knobs being dragged. No longer used. @property (class, strong, readonly) NSColor *selectedKnobColor API_DEPRECATED("Use NSScroller instead", macos(10.0, 11.0)); /// Historically used as the color of the window chrome, which is no longer able to be represented by a color. No longer used. @property (class, strong, readonly) NSColor *windowFrameColor API_DEPRECATED("Use NSVisualEffectMaterialTitlebar", macos(10.0, 11.0)); /// Historically used as the color of selected menu items, which is no longer a color but a tinted blur effect. No longer used. @property (class, strong, readonly) NSColor *selectedMenuItemColor API_DEPRECATED("Use NSVisualEffectMaterialSelection", macos(10.0, 11.0)); /// Historically used as the color of table headers, which is no longer a color but a tinted blur effect. @property (class, strong, readonly) NSColor *headerColor API_DEPRECATED("Use NSVisualEffectMaterialHeaderView", macos(10.0, 11.0)); /// The background color of selected content or text that is unemphasized. Older alias for +unemphasizedSelectedContentBackgroundColor and +unemphasizedSelectedTextBackgroundColor @property (class, strong, readonly) NSColor *secondarySelectedControlColor API_DEPRECATED_WITH_REPLACEMENT("unemphasizedSelectedContentBackgroundColor", macos(10.1, 11.0)); /// The background color of selected and emphasized (focused) content: table views rows, collection views, etc. Older alias for +selectedContentBackgroundColor @property (class, strong, readonly) NSColor *alternateSelectedControlColor API_DEPRECATED_WITH_REPLACEMENT("selectedContentBackgroundColor", macos(10.2, 11.0)); /// The background colors for alternating content items: such as table view rows, collection view items. Older alias for +alternatingContentBackgroundColors @property (class, strong, readonly) NSArray<NSColor *> *controlAlternatingRowBackgroundColors API_DEPRECATED_WITH_REPLACEMENT("alternatingContentBackgroundColors", macos(10.3, 11.0)); /* Get the color space name of the color. Note that here "color space name" doesn't refer to the name of an NSColorSpace, but rather an older way to distinguish the color type of different types of colors, as described at the top of this file. Should be implemented by subclassers for code destined to run on 10.12 or earlier. Newer code can choose to implement type instead. */ @property (readonly, copy) NSColorSpaceName colorSpaceName API_DEPRECATED("Use -type and NSColorType instead", macos(10.0,10.14)); /* Convert the color to a color of another color space name. This may return nil if the specified conversion cannot be done. The abstract implementation of this method returns the receiver if the specified name matches that of the receiver; otherwise it returns nil. Subclassers who can convert themselves to other color space names override this method to do something better. The device description argument allows the color to specialize itself for the given device. Device descriptions can be obtained from windows, screens, and printers with the "deviceDescription" method. If device is nil then the current device (as obtained from the currently lockFocus'ed view's window or, if printing, the current printer) is used. The method without the device: argument passes nil for the device. If colorSpaceName is nil, then the most appropriate color space is used. */ - (nullable NSColor *)colorUsingColorSpaceName:(nullable NSColorSpaceName)name device:(nullable NSDictionary<NSDeviceDescriptionKey, id> *)deviceDescription API_DEPRECATED("Use -colorUsingType: or -colorUsingColorSpace: instead", macos(10.0,10.14)); - (nullable NSColor *)colorUsingColorSpaceName:(NSColorSpaceName)name API_DEPRECATED("Use -colorUsingType: or -colorUsingColorSpace: instead", macos(10.0,10.14)); @end @interface NSColor (NSQuartzCoreAdditions) + (NSColor *)colorWithCIColor:(CIColor *)color; @end @interface CIColor (NSAppKitAdditions) - (nullable instancetype)initWithColor:(NSColor *)color; @end @interface NSCoder(NSAppKitColorExtensions) /* To decode NXColors... Will return nil if the archived color was "invalid" (written out by the kit in a few instances). Otherwise returns autoreleased NSColor. Can't write NSColors as NXColors, so we have no corresponding encode method. */ - (null_unspecified NSColor *)decodeNXColor API_DEPRECATED("", macos(10.0,10.9)); @end APPKIT_EXTERN NSNotificationName NSSystemColorsDidChangeNotification; API_UNAVAILABLE_END NS_ASSUME_NONNULL_END