UndefinedTypes.inc 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. { Private types }
  2. type
  3. __NSAppleEventManagerSuspension = OpaqueRecord;
  4. _NSZone = OpaqueRecord;
  5. _NSImageCellAnimationState = Pointer;
  6. _CGLPBufferObject = Pointer;
  7. PATHSEGMENT = OpaqueRecord;
  8. PATHSEGMENTPtr = ^PATHSEGMENT;
  9. _NSModalSession = OpaqueRecord;
  10. NSThreadPrivate = OpaqueRecord;
  11. NSScreenAuxiliary = OpaqueRecord;
  12. __NSProgressIndicatorThreadInfo = OpaqueRecord;
  13. _NSImageCellAnimationStatePtr = Pointer;
  14. _CGLPBufferObjectPtr = Pointer;
  15. __NSOVRowEntryPtr = Pointer;
  16. { MacOSPosix.pas }
  17. type
  18. dispatch_queue_t = pointer;
  19. dispatch_semaphore_t = pointer;
  20. dispatch_block_t = pointer;
  21. pthread_mutex_t = pointer;
  22. pthread_block_t = pointer;
  23. { Security framework - SecureTransport.h }
  24. type
  25. SSLProtocol = integer;
  26. type
  27. size_tPtr = ^size_t;
  28. // CGWindowLevel.h constants we can't translate to FPC
  29. const
  30. kCGNormalWindowLevel = -1;
  31. kCGFloatingWindowLevel = -1;
  32. kCGTornOffMenuWindowLevel = -1;
  33. kCGMainMenuWindowLevel = -1;
  34. kCGStatusWindowLevel = -1;
  35. kCGDockWindowLevel = -1;
  36. kCGModalPanelWindowLevel = -1;
  37. kCGPopUpMenuWindowLevel = -1;
  38. kCGScreenSaverWindowLevel = -1;
  39. { Cocoa types }
  40. const
  41. UINT_MAX = high(culong);
  42. // 7.18.2.4 Limits of integer types capable of holding object pointers
  43. INTPTR_MIN = low(ptrint);
  44. INTPTR_MAX = high(ptrint);
  45. UINTPTR_MAX = high(ptruint);
  46. // 7.18.2.5 Limits of greatest-width integer types
  47. INTMAX_MIN = low(int64);
  48. INTMAX_MAX = high(int64);
  49. UINTMAX_MAX = high(qword);
  50. // 7.18.3 "Other"
  51. PTRDIFF_MIN = INTPTR_MIN;
  52. PTRDIFF_MAX = INTPTR_MAX;
  53. LONG_MAX = high(clong);
  54. LONG_MIN = low(clong);
  55. ULONG_MAX = high(culong);
  56. SHRT_MAX = high(cshort);
  57. INT_MAX = high(cint);
  58. // ??? what are these???
  59. const
  60. FLT_MIN = 0;
  61. FLT_MAX = 1;
  62. DBL_MAX = high(clong);
  63. { from IOKit (not yet part of univint) }
  64. const
  65. NX_TABLET_POINTER_UNKNOWN = 0;
  66. NX_TABLET_POINTER_PEN = 1;
  67. NX_TABLET_POINTER_CURSOR = 2;
  68. NX_TABLET_POINTER_ERASER = 3;
  69. NX_SUBTYPE_DEFAULT = 0;
  70. NX_SUBTYPE_TABLET_POINT = 1;
  71. NX_SUBTYPE_TABLET_PROXIMITY = 2;
  72. NX_SUBTYPE_MOUSE_TOUCH = 3;
  73. NX_TABLET_BUTTON_PENTIPMASK = $0001;
  74. NX_TABLET_BUTTON_PENLOWERSIDEMASK = $0002;
  75. NX_TABLET_BUTTON_PENUPPERSIDEMASK = $0004;
  76. // IOKit types
  77. type
  78. IOOptionBits = UInt32;
  79. IOFixed = SInt32;
  80. IOVersion = UInt32;
  81. IOItemCount = UInt32;
  82. IOCacheMode = UInt32;
  83. IOByteCount = UInt32;
  84. IOReturn = UInt32;
  85. // OpenGL
  86. type
  87. GLfloatPtr = pointer;
  88. // CarbonCore/Components.h
  89. type
  90. ComponentRecord = record
  91. data:array[0..0] of clong;
  92. end;
  93. ComponentRecordPtr = ^ComponentRecord;
  94. Component = ^ComponentRecord;
  95. type
  96. ComponentInstanceRecord = record
  97. data:array[0..0] of clong;
  98. end;
  99. ComponentInstanceRecordPtr = ^ComponentInstanceRecord;
  100. ComponentInstance = ^ComponentInstanceRecord;
  101. // OSServices/CSIdentity
  102. type
  103. CSIdentityAuthorityRef = OpaqueType;
  104. CSIdentityRef = OpaqueType;
  105. // CoreAudio
  106. type
  107. AudioFormatListItem = OpaqueRecord;
  108. AudioFormatListItemPtr = ^AudioFormatListItem;
  109. // OpenGL
  110. type
  111. CGLContextObjPtr = ^CGLContextObj;
  112. CGLPixelFormatObjPtr = ^CGLPixelFormatObj;