diff options
author | Damiano Galassi <[email protected]> | 2018-10-10 19:58:21 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2018-10-10 19:58:21 +0200 |
commit | 2264d25308238210892840d7de3fa1edf9de105e (patch) | |
tree | 0285fd80ba9717f50219a45b8891d072f030c77f /macosx/HBPreviewGenerator.h | |
parent | 210164589bd29a2b21cfd58a928aa11e603782eb (diff) |
MacGui: add touch bars in the preview window, improve touch bars in the main and queue windows.
Diffstat (limited to 'macosx/HBPreviewGenerator.h')
-rw-r--r-- | macosx/HBPreviewGenerator.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/macosx/HBPreviewGenerator.h b/macosx/HBPreviewGenerator.h index 88999b6a7..dcf5f6953 100644 --- a/macosx/HBPreviewGenerator.h +++ b/macosx/HBPreviewGenerator.h @@ -29,15 +29,29 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init NS_UNAVAILABLE; - (instancetype)initWithCore:(HBCore *)core job:(HBJob *)job NS_DESIGNATED_INITIALIZER; -/* Still image generator */ +#pragma mark - Still image generator + +/** + * Returns the picture preview at the specified index + * + * @param index picture index in title. + */ - (nullable CGImageRef) copyImageAtIndex: (NSUInteger) index shouldCache: (BOOL) cache CF_RETURNS_RETAINED; + +/** + * Returns a small picture preview at the specified index asynchronously + * + * @param index picture index in title. + */ +- (void) copySmallImageAtIndex: (NSUInteger) index completionHandler:(void (^)(__nullable CGImageRef result))handler; + @property (nonatomic, readonly) NSUInteger imagesCount; @property (nonatomic, readonly) CGSize imageSize; - (void) purgeImageCache; @property (nonatomic, readonly, copy) NSString *info; -/* Video generator */ +#pragma mark - Video generator - (BOOL) createMovieAsyncWithImageAtIndex: (NSUInteger) index duration: (NSUInteger) seconds; - (void) cancel; |