/*	XModifiers.h
 *
 *		This defines the bits which are used to pass the modifier
 *	keys to the XGView::DoMouseXXX() events and the keyboard events
 */

/*  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_XMODIFIERS
#define PandaWave_XMODIFIERS

#include <XConfig.h>

/************************************************************************/
/*																		*/
/*	Constants															*/
/*																		*/
/************************************************************************/

/*
 *	Keyboard modifier arguments
 */

#define KKeyShift				0x0001
#define KKeyControl				0x0002

#if OPT_MACOS == 1
#	define KKeyCommand			0x0004
#	define KKeyOption			0x0008
#endif

#if OPT_WINOS == 1
#	define KKeyMenu				0x0008
#endif

#if OPT_XWIN == 1
#	define KKeyMod1				0x0004
#	define KKeyMod2				0x0008
#	define KKeyMod3				0x0200
#	define KKeyMod4				0x0400
#	define KKeyMod5				0x0800
#endif

#define	KKeyButton				0x0010

#if OPT_WINOS == 1
#	define KKeyRButton			0x0020
#	define KKeyMButton			0x0040
#endif

#if OPT_XWIN == 1
#	define KKeyButton2			0x0020
#	define KKeyButton3			0x0040
#	define KKeyButton4			0x0080
#	define KKeyButton5			0x0100
#endif

#define KDoubleClick			0x1000
#define KCapturedMouse			0x2000
#define KSpecialKey				0x8000


#endif // PandaWave_XMODIFIERS
