1 /*****************************************************************************
2 * vout.h: MacOS X interface module
3 *****************************************************************************
4 * Copyright (C) 2001-2003 VideoLAN
7 * Authors: Colin Delacroix <colin@zoy.org>
8 * Florian G. Pflug <fgp@phlo.org>
9 * Jon Lech Johansen <jon-vl@nanocrew.net>
10 * Eric Petit <titer@m0k.org>
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
25 *****************************************************************************/
27 /*****************************************************************************
29 *****************************************************************************/
30 @interface VLCWindow : NSWindow
32 vout_thread_t * p_vout;
35 - (void)setVout:(vout_thread_t *)_p_vout;
36 - (vout_thread_t *)getVout;
38 - (void)scaleWindowWithFactor: (float)factor;
39 - (void)toggleFloatOnTop;
40 - (void)toggleFullscreen;
44 - (BOOL)windowShouldClose:(id)sender;
48 /*****************************************************************************
50 *****************************************************************************/
51 @interface VLCQTView : NSQuickDrawView
57 /*****************************************************************************
59 *****************************************************************************/
60 @interface VLCGLView : NSOpenGLView
62 vout_thread_t * p_vout;
64 unsigned long i_texture;
69 NSOpenGLContext * fullScreenContext;
70 NSOpenGLContext * currentContext;
73 - (id) initWithFrame: (NSRect) frame vout: (vout_thread_t*) p_vout;
74 - (void) initTextures;
75 - (void) reloadTexture;
76 - (void) goFullScreen;
77 - (void) exitFullScreen;
82 /*****************************************************************************
84 *****************************************************************************/
85 @interface VLCVout : NSObject
89 - (void)createWindow:(NSValue *)o_value;
90 - (void)destroyWindow:(NSValue *)o_value;
94 /*****************************************************************************
95 * vout_sys_t: MacOS X video output method descriptor
96 *****************************************************************************/
103 VLCWindow * o_window;
105 vlc_bool_t b_mouse_moved;
106 mtime_t i_time_mouse_last_moved;
112 MatrixRecordPtr p_matrix;
113 DecompressorComponent img_dc;
114 ImageDescriptionHandle h_img_descr;
115 Ptr p_fullscreen_state;
118 VLCGLView * o_glview;