NSClipView.inc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. { Parsed from Appkit.framework NSClipView.h }
  2. { Version: 2.1.5 - Fri Feb 11 21:45:55 CET 2011 }
  3. {$ifdef TYPES}
  4. {$ifndef NSCLIPVIEW_PAS_T}
  5. {$define NSCLIPVIEW_PAS_T}
  6. {$endif}
  7. {$endif}
  8. {$ifdef RECORDS}
  9. {$ifndef NSCLIPVIEW_PAS_R}
  10. {$define NSCLIPVIEW_PAS_R}
  11. {$endif}
  12. {$endif}
  13. {$ifdef FUNCTIONS}
  14. {$ifndef NSCLIPVIEW_PAS_F}
  15. {$define NSCLIPVIEW_PAS_F}
  16. {$endif}
  17. {$endif}
  18. {$ifdef EXTERNAL_SYMBOLS}
  19. {$ifndef NSCLIPVIEW_PAS_S}
  20. {$define NSCLIPVIEW_PAS_S}
  21. {$endif}
  22. {$endif}
  23. {$ifdef FORWARD}
  24. NSClipView = objcclass;
  25. NSClipViewPointer = ^NSClipView;
  26. NSClipViewPtr = NSClipViewPointer;
  27. {$endif}
  28. {$ifdef CLASSES}
  29. {$ifndef NSCLIPVIEW_PAS_C}
  30. {$define NSCLIPVIEW_PAS_C}
  31. { NSClipView }
  32. NSClipView = objcclass external (NSView)
  33. private
  34. _backgroundColor: NSColor;
  35. _docView: NSView;
  36. _docRect: NSRect;
  37. _oldDocFrame: NSRect;
  38. _cursor: NSCursor;
  39. _scrollAnimationHelper: id;
  40. __cvFlags: bitpacked record
  41. case byte of
  42. 0: (_anonbitfield_NSClipView0: cuint);
  43. 1: (
  44. _isFlipped: 0..1;
  45. onlyUncovered: 0..1;
  46. reflectScroll: 0..1;
  47. usedByCell: 0..1;
  48. scrollClipTo: 0..1;
  49. noCopyOnScroll: 0..1;
  50. _drawsBackground: 0..1;
  51. scrollInProgress: 0..1;
  52. skipRemoveSuperviewCheck: 0..1;
  53. animateCurrentScroll: 0..1;
  54. canAnimateScrolls: 0..1;
  55. nextScrollRelativeToCurrentPosition: 0..1;
  56. viewBoundsChangedOverridden: 0..1;
  57. viewFrameChangedOverridden: 0..1;
  58. documentViewAlignment: 0..((1 shl 4)-1);
  59. redrawnWhileScrolling: 0..1;
  60. RESERVED: 0..((1 shl 13)-1);
  61. );
  62. end;
  63. public
  64. procedure setBackgroundColor(color: NSColor); message 'setBackgroundColor:';
  65. function backgroundColor: NSColor; message 'backgroundColor';
  66. procedure setDrawsBackground(flag: Boolean); message 'setDrawsBackground:';
  67. function drawsBackground: Boolean; message 'drawsBackground';
  68. procedure setDocumentView(aView: NSView); message 'setDocumentView:';
  69. function documentView: id; message 'documentView';
  70. function documentRect: NSRect; message 'documentRect';
  71. procedure setDocumentCursor(anObj: NSCursor); message 'setDocumentCursor:';
  72. function documentCursor: NSCursor; message 'documentCursor';
  73. function documentVisibleRect: NSRect; message 'documentVisibleRect';
  74. procedure viewFrameChanged(notification: NSNotification); message 'viewFrameChanged:';
  75. procedure viewBoundsChanged(notification: NSNotification); message 'viewBoundsChanged:';
  76. procedure setCopiesOnScroll(flag: Boolean); message 'setCopiesOnScroll:';
  77. function copiesOnScroll: Boolean; message 'copiesOnScroll';
  78. function autoscroll(theEvent: NSEvent): Boolean; message 'autoscroll:';
  79. function constrainScrollPoint(newOrigin: NSPoint): NSPoint; message 'constrainScrollPoint:';
  80. procedure scrollToPoint(newOrigin: NSPoint); message 'scrollToPoint:';
  81. end;
  82. { NSClipViewSuperviewCategory }
  83. NSClipViewSuperviewCategory = objccategory external (NSView)
  84. procedure reflectScrolledClipView(aClipView: NSClipView); message 'reflectScrolledClipView:';
  85. procedure scrollClipView_toPoint(aClipView: NSClipView; aPoint: NSPoint); message 'scrollClipView:toPoint:';
  86. end;
  87. {$endif}
  88. {$endif}