NSIndexSet.inc 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. { Parsed from Foundation.framework NSIndexSet.h }
  2. {$ifdef TYPES}
  3. {$ifndef NSINDEXSET_PAS_T}
  4. {$define NSINDEXSET_PAS_T}
  5. {$endif}
  6. {$endif}
  7. {$ifdef RECORDS}
  8. {$ifndef NSINDEXSET_PAS_R}
  9. {$define NSINDEXSET_PAS_R}
  10. {$endif}
  11. {$endif}
  12. {$ifdef FUNCTIONS}
  13. {$ifndef NSINDEXSET_PAS_F}
  14. {$define NSINDEXSET_PAS_F}
  15. {$endif}
  16. {$endif}
  17. {$ifdef EXTERNAL_SYMBOLS}
  18. {$ifndef NSINDEXSET_PAS_S}
  19. {$define NSINDEXSET_PAS_S}
  20. {$endif}
  21. {$endif}
  22. {$ifdef FORWARD}
  23. NSIndexSet = objcclass;
  24. NSIndexSetPointer = ^NSIndexSet;
  25. NSIndexSetPtr = NSIndexSetPointer;
  26. NSMutableIndexSet = objcclass;
  27. NSMutableIndexSetPointer = ^NSMutableIndexSet;
  28. NSMutableIndexSetPtr = NSMutableIndexSetPointer;
  29. {$endif}
  30. {$ifdef CLASSES}
  31. {$ifndef NSINDEXSET_PAS_C}
  32. {$define NSINDEXSET_PAS_C}
  33. { NSIndexSet }
  34. NSIndexSet = objcclass external (NSObject, NSCopyingProtocol, NSMutableCopyingProtocol, NSCodingProtocol)
  35. private
  36. __indexSetFlags: record
  37. case byte of
  38. 0: (_anonbitfield_NSIndexSet0: NSUInteger);
  39. 1: (data: bitpacked record
  40. _isEmpty: 0..1;
  41. _hasSingleRange: 0..1;
  42. _cacheValid: 0..1;
  43. _reservedArrayBinderController: 0..((1 shl 29)-1);
  44. end;
  45. );
  46. end;
  47. _internal: record
  48. case byte of
  49. 0: (
  50. __singleRange: record
  51. _range: NSRange;
  52. end;
  53. );
  54. 1: (
  55. __multipleRanges: record
  56. _data: Pointer; {garbage collector: __strong }
  57. _reserved: Pointer;
  58. end;
  59. );
  60. end;
  61. public
  62. class function indexSet: id; message 'indexSet';
  63. class function indexSetWithIndex(value: NSUInteger): id; message 'indexSetWithIndex:';
  64. class function indexSetWithIndexesInRange(range: NSRange): id; message 'indexSetWithIndexesInRange:';
  65. function init: id; message 'init';
  66. function initWithIndex(value: NSUInteger): id; message 'initWithIndex:';
  67. function initWithIndexesInRange(range: NSRange): id; message 'initWithIndexesInRange:';
  68. function initWithIndexSet(indexSet_: NSIndexSet): id; message 'initWithIndexSet:';
  69. function isEqualToIndexSet(indexSet_: NSIndexSet): Boolean; message 'isEqualToIndexSet:';
  70. function count: NSUInteger; message 'count';
  71. function firstIndex: NSUInteger; message 'firstIndex';
  72. function lastIndex: NSUInteger; message 'lastIndex';
  73. function indexGreaterThanIndex(value: NSUInteger): NSUInteger; message 'indexGreaterThanIndex:';
  74. function indexLessThanIndex(value: NSUInteger): NSUInteger; message 'indexLessThanIndex:';
  75. function indexGreaterThanOrEqualToIndex(value: NSUInteger): NSUInteger; message 'indexGreaterThanOrEqualToIndex:';
  76. function indexLessThanOrEqualToIndex(value: NSUInteger): NSUInteger; message 'indexLessThanOrEqualToIndex:';
  77. function getIndexes_maxCount_inIndexRange(indexBuffer: NSUIntegerPtr; bufferSize: NSUInteger; range: NSRangePointer): NSUInteger; message 'getIndexes:maxCount:inIndexRange:';
  78. function countOfIndexesInRange(range: NSRange): NSUInteger; message 'countOfIndexesInRange:';
  79. function containsIndex(value: NSUInteger): Boolean; message 'containsIndex:';
  80. function containsIndexesInRange(range: NSRange): Boolean; message 'containsIndexesInRange:';
  81. function containsIndexes(indexSet_: NSIndexSet): Boolean; message 'containsIndexes:';
  82. function intersectsIndexesInRange(range: NSRange): Boolean; message 'intersectsIndexesInRange:';
  83. { Adopted Protocols }
  84. function copyWithZone(zone_: NSZonePtr): id;
  85. function mutableCopyWithZone(zone_: NSZonePtr): id;
  86. procedure encodeWithCoder(aCoder: NSCoder);
  87. function initWithCoder(aDecoder: NSCoder): id;
  88. end;
  89. { NSMutableIndexSet }
  90. NSMutableIndexSet = objcclass external (NSIndexSet)
  91. private
  92. _reserved: Pointer;
  93. public
  94. procedure addIndexes(indexSet_: NSIndexSet); message 'addIndexes:';
  95. procedure removeIndexes(indexSet_: NSIndexSet); message 'removeIndexes:';
  96. procedure removeAllIndexes; message 'removeAllIndexes';
  97. procedure addIndex(value: NSUInteger); message 'addIndex:';
  98. procedure removeIndex(value: NSUInteger); message 'removeIndex:';
  99. procedure addIndexesInRange(range: NSRange); message 'addIndexesInRange:';
  100. procedure removeIndexesInRange(range: NSRange); message 'removeIndexesInRange:';
  101. procedure shiftIndexesStartingAtIndex_by(index: NSUInteger; delta: NSInteger); message 'shiftIndexesStartingAtIndex:by:';
  102. end;
  103. {$endif}
  104. {$endif}