Files
Ash_AWord/Pods/PSTCollectionView/PSTCollectionView/PSTCollectionViewItemKey.h
T
2015-04-02 09:37:44 +08:00

29 lines
878 B
Objective-C

//
// PSTCollectionViewItemKey.h
// PSPDFKit
//
// Copyright (c) 2012-2013 Peter Steinberger. All rights reserved.
//
#import "PSTCollectionViewCommon.h"
#import "PSTCollectionViewLayout.h"
extern NSString *const PSTCollectionElementKindCell;
extern NSString *const PSTCollectionElementKindDecorationView;
@class PSTCollectionViewLayoutAttributes;
NSString *PSTCollectionViewItemTypeToString(PSTCollectionViewItemType type); // debug helper
// Used in NSDictionaries
@interface PSTCollectionViewItemKey : NSObject <NSCopying>
+ (id)collectionItemKeyForLayoutAttributes:(PSTCollectionViewLayoutAttributes *)layoutAttributes;
+ (id)collectionItemKeyForCellWithIndexPath:(NSIndexPath *)indexPath;
@property (nonatomic, assign) PSTCollectionViewItemType type;
@property (nonatomic, strong) NSIndexPath *indexPath;
@property (nonatomic, strong) NSString *identifier;
@end