]> git.sesse.net Git - vlc/blob - modules/gui/macosx/VLCVoutWindowController.h
macosx: move fullscreen logic to VLCVoutController and remove now unneeded helper...
[vlc] / modules / gui / macosx / VLCVoutWindowController.h
1 /*****************************************************************************
2  * VLCVoutWindowController.h: MacOS X interface module
3  *****************************************************************************
4  * Copyright (C) 2012-2013 VLC authors and VideoLAN
5  * $Id$
6  *
7  * Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org>
8  *          David Fuhrmann <david dot fuhrmann at googlemail dot com>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23  *****************************************************************************/
24
25 #import <Cocoa/Cocoa.h>
26 #import "CompatibilityFixes.h"
27
28 #import <vlc_vout_window.h>
29
30 @class VLCVideoWindowCommon;
31 @class VLCVoutView;
32
33 @interface VLCVoutWindowController : NSObject
34 {
35     NSMutableDictionary *o_vout_dict;
36
37     NSPoint top_left_point;
38
39     // save the status level if at least one video window is on status level
40     NSUInteger i_statusLevelWindowCounter;
41     NSInteger i_currentWindowLevel;
42 }
43
44 @property (readonly, nonatomic) NSInteger currentWindowLevel;
45
46 - (VLCVoutView *)setupVoutForWindow:(vout_window_t *)p_wnd withProposedVideoViewPosition:(NSRect)videoViewPosition;
47 - (void)removeVoutforDisplay:(NSValue *)o_key;
48 - (void)setNativeVideoSize:(NSSize)size forWindow:(vout_window_t *)p_wnd;
49 - (void)setWindowLevel:(NSInteger)i_level forWindow:(vout_window_t *)p_wnd;
50 - (void)setFullscreen:(int)i_full forWindow:(vout_window_t *)p_wnd;
51
52 - (void)updateWindowsControlsBarWithSelector:(SEL)aSel;
53 - (void)updateWindowsUsingBlock:(void (^)(VLCVideoWindowCommon *o_window))windowUpdater;
54
55 - (void)updateWindowLevelForHelperWindows:(NSInteger)i_level;
56
57 @end