summaryrefslogtreecommitdiffstats
path: root/macosx/NSWindow+HBAdditions.h
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-05-03 18:47:14 +0200
committerDamiano Galassi <[email protected]>2016-05-03 18:47:14 +0200
commite53308f9342d911a9d3e8f4d1eeba6e53fabc0ab (patch)
treef65f5390d9174276022790a308660e17d7a3601f /macosx/NSWindow+HBAdditions.h
parent4ab21a0ca630dc4bac79149a6eec598921899fe5 (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.h25
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