X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fmacosx%2Fmisc.h;h=a27f87cc529a7763bfbc3ef0eea13067d4466c31;hb=8a5d95d032dd1d3773858ece1d5efe2f970d6bab;hp=a6d9f651f973d03122fd30bdd2ae512fe5ee10bd;hpb=74fd152da0cc0b9fe5dd856239da6967ce28e6e0;p=vlc diff --git a/modules/gui/macosx/misc.h b/modules/gui/macosx/misc.h index a6d9f651f9..a27f87cc52 100644 --- a/modules/gui/macosx/misc.h +++ b/modules/gui/macosx/misc.h @@ -1,7 +1,7 @@ /***************************************************************************** * misc.h: code not specific to vlc ***************************************************************************** - * Copyright (C) 2003 the VideoLAN team + * Copyright (C) 2003-2007 the VideoLAN team * $Id$ * * Authors: Jon Lech Johansen @@ -21,6 +21,43 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ +#import +#import + +/***************************************************************************** + * NSImage (VLCAddition) + *****************************************************************************/ + +@interface NSImage (VLCAdditions) ++ (id)imageWithWarningIcon; ++ (id)imageWithErrorIcon; +@end + +/***************************************************************************** + * NSAnimation (VLCAddition) + *****************************************************************************/ + +@interface NSAnimation (VLCAdditions) +- (void)setUserInfo: (void *)userInfo; +- (void *)userInfo; +@end + +/***************************************************************************** + * NSScreen (VLCAdditions) + * + * Missing extension to NSScreen + *****************************************************************************/ + +@interface NSScreen (VLCAdditions) + ++ (NSScreen *)screenWithDisplayID: (CGDirectDisplayID)displayID; +- (BOOL)isMainScreen; +- (BOOL)isScreen: (NSScreen*)screen; +- (CGDirectDisplayID)displayID; +- (void)blackoutOtherScreens; ++ (void)unblackoutScreens; +@end + /***************************************************************************** * VLCWindow * @@ -31,9 +68,22 @@ { BOOL b_canBecomeKeyWindow; BOOL b_isset_canBecomeKeyWindow; + NSViewAnimation *animation; } - (void)setCanBecomeKeyWindow: (BOOL)canBecomeKey; + +/* animate mode is only supported in >=10.4 */ +- (void)orderFront: (id)sender animate: (BOOL)animate; + +/* animate mode is only supported in >=10.4 */ +- (void)orderOut: (id)sender animate: (BOOL)animate; + +/* animate mode is only supported in >=10.4 */ +- (void)orderOut: (id)sender animate: (BOOL)animate callback:(NSInvocation *)callback; + +/* animate mode is only supported in >=10.4 */ +- (void)closeAndAnimate: (BOOL)animate; @end @@ -81,9 +131,9 @@ @end /***************************************************************************** - * ITSliderCell + * ITSlider *****************************************************************************/ - + @interface ITSlider : NSSlider { } @@ -93,12 +143,13 @@ /***************************************************************************** * ITSliderCell *****************************************************************************/ - + @interface ITSliderCell : NSSliderCell { NSImage *_knobOff; NSImage *_knobOn; BOOL b_mouse_down; } +- (void)controlTintChanged; @end