2017-02-11 01:58:52 +00:00
|
|
|
/**
|
|
|
|
|
* Copyright (c) 2016-present, Facebook, Inc.
|
|
|
|
|
*
|
2018-05-01 21:33:50 +00:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2017-02-11 01:58:52 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
|
|
@class IGLayoutTestItem;
|
|
|
|
|
|
2017-12-15 17:19:24 +00:00
|
|
|
#define genLayoutTestSection(i) [[IGLayoutTestSection alloc] initWithItems:i]
|
|
|
|
|
|
2017-02-11 01:58:52 +00:00
|
|
|
@interface IGLayoutTestSection : NSObject
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, assign, readonly) UIEdgeInsets insets;
|
|
|
|
|
@property (nonatomic, assign, readonly) CGFloat lineSpacing;
|
|
|
|
|
@property (nonatomic, assign, readonly) CGFloat interitemSpacing;
|
|
|
|
|
@property (nonatomic, assign, readonly) CGFloat headerHeight;
|
2017-11-21 20:39:09 +00:00
|
|
|
@property (nonatomic, assign, readonly) CGFloat footerHeight;
|
2017-02-11 01:58:52 +00:00
|
|
|
@property (nonatomic, strong, readonly) NSArray<IGLayoutTestItem *> *items;
|
|
|
|
|
|
2017-12-15 17:19:24 +00:00
|
|
|
- (instancetype)initWithItems:(NSArray<IGLayoutTestItem *> *)items;
|
|
|
|
|
|
2017-02-11 01:58:52 +00:00
|
|
|
- (instancetype)initWithInsets:(UIEdgeInsets)insets
|
|
|
|
|
lineSpacing:(CGFloat)lineSpacing
|
|
|
|
|
interitemSpacing:(CGFloat)interitemSpacing
|
|
|
|
|
headerHeight:(CGFloat)headerHeight
|
2017-11-21 20:39:09 +00:00
|
|
|
footerHeight:(CGFloat)footerHeight
|
2017-12-15 17:19:24 +00:00
|
|
|
items:(NSArray<IGLayoutTestItem *> *)items NS_DESIGNATED_INITIALIZER;
|
2017-02-11 01:58:52 +00:00
|
|
|
|
2017-12-15 17:19:29 +00:00
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
|
|
|
+ (instancetype)new NS_UNAVAILABLE;
|
|
|
|
|
|
2017-02-11 01:58:52 +00:00
|
|
|
@end
|