22 #ifndef __HAVE_XINE_OPENGL_VIEW_H__
23 #define __HAVE_XINE_OPENGL_VIEW_H__
25 #import <Cocoa/Cocoa.h>
37 IBOutlet id <NSObject, XineOpenGLViewDelegate>
delegate;
38 IBOutlet id <NSObject, XineOpenGLViewDelegate>
controller;
61 + (NSOpenGLPixelFormat *)defaultPixelFormat;
62 + (NSOpenGLPixelFormat *)fullScreenPixelFormat;
64 - (id)initWithCoder:(NSCoder *)coder;
65 - (id)initWithFrame:(NSRect)frame;
66 - (id)initWithFrame:(NSRect)frame pixelFormat:(NSOpenGLPixelFormat *)pixelFormat;
70 - (void)encodeWithCoder:(NSCoder *)coder;
72 - (NSOpenGLContext *)openGLContext;
73 - (void)prepareOpenGL;
78 - (void)updateTexture;
79 - (void)drawRect:(NSRect)rect;
81 - (NSColor *)initialColor;
82 - (void)setInitialColor:(NSColor *)color;
84 - (void)setNormalSize;
86 - (void)setDoubleSize;
90 - (BOOL)keepsVideoAspectRatio;
91 - (void)setKeepsVideoAspectRatio:(BOOL)flag;
92 - (BOOL)resizeViewOnVideoSizeChange;
93 - (void)setResizeViewOnVideoSizeChange:(BOOL)flag;
95 - (void)setViewSize:(NSValue *)sizeWrapper;
96 - (void)setViewSizeInMainThread:(NSSize)size;
98 - (NSCursor *)currentCursor;
99 - (void)setCurrentCursor:(NSCursor *)cursor;
101 - (BOOL)isFullScreen;
103 - (void)exitFullScreen;
106 - (void)setDelegate:(
id)aDelegate;
107 - (id)xineController;
108 - (void)setXineController:(
id)aController;
110 - (BOOL)acceptsFirstResponder;
111 - (BOOL)mouseDownCanMoveWindow;
114 - (
char *)textureBuffer;
115 - (void)setVideoSize:(NSSize)size;
116 - (void)resetCursorRects;
117 - (void)resetCursorRectsInMainThread;
118 - (void)calcFullScreenAspect;
119 - (void)releaseInMainThread;
120 - (void)passEventToDelegate:(NSEvent *)theEvent withSelector:(
SEL)selector;
122 - (BOOL)acceptsFirstResponder;
123 - (BOOL)mouseDownCanMoveWindow;
130 - (void)mouseDown:(NSEvent *)theEvent inXineView:(
XineOpenGLView *)theView;
131 - (void)mouseMoved:(NSEvent *)theEvent inXineView:(
XineOpenGLView *)theView;
132 - (void)otherMouseDown:(NSEvent *)theEvent inXineView:(
XineOpenGLView *)theView;
133 - (void)rightMouseDown:(NSEvent *)theEvent inXineView:(
XineOpenGLView *)theView;
134 - (NSSize)xineViewWillResize:(NSSize)oldSize toSize:(NSSize)proposedSize;
135 - (void)xineViewDidResize:(NSNotification *)note;