Skip to content

Commit

Permalink
Added PSTCollectionElementCategory and exposed layoutAttributesForSup…
Browse files Browse the repository at this point in the history
…plementaryViewOfKind:atIndexPath: for subclassing layouts
  • Loading branch information
kgn committed Mar 4, 2013
1 parent 7af778a commit dd53f9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions PSTCollectionView/PSTCollectionView.h
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion PSTCollectionView/PSTCollectionViewFlowLayout.h
Expand Up @@ -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

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit dd53f9b

Please sign in to comment.