summaryrefslogtreecommitdiff
path: root/src/video_out/macosx/video_window.h
diff options
context:
space:
mode:
authorAndre Pang <athp@users.sourceforge.net>2004-10-19 06:39:44 +0000
committerAndre Pang <athp@users.sourceforge.net>2004-10-19 06:39:44 +0000
commit4289a744bf6698ef54181508fbe5d8d25f833605 (patch)
tree4aafab8a4befcf69c0a30e16607798334fdc9ea7 /src/video_out/macosx/video_window.h
parentbf8ced4e3d6f4973a01e19ab91ad9989ec76af21 (diff)
downloadxine-lib-4289a744bf6698ef54181508fbe5d8d25f833605.tar.gz
xine-lib-4289a744bf6698ef54181508fbe5d8d25f833605.tar.bz2
XineOpenGLView for Mac OS X:
* Made XineOpenGLViewDelegate formal protocol to avoid compiler warnings * Properly support NSCoders which don't support keyed-coding (yeah, they apparently exist) * Added some logging * Accepts first responder status * Initial mouse tracking support via delegate CVS patchset: 7051 CVS date: 2004/10/19 06:39:44
Diffstat (limited to 'src/video_out/macosx/video_window.h')
-rw-r--r--src/video_out/macosx/video_window.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_out/macosx/video_window.h b/src/video_out/macosx/video_window.h
index 5f2cad55e..4d4dba37c 100644
--- a/src/video_out/macosx/video_window.h
+++ b/src/video_out/macosx/video_window.h
@@ -24,13 +24,15 @@
#import <Cocoa/Cocoa.h>
+@protocol XineOpenGLViewDelegate;
+
typedef enum {
XINE_FULLSCREEN_OVERSCAN,
XINE_FULLSCREEN_CROP
} XineVideoWindowFullScreenMode;
@interface XineOpenGLView : NSOpenGLView {
- IBOutlet id delegate;
+ IBOutlet id <XineOpenGLViewDelegate> delegate;
int video_width, video_height;
char *texture_buffer;
unsigned long i_texture;
@@ -56,6 +58,7 @@ typedef enum {
- (char *) getTextureBuffer;
- (void) setVideoSize:(NSSize)size;
- (void) setViewSizeInMainThread:(NSSize)size;
+/* TODO: replace set...Size below with setSize:(double)videoSizeMultiplier */
- (void) setNormalSize;
- (void) setHalfSize;
- (void) setDoubleSize;