diff options
author | Daniel Mack <zonque@users.sourceforge.net> | 2004-06-18 14:21:36 +0000 |
---|---|---|
committer | Daniel Mack <zonque@users.sourceforge.net> | 2004-06-18 14:21:36 +0000 |
commit | 700f7ae7ff3cf2f3037abb8e24f609a91bcf5800 (patch) | |
tree | f7db8617fb9a14b21eb2ecefd80ea47786c99f17 /src/video_out/macosx/video_window.h | |
parent | f57e1636c523240a03e626e50757dd4deb7a1605 (diff) | |
download | xine-lib-700f7ae7ff3cf2f3037abb8e24f609a91bcf5800.tar.gz xine-lib-700f7ae7ff3cf2f3037abb8e24f609a91bcf5800.tar.bz2 |
video_out_macosx.m
CVS patchset: 6695
CVS date: 2004/06/18 14:21:36
Diffstat (limited to 'src/video_out/macosx/video_window.h')
-rw-r--r-- | src/video_out/macosx/video_window.h | 43 |
1 files changed, 32 insertions, 11 deletions
diff --git a/src/video_out/macosx/video_window.h b/src/video_out/macosx/video_window.h index 3089a4d2a..8337ce5f8 100644 --- a/src/video_out/macosx/video_window.h +++ b/src/video_out/macosx/video_window.h @@ -28,17 +28,19 @@ typedef enum { @interface XineOpenGLView : NSOpenGLView { - int width, height; - char *texture_buffer; - unsigned long i_texture; - int initDone; - int isFullScreen; - XineVideoWindowFullScreenMode fullscreen_mode; - NSOpenGLContext *opengl_context; - NSOpenGLContext *fullScreenContext; - NSOpenGLContext *currentContext; + IBOutlet id delegate; + int width, height; + char * texture_buffer; + unsigned long i_texture; + int initDone; + int isFullScreen; + XineVideoWindowFullScreenMode fullscreen_mode; + NSOpenGLContext * opengl_context; + NSOpenGLContext * fullScreenContext; + NSOpenGLContext * currentContext; } +- (void) displayTexture; - (void) drawQuad; - (void) drawRect: (NSRect) rect; - (void) goFullScreen: (XineVideoWindowFullScreenMode) mode; @@ -47,9 +49,12 @@ typedef enum { - (void) reshape; - (void) initTextures; - (void) reloadTexture; -- (id) initWithFrame: (NSRect) frame; - (char *) getTextureBuffer; -- (void) setVideoSize: (int) w: (int) h; +- (void) setVideoSize:(int)w height:(int)h; + +/* Delegate methods */ +- (id) delegate; +- (void) setDelegate:(id)aDelegate; @end @@ -73,3 +78,19 @@ typedef enum { - (int) keepsAspectRatio; @end + +/* XineOpenGLView delegate methods */ + +@interface NSObject (XineOpenGLViewDelegate) + +- (NSSize)xineViewWillResize:(NSSize)previousSize + toSize:(NSSize)proposedFrameSize; +- (void)xineViewDidResize:(NSNotification *)aNotification; + +@end + + +/* XineOpenGLView notifications */ + +extern NSString *XineViewDidResizeNotification; + |