oandxdefs.h

来自「Symbian OS C++ for Mobile Phones v3 Exam」· C头文件 代码 · 共 39 行

H
39
字号
// Copyright (c) 2004 - 2006, Symbian Software Ltd. All rights reserved.

#ifndef OANDXDEFS_H
#define OANDXDEFS_H

// Generic board data
static const TInt KTilesPerRow = 3;
static const TInt KTilesPerCol = 3;
static const TInt KNumberOfTiles = (KTilesPerRow*KTilesPerCol);

// OandX-specific data
static const TInt KTilesPerSide = 3;

enum TTileState
	{
	ETileBlank  = 0, // Values chosen so that:
	ETileNought = 1, // KTilesPerRow*ETileNought < ETileCross
	ETileCross  = 4, // KTilesPerCol*ETileNought < ETileCross
	ETileDraw   = 16 // Added for History view (> KTilesPerCol*ETileCross)
	};

static const TInt KStatusWinHeight = 20; // in pixels

static const TInt KStatsBufSize = 30;
static const TInt KFormatBufSize = 40;
static const TInt KNumHistoryRecords = 6;

const TUid KUidOandXView = {0x00000001};
const TUid KUidOandXHistoryView = {0x00000002};

// Message IDs for use when activating history view 
enum
	{
	EHistoryViewDisplayHistory,
	EHistoryViewDisplayStats
	};

#endif // OANDXDEFS_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?