diff options
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 |