printcore

package
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package printcore provides a fluent Go API over the macOS PrintCore 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

Constants

View Source
const (
	KAllPPDDomains                                    = 1
	KCUPSPPDDomain                                    = 6
	KLocalPPDDomain                                   = 3
	KNetworkPPDDomain                                 = 4
	KPMAllocationFailure                              = -108
	KPMBorderDoubleHairline                           = 2
	KPMBorderDoubleThickline                          = 4
	KPMBorderSingleHairline                           = 1
	KPMBorderSingleThickline                          = 3
	KPMCMYKColorSpaceModel                            = 3
	KPMCVMSymbolNotFound                              = -9662
	KPMCancel                                         = 128
	KPMCloseFailed                                    = -9785
	KPMCoverPageAfter                                 = 3
	KPMCoverPageBefore                                = 2
	KPMCoverPageNone                                  = 1
	KPMCreateMessageFailed                            = -9620
	KPMDeleteSubTicketFailed                          = -9585
	KPMDestinationFax                                 = 3
	KPMDestinationFile                                = 2
	KPMDestinationInvalid                             = 0
	KPMDestinationPreview                             = 4
	KPMDestinationPrinter                             = 1
	KPMDestinationProcessPDF                          = 5
	KPMDevNColorSpaceModel                            = 4
	KPMDocumentNotFound                               = -9644
	KPMDontSwitchPDEError                             = -9531
	KPMDuplexNoTumble                                 = 2
	KPMDuplexNone                                     = 1
	KPMDuplexTumble                                   = 3
	KPMEditRequestFailed                              = -9544
	KPMFeatureNotInstalled                            = -9533
	KPMFileOrDirOperationFailed                       = -9634
	KPMFontNameTooLong                                = -9704
	KPMFontNotFound                                   = -9703
	KPMGeneralCGError                                 = -9705
	KPMGeneralError                                   = -30870
	KPMGrayColorSpaceModel                            = 1
	KPMHideInlineItems                                = 0
	KPMIOAttrNotAvailable                             = -9787
	KPMIOMSymbolNotFound                              = -9661
	KPMInternalError                                  = -30870
	KPMInvalidAllocator                               = -30890
	KPMInvalidCVMContext                              = -9665
	KPMInvalidCalibrationTarget                       = -30898
	KPMInvalidConnection                              = -30887
	KPMInvalidFileType                                = -30895
	KPMInvalidIOMContext                              = -9664
	KPMInvalidIndex                                   = -30882
	KPMInvalidItem                                    = -30892
	KPMInvalidJobID                                   = -9666
	KPMInvalidJobTemplate                             = -30885
	KPMInvalidKey                                     = -30888
	KPMInvalidLookupSpec                              = -9542
	KPMInvalidObject                                  = -30896
	KPMInvalidPBMRef                                  = -9540
	KPMInvalidPDEContext                              = -9530
	KPMInvalidPMContext                               = -9663
	KPMInvalidPageFormat                              = -30876
	KPMInvalidPaper                                   = -30897
	KPMInvalidParameter                               = -50
	KPMInvalidPreset                                  = -30899
	KPMInvalidPrintSession                            = -30879
	KPMInvalidPrintSettings                           = -30875
	KPMInvalidPrinter                                 = -30880
	KPMInvalidPrinterAddress                          = -9780
	KPMInvalidPrinterInfo                             = -30886
	KPMInvalidReply                                   = -30894
	KPMInvalidState                                   = -9706
	KPMInvalidSubTicket                               = -9584
	KPMInvalidTicket                                  = -30891
	KPMInvalidType                                    = -30893
	KPMInvalidValue                                   = -30889
	KPMItemIsLocked                                   = -9586
	KPMJobBusy                                        = -9642
	KPMJobCanceled                                    = -9643
	KPMJobGetTicketBadFormatError                     = -9672
	KPMJobGetTicketReadError                          = -9673
	KPMJobManagerAborted                              = -9671
	KPMJobNotFound                                    = -9641
	KPMJobStreamEndError                              = -9670
	KPMJobStreamOpenFailed                            = -9668
	KPMJobStreamReadFailed                            = -9669
	KPMKeyNotFound                                    = -9589
	KPMKeyNotUnique                                   = -9590
	KPMKeyOrValueNotFound                             = -9623
	KPMLandscape                                      = 2
	KPMLastErrorCodeToMakeMaintenanceOfThisListEasier = -9799
	KPMLayoutBottomTopLeftRight                       = 7
	KPMLayoutBottomTopRightLeft                       = 8
	KPMLayoutLeftRightBottomTop                       = 2
	KPMLayoutLeftRightTopBottom                       = 1
	KPMLayoutRightLeftBottomTop                       = 4
	KPMLayoutRightLeftTopBottom                       = 3
	KPMLayoutTopBottomLeftRight                       = 5
	KPMLayoutTopBottomRightLeft                       = 6
	KPMMessagingError                                 = -9624
	KPMNoDefaultItem                                  = -9500
	KPMNoDefaultPrinter                               = -30872
	KPMNoDefaultSettings                              = -9501
	KPMNoError                                        = 0
	KPMNoPrinterJobID                                 = -9667
	KPMNoSelectedPrinters                             = -9541
	KPMNoSuchEntry                                    = -30874
	KPMNotImplemented                                 = -30873
	KPMObjectInUse                                    = -30881
	KPMOpenFailed                                     = -9781
	KPMOutOfScope                                     = -30871
	KPMPMSymbolNotFound                               = -9660
	KPMPaperTypeCoated                                = 2
	KPMPaperTypeGlossy                                = 4
	KPMPaperTypePlain                                 = 1
	KPMPaperTypePremium                               = 3
	KPMPaperTypeTShirt                                = 6
	KPMPaperTypeTransparency                          = 5
	KPMPaperTypeUnknown                               = 0
	KPMPermissionError                                = -9636
	KPMPluginNotFound                                 = -9701
	KPMPluginRegisterationFailed                      = -9702
	KPMPortrait                                       = 1
	KPMPrBrowserNoUI                                  = -9545
	KPMPrintAllPages                                  = -1
	KPMPrinterIdle                                    = 3
	KPMPrinterProcessing                              = 4
	KPMPrinterStopped                                 = 5
	KPMQualityBest                                    = 13
	KPMQualityDraft                                   = 4
	KPMQualityHighest                                 = 15
	KPMQualityInkSaver                                = 1
	KPMQualityLowest                                  = 0
	KPMQualityNormal                                  = 8
	KPMQualityPhoto                                   = 11
	KPMQueueAlreadyExists                             = -9639
	KPMQueueJobFailed                                 = -9640
	KPMQueueNotFound                                  = -9638
	KPMRGBColorSpaceModel                             = 2
	KPMReadFailed                                     = -9782
	KPMReadGotZeroData                                = -9788
	KPMReverseLandscape                               = 4
	KPMReversePortrait                                = 3
	KPMScalingCenterOnImgArea                         = 6
	KPMScalingCenterOnPaper                           = 5
	KPMScalingPinBottomLeft                           = 3
	KPMScalingPinBottomRight                          = 4
	KPMScalingPinTopLeft                              = 1
	KPMScalingPinTopRight                             = 2
	KPMServerAlreadyRunning                           = -9631
	KPMServerAttributeRestricted                      = -9633
	KPMServerCommunicationFailed                      = -9621
	KPMServerNotFound                                 = -9630
	KPMServerSuspended                                = -9632
	KPMShowDefaultInlineItems                         = 32768
	KPMShowInlineCopies                               = 1
	KPMShowInlineOrientation                          = 8
	KPMShowInlinePageRange                            = 2
	KPMShowInlinePageRangeWithSelection               = 64
	KPMShowInlinePaperSize                            = 4
	KPMShowInlineScale                                = 128
	KPMShowPageAttributesPDE                          = 256
	KPMSimplexTumble                                  = 4
	KPMStatusFailed                                   = -9784
	KPMStringConversionFailure                        = -30883
	KPMSubTicketNotFound                              = -9583
	KPMSyncRequestFailed                              = -9543
	KPMTemplateIsLocked                               = -9588
	KPMTicketIsLocked                                 = -9587
	KPMTicketTypeNotFound                             = -9580
	KPMUnableToFindProcess                            = -9532
	KPMUnexpectedImagingError                         = -9707
	KPMUnknownColorSpaceModel                         = 0
	KPMUnknownDataType                                = -9591
	KPMUnknownMessage                                 = -9637
	KPMUnlocked                                       = 0
	KPMUnsupportedConnection                          = -9786
	KPMUpdateTicketFailed                             = -9581
	KPMUserOrGroupNotFound                            = -9635
	KPMValidateTicketFailed                           = -9582
	KPMValueOutOfRange                                = -30877
	KPMWriteFailed                                    = -9783
	KPMXMLParseError                                  = -30884
	KSystemPPDDomain                                  = 2
	KUserPPDDomain                                    = 5
)

Variables

This section is empty.

Functions

func PMCGImageCreateWithEPSDataProvider

func PMCGImageCreateWithEPSDataProvider(epsDataProvider obj.Object, epsPreview obj.Object) obj.Object

PMCGImageCreateWithEPSDataProvider calls the PrintCore framework function PMCGImageCreateWithEPSDataProvider.

func PMCopyAvailablePPDs

func PMCopyAvailablePPDs(domain uint16) (obj.Object, error)

PMCopyAvailablePPDs reports an error if the PrintCore framework function PMCopyAvailablePPDs fails.

func PMCopyLocalizedPPD

func PMCopyLocalizedPPD(ppd obj.Object) (obj.Object, error)

PMCopyLocalizedPPD reports an error if the PrintCore framework function PMCopyLocalizedPPD fails.

func PMCopyPPDData

func PMCopyPPDData(ppd obj.Object) (obj.Object, error)

PMCopyPPDData reports an error if the PrintCore framework function PMCopyPPDData fails.

func PMCopyPageFormat

func PMCopyPageFormat(formatSrc obj.Object, formatDest obj.Object) error

PMCopyPageFormat reports an error if the PrintCore framework function PMCopyPageFormat fails.

func PMCopyPrintSettings

func PMCopyPrintSettings(settingSrc obj.Object, settingDest obj.Object) error

PMCopyPrintSettings reports an error if the PrintCore framework function PMCopyPrintSettings fails.

func PMCreateGenericPrinter

func PMCreateGenericPrinter(printer unsafe.Pointer) error

PMCreateGenericPrinter reports an error if the PrintCore framework function PMCreateGenericPrinter fails.

func PMCreatePageFormat

func PMCreatePageFormat(pageFormat unsafe.Pointer) error

PMCreatePageFormat reports an error if the PrintCore framework function PMCreatePageFormat fails.

func PMCreatePageFormatWithPMPaper

func PMCreatePageFormatWithPMPaper(pageFormat unsafe.Pointer, paper obj.Object) error

PMCreatePageFormatWithPMPaper reports an error if the PrintCore framework function PMCreatePageFormatWithPMPaper fails.

func PMCreatePrintSettings

func PMCreatePrintSettings(printSettings unsafe.Pointer) error

PMCreatePrintSettings reports an error if the PrintCore framework function PMCreatePrintSettings fails.

func PMCreateSession

func PMCreateSession(printSession unsafe.Pointer) error

PMCreateSession reports an error if the PrintCore framework function PMCreateSession fails.

func PMGetCollate

func PMGetCollate(printSettings obj.Object) (result int, collate uint8)

PMGetCollate calls the PrintCore framework function PMGetCollate.

func PMGetCopies

func PMGetCopies(printSettings obj.Object) (result int, copies int)

PMGetCopies calls the PrintCore framework function PMGetCopies.

func PMGetDuplex

func PMGetDuplex(printSettings obj.Object) (result int, duplexSetting int)

PMGetDuplex calls the PrintCore framework function PMGetDuplex.

func PMGetFirstPage

func PMGetFirstPage(printSettings obj.Object) (result int, first int)

PMGetFirstPage calls the PrintCore framework function PMGetFirstPage.

func PMGetLastPage

func PMGetLastPage(printSettings obj.Object) (result int, last int)

PMGetLastPage calls the PrintCore framework function PMGetLastPage.

func PMGetOrientation

func PMGetOrientation(pageFormat obj.Object) (result int, orientation uint16)

PMGetOrientation calls the PrintCore framework function PMGetOrientation.

func PMGetPageFormatExtendedData

func PMGetPageFormatExtendedData(pageFormat obj.Object, dataID int, extendedData unsafe.Pointer) (result int, size int)

PMGetPageFormatExtendedData calls the PrintCore framework function PMGetPageFormatExtendedData.

func PMGetPageFormatPaper

func PMGetPageFormatPaper(format obj.Object, paper unsafe.Pointer) error

PMGetPageFormatPaper reports an error if the PrintCore framework function PMGetPageFormatPaper fails.

func PMGetPageRange

func PMGetPageRange(printSettings obj.Object) (result int, minPage int, maxPage int)

PMGetPageRange calls the PrintCore framework function PMGetPageRange.

func PMGetScale

func PMGetScale(pageFormat obj.Object) (result int, scale float64)

PMGetScale calls the PrintCore framework function PMGetScale.

func PMPageFormatCreateDataRepresentation

func PMPageFormatCreateDataRepresentation(pageFormat obj.Object, format PMDataFormat) (obj.Object, error)

PMPageFormatCreateDataRepresentation reports an error if the PrintCore framework function PMPageFormatCreateDataRepresentation fails.

func PMPageFormatCreateWithDataRepresentation

func PMPageFormatCreateWithDataRepresentation(data obj.Object, pageFormat unsafe.Pointer) error

PMPageFormatCreateWithDataRepresentation reports an error if the PrintCore framework function PMPageFormatCreateWithDataRepresentation fails.

func PMPageFormatGetPrinterID

func PMPageFormatGetPrinterID(pageFormat obj.Object) (obj.Object, error)

PMPageFormatGetPrinterID reports an error if the PrintCore framework function PMPageFormatGetPrinterID fails.

func PMPaperCreateLocalizedName

func PMPaperCreateLocalizedName(paper obj.Object, printer obj.Object) (obj.Object, error)

PMPaperCreateLocalizedName reports an error if the PrintCore framework function PMPaperCreateLocalizedName fails.

func PMPaperGetHeight

func PMPaperGetHeight(paper obj.Object) (result int, paperHeight float64)

PMPaperGetHeight calls the PrintCore framework function PMPaperGetHeight.

func PMPaperGetID

func PMPaperGetID(paper obj.Object) (obj.Object, error)

PMPaperGetID reports an error if the PrintCore framework function PMPaperGetID fails.

func PMPaperGetPPDPaperName

func PMPaperGetPPDPaperName(paper obj.Object) (obj.Object, error)

PMPaperGetPPDPaperName reports an error if the PrintCore framework function PMPaperGetPPDPaperName fails.

func PMPaperGetPrinterID

func PMPaperGetPrinterID(paper obj.Object) (obj.Object, error)

PMPaperGetPrinterID reports an error if the PrintCore framework function PMPaperGetPrinterID fails.

func PMPaperGetWidth

func PMPaperGetWidth(paper obj.Object) (result int, paperWidth float64)

PMPaperGetWidth calls the PrintCore framework function PMPaperGetWidth.

func PMPaperIsCustom

func PMPaperIsCustom(paper obj.Object) uint8

PMPaperIsCustom calls the PrintCore framework function PMPaperIsCustom.

func PMPresetCopyName

func PMPresetCopyName(preset obj.Object) (obj.Object, error)

PMPresetCopyName reports an error if the PrintCore framework function PMPresetCopyName fails.

func PMPresetCreatePrintSettings

func PMPresetCreatePrintSettings(preset obj.Object, session obj.Object, printSettings unsafe.Pointer) error

PMPresetCreatePrintSettings reports an error if the PrintCore framework function PMPresetCreatePrintSettings fails.

func PMPresetGetAttributes

func PMPresetGetAttributes(preset obj.Object) (obj.Object, error)

PMPresetGetAttributes reports an error if the PrintCore framework function PMPresetGetAttributes fails.

func PMPrintSettingsCopyAsDictionary

func PMPrintSettingsCopyAsDictionary(printSettings obj.Object) (obj.Object, error)

PMPrintSettingsCopyAsDictionary reports an error if the PrintCore framework function PMPrintSettingsCopyAsDictionary fails.

func PMPrintSettingsCopyKeys

func PMPrintSettingsCopyKeys(printSettings obj.Object) (obj.Object, error)

PMPrintSettingsCopyKeys reports an error if the PrintCore framework function PMPrintSettingsCopyKeys fails.

func PMPrintSettingsCreateDataRepresentation

func PMPrintSettingsCreateDataRepresentation(printSettings obj.Object, format PMDataFormat) (obj.Object, error)

PMPrintSettingsCreateDataRepresentation reports an error if the PrintCore framework function PMPrintSettingsCreateDataRepresentation fails.

func PMPrintSettingsCreateWithDataRepresentation

func PMPrintSettingsCreateWithDataRepresentation(data obj.Object, printSettings unsafe.Pointer) error

PMPrintSettingsCreateWithDataRepresentation reports an error if the PrintCore framework function PMPrintSettingsCreateWithDataRepresentation fails.

func PMPrintSettingsGetJobName

func PMPrintSettingsGetJobName(printSettings obj.Object) (obj.Object, error)

PMPrintSettingsGetJobName reports an error if the PrintCore framework function PMPrintSettingsGetJobName fails.

func PMPrintSettingsGetValue

func PMPrintSettingsGetValue(printSettings obj.Object, key obj.Object) (obj.Object, error)

PMPrintSettingsGetValue reports an error if the PrintCore framework function PMPrintSettingsGetValue fails.

func PMPrintSettingsSetJobName

func PMPrintSettingsSetJobName(printSettings obj.Object, name obj.Object) error

PMPrintSettingsSetJobName reports an error if the PrintCore framework function PMPrintSettingsSetJobName fails.

func PMPrintSettingsSetValue

func PMPrintSettingsSetValue(printSettings obj.Object, key obj.Object, value obj.Object, locked uint8) error

PMPrintSettingsSetValue reports an error if the PrintCore framework function PMPrintSettingsSetValue fails.

func PMPrintSettingsToOptions

func PMPrintSettingsToOptions(settings obj.Object, options string) error

PMPrintSettingsToOptions reports an error if the PrintCore framework function PMPrintSettingsToOptions fails.

func PMPrintSettingsToOptionsWithPrinterAndPageFormat

func PMPrintSettingsToOptionsWithPrinterAndPageFormat(settings obj.Object, printer obj.Object, pageFormat obj.Object, options string) error

PMPrintSettingsToOptionsWithPrinterAndPageFormat reports an error if the PrintCore framework function PMPrintSettingsToOptionsWithPrinterAndPageFormat fails.

func PMPrinterCopyDescriptionURL

func PMPrinterCopyDescriptionURL(printer obj.Object, descriptionType obj.Object) (obj.Object, error)

PMPrinterCopyDescriptionURL reports an error if the PrintCore framework function PMPrinterCopyDescriptionURL fails.

func PMPrinterCopyDeviceURI

func PMPrinterCopyDeviceURI(printer obj.Object) (obj.Object, error)

PMPrinterCopyDeviceURI reports an error if the PrintCore framework function PMPrinterCopyDeviceURI fails.

func PMPrinterCopyHostName

func PMPrinterCopyHostName(printer obj.Object) (obj.Object, error)

PMPrinterCopyHostName reports an error if the PrintCore framework function PMPrinterCopyHostName fails.

func PMPrinterCopyPresets

func PMPrinterCopyPresets(printer obj.Object) (obj.Object, error)

PMPrinterCopyPresets reports an error if the PrintCore framework function PMPrinterCopyPresets fails.

func PMPrinterCopyState

func PMPrinterCopyState(printer obj.Object) (obj.Object, error)

PMPrinterCopyState reports an error if the PrintCore framework function PMPrinterCopyState fails.

func PMPrinterCreateFromPrinterID

func PMPrinterCreateFromPrinterID(printerID obj.Object) obj.Object

PMPrinterCreateFromPrinterID calls the PrintCore framework function PMPrinterCreateFromPrinterID.

func PMPrinterGetCommInfo

func PMPrinterGetCommInfo(printer obj.Object) (result int, supportsControlCharRangeP uint8, supportsEightBitP uint8)

PMPrinterGetCommInfo calls the PrintCore framework function PMPrinterGetCommInfo.

func PMPrinterGetDriverCreator

func PMPrinterGetDriverCreator(printer obj.Object) (result int, creator int)

PMPrinterGetDriverCreator calls the PrintCore framework function PMPrinterGetDriverCreator.

func PMPrinterGetDriverReleaseInfo

func PMPrinterGetDriverReleaseInfo(printer obj.Object, release unsafe.Pointer) error

PMPrinterGetDriverReleaseInfo reports an error if the PrintCore framework function PMPrinterGetDriverReleaseInfo fails.

func PMPrinterGetID

func PMPrinterGetID(printer obj.Object) obj.Object

PMPrinterGetID calls the PrintCore framework function PMPrinterGetID.

func PMPrinterGetLanguageInfo

func PMPrinterGetLanguageInfo(printer obj.Object, info unsafe.Pointer) int

PMPrinterGetLanguageInfo calls the PrintCore framework function PMPrinterGetLanguageInfo.

func PMPrinterGetLocation

func PMPrinterGetLocation(printer obj.Object) obj.Object

PMPrinterGetLocation calls the PrintCore framework function PMPrinterGetLocation.

func PMPrinterGetMakeAndModelName

func PMPrinterGetMakeAndModelName(printer obj.Object) (obj.Object, error)

PMPrinterGetMakeAndModelName reports an error if the PrintCore framework function PMPrinterGetMakeAndModelName fails.

func PMPrinterGetMimeTypes

func PMPrinterGetMimeTypes(printer obj.Object, settings obj.Object) (obj.Object, error)

PMPrinterGetMimeTypes reports an error if the PrintCore framework function PMPrinterGetMimeTypes fails.

func PMPrinterGetName

func PMPrinterGetName(printer obj.Object) obj.Object

PMPrinterGetName calls the PrintCore framework function PMPrinterGetName.

func PMPrinterGetPaperList

func PMPrinterGetPaperList(printer obj.Object) (obj.Object, error)

PMPrinterGetPaperList reports an error if the PrintCore framework function PMPrinterGetPaperList fails.

func PMPrinterGetPrinterResolutionCount

func PMPrinterGetPrinterResolutionCount(printer obj.Object) (result int, countP int)

PMPrinterGetPrinterResolutionCount calls the PrintCore framework function PMPrinterGetPrinterResolutionCount.

func PMPrinterGetState

func PMPrinterGetState(printer obj.Object) (result int, state uint16)

PMPrinterGetState calls the PrintCore framework function PMPrinterGetState.

func PMPrinterIsDefault

func PMPrinterIsDefault(printer obj.Object) uint8

PMPrinterIsDefault calls the PrintCore framework function PMPrinterIsDefault.

func PMPrinterIsFavorite

func PMPrinterIsFavorite(printer obj.Object) uint8

PMPrinterIsFavorite calls the PrintCore framework function PMPrinterIsFavorite.

func PMPrinterIsPostScriptCapable

func PMPrinterIsPostScriptCapable(printer obj.Object) uint8

PMPrinterIsPostScriptCapable calls the PrintCore framework function PMPrinterIsPostScriptCapable.

func PMPrinterIsPostScriptPrinter

func PMPrinterIsPostScriptPrinter(printer obj.Object) (result int, isPSPrinter uint8)

PMPrinterIsPostScriptPrinter calls the PrintCore framework function PMPrinterIsPostScriptPrinter.

func PMPrinterIsRemote

func PMPrinterIsRemote(printer obj.Object) (result int, isRemoteP uint8)

PMPrinterIsRemote calls the PrintCore framework function PMPrinterIsRemote.

func PMPrinterPrintWithFile

func PMPrinterPrintWithFile(printer obj.Object, settings obj.Object, format obj.Object, mimeType obj.Object, fileURL obj.Object) error

PMPrinterPrintWithFile reports an error if the PrintCore framework function PMPrinterPrintWithFile fails.

func PMPrinterPrintWithProvider

func PMPrinterPrintWithProvider(printer obj.Object, settings obj.Object, format obj.Object, mimeType obj.Object, provider obj.Object) error

PMPrinterPrintWithProvider reports an error if the PrintCore framework function PMPrinterPrintWithProvider fails.

func PMPrinterSendCommand

func PMPrinterSendCommand(printer obj.Object, commandString obj.Object, jobTitle obj.Object, options obj.Object) error

PMPrinterSendCommand reports an error if the PrintCore framework function PMPrinterSendCommand fails.

func PMPrinterSetDefault

func PMPrinterSetDefault(printer obj.Object) error

PMPrinterSetDefault reports an error if the PrintCore framework function PMPrinterSetDefault fails.

func PMPrinterWritePostScriptToURL

func PMPrinterWritePostScriptToURL(printer obj.Object, settings obj.Object, format obj.Object, mimeType obj.Object, sourceFileURL obj.Object, destinationFileURL obj.Object) error

PMPrinterWritePostScriptToURL reports an error if the PrintCore framework function PMPrinterWritePostScriptToURL fails.

func PMRelease

func PMRelease(object unsafe.Pointer) error

PMRelease reports an error if the PrintCore framework function PMRelease fails.

func PMRetain

func PMRetain(object unsafe.Pointer) error

PMRetain reports an error if the PrintCore framework function PMRetain fails.

func PMServerCreatePrinterList

func PMServerCreatePrinterList(server obj.Object) (obj.Object, error)

PMServerCreatePrinterList reports an error if the PrintCore framework function PMServerCreatePrinterList fails.

func PMServerLaunchPrinterBrowser

func PMServerLaunchPrinterBrowser(server obj.Object, options obj.Object) error

PMServerLaunchPrinterBrowser reports an error if the PrintCore framework function PMServerLaunchPrinterBrowser fails.

func PMSessionBeginCGDocumentNoDialog

func PMSessionBeginCGDocumentNoDialog(printSession obj.Object, printSettings obj.Object, pageFormat obj.Object) error

PMSessionBeginCGDocumentNoDialog reports an error if the PrintCore framework function PMSessionBeginCGDocumentNoDialog fails.

func PMSessionCopyDestinationFormat

func PMSessionCopyDestinationFormat(printSession obj.Object, printSettings obj.Object) (obj.Object, error)

PMSessionCopyDestinationFormat reports an error if the PrintCore framework function PMSessionCopyDestinationFormat fails.

func PMSessionCopyDestinationLocation

func PMSessionCopyDestinationLocation(printSession obj.Object, printSettings obj.Object) (obj.Object, error)

PMSessionCopyDestinationLocation reports an error if the PrintCore framework function PMSessionCopyDestinationLocation fails.

func PMSessionCopyOutputFormatList

func PMSessionCopyOutputFormatList(printSession obj.Object, destType uint16) (obj.Object, error)

PMSessionCopyOutputFormatList reports an error if the PrintCore framework function PMSessionCopyOutputFormatList fails.

func PMSessionCreatePageFormatList

func PMSessionCreatePageFormatList(printSession obj.Object, printer obj.Object) (obj.Object, error)

PMSessionCreatePageFormatList reports an error if the PrintCore framework function PMSessionCreatePageFormatList fails.

func PMSessionCreatePrinterList

func PMSessionCreatePrinterList(printSession obj.Object, printerList unsafe.Pointer, currentPrinter unsafe.Pointer) (result int, currentIndex int)

PMSessionCreatePrinterList calls the PrintCore framework function PMSessionCreatePrinterList.

func PMSessionDefaultPageFormat

func PMSessionDefaultPageFormat(printSession obj.Object, pageFormat obj.Object) error

PMSessionDefaultPageFormat reports an error if the PrintCore framework function PMSessionDefaultPageFormat fails.

func PMSessionDefaultPrintSettings

func PMSessionDefaultPrintSettings(printSession obj.Object, printSettings obj.Object) error

PMSessionDefaultPrintSettings reports an error if the PrintCore framework function PMSessionDefaultPrintSettings fails.

func PMSessionEndDocumentNoDialog

func PMSessionEndDocumentNoDialog(printSession obj.Object) error

PMSessionEndDocumentNoDialog reports an error if the PrintCore framework function PMSessionEndDocumentNoDialog fails.

func PMSessionEndPageNoDialog

func PMSessionEndPageNoDialog(printSession obj.Object) error

PMSessionEndPageNoDialog reports an error if the PrintCore framework function PMSessionEndPageNoDialog fails.

func PMSessionError

func PMSessionError(printSession obj.Object) error

PMSessionError reports an error if the PrintCore framework function PMSessionError fails.

func PMSessionGetCGGraphicsContext

func PMSessionGetCGGraphicsContext(printSession obj.Object, context_ unsafe.Pointer) error

PMSessionGetCGGraphicsContext reports an error if the PrintCore framework function PMSessionGetCGGraphicsContext fails.

func PMSessionGetCurrentPrinter

func PMSessionGetCurrentPrinter(printSession obj.Object, currentPrinter unsafe.Pointer) error

PMSessionGetCurrentPrinter reports an error if the PrintCore framework function PMSessionGetCurrentPrinter fails.

func PMSessionGetDataFromSession

func PMSessionGetDataFromSession(printSession obj.Object, key obj.Object) (obj.Object, error)

PMSessionGetDataFromSession reports an error if the PrintCore framework function PMSessionGetDataFromSession fails.

func PMSessionGetDestinationType

func PMSessionGetDestinationType(printSession obj.Object, printSettings obj.Object) (result int, destTypeP uint16)

PMSessionGetDestinationType calls the PrintCore framework function PMSessionGetDestinationType.

func PMSessionSetCurrentPMPrinter

func PMSessionSetCurrentPMPrinter(session obj.Object, printer obj.Object) error

PMSessionSetCurrentPMPrinter reports an error if the PrintCore framework function PMSessionSetCurrentPMPrinter fails.

func PMSessionSetDataInSession

func PMSessionSetDataInSession(printSession obj.Object, key obj.Object, data obj.Object) error

PMSessionSetDataInSession reports an error if the PrintCore framework function PMSessionSetDataInSession fails.

func PMSessionSetDestination

func PMSessionSetDestination(printSession obj.Object, printSettings obj.Object, destType uint16, destFormat obj.Object, destLocation obj.Object) error

PMSessionSetDestination reports an error if the PrintCore framework function PMSessionSetDestination fails.

func PMSessionSetError

func PMSessionSetError(printSession obj.Object, printError int) error

PMSessionSetError reports an error if the PrintCore framework function PMSessionSetError fails.

func PMSessionValidatePageFormat

func PMSessionValidatePageFormat(printSession obj.Object, pageFormat obj.Object) (result int, changed uint8)

PMSessionValidatePageFormat calls the PrintCore framework function PMSessionValidatePageFormat.

func PMSessionValidatePrintSettings

func PMSessionValidatePrintSettings(printSession obj.Object, printSettings obj.Object) (result int, changed uint8)

PMSessionValidatePrintSettings calls the PrintCore framework function PMSessionValidatePrintSettings.

func PMSetCollate

func PMSetCollate(printSettings obj.Object, collate uint8) error

PMSetCollate reports an error if the PrintCore framework function PMSetCollate fails.

func PMSetCopies

func PMSetCopies(printSettings obj.Object, copies int, lock uint8) error

PMSetCopies reports an error if the PrintCore framework function PMSetCopies fails.

func PMSetDuplex

func PMSetDuplex(printSettings obj.Object, duplexSetting int) error

PMSetDuplex reports an error if the PrintCore framework function PMSetDuplex fails.

func PMSetFirstPage

func PMSetFirstPage(printSettings obj.Object, first int, lock uint8) error

PMSetFirstPage reports an error if the PrintCore framework function PMSetFirstPage fails.

func PMSetLastPage

func PMSetLastPage(printSettings obj.Object, last int, lock uint8) error

PMSetLastPage reports an error if the PrintCore framework function PMSetLastPage fails.

func PMSetOrientation

func PMSetOrientation(pageFormat obj.Object, orientation uint16, lock uint8) error

PMSetOrientation reports an error if the PrintCore framework function PMSetOrientation fails.

func PMSetPageFormatExtendedData

func PMSetPageFormatExtendedData(pageFormat obj.Object, dataID int, size int, extendedData unsafe.Pointer) error

PMSetPageFormatExtendedData reports an error if the PrintCore framework function PMSetPageFormatExtendedData fails.

func PMSetPageRange

func PMSetPageRange(printSettings obj.Object, minPage int, maxPage int) error

PMSetPageRange reports an error if the PrintCore framework function PMSetPageRange fails.

func PMSetScale

func PMSetScale(pageFormat obj.Object, scale float64) error

PMSetScale reports an error if the PrintCore framework function PMSetScale fails.

func PMWorkflowCopyItems

func PMWorkflowCopyItems() (obj.Object, error)

PMWorkflowCopyItems reports an error if the PrintCore framework function PMWorkflowCopyItems fails.

func PMWorkflowSubmitPDFWithOptions

func PMWorkflowSubmitPDFWithOptions(workflowItem obj.Object, title obj.Object, options string, pdfFile obj.Object) error

PMWorkflowSubmitPDFWithOptions reports an error if the PrintCore framework function PMWorkflowSubmitPDFWithOptions fails.

func PMWorkflowSubmitPDFWithSettings

func PMWorkflowSubmitPDFWithSettings(workflowItem obj.Object, settings obj.Object, pdfFile obj.Object) error

PMWorkflowSubmitPDFWithSettings reports an error if the PrintCore framework function PMWorkflowSubmitPDFWithSettings fails.

Types

type Clockid added in v0.17.0

type Clockid int64
const (
	ClockidRealtime           Clockid = 0
	ClockidMonotonic          Clockid = 6
	ClockidMonotonicRaw       Clockid = 4
	ClockidMonotonicRawApprox Clockid = 5
	ClockidUptimeRaw          Clockid = 8
	ClockidUptimeRawApprox    Clockid = 9
	ClockidProcessCputimeID   Clockid = 12
	ClockidThreadCputimeID    Clockid = 16
)

func (Clockid) String added in v0.17.0

func (e Clockid) String() string

String returns the Clockid constant's name, or its numeric form when the value is not a known constant.

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

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 EntryID added in v0.17.0

type EntryID int64
const (
	EntryIDFirstEntry EntryID = 0
	EntryIDNextEntry  EntryID = -1
	EntryIDLastEntry  EntryID = -2
)

func (EntryID) String added in v0.17.0

func (e EntryID) String() string

String returns the EntryID constant's name, or its numeric form when the value is not a known constant.

type EvCmd

type EvCmd int64
const (
	EVNOP   EvCmd = 0
	EVHIDE  EvCmd = 1
	EVSHOW  EvCmd = 2
	EVMOVE  EvCmd = 3
	EVLEVEL EvCmd = 4
)

func (EvCmd) String

func (e EvCmd) String() string

String returns the EvCmd constant's name, or its numeric form when the value is not a known constant.

type FilesecProperty added in v0.17.0

type FilesecProperty int64
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 Flag added in v0.17.0

type Flag int64
const (
	FlagFlagDeferInherit      Flag = 1
	FlagFlagNoInherit         Flag = 131072
	FlagEntryInherited        Flag = 16
	FlagEntryFileInherit      Flag = 32
	FlagEntryDirectoryInherit Flag = 64
	FlagEntryLimitInherit     Flag = 128
	FlagEntryOnlyInherit      Flag = 256
)

func (Flag) String added in v0.17.0

func (e Flag) String() string

String returns the Flag constant's name, or its numeric form when the value is not a known constant.

type Idtype added in v0.17.0

type Idtype int64
const (
	IdtypeAll  Idtype = 0
	IdtypePid  Idtype = 1
	IdtypePgid Idtype = 2
)

func (Idtype) String added in v0.17.0

func (e Idtype) String() string

String returns the Idtype constant's name, or its numeric form when the value is not a known constant.

type IpcInfoObjectType added in v0.17.0

type IpcInfoObjectType int64
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 int64
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 int64

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 int64
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 int64
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 int64

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 int64
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 int64
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 int64

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
)

func (MpoFlags) String added in v0.17.0

func (e MpoFlags) String() string

String returns the MpoFlags constant's name, or its numeric form when the value is not a known constant.

type NXMouseButton

type NXMouseButton int64
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 OSClockid added in v0.17.0

type OSClockid int64
const (
	OSClockidTime OSClockid = 32
)

func (OSClockid) String added in v0.17.0

func (e OSClockid) String() string

String returns the OSClockid constant's name, or its numeric form when the value is not a known constant.

type OpaquePMPageFormat

type OpaquePMPageFormat struct{}

type OpaquePMPaper

type OpaquePMPaper struct{}

type OpaquePMPreset

type OpaquePMPreset struct{}

type OpaquePMPrintSession

type OpaquePMPrintSession struct{}

type OpaquePMPrintSettings

type OpaquePMPrintSettings struct{}

type OpaquePMPrinter

type OpaquePMPrinter struct{}

type OpaquePMServer

type OpaquePMServer struct{}

type PDEPanel

type PDEPanel interface {
	WillShow()
	ShouldHide() bool
	SaveValuesAndReturnError() bool
	RestoreValuesAndReturnError() bool
	PPDOptionKeyValueDidChangePpdChoice(option string, choice string)
	PanelView() obj.Object
	PanelName() string
	PanelKind() string
	SummaryInfo() map[string]string
}

PDEPanel is the Go form of the Objective-C protocol PDEPanel.

type PDEPlugIn

type PDEPlugIn interface {
	InitWithBundle(theBundle obj.Object) obj.Object
	PDEPanelsForTypeWithHostInfo(pdeType string, host obj.Object) []obj.Object
}

PDEPlugIn is the Go form of the Objective-C protocol PDEPlugIn.

type PDEPlugInCallbackProtocol

type PDEPlugInCallbackProtocol interface {
	PrintSession() obj.Object
	PrintSettings() obj.Object
	PageFormat() obj.Object
	PMPrinter() obj.Object
	PpdFile() obj.Object
	WillChangePPDOptionKeyValuePpdChoice(option string, choice string) bool
}

PDEPlugInCallbackProtocol is the Go form of the Objective-C protocol PDEPlugInCallbackProtocol.

type PMDataFormat

type PMDataFormat int64
const (
	KPMDataFormatXMLDefault    PMDataFormat = 0
	KPMDataFormatXMLMinimal    PMDataFormat = 1
	KPMDataFormatXMLCompressed PMDataFormat = 2
)

func (PMDataFormat) String

func (e PMDataFormat) String() string

String returns the PMDataFormat constant's name, or its numeric form when the value is not a known constant.

type PMLanguageInfo

type PMLanguageInfo struct {
	Level   [33]uint8
	Version [33]uint8
	Release [33]uint8
}

type PMPageToPaperMappingType

type PMPageToPaperMappingType int64
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 PMRect

type PMRect struct {
	Top    float64
	Left   float64
	Bottom float64
	Right  float64
}

func PMGetAdjustedPageRect

func PMGetAdjustedPageRect(pageFormat obj.Object) (result int, pageRect PMRect)

PMGetAdjustedPageRect calls the PrintCore framework function PMGetAdjustedPageRect.

func PMGetAdjustedPaperRect

func PMGetAdjustedPaperRect(pageFormat obj.Object) (result int, paperRect PMRect)

PMGetAdjustedPaperRect calls the PrintCore framework function PMGetAdjustedPaperRect.

func PMGetUnadjustedPageRect

func PMGetUnadjustedPageRect(pageFormat obj.Object) (result int, pageRect PMRect)

PMGetUnadjustedPageRect calls the PrintCore framework function PMGetUnadjustedPageRect.

func PMGetUnadjustedPaperRect

func PMGetUnadjustedPaperRect(pageFormat obj.Object) (result int, paperRect PMRect)

PMGetUnadjustedPaperRect calls the PrintCore framework function PMGetUnadjustedPaperRect.

func PMPaperCreateCustom

func PMPaperCreateCustom(printer obj.Object, identifier obj.Object, name obj.Object, width float64, height float64, paperP unsafe.Pointer) (result int, margins PMRect)

PMPaperCreateCustom calls the PrintCore framework function PMPaperCreateCustom.

func PMPaperGetMargins

func PMPaperGetMargins(paper obj.Object) (result int, paperMargins PMRect)

PMPaperGetMargins calls the PrintCore framework function PMPaperGetMargins.

func PMSessionBeginPageNoDialog

func PMSessionBeginPageNoDialog(printSession obj.Object, pageFormat obj.Object) (result int, pageFrame PMRect)

PMSessionBeginPageNoDialog calls the PrintCore framework function PMSessionBeginPageNoDialog.

type PMResolution

type PMResolution struct {
	HRes float64
	VRes float64
}

func PMPrinterGetIndexedPrinterResolution

func PMPrinterGetIndexedPrinterResolution(printer obj.Object, index int) (result int, resolutionP PMResolution)

PMPrinterGetIndexedPrinterResolution calls the PrintCore framework function PMPrinterGetIndexedPrinterResolution.

func PMPrinterGetOutputResolution

func PMPrinterGetOutputResolution(printer obj.Object, printSettings obj.Object) (result int, resolutionP PMResolution)

PMPrinterGetOutputResolution calls the PrintCore framework function PMPrinterGetOutputResolution.

func PMPrinterSetOutputResolution

func PMPrinterSetOutputResolution(printer obj.Object, printSettings obj.Object) (result int, resolutionP PMResolution)

PMPrinterSetOutputResolution calls the PrintCore framework function PMPrinterSetOutputResolution.

type Perm added in v0.17.0

type Perm int64
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
)

func (Perm) String added in v0.17.0

func (e Perm) String() string

String returns the Perm constant's name, or its numeric form when the value is not a known constant.

type PtrauthKey added in v0.17.0

type PtrauthKey int64
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 QosClass added in v0.17.0

type QosClass uint32
const (
	QosClassUserInteractive QosClass = 33
	QosClassUserInitiated   QosClass = 25
	QosClassDefault         QosClass = 21
	QosClassUtility         QosClass = 17
	QosClassBackground      QosClass = 9
	QosClassUnspecified     QosClass = 0
)

func (QosClass) String added in v0.17.0

func (e QosClass) String() string

String returns the QosClass constant's name, or its numeric form when the value is not a known constant.

type Tag added in v0.17.0

type Tag int64
const (
	TagUndefinedTag  Tag = 0
	TagExtendedAllow Tag = 1
	TagExtendedDeny  Tag = 2
)

func (Tag) String added in v0.17.0

func (e Tag) String() string

String returns the Tag constant's name, or its numeric form when the value is not a known constant.

type Type added in v0.17.0

type Type int64
const (
	TypeExtended Type = 256
	TypeAccess   Type = 0
	TypeDefault  Type = 1
	TypeAfs      Type = 2
	TypeCoda     Type = 3
	TypeNtfs     Type = 4
	TypeNwfs     Type = 5
)

func (Type) String added in v0.17.0

func (e Type) String() string

String returns the Type constant's name, or its numeric form when the value is not a known constant.

type VirtualMemoryGuardExceptionCode added in v0.17.0

type VirtualMemoryGuardExceptionCode int64
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

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 int64

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 int64

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL