]> git.sesse.net Git - vlc/blob - modules/gui/macosx/vout.h
macosx/vout*: fixed escape key not exiting fullscreen and video-on-top
[vlc] / modules / gui / macosx / vout.h
1 /*****************************************************************************
2  * vout.h: MacOS X interface module
3  *****************************************************************************
4  * Copyright (C) 2001-2003 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     vout_thread_t * p_real_vout;
34
35     Ptr             p_fullscreen_state;
36     mtime_t         i_time_mouse_last_moved;
37 }
38
39 - (id)initWithVout:(vout_thread_t *)_p_vout
40     frame:(NSRect *)s_frame;
41 - (void)close;
42 - (void)setOnTop:(bool)b_on_top;
43
44 - (void)hideMouse:(bool)b_hide;
45 - (void)manage;
46
47 - (void)scaleWindowWithFactor: (float)factor;
48 - (void)toggleFloatOnTop;
49 - (void)toggleFullscreen;
50 - (BOOL)isFullscreen;
51 - (void)updateTitle;
52
53 - (BOOL)windowShouldClose:(id)sender;
54
55 @end