]> git.sesse.net Git - vlc/blob - modules/gui/macosx/Windows.h
macosx: adapt module_list_get calls for latest changes in core
[vlc] / modules / gui / macosx / Windows.h
1 /*****************************************************************************
2  * Windows.h: MacOS X interface module
3  *****************************************************************************
4  * Copyright (C) 2012 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
29 /*****************************************************************************
30  * VLCWindow
31  *
32  *  Missing extension to NSWindow
33  *****************************************************************************/
34
35 @interface VLCWindow : NSWindow
36 {
37     BOOL b_canBecomeKeyWindow;
38     BOOL b_isset_canBecomeKeyWindow;
39     BOOL b_canBecomeMainWindow;
40     BOOL b_isset_canBecomeMainWindow;
41     NSViewAnimation *o_current_animation;
42 }
43 @property (readwrite) BOOL canBecomeKeyWindow;
44 @property (readwrite) BOOL canBecomeMainWindow;
45
46 /* animate mode is only supported in >=10.4 */
47 - (void)orderFront: (id)sender animate: (BOOL)animate;
48
49 /* animate mode is only supported in >=10.4 */
50 - (void)orderOut: (id)sender animate: (BOOL)animate;
51
52 /* animate mode is only supported in >=10.4 */
53 - (void)orderOut: (id)sender animate: (BOOL)animate callback:(NSInvocation *)callback;
54
55 /* animate mode is only supported in >=10.4 */
56 - (void)closeAndAnimate: (BOOL)animate;
57
58 @end
59
60 @class VLCVoutView;
61 @class VLCControlsBarCommon;
62
63 /*****************************************************************************
64  * VLCVideoWindowCommon
65  *
66  *  Common code for main window, detached window and extra video window
67  *****************************************************************************/
68
69 @interface VLCVideoWindowCommon : VLCWindow
70 {
71     NSRect previousSavedFrame;
72     BOOL b_dark_interface;
73
74     IBOutlet id o_titlebar_view; // only set in main or detached window
75     IBOutlet VLCVoutView *o_video_view;
76
77     IBOutlet VLCControlsBarCommon *o_controls_bar;
78 }
79
80 @property (nonatomic, assign) VLCVoutView* videoView;
81 @property (readonly) VLCControlsBarCommon* controlsBar;
82
83
84 - (void)setTitle:(NSString *)title;
85
86 @end