Permalink
Browse files

Added PSTCollectionElementCategory and exposed layoutAttributesForSup…

…plementaryViewOfKind:atIndexPath: for subclassing layouts
  • Loading branch information...
1 parent 7af778a commit dd53f9b54ba4029535ae9adc9afd8cb8b798a9ae @kgn kgn committed Mar 4, 2013
Showing with 7 additions and 1 deletion.
  1. +6 −0 PSTCollectionView/PSTCollectionView.h
  2. +1 −1 PSTCollectionView/PSTCollectionViewFlowLayout.h
@@ -28,6 +28,12 @@ typedef NS_OPTIONS(NSUInteger, PSTCollectionViewScrollPosition) {
PSTCollectionViewScrollPositionRight = 1 << 5
};
+typedef NS_ENUM(NSUInteger, PSTCollectionElementCategory) {
+ PSTCollectionElementCategoryCell,
+ PSTCollectionElementCategorySupplementaryView,
+ PSTCollectionElementCategoryDecorationView
+};
+
/**
Replacement for UICollectionView for iOS4/5.
Only supports a subset of the features of UICollectionView.
@@ -24,6 +24,7 @@ typedef NS_ENUM(NSInteger, PSTCollectionViewScrollDirection) {
- (CGFloat)collectionView:(PSTCollectionView *)collectionView layout:(PSTCollectionViewLayout*)collectionViewLayout minimumInteritemSpacingForSectionAtIndex:(NSInteger)section;
- (CGSize)collectionView:(PSTCollectionView *)collectionView layout:(PSTCollectionViewLayout*)collectionViewLayout referenceSizeForHeaderInSection:(NSInteger)section;
- (CGSize)collectionView:(PSTCollectionView *)collectionView layout:(PSTCollectionViewLayout*)collectionViewLayout referenceSizeForFooterInSection:(NSInteger)section;
+- (PSTCollectionViewLayoutAttributes *)layoutAttributesForSupplementaryViewOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath;
@end
@@ -104,7 +105,6 @@ typedef NS_ENUM(NSInteger, PSTFlowLayoutHorizontalAlignment) {
- (PSTCollectionViewLayoutAttributes *)_layoutAttributesForItemsInRect:(CGRect)arg1;
- (CGSize)collectionViewContentSize;
- (void)finalizeCollectionViewUpdates;
-- (PSTCollectionViewLayoutAttributes *)layoutAttributesForSupplementaryViewOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath;
- (void)_invalidateButKeepDelegateInfo;
- (void)_invalidateButKeepAllInfo;
- (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)arg1;

0 comments on commit dd53f9b

Please sign in to comment.