]> git.sesse.net Git - vlc/blob - modules/gui/macosx/vout.h
Removes trailing spaces. Removes tabs.
[vlc] / modules / gui / macosx / vout.h
1 /*****************************************************************************
2  * vout.h: MacOS X interface module
3  *****************************************************************************
4  * Copyright (C) 2001-2006 the VideoLAN team
5  * $Id$
6  *
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>
11  *          Benjamin Pracht <bigben at videolan dot org>
12  *
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 2 of the License, or
16  * (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software
25  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
26  *****************************************************************************/
27
28 /*****************************************************************************
29  * VLCEmbeddedList interface
30  *****************************************************************************/
31 @interface VLCEmbeddedList : NSObject
32 {
33     NSMutableArray * o_embedded_array;
34 }
35
36 - (id)getEmbeddedVout;
37 - (void)releaseEmbeddedVout: (id)o_vout_view;
38 - (void)addEmbeddedVout: (id)o_vout_view;
39 - (BOOL)windowContainsEmbedded: (id)o_window;
40 - (id)getViewForWindow: (id)o_window;
41
42 @end
43
44 /*****************************************************************************
45  * VLCVoutView interface
46  *****************************************************************************/
47 @protocol VLCVoutViewResetting
48 + (void)resetVout: (vout_thread_t *)p_vout;
49 @end
50
51 @interface VLCVoutView : NSView
52 {
53     vout_thread_t * p_vout;
54     NSRect        * s_frame;
55
56     NSView <VLCVoutViewResetting> * o_view;
57
58     vout_thread_t * p_real_vout;
59     id              o_window;
60 }
61 - (BOOL)setVout: (vout_thread_t *) p_arg_vout subView: (NSView *) view
62                      frame: (NSRect *) s_arg_frame;
63 - (void)closeVout;
64 - (void)updateTitle;
65 - (void)manage;
66 - (void)scaleWindowWithFactor: (float)factor animate: (BOOL)animate;
67 - (void)setOnTop:(BOOL)b_on_top;
68 - (void)toggleFloatOnTop;
69 - (void)toggleFullscreen;
70 - (BOOL)isFullscreen;
71 - (void)snapshot;
72 - (id)getWindow;
73
74 + (id)getVoutView: (vout_thread_t *)p_vout subView: (NSView *) view
75                             frame: (NSRect *) s_frame;
76 + (vout_thread_t *)getRealVout: (vout_thread_t *)p_vout;
77
78 - (void)enterFullscreen;
79 - (void)leaveFullscreen;
80 @end
81
82 /*****************************************************************************
83  * VLCVoutDetachedView interface
84  *****************************************************************************/
85
86 @interface VLCDetachedVoutView : VLCVoutView
87 {
88     mtime_t i_time_mouse_last_moved;
89 }
90
91 - (void)hideMouse: (BOOL)b_hide;
92
93 @end
94
95 /*****************************************************************************
96  * VLCEmbeddedView interface
97  *****************************************************************************/
98
99 @interface VLCEmbeddedVoutView : VLCVoutView
100 {
101     BOOL b_used;
102 }
103
104 - (BOOL)setVout: (vout_thread_t *) p_arg_vout subView: (NSView *) view
105                  frame: (NSRect *)s_arg_frame showWindow: (BOOL)b_show_window;
106
107 - (void)setUsed: (BOOL)b_new_used;
108 - (BOOL)isUsed;
109
110 @end
111
112 /*****************************************************************************
113  * VLCDetachedEmbeddedView interface
114  *****************************************************************************/
115
116 @interface VLCDetachedEmbeddedVoutView : VLCEmbeddedVoutView
117 {
118     id o_embeddedwindow;
119 }
120
121 @end
122
123 /*****************************************************************************
124  * VLCVoutWindow interface
125  *****************************************************************************/
126 @interface VLCVoutWindow : NSWindow
127 {
128     vout_thread_t * p_vout;
129     VLCVoutView   * o_view;
130     NSRect        * s_frame;
131
132     vout_thread_t * p_real_vout;
133     vlc_bool_t      b_init_ok;
134     vlc_bool_t      b_black;
135     vlc_bool_t      b_embedded;
136 }
137
138 - (id) initWithVout: (vout_thread_t *) p_vout view: (VLCVoutView *) view
139                      frame: (NSRect *) s_frame;
140 - (id)initReal: (id) sender;
141 - (void)close;
142 - (void)closeWindow;
143 - (id)closeReal: (id) sender;
144 - (id)getVoutView;
145
146 - (BOOL)windowShouldClose:(id)sender;
147
148 @end