Expand description
§Bindings to the QuickLook framework
See Apple’s docs and the general docs on framework crates for more information.
Structs§
- QLGenerator
Interface Struct QLGenerator - Apple’s documentation
- QLPreviewPDF
Style QLGenerator - Apple’s documentation
- QLPreview
Request QLGenerator - This is the type of a reference to Preview requests.
- QLThumbnail
QLThumbnail - Apple’s documentation
- QLThumbnail
Request QLGenerator - This is the type of a reference to Thumbnail requests.
Constants§
- QUICKLOOK_
VERSION QLBase - Apple’s documentation
- kQLReturn
HasMore QLGenerator - Apple’s documentation
- kQLReturn
Mask QLGenerator - Apple’s documentation
Statics§
- kQLPreview
ContentID ⚠Scheme Deprecated QLGenerator - Is the “cid” URL scheme.
- kQLPreview
Option ⚠Cursor Key Deprecated QLGenerator - Value is the same CFNumber passed by potential previous calls to generator’s preview callback for the same document with kQLPreviewPropertyCursorKey.
- kQLPreview
Property ⚠Attachment Data Key Deprecated QLGenerator - Gives the attachment data. Value is a CFData.
- kQLPreview
Property ⚠Attachments Key Deprecated QLGenerator - Gives the list of attachments (or sub-resources). Value is a CFDictionary.
- kQLPreview
Property ⚠Base Bundle Path Key Deprecated QLGenerator - Extends the security scope where Quick Look will accept to look at a file. Value is a path as CFString.
- kQLPreview
Property ⚠Cursor Key Deprecated QLGenerator - 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)
- kQLPreview
Property ⚠Display Name Key Deprecated QLGenerator - Customizes Displayed name in the preview panel. This replaces the document’s display name. Value is a CFString.
- kQLPreview
Property ⚠Height Key Deprecated QLGenerator - Gives the height (in points) of the preview. Value is a CFNumber.
- kQLPreview
PropertyMIME ⚠Type Key Deprecated QLGenerator - Gives the web content or attachment mime type. For the main data, default is text/html. Value is a CFString.
- kQLPreview
PropertyPDF ⚠Style Key Deprecated QLGenerator - Specify the preferred way to display PDF content. Value is a CFNumber using QLPreviewPDFStyle values.
- kQLPreview
Property ⚠String Encoding Key Deprecated QLGenerator - Gives the CFStringEncoding of the preview data if the preview type is plain text. Value is a CFNumber.
- kQLPreview
Property ⚠Text Encoding Name Key QLGenerator - Gives the web content or attachment text encoding. Use IANA encodings like UTF-8. Value is a CFString.
- kQLPreview
Property ⚠Width Key Deprecated QLGenerator - Gives the width (in points) of the preview. Value is a CFNumber.
- kQLThumbnail
Option ⚠Icon Mode Key QLThumbnailImage - If kCFBooleanTrue, QL will produce an icon (ie a thumbnail and all the icon decor, like shadows, curled corner, etc.).
- kQLThumbnail
Option ⚠Scale Factor Key QLThumbnailImage - This is the user scale factor (as a CFNumber). If absent, default value is 1.0
- kQLThumbnail
Property ⚠Badge Image Key Deprecated QLGenerator - Value should be a CGImage. The badge is used when producing an icon.
- kQLThumbnail
Property ⚠Base Bundle Path Key Deprecated QLGenerator - Extends the security scope where Quick Look will accept to look at a file. Value is a path as CFString.
- kQLThumbnail
Property ⚠Extension Key Deprecated QLGenerator - Value should be a CFString. The extension is used as a badge when producing an icon.
Functions§
- QLPreview
Request ⚠Copy ContentUTI Deprecated QLGenerator - QLPreview
Request ⚠Copy Options Deprecated QLGenerator - QLPreview
Request ⚠CopyURL Deprecated QLGenerator - QLPreview
Request ⚠Create Context Deprecated QLGeneratorandobjc2-core-graphics - QLPreview
Request ⚠CreatePDF Context Deprecated QLGeneratorandobjc2-core-graphics - QLPreview
Request ⚠Flush Context Deprecated QLGeneratorandobjc2-core-graphics - QLPreview
Request ⚠GetDocument Object Deprecated QLGenerator - QLPreview
Request ⚠GetGenerator Bundle Deprecated QLGenerator - QLPreview
Request ⚠IsCancelled Deprecated QLGenerator - QLPreview
Request ⚠SetData Representation Deprecated QLGenerator - QLPreview
Request ⚠SetDocument Object Deprecated QLGenerator - QLPreview
Request ⚠SetURL Representation Deprecated QLGenerator - QLThumbnail
Cancel ⚠Deprecated QLThumbnail - QLThumbnail
Copy ⚠DocumentURL Deprecated QLThumbnail - QLThumbnail
Copy ⚠Image Deprecated QLThumbnailandobjc2-core-graphics - QLThumbnail
Copy ⚠Options Deprecated QLThumbnail - QLThumbnail
Create ⚠Deprecated QLThumbnail - QLThumbnail
Dispatch ⚠Async Deprecated QLThumbnailanddispatch2 - QLThumbnail
GetContent ⚠Rect Deprecated QLThumbnail - QLThumbnail
GetMaximum ⚠Size Deprecated QLThumbnail - QLThumbnail
Image ⚠Create Deprecated QLThumbnailImageandobjc2-core-graphics - QLThumbnail
IsCancelled ⚠Deprecated QLThumbnail - QLThumbnail
Request ⚠Copy ContentUTI Deprecated QLGenerator - QLThumbnail
Request ⚠Copy Options Deprecated QLGenerator - QLThumbnail
Request ⚠CopyURL Deprecated QLGenerator - QLThumbnail
Request ⚠Create Context Deprecated QLGeneratorandobjc2-core-graphics - QLThumbnail
Request ⚠Flush Context Deprecated QLGeneratorandobjc2-core-graphics - QLThumbnail
Request ⚠GetDocument Object Deprecated QLGenerator - QLThumbnail
Request ⚠GetGenerator Bundle Deprecated QLGenerator - QLThumbnail
Request ⚠GetMaximum Size Deprecated QLGenerator - QLThumbnail
Request ⚠IsCancelled Deprecated QLGenerator - QLThumbnail
Request ⚠SetDocument Object Deprecated QLGenerator - QLThumbnail
Request ⚠SetImage Deprecated QLGeneratorandobjc2-core-graphics - QLThumbnail
Request ⚠SetImage AtURL Deprecated QLGenerator - QLThumbnail
Request ⚠SetImage With Data Deprecated QLGenerator - QLThumbnail
Request ⚠SetThumbnail With Data Representation Deprecated QLGenerator - QLThumbnail
Request ⚠SetThumbnail WithURL Representation Deprecated QLGenerator