diff options
author | Andre Pang <athp@users.sourceforge.net> | 2004-06-21 15:07:00 +0000 |
---|---|---|
committer | Andre Pang <athp@users.sourceforge.net> | 2004-06-21 15:07:00 +0000 |
commit | d5aaad821db9c1876f2dbfbbbc873cb9ace8c8ab (patch) | |
tree | c36f7c838396d5780013a81c3bccbbb2b224fed1 /src/video_out/macosx/video_window.h | |
parent | d94ec889227d544683964d3efff23362c6550434 (diff) | |
download | xine-lib-d5aaad821db9c1876f2dbfbbbc873cb9ace8c8ab.tar.gz xine-lib-d5aaad821db9c1876f2dbfbbbc873cb9ace8c8ab.tar.bz2 |
Mac OS X XineVideoWindow:
Added #ifdef guards around video_window.h
Removed setContentSize: method from XineVideoWindow interface, since this
method is already present in NSWindow
Changed setKeepsAspectRatio: & keepAspectRatio's int arguments to BOOL
Added initWithContentSize: method
Added init method
CVS patchset: 6722
CVS date: 2004/06/21 15:07:00
Diffstat (limited to 'src/video_out/macosx/video_window.h')
-rw-r--r-- | src/video_out/macosx/video_window.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/video_out/macosx/video_window.h b/src/video_out/macosx/video_window.h index 2aa29d46a..af84e4c4e 100644 --- a/src/video_out/macosx/video_window.h +++ b/src/video_out/macosx/video_window.h @@ -19,7 +19,10 @@ * */ -#include <Cocoa/Cocoa.h> +#ifndef HAVE_VIDEO_WINDOW_H +#define HAVE_VIDEO_WINDOW_H + +#import <Cocoa/Cocoa.h> typedef enum { XINE_FULLSCREEN_OVERSCAN, @@ -67,13 +70,13 @@ typedef enum { @interface XineVideoWindow : NSWindow { int width, height; BOOL keepAspectRatio; - XineOpenGLView *xineView; + XineOpenGLView * xineView; } -- (void) setContentSize: (NSSize) size; +- (id) initWithContentSize:(NSSize)size; - (XineOpenGLView *) xineView; -- (void) setKeepsAspectRatio: (BOOL) i; -- (int) keepsAspectRatio; +- (void) setKeepsAspectRatio:(BOOL)flag; +- (BOOL) keepsAspectRatio; @end @@ -92,3 +95,5 @@ typedef enum { extern NSString *XineViewDidResizeNotification; +#endif /* HAVE_VIDEO_WINDOW_H */ + |