PageRenderTime 52ms CodeModel.GetById 13ms app.highlight 34ms RepoModel.GetById 2ms app.codeStats 0ms

/platform/osx/definitions.d

http://github.com/wilkie/djehuty
D | 133 lines | 112 code | 14 blank | 7 comment | 0 complexity | 3ea26be55b5623e27504f9e06670d44d MD5 | raw file
  1module platform.osx.definitions;
  2
  3import core.definitions;
  4import core.parameters;
  5
  6// String Representation
  7alias char Char;
  8
  9// Color Representation
 10
 11static const Parameter_Colorbpp Colorbpp = Parameter_Colorbpp.Color8bpp;
 12static const Parameter_ColorType ColorType = Parameter_ColorType.ColorRGBA;
 13
 14// Graphical Types
 15alias void* Pen;
 16alias void* Brush;
 17alias int Font;
 18
 19// Common Fonts
 20
 21const Char[] FontMonospace = "Courier";
 22const Char[] FontTimes = "Times New Roman";
 23const Char[] FontSans = "Sans";
 24const Char[] FontSerif = "Sans Serif";
 25const Char[] FontSystem = "Sans Serif";
 26
 27// Keyboard
 28
 29const int  KeyBackspace = 0x8;			//0x08
 30const int  KeyTab = 0x9;					//0x09
 31const int  KeyReturn = 0xD;				//0x0D
 32const int  KeyAmbiShift = 0x10;			//0x10
 33const int  KeyAmbiControl = 0x11;		//0x11
 34const int  KeyAmbiAlt = 0x12;				//0x12
 35const int  KeyPause = 0x13;				//0x13
 36const int  KeyCapsLock = 0x14;			//0x14
 37const int  KeyEscape = 0x1b;				//0x1B
 38const int  KeySpace = 0x20;				//0x20
 39const int  KeyPageUp = 0x21;				//0x21
 40const int  KeyPageDown = 0x22;				//0x22
 41const int  KeyEnd = 0x23;					//0x23
 42const int  KeyHome = 0x24;					//0x24
 43const int  KeyArrowLeft = 0x25;			//0x25
 44const int  KeyArrowUp = 0x26;				//0x26
 45const int  KeyArrowRight = 0x27;			//0x27
 46const int  KeyArrowDown = 0x28;			//0x28
 47const int  KeyInsert = 0x2D;				//0x2D
 48const int  KeyDelete = 0x2E;				//0x2E
 49const int  Key0 = 0x30;
 50const int  Key1 = 0x31;
 51const int  Key2 = 0x32;
 52const int  Key3 = 0x33;
 53const int  Key4 = 0x34;
 54const int  Key5 = 0x35;
 55const int  Key6 = 0x36;
 56const int  Key7 = 0x37;
 57const int  Key8 = 0x38;
 58const int  Key9 = 0x39;
 59
 60//SECOND LEVEL
 61
 62const int  KeyA = 0x41;
 63const int  KeyB = 0x42;
 64const int  KeyC = 0x43;
 65const int  KeyD = 0x44;
 66const int  KeyE = 0x45;
 67const int  KeyF = 0x46;
 68const int  KeyG = 0x47;
 69const int  KeyH = 0x48;
 70const int  KeyI = 0x49;
 71const int  KeyJ = 0x4A;
 72const int  KeyK = 0x4B;
 73const int  KeyL = 0x4C;
 74const int  KeyM = 0x4D;
 75const int  KeyN = 0x4E;
 76const int  KeyO = 0x4F;
 77const int  KeyP = 0x50;
 78const int  KeyQ = 0x51;
 79const int  KeyR = 0x52;
 80const int  KeyS = 0x53;
 81const int  KeyT = 0x54;
 82const int  KeyU = 0x55;
 83const int  KeyV = 0x56;
 84const int  KeyW = 0x57;
 85const int  KeyX = 0x58;
 86const int  KeyY = 0x59;
 87const int  KeyZ = 0x5A;
 88const int  KeyNumPad0 = 0x60;			//0x60
 89const int  KeyNumPad1 = 0x61;			//0x61
 90const int  KeyNumPad2 = 0x62;			//0x62
 91const int  KeyNumPad3 = 0x63;			//0x63
 92const int  KeyNumPad4 = 0x64;			//0x64
 93const int  KeyNumPad5 = 0x65;			//0x65
 94const int  KeyNumPad6 = 0x66;			//0x66
 95const int  KeyNumPad7 = 0x67;			//0x67
 96const int  KeyNumPad8 = 0x68;			//0x68
 97const int  KeyNumPad9 = 0x69;			//0x69
 98const int  KeyF1 = 0x70;						//0x70
 99const int  KeyF2 = 0x71;						//0x71
100const int  KeyF3 = 0x72;						//0x72
101const int  KeyF4 = 0x73;						//0x73
102const int  KeyF5 = 0x74;						//0x74
103const int  KeyF6 = 0x75;						//0x75
104const int  KeyF7 = 0x76;						//0x76
105const int  KeyF8 = 0x77;						//0x77
106const int  KeyF9 = 0x78;						//0x78
107const int  KeyF10 = 0x79;					//0x79
108const int  KeyF11 = 0x7a;					//0x7A
109const int  KeyF12 = 0x7b;					//0x7B
110const int  KeyF13 = 0x7c;					//0x7C
111const int  KeyF14 = 0x7d;					//0x7D
112const int  KeyF15 = 0x7e;					//0x7E
113const int  KeyF16 = 0x7f;					//0x7F
114
115//THIRD LEVEL
116
117const int  KeyF17 = 0x80;					//0x80
118const int  KeyF18 = 0x81;					//0x81
119const int  KeyF19 = 0x82;					//0x82
120const int  KeyF20 = 0x83;					//0x83
121const int  KeyF21 = 0x84;					//0x84
122const int  KeyF22 = 0x85;					//0x85
123const int  KeyF23 = 0x86;					//0x86
124const int  KeyF24 = 0x87;					//0x87
125const int  KeyNumLock = 0x90;			//0x90
126const int  KeyScrollLock = 0x91;			//0x91
127const int  KeyLeftShift = 0xA0;			//0xA0
128const int  KeyRightShift = 0xA1;			//0xA1
129const int  KeyLeftControl = 0xA2;		//0xA2
130const int  KeyRightControl = 0xA3;		//0xA3
131const int  KeyLeftAlt = 0xA4;				//0xA4
132const int  KeyRightAlt = 0xA5;			//0xA5
133