printcore

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 11 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 coregraphics.CGDataProviderRef, epsPreview coregraphics.CGImageRef) coregraphics.CGImageRef

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 PMPageFormat, formatDest PMPageFormat) error

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

func PMCopyPrintSettings

func PMCopyPrintSettings(settingSrc PMPrintSettings, settingDest PMPrintSettings) 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 PMPaper) 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 PMGetAdjustedPageRect

func PMGetAdjustedPageRect(pageFormat PMPageFormat, pageRect *PMRect) error

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

func PMGetAdjustedPaperRect

func PMGetAdjustedPaperRect(pageFormat PMPageFormat, paperRect *PMRect) error

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

func PMGetCollate

func PMGetCollate(printSettings PMPrintSettings) (result int, collate uint8)

PMGetCollate calls the PrintCore framework function PMGetCollate.

func PMGetCopies

func PMGetCopies(printSettings PMPrintSettings) (result int, copies int)

PMGetCopies calls the PrintCore framework function PMGetCopies.

func PMGetDuplex

func PMGetDuplex(printSettings PMPrintSettings) (result int, duplexSetting int)

PMGetDuplex calls the PrintCore framework function PMGetDuplex.

func PMGetFirstPage

func PMGetFirstPage(printSettings PMPrintSettings) (result int, first int)

PMGetFirstPage calls the PrintCore framework function PMGetFirstPage.

func PMGetLastPage

func PMGetLastPage(printSettings PMPrintSettings) (result int, last int)

PMGetLastPage calls the PrintCore framework function PMGetLastPage.

func PMGetOrientation

func PMGetOrientation(pageFormat PMPageFormat) (result int, orientation uint16)

PMGetOrientation calls the PrintCore framework function PMGetOrientation.

func PMGetPageFormatExtendedData

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

PMGetPageFormatExtendedData calls the PrintCore framework function PMGetPageFormatExtendedData.

func PMGetPageFormatPaper

func PMGetPageFormatPaper(format PMPageFormat, paper unsafe.Pointer) error

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

func PMGetPageRange

func PMGetPageRange(printSettings PMPrintSettings) (result int, minPage int, maxPage int)

PMGetPageRange calls the PrintCore framework function PMGetPageRange.

func PMGetScale

func PMGetScale(pageFormat PMPageFormat) (result int, scale float64)

PMGetScale calls the PrintCore framework function PMGetScale.

func PMGetUnadjustedPageRect

func PMGetUnadjustedPageRect(pageFormat PMPageFormat, pageRect *PMRect) error

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

func PMGetUnadjustedPaperRect

func PMGetUnadjustedPaperRect(pageFormat PMPageFormat, paperRect *PMRect) error

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

func PMPageFormatCreateDataRepresentation

func PMPageFormatCreateDataRepresentation(pageFormat PMPageFormat, 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 PMPageFormat) (obj.Object, error)

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

func PMPaperCreateCustom

func PMPaperCreateCustom(printer PMPrinter, identifier obj.Object, name obj.Object, width float64, height float64, margins *PMRect, paperP unsafe.Pointer) error

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

func PMPaperCreateLocalizedName

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

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

func PMPaperGetHeight

func PMPaperGetHeight(paper PMPaper) (result int, paperHeight float64)

PMPaperGetHeight calls the PrintCore framework function PMPaperGetHeight.

func PMPaperGetID

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

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

func PMPaperGetMargins

func PMPaperGetMargins(paper PMPaper, paperMargins *PMRect) error

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

func PMPaperGetPPDPaperName

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

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

func PMPaperGetPrinterID

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

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

func PMPaperGetWidth

func PMPaperGetWidth(paper PMPaper) (result int, paperWidth float64)

PMPaperGetWidth calls the PrintCore framework function PMPaperGetWidth.

func PMPaperIsCustom

func PMPaperIsCustom(paper PMPaper) uint8

PMPaperIsCustom calls the PrintCore framework function PMPaperIsCustom.

func PMPresetCopyName

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

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

func PMPresetCreatePrintSettings

func PMPresetCreatePrintSettings(preset PMPreset, session PMPrintSession, printSettings unsafe.Pointer) error

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

func PMPresetGetAttributes

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

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

func PMPrintSettingsCopyAsDictionary

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

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

func PMPrintSettingsCopyKeys

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

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

func PMPrintSettingsCreateDataRepresentation

func PMPrintSettingsCreateDataRepresentation(printSettings PMPrintSettings, 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 PMPrintSettings) (obj.Object, error)

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

func PMPrintSettingsGetValue

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

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

func PMPrintSettingsSetJobName

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

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

func PMPrintSettingsSetValue

func PMPrintSettingsSetValue(printSettings PMPrintSettings, 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 PMPrintSettings, options string) error

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

func PMPrintSettingsToOptionsWithPrinterAndPageFormat

func PMPrintSettingsToOptionsWithPrinterAndPageFormat(settings PMPrintSettings, printer PMPrinter, pageFormat PMPageFormat, options string) error

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

func PMPrinterCopyDescriptionURL

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

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

func PMPrinterCopyDeviceURI

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

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

func PMPrinterCopyHostName

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

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

func PMPrinterCopyPresets

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

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

func PMPrinterCopyState

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

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

func PMPrinterGetCommInfo

func PMPrinterGetCommInfo(printer PMPrinter) (result int, supportsControlCharRangeP uint8, supportsEightBitP uint8)

PMPrinterGetCommInfo calls the PrintCore framework function PMPrinterGetCommInfo.

func PMPrinterGetDriverCreator

func PMPrinterGetDriverCreator(printer PMPrinter) (result int, creator int)

PMPrinterGetDriverCreator calls the PrintCore framework function PMPrinterGetDriverCreator.

func PMPrinterGetDriverReleaseInfo

func PMPrinterGetDriverReleaseInfo(printer PMPrinter, release unsafe.Pointer) error

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

func PMPrinterGetID

func PMPrinterGetID(printer PMPrinter) corefoundation.CFStringRef

PMPrinterGetID calls the PrintCore framework function PMPrinterGetID.

func PMPrinterGetIndexedPrinterResolution

func PMPrinterGetIndexedPrinterResolution(printer PMPrinter, index int, resolutionP *PMResolution) error

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

func PMPrinterGetLanguageInfo

func PMPrinterGetLanguageInfo(printer PMPrinter, info *PMLanguageInfo) error

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

func PMPrinterGetLocation

func PMPrinterGetLocation(printer PMPrinter) corefoundation.CFStringRef

PMPrinterGetLocation calls the PrintCore framework function PMPrinterGetLocation.

func PMPrinterGetMakeAndModelName

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

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

func PMPrinterGetMimeTypes

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

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

func PMPrinterGetName

func PMPrinterGetName(printer PMPrinter) corefoundation.CFStringRef

PMPrinterGetName calls the PrintCore framework function PMPrinterGetName.

func PMPrinterGetOutputResolution

func PMPrinterGetOutputResolution(printer PMPrinter, printSettings PMPrintSettings, resolutionP *PMResolution) error

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

func PMPrinterGetPaperList

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

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

func PMPrinterGetPrinterResolutionCount

func PMPrinterGetPrinterResolutionCount(printer PMPrinter) (result int, countP int)

PMPrinterGetPrinterResolutionCount calls the PrintCore framework function PMPrinterGetPrinterResolutionCount.

func PMPrinterGetState

func PMPrinterGetState(printer PMPrinter) (result int, state uint16)

PMPrinterGetState calls the PrintCore framework function PMPrinterGetState.

func PMPrinterIsDefault

func PMPrinterIsDefault(printer PMPrinter) uint8

PMPrinterIsDefault calls the PrintCore framework function PMPrinterIsDefault.

func PMPrinterIsFavorite

func PMPrinterIsFavorite(printer PMPrinter) uint8

PMPrinterIsFavorite calls the PrintCore framework function PMPrinterIsFavorite.

func PMPrinterIsPostScriptCapable

func PMPrinterIsPostScriptCapable(printer PMPrinter) uint8

PMPrinterIsPostScriptCapable calls the PrintCore framework function PMPrinterIsPostScriptCapable.

func PMPrinterIsPostScriptPrinter

func PMPrinterIsPostScriptPrinter(printer PMPrinter) (result int, isPSPrinter uint8)

PMPrinterIsPostScriptPrinter calls the PrintCore framework function PMPrinterIsPostScriptPrinter.

func PMPrinterIsRemote

func PMPrinterIsRemote(printer PMPrinter) (result int, isRemoteP uint8)

PMPrinterIsRemote calls the PrintCore framework function PMPrinterIsRemote.

func PMPrinterPrintWithFile

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

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

func PMPrinterPrintWithProvider

func PMPrinterPrintWithProvider(printer PMPrinter, settings PMPrintSettings, format PMPageFormat, mimeType obj.Object, provider coregraphics.CGDataProviderRef) error

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

func PMPrinterSendCommand

func PMPrinterSendCommand(printer PMPrinter, 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 PMPrinter) error

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

func PMPrinterSetOutputResolution

func PMPrinterSetOutputResolution(printer PMPrinter, printSettings PMPrintSettings, resolutionP *PMResolution) error

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

func PMPrinterWritePostScriptToURL

func PMPrinterWritePostScriptToURL(printer PMPrinter, settings PMPrintSettings, format PMPageFormat, 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 PMServer) (obj.Object, error)

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

func PMServerLaunchPrinterBrowser

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

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

func PMSessionBeginCGDocumentNoDialog

func PMSessionBeginCGDocumentNoDialog(printSession PMPrintSession, printSettings PMPrintSettings, pageFormat PMPageFormat) error

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

func PMSessionBeginPageNoDialog

func PMSessionBeginPageNoDialog(printSession PMPrintSession, pageFormat PMPageFormat, pageFrame *PMRect) error

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

func PMSessionCopyDestinationFormat

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

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

func PMSessionCopyDestinationLocation

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

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

func PMSessionCopyOutputFormatList

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

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

func PMSessionCreatePageFormatList

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

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

func PMSessionCreatePrinterList

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

PMSessionCreatePrinterList calls the PrintCore framework function PMSessionCreatePrinterList.

func PMSessionDefaultPageFormat

func PMSessionDefaultPageFormat(printSession PMPrintSession, pageFormat PMPageFormat) error

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

func PMSessionDefaultPrintSettings

func PMSessionDefaultPrintSettings(printSession PMPrintSession, printSettings PMPrintSettings) error

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

func PMSessionEndDocumentNoDialog

func PMSessionEndDocumentNoDialog(printSession PMPrintSession) error

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

func PMSessionEndPageNoDialog

func PMSessionEndPageNoDialog(printSession PMPrintSession) error

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

func PMSessionError

func PMSessionError(printSession PMPrintSession) error

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

func PMSessionGetCGGraphicsContext

func PMSessionGetCGGraphicsContext(printSession PMPrintSession, context_ unsafe.Pointer) error

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

func PMSessionGetCurrentPrinter

func PMSessionGetCurrentPrinter(printSession PMPrintSession, currentPrinter unsafe.Pointer) error

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

func PMSessionGetDataFromSession

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

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

func PMSessionGetDestinationType

func PMSessionGetDestinationType(printSession PMPrintSession, printSettings PMPrintSettings) (result int, destTypeP uint16)

PMSessionGetDestinationType calls the PrintCore framework function PMSessionGetDestinationType.

func PMSessionSetCurrentPMPrinter

func PMSessionSetCurrentPMPrinter(session PMPrintSession, printer PMPrinter) error

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

func PMSessionSetDataInSession

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

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

func PMSessionSetDestination

func PMSessionSetDestination(printSession PMPrintSession, printSettings PMPrintSettings, 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 PMPrintSession, printError int) error

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

func PMSessionValidatePageFormat

func PMSessionValidatePageFormat(printSession PMPrintSession, pageFormat PMPageFormat) (result int, changed uint8)

PMSessionValidatePageFormat calls the PrintCore framework function PMSessionValidatePageFormat.

func PMSessionValidatePrintSettings

func PMSessionValidatePrintSettings(printSession PMPrintSession, printSettings PMPrintSettings) (result int, changed uint8)

PMSessionValidatePrintSettings calls the PrintCore framework function PMSessionValidatePrintSettings.

func PMSetCollate

func PMSetCollate(printSettings PMPrintSettings, collate uint8) error

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

func PMSetCopies

func PMSetCopies(printSettings PMPrintSettings, copies int, lock uint8) error

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

func PMSetDuplex

func PMSetDuplex(printSettings PMPrintSettings, duplexSetting int) error

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

func PMSetFirstPage

func PMSetFirstPage(printSettings PMPrintSettings, first int, lock uint8) error

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

func PMSetLastPage

func PMSetLastPage(printSettings PMPrintSettings, last int, lock uint8) error

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

func PMSetOrientation

func PMSetOrientation(pageFormat PMPageFormat, orientation uint16, lock uint8) error

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

func PMSetPageFormatExtendedData

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

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

func PMSetPageRange

func PMSetPageRange(printSettings PMPrintSettings, minPage int, maxPage int) error

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

func PMSetScale

func PMSetScale(pageFormat PMPageFormat, 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 PMPrintSettings, 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 int32
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 int32
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 int32
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 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 Flag added in v0.17.0

type Flag int32
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 int32
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 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
)

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

type OSClockid uint32
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) unsafe.Pointer
	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() PMPrintSession
	PrintSettings() PMPrintSettings
	PageFormat() PMPageFormat
	PMPrinter() PMPrinter
	PpdFile() unsafe.Pointer
	WillChangePPDOptionKeyValuePpdChoice(option string, choice string) bool
}

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

type PMDataFormat

type PMDataFormat int32
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 PMPageFormat added in v0.18.0

type PMPageFormat struct{ obj.Object }

PMPageFormat is a handle for the opaque PMPageFormat type.

func (PMPageFormat) IsNil added in v0.18.0

func (h PMPageFormat) IsNil() bool

IsNil reports whether PMPageFormat is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

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 PMPaper added in v0.18.0

type PMPaper struct{ obj.Object }

PMPaper is a handle for the opaque PMPaper type.

func (PMPaper) IsNil added in v0.18.0

func (h PMPaper) IsNil() bool

IsNil reports whether PMPaper is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

type PMPreset added in v0.18.0

type PMPreset struct{ obj.Object }

PMPreset is a handle for the opaque PMPreset type.

func (PMPreset) IsNil added in v0.18.0

func (h PMPreset) IsNil() bool

IsNil reports whether PMPreset is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

type PMPrintSession added in v0.18.0

type PMPrintSession struct{ obj.Object }

PMPrintSession is a handle for the opaque PMPrintSession type.

func (PMPrintSession) IsNil added in v0.18.0

func (h PMPrintSession) IsNil() bool

IsNil reports whether PMPrintSession is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

type PMPrintSettings added in v0.18.0

type PMPrintSettings struct{ obj.Object }

PMPrintSettings is a handle for the opaque PMPrintSettings type.

func (PMPrintSettings) IsNil added in v0.18.0

func (h PMPrintSettings) IsNil() bool

IsNil reports whether PMPrintSettings is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

type PMPrinter added in v0.18.0

type PMPrinter struct{ obj.Object }

PMPrinter is a handle for the opaque PMPrinter type.

func PMPrinterCreateFromPrinterID

func PMPrinterCreateFromPrinterID(printerID corefoundation.CFStringRef) PMPrinter

PMPrinterCreateFromPrinterID calls the PrintCore framework function PMPrinterCreateFromPrinterID.

func (PMPrinter) IsNil added in v0.18.0

func (h PMPrinter) IsNil() bool

IsNil reports whether PMPrinter is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

type PMRect

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

type PMResolution

type PMResolution struct {
	HRes float64
	VRes float64
}

type PMServer added in v0.18.0

type PMServer struct{ obj.Object }

PMServer is a handle for the opaque PMServer type.

func (PMServer) IsNil added in v0.18.0

func (h PMServer) IsNil() bool

IsNil reports whether PMServer is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

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
)

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

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.

Jump to

Keyboard shortcuts

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