Permalink
Browse files

Merge pull request #250 from kgn/master

PSTCollectionElementCategory and layout subclassing
  • Loading branch information...
2 parents 7af778a + dd53f9b commit 5b2e22bfe44f0b31469cdf4da23c1ec1206e0afe @steipete committed Mar 5, 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 5b2e22b

Please sign in to comment.