NSGraphics.inc 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. { Parsed from Appkit.framework NSGraphics.h }
  2. {$ifdef TYPES}
  3. {$ifndef NSGRAPHICS_PAS_T}
  4. {$define NSGRAPHICS_PAS_T}
  5. { Constants }
  6. const
  7. NSCompositeClear = 0;
  8. NSCompositeCopy = 1;
  9. NSCompositeSourceOver = 2;
  10. NSCompositeSourceIn = 3;
  11. NSCompositeSourceOut = 4;
  12. NSCompositeSourceAtop = 5;
  13. NSCompositeDestinationOver = 6;
  14. NSCompositeDestinationIn = 7;
  15. NSCompositeDestinationOut = 8;
  16. NSCompositeDestinationAtop = 9;
  17. NSCompositeXOR = 10;
  18. NSCompositePlusDarker = 11;
  19. NSCompositeHighlight = 12;
  20. NSCompositePlusLighter = 13;
  21. const
  22. NSBackingStoreRetained = 0;
  23. NSBackingStoreNonretained = 1;
  24. NSBackingStoreBuffered = 2;
  25. const
  26. NSWindowAbove = 1;
  27. NSWindowBelow = -1;
  28. NSWindowOut = 0;
  29. const
  30. NSFocusRingOnly = 0;
  31. NSFocusRingBelow = 1;
  32. NSFocusRingAbove = 2;
  33. const
  34. NSFocusRingTypeDefault = 0;
  35. NSFocusRingTypeNone = 1;
  36. NSFocusRingTypeExterior = 2;
  37. const
  38. NSColorRenderingIntentDefault = 0;
  39. NSColorRenderingIntentAbsoluteColorimetric = 1;
  40. NSColorRenderingIntentRelativeColorimetric = 2;
  41. NSColorRenderingIntentPerceptual = 3;
  42. NSColorRenderingIntentSaturation = 4;
  43. const
  44. NSWindowDepthTwentyfourBitRGB = $208;
  45. NSWindowDepthSixtyfourBitRGB = $210;
  46. NSWindowDepthOnehundredtwentyeightBitRGB = $220;
  47. const
  48. NSAnimationEffectDisappearingItemDefault = 0;
  49. NSAnimationEffectPoof = 10;
  50. { Types }
  51. type
  52. NSCompositingOperation = NSUInteger;
  53. NSCompositingOperationPtr = ^NSCompositingOperation;
  54. NSBackingStoreType = NSUInteger;
  55. NSBackingStoreTypePtr = ^NSBackingStoreType;
  56. NSWindowOrderingMode = NSInteger;
  57. NSWindowOrderingModePtr = ^NSWindowOrderingMode;
  58. NSFocusRingPlacement = NSUInteger;
  59. NSFocusRingPlacementPtr = ^NSFocusRingPlacement;
  60. NSFocusRingType = NSUInteger;
  61. NSFocusRingTypePtr = ^NSFocusRingType;
  62. NSColorRenderingIntent = NSInteger;
  63. NSColorRenderingIntentPtr = ^NSColorRenderingIntent;
  64. NSWindowDepth = cint;
  65. NSWindowDepthPtr = ^NSWindowDepth;
  66. NSAnimationEffect = NSUInteger;
  67. NSAnimationEffectPtr = ^NSAnimationEffect;
  68. {$endif}
  69. {$endif}
  70. {$ifdef RECORDS}
  71. {$ifndef NSGRAPHICS_PAS_R}
  72. {$define NSGRAPHICS_PAS_R}
  73. {$endif}
  74. {$endif}
  75. {$ifdef FUNCTIONS}
  76. {$ifndef NSGRAPHICS_PAS_F}
  77. {$define NSGRAPHICS_PAS_F}
  78. { Functions }
  79. function NSBestDepth(colorSpace: NSString; bps: NSInteger; bpp: NSInteger; planar: Boolean; exactMatch: pboolean): NSWindowDepth; cdecl; external;
  80. function NSPlanarFromDepth(depth: NSWindowDepth): Boolean; cdecl; external;
  81. function NSColorSpaceFromDepth(depth: NSWindowDepth): NSString; cdecl; external;
  82. function NSBitsPerSampleFromDepth(depth: NSWindowDepth): NSInteger; cdecl; external;
  83. function NSBitsPerPixelFromDepth(depth: NSWindowDepth): NSInteger; cdecl; external;
  84. function NSNumberOfColorComponents(colorSpaceName: NSString): NSInteger; cdecl; external;
  85. function NSAvailableWindowDepths: NSWindowDepthPtr; cdecl; external;
  86. procedure NSRectFill(aRect: NSRect); cdecl; external;
  87. procedure NSRectFillList(rects: NSRectPtr; count: NSInteger); cdecl; external;
  88. procedure NSRectFillListWithGrays(rects: NSRectPtr; grays: CGFloatPtr; num: NSInteger); cdecl; external;
  89. procedure NSRectFillListWithColors(rects: NSRectPtr; colors: NSColorPointer; num: NSInteger); cdecl; external;
  90. procedure NSRectFillUsingOperation(aRect: NSRect; op: NSCompositingOperation); cdecl; external;
  91. procedure NSRectFillListUsingOperation(rects: NSRectPtr; count: NSInteger; op: NSCompositingOperation); cdecl; external;
  92. procedure NSRectFillListWithColorsUsingOperation(rects: NSRectPtr; colors: NSColorPointer; num: NSInteger; op: NSCompositingOperation); cdecl; external;
  93. procedure NSFrameRect(aRect: NSRect); cdecl; external;
  94. procedure NSFrameRectWithWidth(aRect: NSRect; frameWidth: CGFloat); cdecl; external;
  95. procedure NSFrameRectWithWidthUsingOperation(aRect: NSRect; frameWidth: CGFloat; op: NSCompositingOperation); cdecl; external;
  96. procedure NSRectClip(aRect: NSRect); cdecl; external;
  97. procedure NSRectClipList(rects: NSRectPtr; count: NSInteger); cdecl; external;
  98. function NSDrawTiledRects(boundsRect: NSRect; clipRect: NSRect; sides: NSRectEdgePtr; grays: CGFloatPtr; count: NSInteger): NSRect; cdecl; external;
  99. procedure NSDrawGrayBezel(aRect: NSRect; clipRect: NSRect); cdecl; external;
  100. procedure NSDrawGroove(aRect: NSRect; clipRect: NSRect); cdecl; external;
  101. procedure NSDrawWhiteBezel(aRect: NSRect; clipRect: NSRect); cdecl; external;
  102. procedure NSDrawButton(aRect: NSRect; clipRect: NSRect); cdecl; external;
  103. procedure NSEraseRect(aRect: NSRect); cdecl; external;
  104. function NSReadPixel(passedPoint: NSPoint): NSColor; cdecl; external;
  105. procedure NSDrawBitmap(rect: NSRect; width: NSInteger; height: NSInteger; bps: NSInteger; spp: NSInteger; bpp: NSInteger; bpr: NSInteger; isPlanar: Boolean; hasAlpha: Boolean; colorSpaceName: NSString; data: PPChar {array of PChar}); cdecl; external;
  106. procedure NSCopyBits(srcGState: NSInteger; srcRect: NSRect; destPoint: NSPoint); cdecl; external;
  107. procedure NSHighlightRect(aRect: NSRect); cdecl; external;
  108. procedure NSBeep; cdecl; external;
  109. function NSGetWindowServerMemory(context: NSInteger; virtualMemory: NSIntegerPtr; windowBackingMemory: NSIntegerPtr; windowDumpString: NSStringPointer): NSInteger; cdecl; external;
  110. function NSDrawColorTiledRects(boundsRect: NSRect; clipRect: NSRect; sides: NSRectEdgePtr; colors: NSColorPointer; count: NSInteger): NSRect; cdecl; external;
  111. procedure NSDrawDarkBezel(aRect: NSRect; clipRect: NSRect); cdecl; external;
  112. procedure NSDrawLightBezel(aRect: NSRect; clipRect: NSRect); cdecl; external;
  113. procedure NSDottedFrameRect(aRect: NSRect); cdecl; external;
  114. procedure NSDrawWindowBackground(aRect: NSRect); cdecl; external;
  115. procedure NSSetFocusRingStyle(placement: NSFocusRingPlacement); cdecl; external;
  116. procedure NSDisableScreenUpdates; cdecl; external;
  117. procedure NSEnableScreenUpdates; cdecl; external;
  118. procedure NSShowAnimationEffect(animationEffect: NSAnimationEffect; centerLocation: NSPoint; size: NSSize; animationDelegate: id; didEndSelector: SEL; contextInfo: Pointer); cdecl; external;
  119. procedure NSCountWindows(count: NSIntegerPtr); cdecl; external;
  120. procedure NSWindowList(size: NSInteger; list: NSIntegerPtr {array of NSInteger}); cdecl; external;
  121. procedure NSCountWindowsForContext(context: NSInteger; count: NSIntegerPtr); cdecl; external;
  122. procedure NSWindowListForContext(context: NSInteger; size: NSInteger; list: NSIntegerPtr {array of NSInteger}); cdecl; external;
  123. {$endif}
  124. {$endif}
  125. {$ifdef EXTERNAL_SYMBOLS}
  126. {$ifndef NSGRAPHICS_PAS_S}
  127. {$define NSGRAPHICS_PAS_S}
  128. { External string constants }
  129. var
  130. NSCalibratedWhiteColorSpace: NSString; cvar; external;
  131. NSCalibratedRGBColorSpace: NSString; cvar; external;
  132. NSDeviceWhiteColorSpace: NSString; cvar; external;
  133. NSDeviceRGBColorSpace: NSString; cvar; external;
  134. NSDeviceCMYKColorSpace: NSString; cvar; external;
  135. NSNamedColorSpace: NSString; cvar; external;
  136. NSPatternColorSpace: NSString; cvar; external;
  137. NSCustomColorSpace: NSString; cvar; external;
  138. NSCalibratedBlackColorSpace: NSString deprecated 'in Mac OS X 10.6 and later'; cvar; external;
  139. NSDeviceBlackColorSpace: NSString deprecated 'in Mac OS X 10.6 and later'; cvar; external;
  140. NSDeviceResolution: NSString; cvar; external;
  141. NSDeviceColorSpaceName: NSString; cvar; external;
  142. NSDeviceBitsPerSample: NSString; cvar; external;
  143. NSDeviceIsScreen: NSString; cvar; external;
  144. NSDeviceIsPrinter: NSString; cvar; external;
  145. NSDeviceSize: NSString; cvar; external;
  146. { External symbols }
  147. var
  148. NSWhite: CGFloat; cvar; external;
  149. NSLightGray: CGFloat; cvar; external;
  150. NSDarkGray: CGFloat; cvar; external;
  151. NSBlack: CGFloat; cvar; external;
  152. {$endif}
  153. {$endif}