PSTCollectionViewItemKey.h 878 B

12345678910111213141516171819202122232425262728
  1. //
  2. // PSTCollectionViewItemKey.h
  3. // PSPDFKit
  4. //
  5. // Copyright (c) 2012-2013 Peter Steinberger. All rights reserved.
  6. //
  7. #import "PSTCollectionViewCommon.h"
  8. #import "PSTCollectionViewLayout.h"
  9. extern NSString *const PSTCollectionElementKindCell;
  10. extern NSString *const PSTCollectionElementKindDecorationView;
  11. @class PSTCollectionViewLayoutAttributes;
  12. NSString *PSTCollectionViewItemTypeToString(PSTCollectionViewItemType type); // debug helper
  13. // Used in NSDictionaries
  14. @interface PSTCollectionViewItemKey : NSObject <NSCopying>
  15. + (id)collectionItemKeyForLayoutAttributes:(PSTCollectionViewLayoutAttributes *)layoutAttributes;
  16. + (id)collectionItemKeyForCellWithIndexPath:(NSIndexPath *)indexPath;
  17. @property (nonatomic, assign) PSTCollectionViewItemType type;
  18. @property (nonatomic, strong) NSIndexPath *indexPath;
  19. @property (nonatomic, strong) NSString *identifier;
  20. @end