文件
dayu-color/大鱼调色/Plugin/DYLUTBrowser.h
T

34 行
1.7 KiB
Objective-C

#import <AppKit/AppKit.h>
@class DYLUTLibrary;
typedef NSProgress * (^DYLUTSelectionHandler)(NSString *path,void (^completion)(NSError *error));
/// A nonmodal browser. The handler finishes asynchronously on the main thread
/// after decoding, GPU preparation and the host edit have actually succeeded.
@interface DYLUTBrowser : NSWindowController
@property(nonatomic,readonly) BOOL visible;
+ (NSSize)minimumContentSize;
+ (NSSize)maximumContentSize;
+ (NSSize)preferredContentSize;
- (instancetype)initWithLibrary:(DYLUTLibrary *)library
preview:(NSDictionary *)frames
selectedPath:(NSString *)path
palette:(NSDictionary *)palette
selection:(DYLUTSelectionHandler)selection;
- (void)showRelativeToView:(NSView *)view;
/// Attach to the FxRemoteWindow API's supplied parent; the caller owns that API.
/// Completion, double-click and close dismiss through closeAction exactly once.
- (void)showInRemoteParent:(NSView *)parent close:(void (^)(void))closeAction;
/// Embedded content inside another remote tool workspace. It follows only the
/// supplied container and does not take ownership of the enclosing window.
- (void)embedInView:(NSView *)parent close:(void (^)(void))closeAction;
/// Lightweight recent shortcuts using the same thumbnail and selection pipeline.
/// Does not change the full browser's saved folder, grid size or layout.
- (void)embedRecentInView:(NSView *)parent;
- (void)refreshRecentSelection:(NSString *)path;
- (void)updatePalette:(NSDictionary *)palette;
/// Replace the source frame after the renderer captures a new playhead image.
/// Passing identical bytes keeps the current thumbnail jobs and cache intact.
- (void)updatePreview:(NSDictionary *)frames;
@end