mirror of
https://github.com/wu736139669/Ash_AWord.git
synced 2026-08-06 06:15:20 +00:00
29 lines
878 B
Objective-C
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
|