X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fmacosx%2Fmisc.h;h=a27f87cc529a7763bfbc3ef0eea13067d4466c31;hb=8a5d95d032dd1d3773858ece1d5efe2f970d6bab;hp=6c1ca219630f99f4f0823932828586c395f52fba;hpb=4815c251f8863b61dfa9a7069880ff7fdba2e6b7;p=vlc diff --git a/modules/gui/macosx/misc.h b/modules/gui/macosx/misc.h index 6c1ca21963..a27f87cc52 100644 --- a/modules/gui/macosx/misc.h +++ b/modules/gui/macosx/misc.h @@ -1,8 +1,8 @@ /***************************************************************************** * misc.h: code not specific to vlc ***************************************************************************** - * Copyright (C) 2003 VideoLAN - * $Id: misc.h,v 1.2 2003/03/13 22:24:17 hartman Exp $ + * Copyright (C) 2003-2007 the VideoLAN team + * $Id$ * * Authors: Jon Lech Johansen * @@ -18,9 +18,96 @@ * * 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 +{ +} + +@end + +/***************************************************************************** + * VLCControllerView + *****************************************************************************/ + +@interface VLCControllerView : NSView +{ +} + +@end + /***************************************************************************** * VLBrushedMetalImageView *****************************************************************************/ @@ -39,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 -- (void)setKnobColor:(NSColor *)newColor; -- (NSColor *)knobColor; +/***************************************************************************** + * ITSliderCell + *****************************************************************************/ -@end \ No newline at end of file +@interface ITSliderCell : NSSliderCell +{ + NSImage *_knobOff; + NSImage *_knobOn; + BOOL b_mouse_down; +} +- (void)controlTintChanged; + +@end