]> git.sesse.net Git - vlc/blob - modules/gui/macosx/VLCVoutWindowController.h
macosx: fix compilation on snow leopard by not using [] syntax for arrays
[vlc] / modules / gui / macosx / VLCVoutWindowController.h
1 /*****************************************************************************
2  * VLCVoutWindowController.h: MacOS X interface module
3  *****************************************************************************
4  * Copyright (C) 2012-2014 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
27 #import <vlc_vout_window.h>
28
29 @class VLCVideoWindowCommon;
30 @class VLCVoutView;
31
32 @interface VLCVoutWindowController : NSObject
33 {
34     NSMutableDictionary *o_vout_dict;
35
36     NSPoint top_left_point;
37
38     // save the status level if at least one video window is on status level
39     NSUInteger i_statusLevelWindowCounter;
40     NSInteger i_currentWindowLevel;
41
42     BOOL b_mainwindow_has_video;
43 }
44
45 @property (readonly, nonatomic) NSInteger currentWindowLevel;
46
47 - (VLCVoutView *)setupVoutForWindow:(vout_window_t *)p_wnd withProposedVideoViewPosition:(NSRect)videoViewPosition;
48 - (void)removeVoutforDisplay:(NSValue *)o_key;
49 - (void)setNativeVideoSize:(NSSize)size forWindow:(vout_window_t *)p_wnd;
50 - (void)setWindowLevel:(NSInteger)i_level forWindow:(vout_window_t *)p_wnd;
51 - (void)setFullscreen:(int)i_full forWindow:(vout_window_t *)p_wnd;
52
53 - (void)updateWindowsControlsBarWithSelector:(SEL)aSel;
54 - (void)updateWindowsUsingBlock:(void (^)(VLCVideoWindowCommon *o_window))windowUpdater;
55
56 - (void)updateWindowLevelForHelperWindows:(NSInteger)i_level;
57
58 @end