1 /*****************************************************************************
2 * vout.h: MacOS X interface module
3 *****************************************************************************
4 * Copyright (C) 2001-2005 the VideoLAN team
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>
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.
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.
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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
26 *****************************************************************************/
28 /*****************************************************************************
29 * VLCEmbeddedList interface
30 *****************************************************************************/
31 @interface VLCEmbeddedList : NSObject
33 NSMutableArray * o_embedded_array;
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;
44 /*****************************************************************************
45 * VLCVoutView interface
46 *****************************************************************************/
47 @interface VLCVoutView : NSView
49 vout_thread_t * p_vout;
53 vout_thread_t * p_real_vout;
56 - (BOOL)setVout: (vout_thread_t *) p_arg_vout subView: (NSView *) view
57 frame: (NSRect *) s_arg_frame;
60 - (void)scaleWindowWithFactor: (float)factor;
61 - (void)setOnTop:(BOOL)b_on_top;
62 - (void)toggleFloatOnTop;
63 - (void)toggleFullscreen;
68 + (id)getVoutView: (vout_thread_t *)p_vout subView: (NSView *) view
69 frame: (NSRect *) s_frame;
70 + (vout_thread_t *)getRealVout: (vout_thread_t *)p_vout;
74 /*****************************************************************************
75 * VLCVoutDetachedView interface
76 *****************************************************************************/
78 @interface VLCDetachedVoutView : VLCVoutView
80 mtime_t i_time_mouse_last_moved;
83 - (void)hideMouse: (BOOL)b_hide;
87 /*****************************************************************************
88 * VLCEmbeddedView interface
89 *****************************************************************************/
91 @interface VLCEmbeddedVoutView : VLCVoutView
96 - (void)setUsed: (BOOL)b_new_used;
101 /*****************************************************************************
102 * VLCWindow interface
103 *****************************************************************************/
104 @interface VLCWindow : NSWindow
106 vout_thread_t * p_vout;
107 VLCVoutView * o_view;
110 vout_thread_t * p_real_vout;
111 Ptr p_fullscreen_state;
112 vlc_bool_t b_init_ok;
115 - (id) initWithVout: (vout_thread_t *) p_vout view: (VLCVoutView *) view
116 frame: (NSRect *) s_frame;
117 - (id)initReal: (id) sender;
120 - (id)closeReal: (id) sender;
124 - (BOOL)windowShouldClose:(id)sender;