Documentation
¶
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
- func PMCGImageCreateWithEPSDataProvider(epsDataProvider coregraphics.CGDataProviderRef, ...) coregraphics.CGImageRef
- func PMCopyAvailablePPDs(domain uint16) (obj.Object, error)
- func PMCopyLocalizedPPD(ppd obj.Object) (obj.Object, error)
- func PMCopyPPDData(ppd obj.Object) (obj.Object, error)
- func PMCopyPageFormat(formatSrc PMPageFormat, formatDest PMPageFormat) error
- func PMCopyPrintSettings(settingSrc PMPrintSettings, settingDest PMPrintSettings) error
- func PMCreateGenericPrinter(printer unsafe.Pointer) error
- func PMCreatePageFormat(pageFormat unsafe.Pointer) error
- func PMCreatePageFormatWithPMPaper(pageFormat unsafe.Pointer, paper PMPaper) error
- func PMCreatePrintSettings(printSettings unsafe.Pointer) error
- func PMCreateSession(printSession unsafe.Pointer) error
- func PMGetAdjustedPageRect(pageFormat PMPageFormat, pageRect *PMRect) error
- func PMGetAdjustedPaperRect(pageFormat PMPageFormat, paperRect *PMRect) error
- func PMGetCollate(printSettings PMPrintSettings) (result int, collate uint8)
- func PMGetCopies(printSettings PMPrintSettings) (result int, copies int)
- func PMGetDuplex(printSettings PMPrintSettings) (result int, duplexSetting int)
- func PMGetFirstPage(printSettings PMPrintSettings) (result int, first int)
- func PMGetLastPage(printSettings PMPrintSettings) (result int, last int)
- func PMGetOrientation(pageFormat PMPageFormat) (result int, orientation uint16)
- func PMGetPageFormatExtendedData(pageFormat PMPageFormat, dataID int, extendedData unsafe.Pointer) (result int, size int)
- func PMGetPageFormatPaper(format PMPageFormat, paper unsafe.Pointer) error
- func PMGetPageRange(printSettings PMPrintSettings) (result int, minPage int, maxPage int)
- func PMGetScale(pageFormat PMPageFormat) (result int, scale float64)
- func PMGetUnadjustedPageRect(pageFormat PMPageFormat, pageRect *PMRect) error
- func PMGetUnadjustedPaperRect(pageFormat PMPageFormat, paperRect *PMRect) error
- func PMPageFormatCreateDataRepresentation(pageFormat PMPageFormat, format PMDataFormat) (obj.Object, error)
- func PMPageFormatCreateWithDataRepresentation(data obj.Object, pageFormat unsafe.Pointer) error
- func PMPageFormatGetPrinterID(pageFormat PMPageFormat) (obj.Object, error)
- func PMPaperCreateCustom(printer PMPrinter, identifier obj.Object, name obj.Object, width float64, ...) error
- func PMPaperCreateLocalizedName(paper PMPaper, printer PMPrinter) (obj.Object, error)
- func PMPaperGetHeight(paper PMPaper) (result int, paperHeight float64)
- func PMPaperGetID(paper PMPaper) (obj.Object, error)
- func PMPaperGetMargins(paper PMPaper, paperMargins *PMRect) error
- func PMPaperGetPPDPaperName(paper PMPaper) (obj.Object, error)
- func PMPaperGetPrinterID(paper PMPaper) (obj.Object, error)
- func PMPaperGetWidth(paper PMPaper) (result int, paperWidth float64)
- func PMPaperIsCustom(paper PMPaper) uint8
- func PMPresetCopyName(preset PMPreset) (obj.Object, error)
- func PMPresetCreatePrintSettings(preset PMPreset, session PMPrintSession, printSettings unsafe.Pointer) error
- func PMPresetGetAttributes(preset PMPreset) (obj.Object, error)
- func PMPrintSettingsCopyAsDictionary(printSettings PMPrintSettings) (obj.Object, error)
- func PMPrintSettingsCopyKeys(printSettings PMPrintSettings) (obj.Object, error)
- func PMPrintSettingsCreateDataRepresentation(printSettings PMPrintSettings, format PMDataFormat) (obj.Object, error)
- func PMPrintSettingsCreateWithDataRepresentation(data obj.Object, printSettings unsafe.Pointer) error
- func PMPrintSettingsGetJobName(printSettings PMPrintSettings) (obj.Object, error)
- func PMPrintSettingsGetValue(printSettings PMPrintSettings, key obj.Object) (obj.Object, error)
- func PMPrintSettingsSetJobName(printSettings PMPrintSettings, name obj.Object) error
- func PMPrintSettingsSetValue(printSettings PMPrintSettings, key obj.Object, value obj.Object, locked uint8) error
- func PMPrintSettingsToOptions(settings PMPrintSettings, options string) error
- func PMPrintSettingsToOptionsWithPrinterAndPageFormat(settings PMPrintSettings, printer PMPrinter, pageFormat PMPageFormat, ...) error
- func PMPrinterCopyDescriptionURL(printer PMPrinter, descriptionType obj.Object) (obj.Object, error)
- func PMPrinterCopyDeviceURI(printer PMPrinter) (obj.Object, error)
- func PMPrinterCopyHostName(printer PMPrinter) (obj.Object, error)
- func PMPrinterCopyPresets(printer PMPrinter) (obj.Object, error)
- func PMPrinterCopyState(printer PMPrinter) (obj.Object, error)
- func PMPrinterGetCommInfo(printer PMPrinter) (result int, supportsControlCharRangeP uint8, supportsEightBitP uint8)
- func PMPrinterGetDriverCreator(printer PMPrinter) (result int, creator int)
- func PMPrinterGetDriverReleaseInfo(printer PMPrinter, release unsafe.Pointer) error
- func PMPrinterGetID(printer PMPrinter) corefoundation.CFStringRef
- func PMPrinterGetIndexedPrinterResolution(printer PMPrinter, index int, resolutionP *PMResolution) error
- func PMPrinterGetLanguageInfo(printer PMPrinter, info *PMLanguageInfo) error
- func PMPrinterGetLocation(printer PMPrinter) corefoundation.CFStringRef
- func PMPrinterGetMakeAndModelName(printer PMPrinter) (obj.Object, error)
- func PMPrinterGetMimeTypes(printer PMPrinter, settings PMPrintSettings) (obj.Object, error)
- func PMPrinterGetName(printer PMPrinter) corefoundation.CFStringRef
- func PMPrinterGetOutputResolution(printer PMPrinter, printSettings PMPrintSettings, resolutionP *PMResolution) error
- func PMPrinterGetPaperList(printer PMPrinter) (obj.Object, error)
- func PMPrinterGetPrinterResolutionCount(printer PMPrinter) (result int, countP int)
- func PMPrinterGetState(printer PMPrinter) (result int, state uint16)
- func PMPrinterIsDefault(printer PMPrinter) uint8
- func PMPrinterIsFavorite(printer PMPrinter) uint8
- func PMPrinterIsPostScriptCapable(printer PMPrinter) uint8
- func PMPrinterIsPostScriptPrinter(printer PMPrinter) (result int, isPSPrinter uint8)
- func PMPrinterIsRemote(printer PMPrinter) (result int, isRemoteP uint8)
- func PMPrinterPrintWithFile(printer PMPrinter, settings PMPrintSettings, format PMPageFormat, ...) error
- func PMPrinterPrintWithProvider(printer PMPrinter, settings PMPrintSettings, format PMPageFormat, ...) error
- func PMPrinterSendCommand(printer PMPrinter, commandString obj.Object, jobTitle obj.Object, ...) error
- func PMPrinterSetDefault(printer PMPrinter) error
- func PMPrinterSetOutputResolution(printer PMPrinter, printSettings PMPrintSettings, resolutionP *PMResolution) error
- func PMPrinterWritePostScriptToURL(printer PMPrinter, settings PMPrintSettings, format PMPageFormat, ...) error
- func PMRelease(object unsafe.Pointer) error
- func PMRetain(object unsafe.Pointer) error
- func PMServerCreatePrinterList(server PMServer) (obj.Object, error)
- func PMServerLaunchPrinterBrowser(server PMServer, options obj.Object) error
- func PMSessionBeginCGDocumentNoDialog(printSession PMPrintSession, printSettings PMPrintSettings, ...) error
- func PMSessionBeginPageNoDialog(printSession PMPrintSession, pageFormat PMPageFormat, pageFrame *PMRect) error
- func PMSessionCopyDestinationFormat(printSession PMPrintSession, printSettings PMPrintSettings) (obj.Object, error)
- func PMSessionCopyDestinationLocation(printSession PMPrintSession, printSettings PMPrintSettings) (obj.Object, error)
- func PMSessionCopyOutputFormatList(printSession PMPrintSession, destType uint16) (obj.Object, error)
- func PMSessionCreatePageFormatList(printSession PMPrintSession, printer PMPrinter) (obj.Object, error)
- func PMSessionCreatePrinterList(printSession PMPrintSession, printerList unsafe.Pointer, ...) (result int, currentIndex int)
- func PMSessionDefaultPageFormat(printSession PMPrintSession, pageFormat PMPageFormat) error
- func PMSessionDefaultPrintSettings(printSession PMPrintSession, printSettings PMPrintSettings) error
- func PMSessionEndDocumentNoDialog(printSession PMPrintSession) error
- func PMSessionEndPageNoDialog(printSession PMPrintSession) error
- func PMSessionError(printSession PMPrintSession) error
- func PMSessionGetCGGraphicsContext(printSession PMPrintSession, context_ unsafe.Pointer) error
- func PMSessionGetCurrentPrinter(printSession PMPrintSession, currentPrinter unsafe.Pointer) error
- func PMSessionGetDataFromSession(printSession PMPrintSession, key obj.Object) (obj.Object, error)
- func PMSessionGetDestinationType(printSession PMPrintSession, printSettings PMPrintSettings) (result int, destTypeP uint16)
- func PMSessionSetCurrentPMPrinter(session PMPrintSession, printer PMPrinter) error
- func PMSessionSetDataInSession(printSession PMPrintSession, key obj.Object, data obj.Object) error
- func PMSessionSetDestination(printSession PMPrintSession, printSettings PMPrintSettings, destType uint16, ...) error
- func PMSessionSetError(printSession PMPrintSession, printError int) error
- func PMSessionValidatePageFormat(printSession PMPrintSession, pageFormat PMPageFormat) (result int, changed uint8)
- func PMSessionValidatePrintSettings(printSession PMPrintSession, printSettings PMPrintSettings) (result int, changed uint8)
- func PMSetCollate(printSettings PMPrintSettings, collate uint8) error
- func PMSetCopies(printSettings PMPrintSettings, copies int, lock uint8) error
- func PMSetDuplex(printSettings PMPrintSettings, duplexSetting int) error
- func PMSetFirstPage(printSettings PMPrintSettings, first int, lock uint8) error
- func PMSetLastPage(printSettings PMPrintSettings, last int, lock uint8) error
- func PMSetOrientation(pageFormat PMPageFormat, orientation uint16, lock uint8) error
- func PMSetPageFormatExtendedData(pageFormat PMPageFormat, dataID int, size int, extendedData unsafe.Pointer) error
- func PMSetPageRange(printSettings PMPrintSettings, minPage int, maxPage int) error
- func PMSetScale(pageFormat PMPageFormat, scale float64) error
- func PMWorkflowCopyItems() (obj.Object, error)
- func PMWorkflowSubmitPDFWithOptions(workflowItem obj.Object, title obj.Object, options string, pdfFile obj.Object) error
- func PMWorkflowSubmitPDFWithSettings(workflowItem obj.Object, settings PMPrintSettings, pdfFile obj.Object) error
- type Clockid
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EntryID
- type EvCmd
- type FilesecProperty
- type Flag
- type Idtype
- type IpcInfoObjectType
- type LaunchDataType
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type MpoFlags
- type NXMouseButton
- type OSClockid
- type OpaquePMPageFormat
- type OpaquePMPaper
- type OpaquePMPreset
- type OpaquePMPrintSession
- type OpaquePMPrintSettings
- type OpaquePMPrinter
- type OpaquePMServer
- type PDEPanel
- type PDEPlugIn
- type PDEPlugInCallbackProtocol
- type PMDataFormat
- type PMLanguageInfo
- type PMPageFormat
- type PMPageToPaperMappingType
- type PMPaper
- type PMPreset
- type PMPrintSession
- type PMPrintSettings
- type PMPrinter
- type PMRect
- type PMResolution
- type PMServer
- type Perm
- type PtrauthKey
- type QosClass
- type Tag
- type Type
- type VirtualMemoryGuardExceptionCode
- type XpcListenerCreateFlags
- type XpcSessionCreateFlags
Constants ¶
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 ¶
PMCopyAvailablePPDs reports an error if the PrintCore framework function PMCopyAvailablePPDs fails.
func PMCopyLocalizedPPD ¶
PMCopyLocalizedPPD reports an error if the PrintCore framework function PMCopyLocalizedPPD fails.
func PMCopyPPDData ¶
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 ¶
PMCreateGenericPrinter reports an error if the PrintCore framework function PMCreateGenericPrinter fails.
func PMCreatePageFormat ¶
PMCreatePageFormat reports an error if the PrintCore framework function PMCreatePageFormat fails.
func PMCreatePageFormatWithPMPaper ¶
PMCreatePageFormatWithPMPaper reports an error if the PrintCore framework function PMCreatePageFormatWithPMPaper fails.
func PMCreatePrintSettings ¶
PMCreatePrintSettings reports an error if the PrintCore framework function PMCreatePrintSettings fails.
func PMCreateSession ¶
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 ¶
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 ¶
PMPaperCreateLocalizedName reports an error if the PrintCore framework function PMPaperCreateLocalizedName fails.
func PMPaperGetHeight ¶
PMPaperGetHeight calls the PrintCore framework function PMPaperGetHeight.
func PMPaperGetID ¶
PMPaperGetID reports an error if the PrintCore framework function PMPaperGetID fails.
func PMPaperGetMargins ¶
PMPaperGetMargins reports an error if the PrintCore framework function PMPaperGetMargins fails.
func PMPaperGetPPDPaperName ¶
PMPaperGetPPDPaperName reports an error if the PrintCore framework function PMPaperGetPPDPaperName fails.
func PMPaperGetPrinterID ¶
PMPaperGetPrinterID reports an error if the PrintCore framework function PMPaperGetPrinterID fails.
func PMPaperGetWidth ¶
PMPaperGetWidth calls the PrintCore framework function PMPaperGetWidth.
func PMPaperIsCustom ¶
PMPaperIsCustom calls the PrintCore framework function PMPaperIsCustom.
func PMPresetCopyName ¶
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 ¶
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 ¶
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 ¶
PMPrinterCopyDescriptionURL reports an error if the PrintCore framework function PMPrinterCopyDescriptionURL fails.
func PMPrinterCopyDeviceURI ¶
PMPrinterCopyDeviceURI reports an error if the PrintCore framework function PMPrinterCopyDeviceURI fails.
func PMPrinterCopyHostName ¶
PMPrinterCopyHostName reports an error if the PrintCore framework function PMPrinterCopyHostName fails.
func PMPrinterCopyPresets ¶
PMPrinterCopyPresets reports an error if the PrintCore framework function PMPrinterCopyPresets fails.
func PMPrinterCopyState ¶
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 ¶
PMPrinterGetDriverCreator calls the PrintCore framework function PMPrinterGetDriverCreator.
func PMPrinterGetDriverReleaseInfo ¶
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 ¶
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 ¶
PMPrinterGetPaperList reports an error if the PrintCore framework function PMPrinterGetPaperList fails.
func PMPrinterGetPrinterResolutionCount ¶
PMPrinterGetPrinterResolutionCount calls the PrintCore framework function PMPrinterGetPrinterResolutionCount.
func PMPrinterGetState ¶
PMPrinterGetState calls the PrintCore framework function PMPrinterGetState.
func PMPrinterIsDefault ¶
PMPrinterIsDefault calls the PrintCore framework function PMPrinterIsDefault.
func PMPrinterIsFavorite ¶
PMPrinterIsFavorite calls the PrintCore framework function PMPrinterIsFavorite.
func PMPrinterIsPostScriptCapable ¶
PMPrinterIsPostScriptCapable calls the PrintCore framework function PMPrinterIsPostScriptCapable.
func PMPrinterIsPostScriptPrinter ¶
PMPrinterIsPostScriptPrinter calls the PrintCore framework function PMPrinterIsPostScriptPrinter.
func PMPrinterIsRemote ¶
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 ¶
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 PMServerCreatePrinterList ¶
PMServerCreatePrinterList reports an error if the PrintCore framework function PMServerCreatePrinterList fails.
func PMServerLaunchPrinterBrowser ¶
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 ¶
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 ¶
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 ¶
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 DispatchAutoreleaseFrequency ¶ added in v0.17.0
type DispatchAutoreleaseFrequency uint64
const ( DispatchAutoreleaseFrequencyInherit DispatchAutoreleaseFrequency = 0 DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1 DispatchAutoreleaseFrequencyNever DispatchAutoreleaseFrequency = 2 )
func (DispatchAutoreleaseFrequency) String ¶ added in v0.17.0
func (e DispatchAutoreleaseFrequency) String() string
String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.
type DispatchBlockFlags ¶ added in v0.17.0
type DispatchBlockFlags uint64
Bitmask — values may be combined with |.
const ( DispatchBlockFlagsBarrier DispatchBlockFlags = 1 DispatchBlockFlagsDetached DispatchBlockFlags = 2 DispatchBlockFlagsAssignCurrent DispatchBlockFlags = 4 DispatchBlockFlagsNoQosClass DispatchBlockFlags = 8 DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16 DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32 )
func (DispatchBlockFlags) String ¶ added in v0.17.0
func (e DispatchBlockFlags) String() string
String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.
type FilesecProperty ¶ added in v0.17.0
type FilesecProperty int32
const ( FilesecPropertyOwner FilesecProperty = 1 FilesecPropertyGroup FilesecProperty = 2 FilesecPropertyUUID FilesecProperty = 3 FilesecPropertyMode FilesecProperty = 4 FilesecPropertyACL FilesecProperty = 5 FilesecPropertyGrpuuid FilesecProperty = 6 FilesecPropertyACLRaw FilesecProperty = 100 FilesecPropertyACLAllocsize FilesecProperty = 101 )
func (FilesecProperty) String ¶ added in v0.17.0
func (e FilesecProperty) String() string
String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.
type IpcInfoObjectType ¶ added in v0.17.0
type IpcInfoObjectType uint32
const ( IpcInfoObjectTypeNone IpcInfoObjectType = 0 IpcInfoObjectTypeThreadControl IpcInfoObjectType = 1 IpcInfoObjectTypeTaskControl IpcInfoObjectType = 2 IpcInfoObjectTypeHost IpcInfoObjectType = 3 IpcInfoObjectTypeHostPriv IpcInfoObjectType = 4 IpcInfoObjectTypeProcessor IpcInfoObjectType = 5 IpcInfoObjectTypeProcessorSet IpcInfoObjectType = 6 IpcInfoObjectTypeProcessorSetName IpcInfoObjectType = 7 IpcInfoObjectTypeTimer IpcInfoObjectType = 8 IpcInfoObjectTypePortSubstOnce IpcInfoObjectType = 9 IpcInfoObjectTypeMig IpcInfoObjectType = 10 IpcInfoObjectTypeMemoryObject IpcInfoObjectType = 11 IpcInfoObjectTypeXmmPager IpcInfoObjectType = 12 IpcInfoObjectTypeXmmKernel IpcInfoObjectType = 13 IpcInfoObjectTypeXmmReply IpcInfoObjectType = 14 IpcInfoObjectTypeUndReply IpcInfoObjectType = 15 IpcInfoObjectTypeHostNotify IpcInfoObjectType = 16 IpcInfoObjectTypeHostSecurity IpcInfoObjectType = 17 IpcInfoObjectTypeLedger IpcInfoObjectType = 18 IpcInfoObjectTypeMainDevice IpcInfoObjectType = 19 IpcInfoObjectTypeTaskName IpcInfoObjectType = 20 IpcInfoObjectTypeSubsystem IpcInfoObjectType = 21 IpcInfoObjectTypeIODoneQueue IpcInfoObjectType = 22 IpcInfoObjectTypeSemaphore IpcInfoObjectType = 23 IpcInfoObjectTypeLockSet IpcInfoObjectType = 24 IpcInfoObjectTypeClock IpcInfoObjectType = 25 IpcInfoObjectTypeClockCtrl IpcInfoObjectType = 26 IpcInfoObjectTypeIokitIdent IpcInfoObjectType = 27 IpcInfoObjectTypeNamedEntry IpcInfoObjectType = 28 IpcInfoObjectTypeIokitConnect IpcInfoObjectType = 29 IpcInfoObjectTypeIokitObject IpcInfoObjectType = 30 IpcInfoObjectTypeUpl IpcInfoObjectType = 31 IpcInfoObjectTypeMemObjControl IpcInfoObjectType = 32 IpcInfoObjectTypeAuSessionport IpcInfoObjectType = 33 IpcInfoObjectTypeFileport IpcInfoObjectType = 34 IpcInfoObjectTypeLabelh IpcInfoObjectType = 35 IpcInfoObjectTypeTaskResume IpcInfoObjectType = 36 IpcInfoObjectTypeVoucher IpcInfoObjectType = 37 IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38 IpcInfoObjectTypeWorkInterval IpcInfoObjectType = 39 IpcInfoObjectTypeUxHandler IpcInfoObjectType = 40 IpcInfoObjectTypeUextObject IpcInfoObjectType = 41 IpcInfoObjectTypeArcadeReg IpcInfoObjectType = 42 IpcInfoObjectTypeEventlink IpcInfoObjectType = 43 IpcInfoObjectTypeTaskInspect IpcInfoObjectType = 44 IpcInfoObjectTypeTaskRead IpcInfoObjectType = 45 IpcInfoObjectTypeThreadInspect IpcInfoObjectType = 46 IpcInfoObjectTypeThreadRead IpcInfoObjectType = 47 IpcInfoObjectTypeSuidCred IpcInfoObjectType = 48 IpcInfoObjectTypeHypervisor IpcInfoObjectType = 49 IpcInfoObjectTypeTaskIDToken IpcInfoObjectType = 50 IpcInfoObjectTypeTaskFatal IpcInfoObjectType = 51 IpcInfoObjectTypeKcdata IpcInfoObjectType = 52 IpcInfoObjectTypeExclavesResource IpcInfoObjectType = 53 IpcInfoObjectTypeThreadResume IpcInfoObjectType = 54 IpcInfoObjectTypeUnknown IpcInfoObjectType = 4294967295 )
func (IpcInfoObjectType) String ¶ added in v0.17.0
func (e IpcInfoObjectType) String() string
String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.
type LaunchDataType ¶ added in v0.17.0
type LaunchDataType int32
const ( LaunchDataTypeDictionary LaunchDataType = 1 LaunchDataTypeArray LaunchDataType = 2 LaunchDataTypeFd LaunchDataType = 3 LaunchDataTypeInteger LaunchDataType = 4 LaunchDataTypeReal LaunchDataType = 5 LaunchDataTypeBool LaunchDataType = 6 LaunchDataTypeString LaunchDataType = 7 LaunchDataTypeOpaque LaunchDataType = 8 LaunchDataTypeErrno LaunchDataType = 9 LaunchDataTypeMachport LaunchDataType = 10 )
func (LaunchDataType) String ¶ added in v0.17.0
func (e LaunchDataType) String() string
String returns the LaunchDataType constant's name, or its numeric form when the value is not a known constant.
type MDLabelDomain ¶
type MDLabelDomain int32
These constants are used to specify a domain to MDLabelCreate().
const ( KMDLabelUserDomain MDLabelDomain = 0 KMDLabelLocalDomain MDLabelDomain = 1 )
func (MDLabelDomain) String ¶
func (e MDLabelDomain) String() string
String returns the MDLabelDomain constant's name, or its numeric form when the value is not a known constant.
type MDQueryOptionFlags ¶
type MDQueryOptionFlags int32
const ( KMDQuerySynchronous MDQueryOptionFlags = 1 KMDQueryWantsUpdates MDQueryOptionFlags = 4 KMDQueryAllowFSTranslation MDQueryOptionFlags = 8 )
func (MDQueryOptionFlags) String ¶
func (e MDQueryOptionFlags) String() string
String returns the MDQueryOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MDQuerySortOptionFlags ¶
type MDQuerySortOptionFlags int32
const (
KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)
func (MDQuerySortOptionFlags) String ¶
func (e MDQuerySortOptionFlags) String() string
String returns the MDQuerySortOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlags ¶ added in v0.17.0
type MachVMRangeFlags uint64
Bitmask — values may be combined with |.
const (
MachVMRangeFlagsNone MachVMRangeFlags = 0
)
func (MachVMRangeFlags) String ¶ added in v0.17.0
func (e MachVMRangeFlags) String() string
String returns the MachVMRangeFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlavor ¶ added in v0.17.0
type MachVMRangeFlavor uint32
const ( MachVMRangeFlavorInvalid MachVMRangeFlavor = 0 MachVMRangeFlavorV1 MachVMRangeFlavor = 1 )
func (MachVMRangeFlavor) String ¶ added in v0.17.0
func (e MachVMRangeFlavor) String() string
String returns the MachVMRangeFlavor constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeTag ¶ added in v0.17.0
type MachVMRangeTag uint16
const ( MachVMRangeTagDefault MachVMRangeTag = 0 MachVMRangeTagData MachVMRangeTag = 1 MachVMRangeTagFixed MachVMRangeTag = 2 )
func (MachVMRangeTag) String ¶ added in v0.17.0
func (e MachVMRangeTag) String() string
String returns the MachVMRangeTag constant's name, or its numeric form when the value is not a known constant.
type MpoFlags ¶ added in v0.17.0
type MpoFlags uint32
Bitmask — values may be combined with |.
const ( MpoFlagsPort MpoFlags = 0 MpoFlagsServicePort MpoFlags = 1024 MpoFlagsConnectionPort MpoFlags = 2048 MpoFlagsReplyPort MpoFlags = 4096 MpoFlagsWeakReplyPort MpoFlags = 16384 MpoFlagsNotificationPort MpoFlags = 17408 MpoFlagsExceptionPort MpoFlags = 32768 MpoFlagsConnectionPortWithPortArray MpoFlags = 65536 )
type NXMouseButton ¶
type NXMouseButton int32
const ( NX_OneButton NXMouseButton = 0 NX_LeftButton NXMouseButton = 1 NX_RightButton NXMouseButton = 2 )
func (NXMouseButton) String ¶
func (e NXMouseButton) String() string
String returns the NXMouseButton constant's name, or its numeric form when the value is not a known constant.
type 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 PMPageFormat ¶ added in v0.18.0
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 PMPrintSession ¶ added in v0.18.0
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
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
PMPrinter is a handle for the opaque PMPrinter type.
func PMPrinterCreateFromPrinterID ¶
func PMPrinterCreateFromPrinterID(printerID corefoundation.CFStringRef) PMPrinter
PMPrinterCreateFromPrinterID calls the PrintCore framework function PMPrinterCreateFromPrinterID.
type PMResolution ¶
type Perm ¶ added in v0.17.0
type Perm int32
const ( PermReadData Perm = 2 PermListDirectory Perm = 2 PermWriteData Perm = 4 PermAddFile Perm = 4 PermExecute Perm = 8 PermSearch Perm = 8 PermDelete Perm = 16 PermAppendData Perm = 32 PermAddSubdirectory Perm = 32 PermDeleteChild Perm = 64 PermReadAttributes Perm = 128 PermWriteAttributes Perm = 256 PermReadExtattributes Perm = 512 PermWriteExtattributes Perm = 1024 PermReadSecurity Perm = 2048 PermWriteSecurity Perm = 4096 PermChangeOwner Perm = 8192 PermSynchronize Perm = 1048576 )
type PtrauthKey ¶ added in v0.17.0
type PtrauthKey int32
const ( Ptrauth_key_none PtrauthKey = -1 Ptrauth_key_asia PtrauthKey = 0 Ptrauth_key_asib PtrauthKey = 1 Ptrauth_key_asda PtrauthKey = 2 Ptrauth_key_asdb PtrauthKey = 3 Ptrauth_key_process_independent_code PtrauthKey = 0 Ptrauth_key_process_dependent_code PtrauthKey = 1 Ptrauth_key_process_independent_data PtrauthKey = 2 Ptrauth_key_process_dependent_data PtrauthKey = 3 Ptrauth_key_return_address PtrauthKey = 1 Ptrauth_key_frame_pointer PtrauthKey = 3 Ptrauth_key_function_pointer PtrauthKey = 0 Ptrauth_key_block_function PtrauthKey = 0 Ptrauth_key_cxx_vtable_pointer PtrauthKey = 2 Ptrauth_key_method_list_pointer PtrauthKey = 2 Ptrauth_key_objc_isa_pointer PtrauthKey = 2 Ptrauth_key_objc_super_pointer PtrauthKey = 2 Ptrauth_key_objc_sel_pointer PtrauthKey = 3 Ptrauth_key_objc_class_ro_pointer PtrauthKey = 2 Ptrauth_key_block_descriptor_pointer PtrauthKey = 2 Ptrauth_key_init_fini_pointer PtrauthKey = 0 )
func (PtrauthKey) String ¶ added in v0.17.0
func (e PtrauthKey) String() string
String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.
type VirtualMemoryGuardExceptionCode ¶ added in v0.17.0
type VirtualMemoryGuardExceptionCode uint32
const ( KGUARD_EXC_DEALLOC_GAP VirtualMemoryGuardExceptionCode = 1 KGUARD_EXC_RECLAIM_COPYIO_FAILURE VirtualMemoryGuardExceptionCode = 2 KGUARD_EXC_RECLAIM_INDEX_FAILURE VirtualMemoryGuardExceptionCode = 4 KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE VirtualMemoryGuardExceptionCode = 8 KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE VirtualMemoryGuardExceptionCode = 9 KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE VirtualMemoryGuardExceptionCode = 10 KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE VirtualMemoryGuardExceptionCode = 11 KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION VirtualMemoryGuardExceptionCode = 12 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY VirtualMemoryGuardExceptionCode = 13 KGUARD_EXC_SEC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 98 KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 99 KGUARD_EXC_SEC_COPY_DENIED VirtualMemoryGuardExceptionCode = 100 KGUARD_EXC_SEC_SHARING_DENIED VirtualMemoryGuardExceptionCode = 101 KGUARD_EXC_MTE_SYNC_FAULT VirtualMemoryGuardExceptionCode = 200 KGUARD_EXC_MTE_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 201 KGUARD_EXC_MTE_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 202 KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 203 KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 204 )
func (VirtualMemoryGuardExceptionCode) String ¶ added in v0.17.0
func (e VirtualMemoryGuardExceptionCode) String() string
String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.
type XpcListenerCreateFlags ¶ added in v0.17.0
type XpcListenerCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcListenerCreateFlagsNone XpcListenerCreateFlags = 0 XpcListenerCreateFlagsInactive XpcListenerCreateFlags = 1 XpcListenerCreateFlagsForceMach XpcListenerCreateFlags = 2 XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4 )
func (XpcListenerCreateFlags) String ¶ added in v0.17.0
func (e XpcListenerCreateFlags) String() string
String returns the XpcListenerCreateFlags constant's name, or its numeric form when the value is not a known constant.
type XpcSessionCreateFlags ¶ added in v0.17.0
type XpcSessionCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcSessionCreateFlagsNone XpcSessionCreateFlags = 0 XpcSessionCreateFlagsInactive XpcSessionCreateFlags = 1 XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2 )
func (XpcSessionCreateFlags) String ¶ added in v0.17.0
func (e XpcSessionCreateFlags) String() string
String returns the XpcSessionCreateFlags constant's name, or its numeric form when the value is not a known constant.