diff options
Diffstat (limited to 'src/video_out/macosx/video_window.h')
-rw-r--r-- | src/video_out/macosx/video_window.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/video_out/macosx/video_window.h b/src/video_out/macosx/video_window.h index f0f01c314..f9217f56e 100644 --- a/src/video_out/macosx/video_window.h +++ b/src/video_out/macosx/video_window.h @@ -68,14 +68,11 @@ typedef enum { @interface XineVideoWindow : NSWindow { int width, height; - BOOL keepAspectRatio; XineOpenGLView * xineView; } - (id) initWithContentSize:(NSSize)size; - (XineOpenGLView *) xineView; -- (void) setKeepsAspectRatio:(BOOL)flag; -- (BOOL) keepsAspectRatio; @end @@ -94,5 +91,16 @@ typedef enum { extern NSString *XineViewDidResizeNotification; + +/* NSWindow aspect ratio convenience methods */ + +@interface NSWindow (AspectRatioAdditions) + +- (void) setKeepsAspectRatio:(BOOL)flag; +- (BOOL) keepsAspectRatio; + +@end + + #endif /* HAVE_VIDEO_WINDOW_H */ |