NSGraphicsContext.inc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. { Parsed from Appkit.framework NSGraphicsContext.h }
  2. {$ifdef TYPES}
  3. {$ifndef NSGRAPHICSCONTEXT_PAS_T}
  4. {$define NSGRAPHICSCONTEXT_PAS_T}
  5. { Constants }
  6. const
  7. NSImageInterpolationDefault = 0;
  8. NSImageInterpolationNone = 1;
  9. NSImageInterpolationLow = 2;
  10. NSImageInterpolationMedium = 4;
  11. NSImageInterpolationHigh = 3;
  12. { Types }
  13. type
  14. NSImageInterpolation = NSUInteger;
  15. NSImageInterpolationPtr = ^NSImageInterpolation;
  16. {$endif}
  17. {$endif}
  18. {$ifdef RECORDS}
  19. {$ifndef NSGRAPHICSCONTEXT_PAS_R}
  20. {$define NSGRAPHICSCONTEXT_PAS_R}
  21. {$endif}
  22. {$endif}
  23. {$ifdef FUNCTIONS}
  24. {$ifndef NSGRAPHICSCONTEXT_PAS_F}
  25. {$define NSGRAPHICSCONTEXT_PAS_F}
  26. {$endif}
  27. {$endif}
  28. {$ifdef EXTERNAL_SYMBOLS}
  29. {$ifndef NSGRAPHICSCONTEXT_PAS_S}
  30. {$define NSGRAPHICSCONTEXT_PAS_S}
  31. { External string constants }
  32. var
  33. NSGraphicsContextDestinationAttributeName: NSString; cvar; external;
  34. NSGraphicsContextRepresentationFormatAttributeName: NSString; cvar; external;
  35. NSGraphicsContextPSFormat: NSString; cvar; external;
  36. NSGraphicsContextPDFFormat: NSString; cvar; external;
  37. {$endif}
  38. {$endif}
  39. {$ifdef FORWARD}
  40. NSGraphicsContext = objcclass;
  41. NSGraphicsContextPointer = ^NSGraphicsContext;
  42. NSGraphicsContextPtr = NSGraphicsContextPointer;
  43. {$endif}
  44. {$ifdef CLASSES}
  45. {$ifndef NSGRAPHICSCONTEXT_PAS_C}
  46. {$define NSGRAPHICSCONTEXT_PAS_C}
  47. { NSGraphicsContext }
  48. NSGraphicsContext = objcclass external (NSObject)
  49. public
  50. class function graphicsContextWithAttributes(attributes_: NSDictionary): NSGraphicsContext; message 'graphicsContextWithAttributes:';
  51. class function graphicsContextWithWindow(window: NSWindow): NSGraphicsContext; message 'graphicsContextWithWindow:';
  52. class function graphicsContextWithBitmapImageRep(bitmapRep: NSBitmapImageRep): NSGraphicsContext; message 'graphicsContextWithBitmapImageRep:';
  53. class function graphicsContextWithGraphicsPort_flipped(graphicsPort_: Pointer; initialFlippedState: Boolean): NSGraphicsContext; message 'graphicsContextWithGraphicsPort:flipped:';
  54. class function currentContext: NSGraphicsContext; message 'currentContext';
  55. class procedure setCurrentContext(context: NSGraphicsContext); message 'setCurrentContext:';
  56. class function currentContextDrawingToScreen: Boolean; message 'currentContextDrawingToScreen';
  57. class procedure saveGraphicsState; message 'saveGraphicsState';
  58. class procedure restoreGraphicsState; message 'restoreGraphicsState';
  59. class procedure setGraphicsState(gState: NSInteger); message 'setGraphicsState:';
  60. function attributes: NSDictionary; message 'attributes';
  61. function isDrawingToScreen: Boolean; message 'isDrawingToScreen';
  62. procedure flushGraphics; message 'flushGraphics';
  63. function graphicsPort: Pointer; message 'graphicsPort';
  64. function isFlipped: Boolean; message 'isFlipped';
  65. end;
  66. { NSQuartzCoreAdditionsCategory }
  67. NSQuartzCoreAdditionsCategory = objccategory external (NSGraphicsContext)
  68. function CIContext: CIContext; message 'CIContext';
  69. end;
  70. { NSGraphicsContextDeprecatedCategory }
  71. NSGraphicsContextDeprecatedCategory = objccategory external (NSGraphicsContext)
  72. function focusStack: id; message 'focusStack';
  73. procedure setFocusStack(stack: id); message 'setFocusStack:';
  74. end;
  75. {$endif}
  76. {$endif}