-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathASCollectionViewFlowLayoutData.h
27 lines (23 loc) · 1.1 KB
/
ASCollectionViewFlowLayoutData.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
// ASCollectionViewFlowLayoutData.h
// ASCollectionView
//
// Created by Artem Shimanski on 01.08.13.
// Copyright (c) 2013 Artem Shimanski. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ASCollectionViewFlowLayoutSection.h"
@class ASCollectionViewFlowLayout;
@class ASCollectionViewLayoutAttributes;
@interface ASCollectionViewFlowLayoutData : NSObject<NSCopying>
@property (nonatomic, weak) ASCollectionViewFlowLayout* flowLayout;
@property (nonatomic, strong, readonly) NSMutableArray* sections;
@property (nonatomic, assign, readonly) CGSize contentSize;
@property (nonatomic, assign) CGFloat dimension;
- (NSArray *)layoutAttributesForElementsInRect:(CGRect)rect;
- (ASCollectionViewLayoutAttributes *)layoutAttributesForItemAtIndexPath:(NSIndexPath *)indexPath;
- (ASCollectionViewLayoutAttributes *)layoutAttributesForSupplementaryViewOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath;
- (ASCollectionViewLayoutAttributes *)layoutAttributesForPlaceholderInSection:(NSInteger) section;
- (void) addSection:(ASCollectionViewFlowLayoutSection*) section;
- (void) layout;
@end