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.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/video_out/macosx/video_window.h b/src/video_out/macosx/video_window.h
index 3fb9c1eb5..54250a971 100644
--- a/src/video_out/macosx/video_window.h
+++ b/src/video_out/macosx/video_window.h
@@ -29,11 +29,11 @@ typedef enum {
@interface XineOpenGLView : NSOpenGLView {
IBOutlet id delegate;
- int width, height;
+ int video_width, video_height;
char * texture_buffer;
unsigned long i_texture;
- int initDone;
- int isFullScreen;
+ BOOL initDone;
+ BOOL isFullScreen;
XineVideoWindowFullScreenMode fullscreen_mode;
NSOpenGLContext * opengl_context;
NSOpenGLContext * fullScreenContext;
@@ -45,12 +45,17 @@ typedef enum {
- (void) drawRect: (NSRect) rect;
- (void) goFullScreen: (XineVideoWindowFullScreenMode) mode;
- (void) exitFullScreen;
-- (int) isFullScreen;
+- (BOOL) isFullScreen;
- (void) reshape;
- (void) initTextures;
- (void) reloadTexture;
- (char *) getTextureBuffer;
-- (void) setVideoSizeInMainThread:(int)w height:(int)h;
+- (void) setVideoSize:(NSSize)size;
+- (void) setViewSizeInMainThread:(NSSize)size;
+- (void) setNormalSize;
+- (void) setHalfSize;
+- (void) setDoubleSize;
+- (NSSize) videoSize;
/* Delegate methods */
- (id) delegate;
@@ -61,20 +66,15 @@ typedef enum {
@interface XineVideoWindow : NSWindow {
int width, height;
- int keepAspectRatio;
+ BOOL keepAspectRatio;
XineOpenGLView *openGLView;
}
- (void) setContentSize: (NSSize) size;
- (void) displayTexture;
- (XineOpenGLView *) getGLView;
-- (void) goFullScreen: (XineVideoWindowFullScreenMode) mode;
-- (void) exitFullScreen;
-- (void) setNormalSize;
-- (void) setHalfSize;
-- (void) setDoubleSize;
- (void) fitToScreen;
-- (void) setKeepsAspectRatio: (int) i;
+- (void) setKeepsAspectRatio: (BOOL) i;
- (int) keepsAspectRatio;
@end