diff options
author | Andre Pang <athp@users.sourceforge.net> | 2004-06-29 05:25:28 +0000 |
---|---|---|
committer | Andre Pang <athp@users.sourceforge.net> | 2004-06-29 05:25:28 +0000 |
commit | 1c21f84c511d1349edf0c71f841c566f8616055c (patch) | |
tree | 1e6b6304df2affadb67b9108921974741cb36a15 /src/video_out/macosx/video_window.h | |
parent | 0ad42a7a3684bb011990d981665d70f954e9d039 (diff) | |
download | xine-lib-1c21f84c511d1349edf0c71f841c566f8616055c.tar.gz xine-lib-1c21f84c511d1349edf0c71f841c566f8616055c.tar.bz2 |
Mac OS X XineVideoWindow: move setKeepsAspectRatio: and keepsAspectRatio
methods to NSWindow class, since they're generic to all windows
CVS patchset: 6760
CVS date: 2004/06/29 05:25:28
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 */ |