X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fmacosx%2Fmisc.h;h=a27f87cc529a7763bfbc3ef0eea13067d4466c31;hb=8a5d95d032dd1d3773858ece1d5efe2f970d6bab;hp=11c8c876d5ff9eec58e4dec364b7a8f609f6c31a;hpb=136957ea779cccb6afe1debadb6985b3080c07e8;p=vlc diff --git a/modules/gui/macosx/misc.h b/modules/gui/macosx/misc.h index 11c8c876d5..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 VideoLAN + * Copyright (C) 2003-2007 the VideoLAN team * $Id$ * * Authors: Jon Lech Johansen @@ -18,13 +18,80 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * 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 + * + * Missing extension to NSWindow + *****************************************************************************/ + +@interface VLCWindow : NSWindow +{ + 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 + + /***************************************************************************** * VLCControllerWindow *****************************************************************************/ + @interface VLCControllerWindow : NSWindow { } @@ -59,26 +126,30 @@ @interface MPSlider : NSSlider { - } @end /***************************************************************************** - * MPSliderCell + * ITSlider *****************************************************************************/ -@interface MPSliderCell : NSSliderCell +@interface ITSlider : NSSlider { - NSColor * _bgColor; - NSColor * _knobColor; - float _knobThickness; } -- (void)setBackgroundColor:(NSColor *)newColor; -- (NSColor *)backgroundColor; +@end + +/***************************************************************************** + * ITSliderCell + *****************************************************************************/ -- (void)setKnobColor:(NSColor *)newColor; -- (NSColor *)knobColor; +@interface ITSliderCell : NSSliderCell +{ + NSImage *_knobOff; + NSImage *_knobOn; + BOOL b_mouse_down; +} +- (void)controlTintChanged; -@end \ No newline at end of file +@end