/*	XCursorUtil.h
 *
 *		This is the header file for the cursor utilities. This provides
 *	a portable mechanism for changing the mouse cursor
 */

/*  YAAF - Yet another application framework
 *  Copyright (C) 1997, 1998 William Edward Woody
 *  
 *  This library is free software; you can redistribute it
 *  and/or modify it under the terms of the GNU Library
 *  General Public License as published by the Free Software
 *  Foundation; either version 2 of the License, or any
 *  later version.
 *  
 *  This library is distributed in the hope that it will be
 *  useful, but WITHOUT ANY WARRANTY; without even the implied
 *  warranty of MERCHANTABIILITY or FITNESS FOR A PARTICULAR
 *  PURPOSE. See the GNU Library General Public License for
 *  more details.
 *  
 *  You should have received a copy of the GNU Library General
 *  Public License along with this library; if not, write to the
 *  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 *  Boston, MA 02111-1307, USA.
 *  
 *  To contact the author, either e-mail me at woody@pandawave.com, 
 *	or write to
 *  
 *          William Edward Woody
 *          In Phase Consulting
 *          1545 Ard Eevin Avenue
 *          Glendale, CA 91202
 *
 *	Or visit us on the web at http://www.pandawave.com
 */

#ifndef PandaWave_XCURSORUTIL
#define PandaWave_XCURSORUTIL

#include <XConfig.h>

#ifdef __cplusplus
extern "C" {
#endif

/************************************************************************/
/*																		*/
/*	Cursor Utilities													*/
/*																		*/
/************************************************************************/

extern void			InitCursorAnimation(short *alist);

extern void			SetCursorID(short);
extern void			WaitCursor(void);
extern void			NormalCursor(void);

/************************************************************************/
/*																		*/
/*	Predefined Cursors													*/
/*																		*/
/************************************************************************/

#if (OPT_MACOS == 1) || (OPT_WINOS == 1)
#define	KNormalCursor	0
#define KIBeamCursor	1
#define KCrossCursor	2
#define KPlusCursor		3
#define KWatchCursor	4
#endif

#if OPT_XWIN == 1
#include <X11/cursorfont.h>

#define KNormalCursor	XC_left_ptr			/* X-Win Cursor Font Set	*/
#define KIBeamCursor	XC_xterm
#define KCrossCursor	XC_crosshair
#define KPlusCursor		XC_plus
#define KWatchCursor	XC_watch
#endif /* OPT_XWIN */


#ifdef __cplusplus
}
#endif

#endif /* PandaWave_XCURSORUTIL */
