NSImageCell.inc 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. { Parsed from Appkit.framework NSImageCell.h }
  2. {$ifdef TYPES}
  3. {$ifndef NSIMAGECELL_PAS_T}
  4. {$define NSIMAGECELL_PAS_T}
  5. { Constants }
  6. const
  7. NSImageAlignCenter = 0;
  8. NSImageAlignTop = 1;
  9. NSImageAlignTopLeft = 2;
  10. NSImageAlignTopRight = 3;
  11. NSImageAlignLeft = 4;
  12. NSImageAlignBottom = 5;
  13. NSImageAlignBottomLeft = 6;
  14. NSImageAlignBottomRight = 7;
  15. NSImageAlignRight = 8;
  16. const
  17. NSImageFrameNone = 0;
  18. NSImageFramePhoto = 1;
  19. NSImageFrameGrayBezel = 2;
  20. NSImageFrameGroove = 3;
  21. NSImageFrameButton = 4;
  22. { Types }
  23. type
  24. NSImageAlignment = NSUInteger;
  25. NSImageAlignmentPtr = ^NSImageAlignment;
  26. NSImageFrameStyle = NSUInteger;
  27. NSImageFrameStylePtr = ^NSImageFrameStyle;
  28. {$endif}
  29. {$endif}
  30. {$ifdef RECORDS}
  31. {$ifndef NSIMAGECELL_PAS_R}
  32. {$define NSIMAGECELL_PAS_R}
  33. {$endif}
  34. {$endif}
  35. {$ifdef FUNCTIONS}
  36. {$ifndef NSIMAGECELL_PAS_F}
  37. {$define NSIMAGECELL_PAS_F}
  38. {$endif}
  39. {$endif}
  40. {$ifdef EXTERNAL_SYMBOLS}
  41. {$ifndef NSIMAGECELL_PAS_S}
  42. {$define NSIMAGECELL_PAS_S}
  43. {$endif}
  44. {$endif}
  45. {$ifdef FORWARD}
  46. NSImageCell = objcclass;
  47. NSImageCellPointer = ^NSImageCell;
  48. NSImageCellPtr = NSImageCellPointer;
  49. {$endif}
  50. {$ifdef CLASSES}
  51. {$ifndef NSIMAGECELL_PAS_C}
  52. {$define NSIMAGECELL_PAS_C}
  53. { NSImageCell }
  54. NSImageCell = objcclass external (NSCell, NSCopyingProtocol, NSCodingProtocol)
  55. private
  56. _controlView: id;
  57. __icFlags: bitpacked record
  58. case byte of
  59. 0: (_anonbitfield_NSImageCell0: cuint);
  60. 1: (
  61. _unused: 0..((1 shl 22)-1);
  62. _animates: 0..1;
  63. _align: 0..((1 shl 4)-1);
  64. _scale: 0..((1 shl 2)-1);
  65. _style: 0..((1 shl 3)-1);
  66. );
  67. end;
  68. __animationState: Pointer;
  69. _scaledImage: NSImage;
  70. public
  71. function imageAlignment: NSImageAlignment; message 'imageAlignment';
  72. procedure setImageAlignment(newAlign: NSImageAlignment); message 'setImageAlignment:';
  73. function imageScaling: NSImageScaling; message 'imageScaling';
  74. procedure setImageScaling(newScaling: NSImageScaling); message 'setImageScaling:';
  75. function imageFrameStyle: NSImageFrameStyle; message 'imageFrameStyle';
  76. procedure setImageFrameStyle(newStyle: NSImageFrameStyle); message 'setImageFrameStyle:';
  77. { Adopted Protocols }
  78. function copyWithZone(zone_: NSZonePtr): id;
  79. procedure encodeWithCoder(aCoder: NSCoder);
  80. function initWithCoder(aDecoder: NSCoder): id;
  81. end;
  82. {$endif}
  83. {$endif}