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

42 lines
1.3 KiB
Objective-C

//
// PSTCollectionViewUpdateItem.h
// PSPDFKit
//
// Copyright (c) 2012-2013 Peter Steinberger. All rights reserved.
// Contributed by Sergey Gavrilyuk.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, PSTCollectionUpdateAction) {
PSTCollectionUpdateActionInsert,
PSTCollectionUpdateActionDelete,
PSTCollectionUpdateActionReload,
PSTCollectionUpdateActionMove,
PSTCollectionUpdateActionNone
};
@interface PSTCollectionViewUpdateItem : NSObject
@property (nonatomic, readonly, strong) NSIndexPath *indexPathBeforeUpdate; // nil for PSTCollectionUpdateActionInsert
@property (nonatomic, readonly, strong) NSIndexPath *indexPathAfterUpdate; // nil for PSTCollectionUpdateActionDelete
@property (nonatomic, readonly, assign) PSTCollectionUpdateAction updateAction;
- (id)initWithInitialIndexPath:(NSIndexPath *)arg1
finalIndexPath:(NSIndexPath *)arg2
updateAction:(PSTCollectionUpdateAction)arg3;
- (id)initWithAction:(PSTCollectionUpdateAction)arg1
forIndexPath:(NSIndexPath *)indexPath;
- (id)initWithOldIndexPath:(NSIndexPath *)arg1 newIndexPath:(NSIndexPath *)arg2;
- (PSTCollectionUpdateAction)updateAction;
- (NSComparisonResult)compareIndexPaths:(PSTCollectionViewUpdateItem *)otherItem;
- (NSComparisonResult)inverseCompareIndexPaths:(PSTCollectionViewUpdateItem *)otherItem;
@end