blob: e8ceb3c0490e193ebf92afb3f0b953f08b9dd52d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
|