summaryrefslogtreecommitdiff
path: root/src/video_out/macosx/video_window.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_out/macosx/video_window.h')
-rw-r--r--src/video_out/macosx/video_window.h43
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;
+