]> git.sesse.net Git - vlc/blob - modules/gui/macosx/vout.h
macosx/vout*: also destroy the window and attach/detach the view on the
[vlc] / modules / gui / macosx / vout.h
1 /*****************************************************************************
2  * vout.h: MacOS X interface module
3  *****************************************************************************
4  * Copyright (C) 2001-2005 VideoLAN
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  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 2 of the License, or
15  * (at your option) any later version.
16  * 
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
25  *****************************************************************************/
26
27 /*****************************************************************************
28  * VLCWindow interface
29  *****************************************************************************/
30 @interface VLCWindow : NSWindow
31 {
32     vout_thread_t * p_vout;
33     NSView        * o_view;
34     NSRect        * s_frame;
35
36     vout_thread_t * p_real_vout;
37     Ptr             p_fullscreen_state;
38     mtime_t         i_time_mouse_last_moved;
39     vlc_bool_t      b_init_ok;
40 }
41
42 - (id) initWithVout: (vout_thread_t *) p_vout view: (NSView *) view
43                      frame: (NSRect *) s_frame;
44 - (id) initReal: (id) sender;
45 - (void) close;
46 - (id)   closeReal: (id) sender;
47 - (void)setOnTop:(BOOL)b_on_top;
48
49 - (void)hideMouse:(BOOL)b_hide;
50 - (void)manage;
51
52 - (void)scaleWindowWithFactor: (float)factor;
53 - (void)toggleFloatOnTop;
54 - (void)toggleFullscreen;
55 - (BOOL)isFullscreen;
56 - (void)snapshot;
57 - (void)updateTitle;
58
59 - (BOOL)windowShouldClose:(id)sender;
60
61 @end