1 /*****************************************************************************
2 * VLCVoutWindowController.h: MacOS X interface module
3 *****************************************************************************
4 * Copyright (C) 2012-2014 VLC authors and VideoLAN
7 * Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org>
8 * David Fuhrmann <david dot fuhrmann at googlemail dot com>
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.
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.
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 *****************************************************************************/
25 #import <Cocoa/Cocoa.h>
27 #import <vlc_vout_window.h>
29 @class VLCVideoWindowCommon;
32 @interface VLCVoutWindowController : NSObject
34 NSMutableDictionary *o_vout_dict;
36 NSPoint top_left_point;
38 // save the status level if at least one video window is on status level
39 NSUInteger i_statusLevelWindowCounter;
40 NSInteger i_currentWindowLevel;
42 BOOL b_mainwindow_has_video;
45 @property (readonly, nonatomic) NSInteger currentWindowLevel;
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;
53 - (void)updateWindowsControlsBarWithSelector:(SEL)aSel;
54 - (void)updateWindowsUsingBlock:(void (^)(VLCVideoWindowCommon *o_window))windowUpdater;
56 - (void)updateWindowLevelForHelperWindows:(NSInteger)i_level;