misc.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * misc.h: code not specific to vlc
00003  *****************************************************************************
00004  * Copyright (C) 2003-2007 the VideoLAN team
00005  * $Id$
00006  *
00007  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00022  *****************************************************************************/
00023 
00024 #import <Cocoa/Cocoa.h>
00025 #import <ApplicationServices/ApplicationServices.h>
00026 
00027 /*****************************************************************************
00028  * NSImage (VLCAddition)
00029  *****************************************************************************/
00030 
00031 @interface NSImage (VLCAdditions)
00032 + (id)imageWithWarningIcon;
00033 + (id)imageWithErrorIcon;
00034 @end
00035 
00036 /*****************************************************************************
00037  * NSAnimation (VLCAddition)
00038  *****************************************************************************/
00039 
00040 @interface NSAnimation (VLCAdditions)
00041 - (void)setUserInfo: (void *)userInfo;
00042 - (void *)userInfo;
00043 @end
00044 
00045 /*****************************************************************************
00046  * NSScreen (VLCAdditions)
00047  *
00048  *  Missing extension to NSScreen
00049  *****************************************************************************/
00050 
00051 @interface NSScreen (VLCAdditions)
00052 
00053 + (NSScreen *)screenWithDisplayID: (CGDirectDisplayID)displayID;
00054 - (BOOL)isMainScreen;
00055 - (BOOL)isScreen: (NSScreen*)screen;
00056 - (CGDirectDisplayID)displayID;
00057 - (void)blackoutOtherScreens;
00058 + (void)unblackoutScreens;
00059 @end
00060 
00061 /*****************************************************************************
00062  * VLCWindow
00063  *
00064  *  Missing extension to NSWindow
00065  *****************************************************************************/
00066 
00067 @interface VLCWindow : NSWindow
00068 {
00069     BOOL b_canBecomeKeyWindow;
00070     BOOL b_isset_canBecomeKeyWindow;
00071     NSViewAnimation *animation;
00072 }
00073 
00074 - (void)setCanBecomeKeyWindow: (BOOL)canBecomeKey;
00075 
00076 /* animate mode is only supported in >=10.4 */
00077 - (void)orderFront: (id)sender animate: (BOOL)animate;
00078 
00079 /* animate mode is only supported in >=10.4 */
00080 - (void)orderOut: (id)sender animate: (BOOL)animate;
00081 
00082 /* animate mode is only supported in >=10.4 */
00083 - (void)orderOut: (id)sender animate: (BOOL)animate callback:(NSInvocation *)callback;
00084 
00085 /* animate mode is only supported in >=10.4 */
00086 - (void)closeAndAnimate: (BOOL)animate;
00087 @end
00088 
00089 
00090 /*****************************************************************************
00091  * VLCControllerWindow
00092  *****************************************************************************/
00093 
00094 
00095 @interface VLCControllerWindow : NSWindow
00096 {
00097 }
00098 
00099 @end
00100 
00101 /*****************************************************************************
00102  * VLCControllerView
00103  *****************************************************************************/
00104 
00105 @interface VLCControllerView : NSView
00106 {
00107 }
00108 
00109 @end
00110 
00111 /*****************************************************************************
00112  * VLBrushedMetalImageView
00113  *****************************************************************************/
00114 
00115 @interface VLBrushedMetalImageView : NSImageView
00116 {
00117 
00118 }
00119 
00120 @end
00121 
00122 
00123 /*****************************************************************************
00124  * MPSlider
00125  *****************************************************************************/
00126 
00127 @interface MPSlider : NSSlider
00128 {
00129 }
00130 
00131 @end
00132 
00133 /*****************************************************************************
00134  * ITSlider
00135  *****************************************************************************/
00136 
00137 @interface ITSlider : NSSlider
00138 {
00139 }
00140 
00141 @end
00142 
00143 /*****************************************************************************
00144  * ITSliderCell
00145  *****************************************************************************/
00146 
00147 @interface ITSliderCell : NSSliderCell
00148 {
00149     NSImage *_knobOff;
00150     NSImage *_knobOn;
00151     BOOL b_mouse_down;
00152 }
00153 - (void)controlTintChanged;
00154 
00155 @end

Generated on Tue May 25 08:04:56 2010 for VLC by  doxygen 1.5.6