]> git.sesse.net Git - vlc/blob - modules/gui/macosx/Windows.h
655658c7ae11b17383addf14581f77cb32c39256
[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  * VLCWindow
30  *
31  *  Missing extension to NSWindow
32  *****************************************************************************/
33
34 @interface VLCWindow : NSWindow
35 {
36     BOOL b_canBecomeKeyWindow;
37     BOOL b_isset_canBecomeKeyWindow;
38     BOOL b_canBecomeMainWindow;
39     BOOL b_isset_canBecomeMainWindow;
40     NSViewAnimation *o_current_animation;
41 }
42 @property (readwrite) BOOL canBecomeKeyWindow;
43 @property (readwrite) BOOL canBecomeMainWindow;
44
45 /* animate mode is only supported in >=10.4 */
46 - (void)orderFront: (id)sender animate: (BOOL)animate;
47
48 /* animate mode is only supported in >=10.4 */
49 - (void)orderOut: (id)sender animate: (BOOL)animate;
50
51 /* animate mode is only supported in >=10.4 */
52 - (void)orderOut: (id)sender animate: (BOOL)animate callback:(NSInvocation *)callback;
53
54 /* animate mode is only supported in >=10.4 */
55 - (void)closeAndAnimate: (BOOL)animate;
56
57 @end
58
59
60 /*****************************************************************************
61  * VLCVideoWindowCommon
62  *
63  *  Common code for main window, detached window and extra video window
64  *****************************************************************************/
65
66 @interface VLCVideoWindowCommon : VLCWindow
67 {
68     NSRect previousSavedFrame;
69     BOOL b_dark_interface;
70 }
71
72 @end