]> git.sesse.net Git - vlc/blob - modules/gui/macosx/vout.h
* Resize window fixes
[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.7 2003/02/07 21:30:25 hartman 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 #define WINDOW_TITLE_HEIGHT 24
27
28 /*****************************************************************************
29  * VLCWindow interface
30  *****************************************************************************/
31 @interface VLCWindow : NSWindow
32 {
33     vout_thread_t * p_vout;
34 }
35
36 - (void)setVout:(vout_thread_t *)_p_vout;
37 - (vout_thread_t *)getVout;
38
39 - (void)scaleWindowWithFactor: (float)factor;
40 - (void)toggleFullscreen;
41 - (BOOL)isFullscreen;
42
43 - (BOOL)windowShouldClose:(id)sender;
44
45 @end
46
47 /*****************************************************************************
48  * VLCView interface
49  *****************************************************************************/
50 @interface VLCView : NSQuickDrawView
51 {
52 }
53
54 @end
55
56 /*****************************************************************************
57  * VLCVout interface
58  *****************************************************************************/
59 @interface VLCVout : NSObject
60 {
61 }
62
63 - (void)createWindow:(NSValue *)o_value;
64 - (void)destroyWindow:(NSValue *)o_value;
65
66 @end
67
68 /*****************************************************************************
69  * vout_sys_t: MacOS X video output method descriptor
70  *****************************************************************************/
71 struct vout_sys_t
72 {
73     NSRect s_rect;
74     int b_pos_saved;
75     VLCWindow * o_window;
76
77     vlc_bool_t b_mouse_moved;
78     vlc_bool_t b_mouse_pointer_visible;
79     mtime_t i_time_mouse_last_moved;
80
81 #ifdef __QUICKTIME__
82     CodecType i_codec;
83     CGrafPtr p_qdport;
84     ImageSequence i_seq;
85     MatrixRecordPtr p_matrix;
86     DecompressorComponent img_dc;
87     ImageDescriptionHandle h_img_descr;
88     Ptr p_fullscreen_state;
89 #endif
90 };