]> git.sesse.net Git - vlc/blob - modules/gui/macosx/vout.h
macosx/prefs.m: compile fix
[vlc] / modules / gui / macosx / vout.h
1 /*****************************************************************************
2  * vout.h: MacOS X interface module
3  *****************************************************************************
4  * Copyright (C) 2001-2003 VideoLAN
5  * $Id: vout.h,v 1.21 2004/02/02 08:50:41 titer Exp $
6  *
7  * Authors: Colin Delacroix <colin@zoy.org>
8  *          Florian G. Pflug <fgp@phlo.org>
9  *          Jon Lech Johansen <jon-vl@nanocrew.net>
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  * 
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
24  *****************************************************************************/
25
26 /*****************************************************************************
27  * VLCWindow interface
28  *****************************************************************************/
29 @interface VLCWindow : NSWindow
30 {
31     vout_thread_t * p_vout;
32 }
33
34 - (void)setVout:(vout_thread_t *)_p_vout;
35 - (vout_thread_t *)getVout;
36
37 - (void)scaleWindowWithFactor: (float)factor;
38 - (void)toggleFloatOnTop;
39 - (void)toggleFullscreen;
40 - (BOOL)isFullscreen;
41 - (void)updateTitle;
42
43 - (BOOL)windowShouldClose:(id)sender;
44
45 @end
46
47 /*****************************************************************************
48  * VLCView interface
49  *****************************************************************************/
50 @interface VLCQTView : NSQuickDrawView
51 {
52 }
53
54 @end
55
56 /*****************************************************************************
57  * VLCView interface
58  *****************************************************************************/
59 @interface VLCGLView : NSOpenGLView
60 {
61     vout_thread_t * p_vout;
62     int             b_init_done;
63     unsigned long   i_cur_texture;
64     float           f_x;
65     float           f_y;
66 }
67
68 - (id) initWithFrame: (NSRect) frame vout: (vout_thread_t*) p_vout;
69 - (void) initTextures;
70 - (void) reloadTexture: (picture_t *) p_pic;
71
72 @end
73
74 /*****************************************************************************
75  * VLCVout interface
76  *****************************************************************************/
77 @interface VLCVout : NSObject
78 {
79 }
80
81 - (void)createWindow:(NSValue *)o_value;
82 - (void)destroyWindow:(NSValue *)o_value;
83
84 @end
85
86 /*****************************************************************************
87  * vout_sys_t: MacOS X video output method descriptor
88  *****************************************************************************/
89 struct vout_sys_t
90 {
91     int i_opengl;
92     
93     NSRect s_rect;
94     int b_pos_saved;
95     VLCWindow * o_window;
96
97     vlc_bool_t b_mouse_moved;
98     mtime_t i_time_mouse_last_moved;
99
100 #ifdef __QUICKTIME__
101     CodecType i_codec;
102     CGrafPtr p_qdport;
103     ImageSequence i_seq;
104     MatrixRecordPtr p_matrix;
105     DecompressorComponent img_dc;
106     ImageDescriptionHandle h_img_descr;
107     Ptr p_fullscreen_state;
108 #endif
109
110     VLCGLView * o_glview;
111 };