Documentation
¶
Overview ¶
Package quicklook provides a fluent Go API over the macOS QuickLook framework.
Construction ¶
New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.
Lifecycle ¶
A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.
Index ¶
- func KQLPreviewContentIDScheme() obj.Object
- func KQLPreviewOptionCursorKey() obj.Object
- func KQLPreviewPropertyAttachmentDataKey() obj.Object
- func KQLPreviewPropertyAttachmentsKey() obj.Object
- func KQLPreviewPropertyBaseBundlePathKey() obj.Object
- func KQLPreviewPropertyCursorKey() obj.Object
- func KQLPreviewPropertyDisplayNameKey() obj.Object
- func KQLPreviewPropertyHeightKey() obj.Object
- func KQLPreviewPropertyMIMETypeKey() obj.Object
- func KQLPreviewPropertyPDFStyleKey() obj.Object
- func KQLPreviewPropertyStringEncodingKey() obj.Object
- func KQLPreviewPropertyTextEncodingNameKey() obj.Object
- func KQLPreviewPropertyWidthKey() obj.Object
- func KQLThumbnailOptionIconModeKey() obj.Object
- func KQLThumbnailOptionScaleFactorKey() obj.Object
- func KQLThumbnailPropertyBadgeImageKey() obj.Object
- func KQLThumbnailPropertyBaseBundlePathKey() obj.Object
- func KQLThumbnailPropertyExtensionKey() obj.Object
- func QLPreviewRequestCopyContentUTI(preview QLPreviewRequestRef) corefoundation.CFStringRef
- func QLPreviewRequestCopyOptions(preview QLPreviewRequestRef) corefoundation.CFDictionaryRef
- func QLPreviewRequestCopyURL(preview QLPreviewRequestRef) corefoundation.CFURLRef
- func QLPreviewRequestCreateContext(preview QLPreviewRequestRef, size corefoundation.CGSize, isBitmap uint8, ...) coregraphics.CGContextRef
- func QLPreviewRequestCreatePDFContext(preview QLPreviewRequestRef, mediaBox *corefoundation.CGRect, ...) coregraphics.CGContextRef
- func QLPreviewRequestFlushContext(preview QLPreviewRequestRef, context_ coregraphics.CGContextRef)
- func QLPreviewRequestGetDocumentObject(preview QLPreviewRequestRef) unsafe.Pointer
- func QLPreviewRequestGetGeneratorBundle(preview QLPreviewRequestRef) corefoundation.CFBundleRef
- func QLPreviewRequestGetTypeID() int
- func QLPreviewRequestIsCancelled(preview QLPreviewRequestRef) uint8
- func QLPreviewRequestSetDataRepresentation(preview QLPreviewRequestRef, data corefoundation.CFDataRef, ...)
- func QLPreviewRequestSetDocumentObject(preview QLPreviewRequestRef, object unsafe.Pointer, callbacks unsafe.Pointer)
- func QLPreviewRequestSetURLRepresentation(preview QLPreviewRequestRef, url corefoundation.CFURLRef, ...)
- func QLThumbnailCancel(thumbnail QLThumbnailRef)
- func QLThumbnailCopyDocumentURL(thumbnail QLThumbnailRef) corefoundation.CFURLRef
- func QLThumbnailCopyImage(thumbnail QLThumbnailRef) coregraphics.CGImageRef
- func QLThumbnailCopyOptions(thumbnail QLThumbnailRef) corefoundation.CFDictionaryRef
- func QLThumbnailDispatchAsync(thumbnail QLThumbnailRef, queue dispatch.Queue, completion func())
- func QLThumbnailGetContentRect(thumbnail QLThumbnailRef) corefoundation.CGRect
- func QLThumbnailGetMaximumSize(thumbnail QLThumbnailRef) corefoundation.CGSize
- func QLThumbnailGetTypeID() int
- func QLThumbnailImageCreate(allocator corefoundation.CFAllocatorRef, url corefoundation.CFURLRef, ...) coregraphics.CGImageRef
- func QLThumbnailIsCancelled(thumbnail QLThumbnailRef) uint8
- func QLThumbnailRequestCopyContentUTI(thumbnail QLThumbnailRequestRef) corefoundation.CFStringRef
- func QLThumbnailRequestCopyOptions(thumbnail QLThumbnailRequestRef) corefoundation.CFDictionaryRef
- func QLThumbnailRequestCopyURL(thumbnail QLThumbnailRequestRef) corefoundation.CFURLRef
- func QLThumbnailRequestCreateContext(thumbnail QLThumbnailRequestRef, size corefoundation.CGSize, isBitmap uint8, ...) coregraphics.CGContextRef
- func QLThumbnailRequestFlushContext(thumbnail QLThumbnailRequestRef, context_ coregraphics.CGContextRef)
- func QLThumbnailRequestGetDocumentObject(thumbnail QLThumbnailRequestRef) unsafe.Pointer
- func QLThumbnailRequestGetGeneratorBundle(thumbnail QLThumbnailRequestRef) corefoundation.CFBundleRef
- func QLThumbnailRequestGetMaximumSize(thumbnail QLThumbnailRequestRef) corefoundation.CGSize
- func QLThumbnailRequestGetTypeID() int
- func QLThumbnailRequestIsCancelled(thumbnail QLThumbnailRequestRef) uint8
- func QLThumbnailRequestSetDocumentObject(thumbnail QLThumbnailRequestRef, object unsafe.Pointer, ...)
- func QLThumbnailRequestSetImage(thumbnail QLThumbnailRequestRef, image coregraphics.CGImageRef, ...)
- func QLThumbnailRequestSetImageAtURL(thumbnail QLThumbnailRequestRef, url corefoundation.CFURLRef, ...)
- func QLThumbnailRequestSetImageWithData(thumbnail QLThumbnailRequestRef, data corefoundation.CFDataRef, ...)
- func QLThumbnailRequestSetThumbnailWithDataRepresentation(thumbnail QLThumbnailRequestRef, data corefoundation.CFDataRef, ...)
- func QLThumbnailRequestSetThumbnailWithURLRepresentation(thumbnail QLThumbnailRequestRef, url corefoundation.CFURLRef, ...)
- type Clockid
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EntryID
- type EvCmd
- type FilesecProperty
- type Flag
- type Idtype
- type IpcInfoObjectType
- type LaunchDataType
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type MpoFlags
- type NXMouseButton
- type OSClockid
- type PMPageToPaperMappingType
- type Perm
- type PtrauthKey
- type QLPreviewPDFStyledeprecated
- type QLPreviewRequest
- type QLPreviewRequestRef
- type QLThumbnail
- type QLThumbnailRef
- type QLThumbnailRequest
- type QLThumbnailRequestRef
- type QosClass
- type Tag
- type Type
- type VirtualMemoryGuardExceptionCode
- type XpcListenerCreateFlags
- type XpcSessionCreateFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KQLPreviewContentIDScheme ¶
KQLPreviewContentIDScheme returns the value of the constant kQLPreviewContentIDScheme.
func KQLPreviewOptionCursorKey ¶
KQLPreviewOptionCursorKey returns the value of the constant kQLPreviewOptionCursorKey.
func KQLPreviewPropertyAttachmentDataKey ¶
KQLPreviewPropertyAttachmentDataKey returns the value of the constant kQLPreviewPropertyAttachmentDataKey.
func KQLPreviewPropertyAttachmentsKey ¶
KQLPreviewPropertyAttachmentsKey returns the value of the constant kQLPreviewPropertyAttachmentsKey.
func KQLPreviewPropertyBaseBundlePathKey ¶
KQLPreviewPropertyBaseBundlePathKey returns the value of the constant kQLPreviewPropertyBaseBundlePathKey.
func KQLPreviewPropertyCursorKey ¶
KQLPreviewPropertyCursorKey returns the value of the constant kQLPreviewPropertyCursorKey.
func KQLPreviewPropertyDisplayNameKey ¶
KQLPreviewPropertyDisplayNameKey returns the value of the constant kQLPreviewPropertyDisplayNameKey.
func KQLPreviewPropertyHeightKey ¶
KQLPreviewPropertyHeightKey returns the value of the constant kQLPreviewPropertyHeightKey.
func KQLPreviewPropertyMIMETypeKey ¶
KQLPreviewPropertyMIMETypeKey returns the value of the constant kQLPreviewPropertyMIMETypeKey.
func KQLPreviewPropertyPDFStyleKey ¶
KQLPreviewPropertyPDFStyleKey returns the value of the constant kQLPreviewPropertyPDFStyleKey.
func KQLPreviewPropertyStringEncodingKey ¶
KQLPreviewPropertyStringEncodingKey returns the value of the constant kQLPreviewPropertyStringEncodingKey.
func KQLPreviewPropertyTextEncodingNameKey ¶
KQLPreviewPropertyTextEncodingNameKey returns the value of the constant kQLPreviewPropertyTextEncodingNameKey.
func KQLPreviewPropertyWidthKey ¶
KQLPreviewPropertyWidthKey returns the value of the constant kQLPreviewPropertyWidthKey.
func KQLThumbnailOptionIconModeKey ¶
KQLThumbnailOptionIconModeKey returns the value of the constant kQLThumbnailOptionIconModeKey.
func KQLThumbnailOptionScaleFactorKey ¶
KQLThumbnailOptionScaleFactorKey returns the value of the constant kQLThumbnailOptionScaleFactorKey.
func KQLThumbnailPropertyBadgeImageKey ¶
KQLThumbnailPropertyBadgeImageKey returns the value of the constant kQLThumbnailPropertyBadgeImageKey.
func KQLThumbnailPropertyBaseBundlePathKey ¶
KQLThumbnailPropertyBaseBundlePathKey returns the value of the constant kQLThumbnailPropertyBaseBundlePathKey.
func KQLThumbnailPropertyExtensionKey ¶
KQLThumbnailPropertyExtensionKey returns the value of the constant kQLThumbnailPropertyExtensionKey.
func QLPreviewRequestCopyContentUTI ¶
func QLPreviewRequestCopyContentUTI(preview QLPreviewRequestRef) corefoundation.CFStringRef
QLPreviewRequestCopyContentUTI calls the QuickLook framework function QLPreviewRequestCopyContentUTI.
func QLPreviewRequestCopyOptions ¶
func QLPreviewRequestCopyOptions(preview QLPreviewRequestRef) corefoundation.CFDictionaryRef
QLPreviewRequestCopyOptions calls the QuickLook framework function QLPreviewRequestCopyOptions.
func QLPreviewRequestCopyURL ¶
func QLPreviewRequestCopyURL(preview QLPreviewRequestRef) corefoundation.CFURLRef
QLPreviewRequestCopyURL calls the QuickLook framework function QLPreviewRequestCopyURL.
func QLPreviewRequestCreateContext ¶
func QLPreviewRequestCreateContext(preview QLPreviewRequestRef, size corefoundation.CGSize, isBitmap uint8, properties corefoundation.CFDictionaryRef) coregraphics.CGContextRef
QLPreviewRequestCreateContext calls the QuickLook framework function QLPreviewRequestCreateContext.
func QLPreviewRequestCreatePDFContext ¶
func QLPreviewRequestCreatePDFContext(preview QLPreviewRequestRef, mediaBox *corefoundation.CGRect, auxiliaryInfo corefoundation.CFDictionaryRef, properties corefoundation.CFDictionaryRef) coregraphics.CGContextRef
QLPreviewRequestCreatePDFContext calls the QuickLook framework function QLPreviewRequestCreatePDFContext.
func QLPreviewRequestFlushContext ¶
func QLPreviewRequestFlushContext(preview QLPreviewRequestRef, context_ coregraphics.CGContextRef)
QLPreviewRequestFlushContext calls the QuickLook framework function QLPreviewRequestFlushContext.
func QLPreviewRequestGetDocumentObject ¶
func QLPreviewRequestGetDocumentObject(preview QLPreviewRequestRef) unsafe.Pointer
QLPreviewRequestGetDocumentObject calls the QuickLook framework function QLPreviewRequestGetDocumentObject.
func QLPreviewRequestGetGeneratorBundle ¶
func QLPreviewRequestGetGeneratorBundle(preview QLPreviewRequestRef) corefoundation.CFBundleRef
QLPreviewRequestGetGeneratorBundle calls the QuickLook framework function QLPreviewRequestGetGeneratorBundle.
func QLPreviewRequestGetTypeID ¶
func QLPreviewRequestGetTypeID() int
QLPreviewRequestGetTypeID calls the QuickLook framework function QLPreviewRequestGetTypeID.
func QLPreviewRequestIsCancelled ¶
func QLPreviewRequestIsCancelled(preview QLPreviewRequestRef) uint8
QLPreviewRequestIsCancelled calls the QuickLook framework function QLPreviewRequestIsCancelled.
func QLPreviewRequestSetDataRepresentation ¶
func QLPreviewRequestSetDataRepresentation(preview QLPreviewRequestRef, data corefoundation.CFDataRef, contentTypeUTI corefoundation.CFStringRef, properties corefoundation.CFDictionaryRef)
QLPreviewRequestSetDataRepresentation calls the QuickLook framework function QLPreviewRequestSetDataRepresentation.
func QLPreviewRequestSetDocumentObject ¶
func QLPreviewRequestSetDocumentObject(preview QLPreviewRequestRef, object unsafe.Pointer, callbacks unsafe.Pointer)
QLPreviewRequestSetDocumentObject calls the QuickLook framework function QLPreviewRequestSetDocumentObject.
func QLPreviewRequestSetURLRepresentation ¶
func QLPreviewRequestSetURLRepresentation(preview QLPreviewRequestRef, url corefoundation.CFURLRef, contentTypeUTI corefoundation.CFStringRef, properties corefoundation.CFDictionaryRef)
QLPreviewRequestSetURLRepresentation calls the QuickLook framework function QLPreviewRequestSetURLRepresentation.
func QLThumbnailCancel ¶
func QLThumbnailCancel(thumbnail QLThumbnailRef)
QLThumbnailCancel calls the QuickLook framework function QLThumbnailCancel.
func QLThumbnailCopyDocumentURL ¶
func QLThumbnailCopyDocumentURL(thumbnail QLThumbnailRef) corefoundation.CFURLRef
QLThumbnailCopyDocumentURL calls the QuickLook framework function QLThumbnailCopyDocumentURL.
func QLThumbnailCopyImage ¶
func QLThumbnailCopyImage(thumbnail QLThumbnailRef) coregraphics.CGImageRef
QLThumbnailCopyImage calls the QuickLook framework function QLThumbnailCopyImage.
func QLThumbnailCopyOptions ¶
func QLThumbnailCopyOptions(thumbnail QLThumbnailRef) corefoundation.CFDictionaryRef
QLThumbnailCopyOptions calls the QuickLook framework function QLThumbnailCopyOptions.
func QLThumbnailDispatchAsync ¶
func QLThumbnailDispatchAsync(thumbnail QLThumbnailRef, queue dispatch.Queue, completion func())
QLThumbnailDispatchAsync calls the QuickLook framework function QLThumbnailDispatchAsync.
func QLThumbnailGetContentRect ¶
func QLThumbnailGetContentRect(thumbnail QLThumbnailRef) corefoundation.CGRect
QLThumbnailGetContentRect calls the QuickLook framework function QLThumbnailGetContentRect.
func QLThumbnailGetMaximumSize ¶
func QLThumbnailGetMaximumSize(thumbnail QLThumbnailRef) corefoundation.CGSize
QLThumbnailGetMaximumSize calls the QuickLook framework function QLThumbnailGetMaximumSize.
func QLThumbnailGetTypeID ¶
func QLThumbnailGetTypeID() int
QLThumbnailGetTypeID calls the QuickLook framework function QLThumbnailGetTypeID.
func QLThumbnailImageCreate ¶
func QLThumbnailImageCreate(allocator corefoundation.CFAllocatorRef, url corefoundation.CFURLRef, maxThumbnailSize corefoundation.CGSize, options corefoundation.CFDictionaryRef) coregraphics.CGImageRef
QLThumbnailImageCreate calls the QuickLook framework function QLThumbnailImageCreate.
func QLThumbnailIsCancelled ¶
func QLThumbnailIsCancelled(thumbnail QLThumbnailRef) uint8
QLThumbnailIsCancelled calls the QuickLook framework function QLThumbnailIsCancelled.
func QLThumbnailRequestCopyContentUTI ¶
func QLThumbnailRequestCopyContentUTI(thumbnail QLThumbnailRequestRef) corefoundation.CFStringRef
QLThumbnailRequestCopyContentUTI calls the QuickLook framework function QLThumbnailRequestCopyContentUTI.
func QLThumbnailRequestCopyOptions ¶
func QLThumbnailRequestCopyOptions(thumbnail QLThumbnailRequestRef) corefoundation.CFDictionaryRef
QLThumbnailRequestCopyOptions calls the QuickLook framework function QLThumbnailRequestCopyOptions.
func QLThumbnailRequestCopyURL ¶
func QLThumbnailRequestCopyURL(thumbnail QLThumbnailRequestRef) corefoundation.CFURLRef
QLThumbnailRequestCopyURL calls the QuickLook framework function QLThumbnailRequestCopyURL.
func QLThumbnailRequestCreateContext ¶
func QLThumbnailRequestCreateContext(thumbnail QLThumbnailRequestRef, size corefoundation.CGSize, isBitmap uint8, properties corefoundation.CFDictionaryRef) coregraphics.CGContextRef
QLThumbnailRequestCreateContext calls the QuickLook framework function QLThumbnailRequestCreateContext.
func QLThumbnailRequestFlushContext ¶
func QLThumbnailRequestFlushContext(thumbnail QLThumbnailRequestRef, context_ coregraphics.CGContextRef)
QLThumbnailRequestFlushContext calls the QuickLook framework function QLThumbnailRequestFlushContext.
func QLThumbnailRequestGetDocumentObject ¶
func QLThumbnailRequestGetDocumentObject(thumbnail QLThumbnailRequestRef) unsafe.Pointer
QLThumbnailRequestGetDocumentObject calls the QuickLook framework function QLThumbnailRequestGetDocumentObject.
func QLThumbnailRequestGetGeneratorBundle ¶
func QLThumbnailRequestGetGeneratorBundle(thumbnail QLThumbnailRequestRef) corefoundation.CFBundleRef
QLThumbnailRequestGetGeneratorBundle calls the QuickLook framework function QLThumbnailRequestGetGeneratorBundle.
func QLThumbnailRequestGetMaximumSize ¶
func QLThumbnailRequestGetMaximumSize(thumbnail QLThumbnailRequestRef) corefoundation.CGSize
QLThumbnailRequestGetMaximumSize calls the QuickLook framework function QLThumbnailRequestGetMaximumSize.
func QLThumbnailRequestGetTypeID ¶
func QLThumbnailRequestGetTypeID() int
QLThumbnailRequestGetTypeID calls the QuickLook framework function QLThumbnailRequestGetTypeID.
func QLThumbnailRequestIsCancelled ¶
func QLThumbnailRequestIsCancelled(thumbnail QLThumbnailRequestRef) uint8
QLThumbnailRequestIsCancelled calls the QuickLook framework function QLThumbnailRequestIsCancelled.
func QLThumbnailRequestSetDocumentObject ¶
func QLThumbnailRequestSetDocumentObject(thumbnail QLThumbnailRequestRef, object unsafe.Pointer, callbacks unsafe.Pointer)
QLThumbnailRequestSetDocumentObject calls the QuickLook framework function QLThumbnailRequestSetDocumentObject.
func QLThumbnailRequestSetImage ¶
func QLThumbnailRequestSetImage(thumbnail QLThumbnailRequestRef, image coregraphics.CGImageRef, properties corefoundation.CFDictionaryRef)
QLThumbnailRequestSetImage calls the QuickLook framework function QLThumbnailRequestSetImage.
func QLThumbnailRequestSetImageAtURL ¶
func QLThumbnailRequestSetImageAtURL(thumbnail QLThumbnailRequestRef, url corefoundation.CFURLRef, properties corefoundation.CFDictionaryRef)
QLThumbnailRequestSetImageAtURL calls the QuickLook framework function QLThumbnailRequestSetImageAtURL.
func QLThumbnailRequestSetImageWithData ¶
func QLThumbnailRequestSetImageWithData(thumbnail QLThumbnailRequestRef, data corefoundation.CFDataRef, properties corefoundation.CFDictionaryRef)
QLThumbnailRequestSetImageWithData calls the QuickLook framework function QLThumbnailRequestSetImageWithData.
func QLThumbnailRequestSetThumbnailWithDataRepresentation ¶
func QLThumbnailRequestSetThumbnailWithDataRepresentation(thumbnail QLThumbnailRequestRef, data corefoundation.CFDataRef, contentTypeUTI corefoundation.CFStringRef, previewProperties corefoundation.CFDictionaryRef, properties corefoundation.CFDictionaryRef)
QLThumbnailRequestSetThumbnailWithDataRepresentation calls the QuickLook framework function QLThumbnailRequestSetThumbnailWithDataRepresentation.
func QLThumbnailRequestSetThumbnailWithURLRepresentation ¶
func QLThumbnailRequestSetThumbnailWithURLRepresentation(thumbnail QLThumbnailRequestRef, url corefoundation.CFURLRef, contentTypeUTI corefoundation.CFStringRef, previewProperties corefoundation.CFDictionaryRef, properties corefoundation.CFDictionaryRef)
QLThumbnailRequestSetThumbnailWithURLRepresentation calls the QuickLook framework function QLThumbnailRequestSetThumbnailWithURLRepresentation.
Types ¶
type DispatchAutoreleaseFrequency ¶ added in v0.17.0
type DispatchAutoreleaseFrequency uint64
const ( DispatchAutoreleaseFrequencyInherit DispatchAutoreleaseFrequency = 0 DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1 DispatchAutoreleaseFrequencyNever DispatchAutoreleaseFrequency = 2 )
func (DispatchAutoreleaseFrequency) String ¶ added in v0.17.0
func (e DispatchAutoreleaseFrequency) String() string
String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.
type DispatchBlockFlags ¶ added in v0.17.0
type DispatchBlockFlags uint64
Bitmask — values may be combined with |.
const ( DispatchBlockFlagsBarrier DispatchBlockFlags = 1 DispatchBlockFlagsDetached DispatchBlockFlags = 2 DispatchBlockFlagsAssignCurrent DispatchBlockFlags = 4 DispatchBlockFlagsNoQosClass DispatchBlockFlags = 8 DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16 DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32 )
func (DispatchBlockFlags) String ¶ added in v0.17.0
func (e DispatchBlockFlags) String() string
String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.
type FilesecProperty ¶ added in v0.17.0
type FilesecProperty int32
const ( FilesecPropertyOwner FilesecProperty = 1 FilesecPropertyGroup FilesecProperty = 2 FilesecPropertyUUID FilesecProperty = 3 FilesecPropertyMode FilesecProperty = 4 FilesecPropertyACL FilesecProperty = 5 FilesecPropertyGrpuuid FilesecProperty = 6 FilesecPropertyACLRaw FilesecProperty = 100 FilesecPropertyACLAllocsize FilesecProperty = 101 )
func (FilesecProperty) String ¶ added in v0.17.0
func (e FilesecProperty) String() string
String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.
type IpcInfoObjectType ¶ added in v0.17.0
type IpcInfoObjectType uint32
const ( IpcInfoObjectTypeNone IpcInfoObjectType = 0 IpcInfoObjectTypeThreadControl IpcInfoObjectType = 1 IpcInfoObjectTypeTaskControl IpcInfoObjectType = 2 IpcInfoObjectTypeHost IpcInfoObjectType = 3 IpcInfoObjectTypeHostPriv IpcInfoObjectType = 4 IpcInfoObjectTypeProcessor IpcInfoObjectType = 5 IpcInfoObjectTypeProcessorSet IpcInfoObjectType = 6 IpcInfoObjectTypeProcessorSetName IpcInfoObjectType = 7 IpcInfoObjectTypeTimer IpcInfoObjectType = 8 IpcInfoObjectTypePortSubstOnce IpcInfoObjectType = 9 IpcInfoObjectTypeMig IpcInfoObjectType = 10 IpcInfoObjectTypeMemoryObject IpcInfoObjectType = 11 IpcInfoObjectTypeXmmPager IpcInfoObjectType = 12 IpcInfoObjectTypeXmmKernel IpcInfoObjectType = 13 IpcInfoObjectTypeXmmReply IpcInfoObjectType = 14 IpcInfoObjectTypeUndReply IpcInfoObjectType = 15 IpcInfoObjectTypeHostNotify IpcInfoObjectType = 16 IpcInfoObjectTypeHostSecurity IpcInfoObjectType = 17 IpcInfoObjectTypeLedger IpcInfoObjectType = 18 IpcInfoObjectTypeMainDevice IpcInfoObjectType = 19 IpcInfoObjectTypeTaskName IpcInfoObjectType = 20 IpcInfoObjectTypeSubsystem IpcInfoObjectType = 21 IpcInfoObjectTypeIODoneQueue IpcInfoObjectType = 22 IpcInfoObjectTypeSemaphore IpcInfoObjectType = 23 IpcInfoObjectTypeLockSet IpcInfoObjectType = 24 IpcInfoObjectTypeClock IpcInfoObjectType = 25 IpcInfoObjectTypeClockCtrl IpcInfoObjectType = 26 IpcInfoObjectTypeIokitIdent IpcInfoObjectType = 27 IpcInfoObjectTypeNamedEntry IpcInfoObjectType = 28 IpcInfoObjectTypeIokitConnect IpcInfoObjectType = 29 IpcInfoObjectTypeIokitObject IpcInfoObjectType = 30 IpcInfoObjectTypeUpl IpcInfoObjectType = 31 IpcInfoObjectTypeMemObjControl IpcInfoObjectType = 32 IpcInfoObjectTypeAuSessionport IpcInfoObjectType = 33 IpcInfoObjectTypeFileport IpcInfoObjectType = 34 IpcInfoObjectTypeLabelh IpcInfoObjectType = 35 IpcInfoObjectTypeTaskResume IpcInfoObjectType = 36 IpcInfoObjectTypeVoucher IpcInfoObjectType = 37 IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38 IpcInfoObjectTypeWorkInterval IpcInfoObjectType = 39 IpcInfoObjectTypeUxHandler IpcInfoObjectType = 40 IpcInfoObjectTypeUextObject IpcInfoObjectType = 41 IpcInfoObjectTypeArcadeReg IpcInfoObjectType = 42 IpcInfoObjectTypeEventlink IpcInfoObjectType = 43 IpcInfoObjectTypeTaskInspect IpcInfoObjectType = 44 IpcInfoObjectTypeTaskRead IpcInfoObjectType = 45 IpcInfoObjectTypeThreadInspect IpcInfoObjectType = 46 IpcInfoObjectTypeThreadRead IpcInfoObjectType = 47 IpcInfoObjectTypeSuidCred IpcInfoObjectType = 48 IpcInfoObjectTypeHypervisor IpcInfoObjectType = 49 IpcInfoObjectTypeTaskIDToken IpcInfoObjectType = 50 IpcInfoObjectTypeTaskFatal IpcInfoObjectType = 51 IpcInfoObjectTypeKcdata IpcInfoObjectType = 52 IpcInfoObjectTypeExclavesResource IpcInfoObjectType = 53 IpcInfoObjectTypeThreadResume IpcInfoObjectType = 54 IpcInfoObjectTypeUnknown IpcInfoObjectType = 4294967295 )
func (IpcInfoObjectType) String ¶ added in v0.17.0
func (e IpcInfoObjectType) String() string
String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.
type LaunchDataType ¶ added in v0.17.0
type LaunchDataType int32
const ( LaunchDataTypeDictionary LaunchDataType = 1 LaunchDataTypeArray LaunchDataType = 2 LaunchDataTypeFd LaunchDataType = 3 LaunchDataTypeInteger LaunchDataType = 4 LaunchDataTypeReal LaunchDataType = 5 LaunchDataTypeBool LaunchDataType = 6 LaunchDataTypeString LaunchDataType = 7 LaunchDataTypeOpaque LaunchDataType = 8 LaunchDataTypeErrno LaunchDataType = 9 LaunchDataTypeMachport LaunchDataType = 10 )
func (LaunchDataType) String ¶ added in v0.17.0
func (e LaunchDataType) String() string
String returns the LaunchDataType constant's name, or its numeric form when the value is not a known constant.
type MDLabelDomain ¶
type MDLabelDomain int32
These constants are used to specify a domain to MDLabelCreate().
const ( KMDLabelUserDomain MDLabelDomain = 0 KMDLabelLocalDomain MDLabelDomain = 1 )
func (MDLabelDomain) String ¶
func (e MDLabelDomain) String() string
String returns the MDLabelDomain constant's name, or its numeric form when the value is not a known constant.
type MDQueryOptionFlags ¶
type MDQueryOptionFlags int32
const ( KMDQuerySynchronous MDQueryOptionFlags = 1 KMDQueryWantsUpdates MDQueryOptionFlags = 4 KMDQueryAllowFSTranslation MDQueryOptionFlags = 8 )
func (MDQueryOptionFlags) String ¶
func (e MDQueryOptionFlags) String() string
String returns the MDQueryOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MDQuerySortOptionFlags ¶
type MDQuerySortOptionFlags int32
const (
KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)
func (MDQuerySortOptionFlags) String ¶
func (e MDQuerySortOptionFlags) String() string
String returns the MDQuerySortOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlags ¶ added in v0.17.0
type MachVMRangeFlags uint64
Bitmask — values may be combined with |.
const (
MachVMRangeFlagsNone MachVMRangeFlags = 0
)
func (MachVMRangeFlags) String ¶ added in v0.17.0
func (e MachVMRangeFlags) String() string
String returns the MachVMRangeFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlavor ¶ added in v0.17.0
type MachVMRangeFlavor uint32
const ( MachVMRangeFlavorInvalid MachVMRangeFlavor = 0 MachVMRangeFlavorV1 MachVMRangeFlavor = 1 )
func (MachVMRangeFlavor) String ¶ added in v0.17.0
func (e MachVMRangeFlavor) String() string
String returns the MachVMRangeFlavor constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeTag ¶ added in v0.17.0
type MachVMRangeTag uint16
const ( MachVMRangeTagDefault MachVMRangeTag = 0 MachVMRangeTagData MachVMRangeTag = 1 MachVMRangeTagFixed MachVMRangeTag = 2 )
func (MachVMRangeTag) String ¶ added in v0.17.0
func (e MachVMRangeTag) String() string
String returns the MachVMRangeTag constant's name, or its numeric form when the value is not a known constant.
type MpoFlags ¶ added in v0.17.0
type MpoFlags uint32
Bitmask — values may be combined with |.
const ( MpoFlagsPort MpoFlags = 0 MpoFlagsServicePort MpoFlags = 1024 MpoFlagsConnectionPort MpoFlags = 2048 MpoFlagsReplyPort MpoFlags = 4096 MpoFlagsWeakReplyPort MpoFlags = 16384 MpoFlagsNotificationPort MpoFlags = 17408 MpoFlagsExceptionPort MpoFlags = 32768 MpoFlagsConnectionPortWithPortArray MpoFlags = 65536 )
type NXMouseButton ¶
type NXMouseButton int32
const ( NX_OneButton NXMouseButton = 0 NX_LeftButton NXMouseButton = 1 NX_RightButton NXMouseButton = 2 )
func (NXMouseButton) String ¶
func (e NXMouseButton) String() string
String returns the NXMouseButton constant's name, or its numeric form when the value is not a known constant.
type PMPageToPaperMappingType ¶
type PMPageToPaperMappingType int32
const ( KPMPageToPaperMappingNone PMPageToPaperMappingType = 1 KPMPageToPaperMappingScaleToFit PMPageToPaperMappingType = 2 )
func (PMPageToPaperMappingType) String ¶
func (e PMPageToPaperMappingType) String() string
String returns the PMPageToPaperMappingType constant's name, or its numeric form when the value is not a known constant.
type Perm ¶ added in v0.17.0
type Perm int32
const ( PermReadData Perm = 2 PermListDirectory Perm = 2 PermWriteData Perm = 4 PermAddFile Perm = 4 PermExecute Perm = 8 PermSearch Perm = 8 PermDelete Perm = 16 PermAppendData Perm = 32 PermAddSubdirectory Perm = 32 PermDeleteChild Perm = 64 PermReadAttributes Perm = 128 PermWriteAttributes Perm = 256 PermReadExtattributes Perm = 512 PermWriteExtattributes Perm = 1024 PermReadSecurity Perm = 2048 PermWriteSecurity Perm = 4096 PermChangeOwner Perm = 8192 PermSynchronize Perm = 1048576 )
type PtrauthKey ¶ added in v0.17.0
type PtrauthKey int32
const ( Ptrauth_key_none PtrauthKey = -1 Ptrauth_key_asia PtrauthKey = 0 Ptrauth_key_asib PtrauthKey = 1 Ptrauth_key_asda PtrauthKey = 2 Ptrauth_key_asdb PtrauthKey = 3 Ptrauth_key_process_independent_code PtrauthKey = 0 Ptrauth_key_process_dependent_code PtrauthKey = 1 Ptrauth_key_process_independent_data PtrauthKey = 2 Ptrauth_key_process_dependent_data PtrauthKey = 3 Ptrauth_key_return_address PtrauthKey = 1 Ptrauth_key_frame_pointer PtrauthKey = 3 Ptrauth_key_function_pointer PtrauthKey = 0 Ptrauth_key_block_function PtrauthKey = 0 Ptrauth_key_cxx_vtable_pointer PtrauthKey = 2 Ptrauth_key_method_list_pointer PtrauthKey = 2 Ptrauth_key_objc_isa_pointer PtrauthKey = 2 Ptrauth_key_objc_super_pointer PtrauthKey = 2 Ptrauth_key_objc_sel_pointer PtrauthKey = 3 Ptrauth_key_objc_class_ro_pointer PtrauthKey = 2 Ptrauth_key_block_descriptor_pointer PtrauthKey = 2 Ptrauth_key_init_fini_pointer PtrauthKey = 0 )
func (PtrauthKey) String ¶ added in v0.17.0
func (e PtrauthKey) String() string
String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.
type QLPreviewPDFStyle
deprecated
type QLPreviewPDFStyle int32
A value you use to configure the appearance of previews for PDF files.
Deprecated: Use a QLPreviewingController in a Preview Extension to provide previews for your file types.
const ( // Deprecated: Use a QLPreviewingController in a Preview Extension to provide previews for your file types. KQLPreviewPDFStandardStyle QLPreviewPDFStyle = 0 // Deprecated: Use a QLPreviewingController in a Preview Extension to provide previews for your file types. KQLPreviewPDFPagesWithThumbnailsOnRightStyle QLPreviewPDFStyle = 3 KQLPreviewPDFPagesWithThumbnailsOnLeftStyle QLPreviewPDFStyle = 4 )
func (QLPreviewPDFStyle) String ¶
func (e QLPreviewPDFStyle) String() string
String returns the QLPreviewPDFStyle constant's name, or its numeric form when the value is not a known constant.
type QLPreviewRequest ¶
type QLPreviewRequest struct{}
type QLPreviewRequestRef ¶ added in v0.18.0
QLPreviewRequestRef is a handle for the opaque QLPreviewRequestRef type.
func (QLPreviewRequestRef) IsNil ¶ added in v0.18.0
func (h QLPreviewRequestRef) IsNil() bool
IsNil reports whether QLPreviewRequestRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type QLThumbnail ¶
type QLThumbnail struct{}
type QLThumbnailRef ¶ added in v0.18.0
QLThumbnailRef is a handle for the opaque QLThumbnailRef type.
func QLThumbnailCreate ¶
func QLThumbnailCreate(allocator corefoundation.CFAllocatorRef, url corefoundation.CFURLRef, maxThumbnailSize corefoundation.CGSize, options corefoundation.CFDictionaryRef) QLThumbnailRef
QLThumbnailCreate calls the QuickLook framework function QLThumbnailCreate.
func (QLThumbnailRef) IsNil ¶ added in v0.18.0
func (h QLThumbnailRef) IsNil() bool
IsNil reports whether QLThumbnailRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type QLThumbnailRequest ¶
type QLThumbnailRequest struct{}
This is the type of a reference to Thumbnail requests.
type QLThumbnailRequestRef ¶ added in v0.18.0
QLThumbnailRequestRef is a handle for the opaque QLThumbnailRequestRef type.
func (QLThumbnailRequestRef) IsNil ¶ added in v0.18.0
func (h QLThumbnailRequestRef) IsNil() bool
IsNil reports whether QLThumbnailRequestRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type VirtualMemoryGuardExceptionCode ¶ added in v0.17.0
type VirtualMemoryGuardExceptionCode uint32
const ( KGUARD_EXC_DEALLOC_GAP VirtualMemoryGuardExceptionCode = 1 KGUARD_EXC_RECLAIM_COPYIO_FAILURE VirtualMemoryGuardExceptionCode = 2 KGUARD_EXC_RECLAIM_INDEX_FAILURE VirtualMemoryGuardExceptionCode = 4 KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE VirtualMemoryGuardExceptionCode = 8 KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE VirtualMemoryGuardExceptionCode = 9 KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE VirtualMemoryGuardExceptionCode = 10 KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE VirtualMemoryGuardExceptionCode = 11 KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION VirtualMemoryGuardExceptionCode = 12 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY VirtualMemoryGuardExceptionCode = 13 KGUARD_EXC_SEC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 98 KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 99 KGUARD_EXC_SEC_COPY_DENIED VirtualMemoryGuardExceptionCode = 100 KGUARD_EXC_SEC_SHARING_DENIED VirtualMemoryGuardExceptionCode = 101 KGUARD_EXC_MTE_SYNC_FAULT VirtualMemoryGuardExceptionCode = 200 KGUARD_EXC_MTE_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 201 KGUARD_EXC_MTE_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 202 KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 203 KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 204 )
func (VirtualMemoryGuardExceptionCode) String ¶ added in v0.17.0
func (e VirtualMemoryGuardExceptionCode) String() string
String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.
type XpcListenerCreateFlags ¶ added in v0.17.0
type XpcListenerCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcListenerCreateFlagsNone XpcListenerCreateFlags = 0 XpcListenerCreateFlagsInactive XpcListenerCreateFlags = 1 XpcListenerCreateFlagsForceMach XpcListenerCreateFlags = 2 XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4 )
func (XpcListenerCreateFlags) String ¶ added in v0.17.0
func (e XpcListenerCreateFlags) String() string
String returns the XpcListenerCreateFlags constant's name, or its numeric form when the value is not a known constant.
type XpcSessionCreateFlags ¶ added in v0.17.0
type XpcSessionCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcSessionCreateFlagsNone XpcSessionCreateFlags = 0 XpcSessionCreateFlagsInactive XpcSessionCreateFlags = 1 XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2 )
func (XpcSessionCreateFlags) String ¶ added in v0.17.0
func (e XpcSessionCreateFlags) String() string
String returns the XpcSessionCreateFlags constant's name, or its numeric form when the value is not a known constant.