// COEDEF.H
//
// Copyright (c) 1997-1999 Symbian Ltd.  All rights reserved.
//

#if !defined(__COEDEF_H__)
#define __COEDEF_H__

enum TKeyResponse
	{
	EKeyWasNotConsumed,
	EKeyWasConsumed
	};

enum TDrawNow
	{
	ENoDrawNow,
	EDrawNow
	};

enum TCoeWinPriority
	{
	ECoeWinPriorityNeverAtFront		=-1000,
	ECoeWinPriorityLow				=-750,
	ECoeWinPriorityNormal			=0,
	ECoeWinPriorityMedium			=500,
	ECoeWinPriorityHigh				=750,
	ECoeWinPriorityFep				=900,
	ECoeWinPriorityAlwaysAtFront	=1000
	};

enum TCoeAdjacent
	{
	ECoeAdjNone		=0x00,
	ECoeAdjTop		=0x01,
	ECoeAdjBottom	=0x02,
	ECoeAdjLeft		=0x04,
	ECoeAdjRight	=0x08
	};
	
#if defined(_DEBUG)
#define __DEBUG_CHECK_HEAP_INTEGRITY User::Heap().Check()
#else
#define __DEBUG_CHECK_HEAP_INTEGRITY
#endif

#define CTRL(x) ((x)-'a'+1) // not an inline function since that can't be put as the case of a switch statement

#define EAllStdModifiers (EModifierFunc|EModifierCtrl|EModifierShift)

#define KRgbDitheredLightGray 	TRgb(204,204,204)
#define KRgb1in4DitheredGray 	TRgb(238,238,238)

#endif
