diff options
author | Damiano Galassi <[email protected]> | 2016-05-03 18:47:14 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2016-05-03 18:47:14 +0200 |
commit | e53308f9342d911a9d3e8f4d1eeba6e53fabc0ab (patch) | |
tree | f65f5390d9174276022790a308660e17d7a3601f /macosx/NSWindow+HBAdditions.h | |
parent | 4ab21a0ca630dc4bac79149a6eec598921899fe5 (diff) |
MacGui: use AVFoundation as the first option for the preview playback. Add volume and tracks controls to the player hud.
Diffstat (limited to 'macosx/NSWindow+HBAdditions.h')
-rw-r--r-- | macosx/NSWindow+HBAdditions.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/macosx/NSWindow+HBAdditions.h b/macosx/NSWindow+HBAdditions.h new file mode 100644 index 000000000..e8ceb3c04 --- /dev/null +++ b/macosx/NSWindow+HBAdditions.h @@ -0,0 +1,25 @@ +// +// NSWindow+HBAdditions.h +// HandBrake +// +// Created by Damiano Galassi on 25/04/16. +// +// + +#import <Cocoa/Cocoa.h> + +@interface NSWindow (HBAdditions) + +/** + * Resizes the entire window to accomodate a view of a particular size. + */ +- (void)HB_resizeToBestSizeForViewSize:(NSSize)viewSize center:(NSPoint)center animate:(BOOL)performAnimation; + + +/** + * Calculates and returns the center point of the window + */ +- (NSPoint)HB_centerPoint; + + +@end |