-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFFXCollectionViewMasonryLayoutLogic_Internal.h
More file actions
31 lines (28 loc) · 1.37 KB
/
FFXCollectionViewMasonryLayoutLogic_Internal.h
File metadata and controls
31 lines (28 loc) · 1.37 KB
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
28
29
30
31
//
// FFXCollectionViewMasonryLayoutLogic_Internal.h
// FFXCollectionViewMasonryLayout
//
// Created by Sebastian Boldt on 16.02.15.
// Copyright (c) 2015 Empora. All rights reserved.
//
/***** This class makes private methods public for using them inside unit tests *********/
#import <Foundation/Foundation.h>
#import "FFXCollectionViewMasonryLayoutLogic.h"
@interface FFXCollectionViewMasonryLayoutLogic()
-(void)prepare;
-(NSMutableArray*)prepareMasterStackForSection:(NSInteger)numberOfItems;
-(NSIndexPath*)getNextElement:(BOOL)allowFullspan withMeasurementBlock:(FFXMeasureItemBlock)measurementBlock;
-(void)appendFullSpanElement:(NSIndexPath*)item beforeWasFullSpan:(BOOL)beforeWasFullSpan withMeasurmentBlock:(FFXMeasureItemBlock)measurementBlock;
-(void)appendElement:(NSIndexPath*)item withMeasurementBlock:(FFXMeasureItemBlock)measurementBlock;
-(CGFloat)getWidthOfItem;
-(void)recalculateHeightOfAllElementsAfterFullspan:(NSMutableDictionary*)elementsAfterFullSpan;
-(NSInteger)getLastColumnWithLowestYValue;
-(CGFloat)highestValueOfAllLastColumns;
-(CGFloat)lowestValueOfAllLastColumns;
-(void)setLastYValueForAllColums:(NSNumber*)number;
-(BOOL)checkIfElementIsFullSpan:(CGSize)size;
-(void)prepareLastYValueArray;
-(void)prepareAllElementsAfterFullSpan;
@property (nonatomic, strong) NSMutableArray *fullSpanStack;
@property (nonatomic,strong) NSMutableArray * masterStack;
@end