/platform/osx/definitions.d

http://github.com/wilkie/djehuty · D · 133 lines · 112 code · 14 blank · 7 comment · 0 complexity · 3ea26be55b5623e27504f9e06670d44d MD5 · raw file

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