1 /*****************************************************************************
2 * misc.h: code not specific to vlc
3 *****************************************************************************
4 * Copyright (C) 2003 the VideoLAN team
7 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #import <ApplicationServices/ApplicationServices.h>
26 /*****************************************************************************
27 * NSAnimation (VLCAddition)
28 *****************************************************************************/
30 @interface NSAnimation (VLCAdditions)
31 - (void)setUserInfo: (void *)userInfo;
35 /*****************************************************************************
36 * NSScreen (VLCAdditions)
38 * Missing extension to NSScreen
39 *****************************************************************************/
41 @interface NSScreen (VLCAdditions)
43 + (NSScreen *)screenWithDisplayID: (CGDirectDisplayID)displayID;
45 - (CGDirectDisplayID)displayID;
46 - (void)blackoutOtherScreens;
47 + (void)unblackoutScreens;
50 /*****************************************************************************
53 * Missing extension to NSWindow
54 *****************************************************************************/
56 @interface VLCWindow : NSWindow
58 BOOL b_canBecomeKeyWindow;
59 BOOL b_isset_canBecomeKeyWindow;
60 NSViewAnimation *animation;
63 - (void)setCanBecomeKeyWindow: (BOOL)canBecomeKey;
65 /* animate mode is only supported in >=10.4 */
66 - (void)orderFront: (id)sender animate: (BOOL)animate;
68 /* animate mode is only supported in >=10.4 */
69 - (void)orderOut: (id)sender animate: (BOOL)animate;
71 /* animate mode is only supported in >=10.4 */
72 - (void)orderOut: (id)sender animate: (BOOL)animate callback:(NSInvocation *)callback;
74 /* animate mode is only supported in >=10.4 */
75 - (void)closeAndAnimate: (BOOL)animate;
79 /*****************************************************************************
81 *****************************************************************************/
84 @interface VLCControllerWindow : NSWindow
90 /*****************************************************************************
92 *****************************************************************************/
94 @interface VLCControllerView : NSView
100 /*****************************************************************************
101 * VLBrushedMetalImageView
102 *****************************************************************************/
104 @interface VLBrushedMetalImageView : NSImageView
112 /*****************************************************************************
114 *****************************************************************************/
116 @interface MPSlider : NSSlider
122 /*****************************************************************************
124 *****************************************************************************/
126 @interface ITSlider : NSSlider
132 /*****************************************************************************
134 *****************************************************************************/
136 @interface ITSliderCell : NSSliderCell