]> git.sesse.net Git - vlc/blob - modules/gui/macosx/vout.h
* Use BeginFullScreen() to hide the mouse cursor ;
[vlc] / modules / gui / macosx / vout.h
1 /*****************************************************************************
2  * vout.h: MacOS X interface plugin
3  *****************************************************************************
4  * Copyright (C) 2001, 2002 VideoLAN
5  * $Id: vout.h,v 1.3 2002/12/24 23:00:51 massiot 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)toggleFullscreen;
38 - (BOOL)isFullscreen;
39
40 @end
41
42 /*****************************************************************************
43  * VLCView interface
44  *****************************************************************************/
45 @interface VLCView : NSQuickDrawView
46 {
47 }
48
49 @end
50
51 /*****************************************************************************
52  * VLCVout interface
53  *****************************************************************************/
54 @interface VLCVout : NSObject
55 {
56 }
57
58 - (void)createWindow:(NSValue *)o_value;
59 - (void)destroyWindow:(NSValue *)o_value;
60
61 @end
62
63 /*****************************************************************************
64  * vout_sys_t: MacOS X video output method descriptor
65  *****************************************************************************/
66 struct vout_sys_t
67 {
68     NSConditionLock * o_lock;
69
70     NSRect s_rect;
71     int b_pos_saved;
72     VLCWindow * o_window;
73
74     vlc_bool_t b_mouse_moved;
75     vlc_bool_t b_mouse_pointer_visible;
76     mtime_t i_time_mouse_last_moved;
77
78 #ifdef __QUICKTIME__
79     CodecType i_codec;
80     CGrafPtr p_qdport;
81     ImageSequence i_seq;
82     MatrixRecordPtr p_matrix;
83     DecompressorComponent img_dc;
84     ImageDescriptionHandle h_img_descr;
85     Ptr p_fullscreen_state;
86 #endif
87 };