Crate objc2_quick_look

Crate objc2_quick_look 

Source
Expand description

§Bindings to the QuickLook framework

See Apple’s docs and the general docs on framework crates for more information.

Structs§

QLGeneratorInterfaceStructQLGenerator
Apple’s documentation
QLPreviewPDFStyleQLGenerator
Apple’s documentation
QLPreviewRequestQLGenerator
This is the type of a reference to Preview requests.
QLThumbnailQLThumbnail
Apple’s documentation
QLThumbnailRequestQLGenerator
This is the type of a reference to Thumbnail requests.

Constants§

QUICKLOOK_VERSIONQLBase
Apple’s documentation
kQLReturnHasMoreQLGenerator
Apple’s documentation
kQLReturnMaskQLGenerator
Apple’s documentation

Statics§

kQLPreviewContentIDSchemeDeprecatedQLGenerator
Is the “cid” URL scheme.
kQLPreviewOptionCursorKeyDeprecatedQLGenerator
Value is the same CFNumber passed by potential previous calls to generator’s preview callback for the same document with kQLPreviewPropertyCursorKey.
kQLPreviewPropertyAttachmentDataKeyDeprecatedQLGenerator
Gives the attachment data. Value is a CFData.
kQLPreviewPropertyAttachmentsKeyDeprecatedQLGenerator
Gives the list of attachments (or sub-resources). Value is a CFDictionary.
kQLPreviewPropertyBaseBundlePathKeyDeprecatedQLGenerator
Extends the security scope where Quick Look will accept to look at a file. Value is a path as CFString.
kQLPreviewPropertyCursorKeyDeprecatedQLGenerator
Value should be a CFNumber. This value will be used to get more of the document’s preview if necessary (and if the preview genererator returns kQLReturnHasMore)
kQLPreviewPropertyDisplayNameKeyDeprecatedQLGenerator
Customizes Displayed name in the preview panel. This replaces the document’s display name. Value is a CFString.
kQLPreviewPropertyHeightKeyDeprecatedQLGenerator
Gives the height (in points) of the preview. Value is a CFNumber.
kQLPreviewPropertyMIMETypeKeyDeprecatedQLGenerator
Gives the web content or attachment mime type. For the main data, default is text/html. Value is a CFString.
kQLPreviewPropertyPDFStyleKeyDeprecatedQLGenerator
Specify the preferred way to display PDF content. Value is a CFNumber using QLPreviewPDFStyle values.
kQLPreviewPropertyStringEncodingKeyDeprecatedQLGenerator
Gives the CFStringEncoding of the preview data if the preview type is plain text. Value is a CFNumber.
kQLPreviewPropertyTextEncodingNameKeyQLGenerator
Gives the web content or attachment text encoding. Use IANA encodings like UTF-8. Value is a CFString.
kQLPreviewPropertyWidthKeyDeprecatedQLGenerator
Gives the width (in points) of the preview. Value is a CFNumber.
kQLThumbnailOptionIconModeKeyQLThumbnailImage
If kCFBooleanTrue, QL will produce an icon (ie a thumbnail and all the icon decor, like shadows, curled corner, etc.).
kQLThumbnailOptionScaleFactorKeyQLThumbnailImage
This is the user scale factor (as a CFNumber). If absent, default value is 1.0
kQLThumbnailPropertyBadgeImageKeyDeprecatedQLGenerator
Value should be a CGImage. The badge is used when producing an icon.
kQLThumbnailPropertyBaseBundlePathKeyDeprecatedQLGenerator
Extends the security scope where Quick Look will accept to look at a file. Value is a path as CFString.
kQLThumbnailPropertyExtensionKeyDeprecatedQLGenerator
Value should be a CFString. The extension is used as a badge when producing an icon.

Functions§

QLPreviewRequestCopyContentUTIDeprecatedQLGenerator
QLPreviewRequestCopyOptionsDeprecatedQLGenerator
QLPreviewRequestCopyURLDeprecatedQLGenerator
QLPreviewRequestCreateContextDeprecatedQLGenerator and objc2-core-graphics
QLPreviewRequestCreatePDFContextDeprecatedQLGenerator and objc2-core-graphics
QLPreviewRequestFlushContextDeprecatedQLGenerator and objc2-core-graphics
QLPreviewRequestGetDocumentObjectDeprecatedQLGenerator
QLPreviewRequestGetGeneratorBundleDeprecatedQLGenerator
QLPreviewRequestIsCancelledDeprecatedQLGenerator
QLPreviewRequestSetDataRepresentationDeprecatedQLGenerator
QLPreviewRequestSetDocumentObjectDeprecatedQLGenerator
QLPreviewRequestSetURLRepresentationDeprecatedQLGenerator
QLThumbnailCancelDeprecatedQLThumbnail
QLThumbnailCopyDocumentURLDeprecatedQLThumbnail
QLThumbnailCopyImageDeprecatedQLThumbnail and objc2-core-graphics
QLThumbnailCopyOptionsDeprecatedQLThumbnail
QLThumbnailCreateDeprecatedQLThumbnail
QLThumbnailDispatchAsyncDeprecatedQLThumbnail and dispatch2
QLThumbnailGetContentRectDeprecatedQLThumbnail
QLThumbnailGetMaximumSizeDeprecatedQLThumbnail
QLThumbnailImageCreateDeprecatedQLThumbnailImage and objc2-core-graphics
QLThumbnailIsCancelledDeprecatedQLThumbnail
QLThumbnailRequestCopyContentUTIDeprecatedQLGenerator
QLThumbnailRequestCopyOptionsDeprecatedQLGenerator
QLThumbnailRequestCopyURLDeprecatedQLGenerator
QLThumbnailRequestCreateContextDeprecatedQLGenerator and objc2-core-graphics
QLThumbnailRequestFlushContextDeprecatedQLGenerator and objc2-core-graphics
QLThumbnailRequestGetDocumentObjectDeprecatedQLGenerator
QLThumbnailRequestGetGeneratorBundleDeprecatedQLGenerator
QLThumbnailRequestGetMaximumSizeDeprecatedQLGenerator
QLThumbnailRequestIsCancelledDeprecatedQLGenerator
QLThumbnailRequestSetDocumentObjectDeprecatedQLGenerator
QLThumbnailRequestSetImageDeprecatedQLGenerator and objc2-core-graphics
QLThumbnailRequestSetImageAtURLDeprecatedQLGenerator
QLThumbnailRequestSetImageWithDataDeprecatedQLGenerator
QLThumbnailRequestSetThumbnailWithDataRepresentationDeprecatedQLGenerator
QLThumbnailRequestSetThumbnailWithURLRepresentationDeprecatedQLGenerator