comparison gui/wm/ws.h @ 28051:9e739bdb049c

Get rid of pointless 'extern' keywords.
author diego
date Wed, 03 Dec 2008 23:01:03 +0000
parents d58d06eafe83
children 47b5846b20b6
comparison
equal deleted inserted replaced
28050:7e53b0b71b18 28051:9e739bdb049c
206 // ---------------------------------------------------------------------------------------------- 206 // ----------------------------------------------------------------------------------------------
207 // wsKeyTable 207 // wsKeyTable
208 // ---------------------------------------------------------------------------------------------- 208 // ----------------------------------------------------------------------------------------------
209 extern unsigned long wsKeyTable[512]; 209 extern unsigned long wsKeyTable[512];
210 210
211 extern void wsXDone( void ); 211 void wsXDone( void );
212 extern void wsXInit( void* disp ); 212 void wsXInit( void* disp );
213 213
214 extern int wsGetDepthOnScreen( void ); 214 int wsGetDepthOnScreen( void );
215 215
216 extern void wsDoExit( void ); 216 void wsDoExit( void );
217 extern void wsMainLoop( void ); 217 void wsMainLoop( void );
218 extern Bool wsEvents( Display * display,XEvent * Event,XPointer arg ); 218 Bool wsEvents( Display * display, XEvent * Event, XPointer arg );
219 extern void wsHandleEvents( void ); 219 void wsHandleEvents( void );
220 220
221 // ---------------------------------------------------------------------------------------------- 221 // ----------------------------------------------------------------------------------------------
222 // wsCrateWindow: create a new window on the screen. 222 // wsCrateWindow: create a new window on the screen.
223 // X,Y : window position 223 // X,Y : window position
224 // wX,hY : window size 224 // wX,hY : window size
225 // bW : window frame size 225 // bW : window frame size
226 // cV : mouse cursor visible 226 // cV : mouse cursor visible
227 // D : "decoration", visible titlebar, etc ... 227 // D : "decoration", visible titlebar, etc ...
228 // ---------------------------------------------------------------------------------------------- 228 // ----------------------------------------------------------------------------------------------
229 extern void wsCreateWindow( wsTWindow * win,int X,int Y,int wX,int hY,int bW,int cV,unsigned char D,char * label ); 229 void wsCreateWindow( wsTWindow * win, int X, int Y, int wX, int hY, int bW, int cV, unsigned char D, char * label );
230 extern void wsDestroyWindow( wsTWindow * win ); 230 void wsDestroyWindow( wsTWindow * win );
231 extern void wsMoveWindow( wsTWindow * win,int b,int x, int y ); 231 void wsMoveWindow( wsTWindow * win, int b, int x, int y );
232 extern void wsResizeWindow( wsTWindow * win,int sx, int sy ); 232 void wsResizeWindow( wsTWindow * win, int sx, int sy );
233 extern void wsIconify( wsTWindow win ); 233 void wsIconify( wsTWindow win );
234 extern void wsMoveTopWindow( Display * wsDisplay,Window win ); 234 void wsMoveTopWindow( Display * wsDisplay, Window win );
235 extern void wsSetBackground( wsTWindow * win,int color ); 235 void wsSetBackground( wsTWindow * win, int color );
236 extern void wsSetForegroundRGB( wsTWindow * win,int r,int g,int b ); 236 void wsSetForegroundRGB( wsTWindow * win, int r, int g, int b );
237 extern void wsSetBackgroundRGB( wsTWindow * win,int r,int g,int b ); 237 void wsSetBackgroundRGB( wsTWindow * win, int r, int g, int b );
238 #define wsClearWindow( win ) XClearWindow( wsDisplay,win.WindowID ) 238 #define wsClearWindow( win ) XClearWindow( wsDisplay, win.WindowID )
239 extern void wsSetTitle( wsTWindow * win,char * name ); 239 void wsSetTitle( wsTWindow * win, char * name );
240 extern void wsVisibleWindow( wsTWindow * win,int show ); 240 void wsVisibleWindow( wsTWindow * win, int show );
241 extern void wsWindowDecoration( wsTWindow * win,long d ); 241 void wsWindowDecoration( wsTWindow * win, long d );
242 extern void wsSetLayer( Display * wsDisplay,Window win, int layer ); 242 void wsSetLayer( Display * wsDisplay, Window win, int layer );
243 extern void wsFullScreen( wsTWindow * win ); 243 void wsFullScreen( wsTWindow * win );
244 extern void wsPostRedisplay( wsTWindow * win ); 244 void wsPostRedisplay( wsTWindow * win );
245 extern void wsSetShape( wsTWindow * win,char * data ); 245 void wsSetShape( wsTWindow * win, char * data );
246 extern void wsSetIcon( Display * dsp,Window win,Pixmap icon,Pixmap mask ); 246 void wsSetIcon( Display * dsp, Window win, Pixmap icon, Pixmap mask );
247 247
248 // ---------------------------------------------------------------------------------------------- 248 // ----------------------------------------------------------------------------------------------
249 // Draw string at x,y with fc ( foreground color ) and bc ( background color ). 249 // Draw string at x,y with fc ( foreground color ) and bc ( background color ).
250 // ---------------------------------------------------------------------------------------------- 250 // ----------------------------------------------------------------------------------------------
251 extern void wsDrawString( wsTWindow win,int x,int y,char * str,int fc,int bc ); 251 void wsDrawString( wsTWindow win, int x, int y, char * str, int fc, int bc );
252 extern int wsTextWidth( wsTWindow win,char * str ); 252 int wsTextWidth( wsTWindow win, char * str );
253 253
254 // ---------------------------------------------------------------------------------------------- 254 // ----------------------------------------------------------------------------------------------
255 // Show / hide mouse cursor. 255 // Show / hide mouse cursor.
256 // ---------------------------------------------------------------------------------------------- 256 // ----------------------------------------------------------------------------------------------
257 extern void wsVisibleMouse( wsTWindow * win,int m ); 257 void wsVisibleMouse( wsTWindow * win, int m );
258 extern void wsSetMousePosition( wsTWindow * win,int x, int y ); 258 void wsSetMousePosition( wsTWindow * win, int x, int y );
259 259
260 // ---------------------------------------------------------------------------------------------- 260 // ----------------------------------------------------------------------------------------------
261 // Image handling 261 // Image handling
262 // ---------------------------------------------------------------------------------------------- 262 // ----------------------------------------------------------------------------------------------
263 extern void wsCreateImage( wsTWindow * win,int Width,int Height ); 263 void wsCreateImage( wsTWindow * win, int Width, int Height );
264 extern void wsConvert( wsTWindow * win,unsigned char * Image,unsigned int Size ); 264 void wsConvert( wsTWindow * win, unsigned char * Image, unsigned int Size );
265 extern void wsPutImage( wsTWindow * win ); 265 void wsPutImage( wsTWindow * win );
266 extern void wsResizeImage( wsTWindow * win,int Width,int Height ); 266 void wsResizeImage( wsTWindow * win, int Width, int Height );
267 extern void wsDestroyImage( wsTWindow * win ); 267 void wsDestroyImage( wsTWindow * win );
268 extern int wsGetOutMask( void ); 268 int wsGetOutMask( void );
269 269
270 extern void wsScreenSaverOn( Display *mDisplay ); 270 void wsScreenSaverOn( Display *mDisplay );
271 extern void wsScreenSaverOff( Display * mDisplay ); 271 void wsScreenSaverOff( Display * mDisplay );
272 272
273 #define wgIsRect( X,Y,tX,tY,bX,bY ) ( ( (X) > (tX) )&&( (Y) > (tY) )&&( (X) < (bX) )&&( (Y) < (bY) ) ) 273 #define wgIsRect( X,Y,tX,tY,bX,bY ) ( ( (X) > (tX) )&&( (Y) > (tY) )&&( (X) < (bX) )&&( (Y) < (bY) ) )
274 274
275 #endif /* MPLAYER_GUI_WS_H */ 275 #endif /* MPLAYER_GUI_WS_H */