1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 09:27:55 +01:00
Telegram/Telegraph/TGMediaPickerLayoutMetrics.h
2016-02-25 01:03:51 +01:00

21 lines
700 B
Objective-C

#import <Foundation/Foundation.h>
@interface TGMediaPickerLayoutMetrics : NSObject
@property (nonatomic, readonly) CGFloat widescreenWidth;
@property (nonatomic, readonly) CGSize normalItemSize;
@property (nonatomic, readonly) CGSize wideItemSize;
@property (nonatomic, readonly) UIEdgeInsets normalEdgeInsets;
@property (nonatomic, readonly) UIEdgeInsets wideEdgeInsets;
@property (nonatomic, readonly) CGFloat normalLineSpacing;
@property (nonatomic, readonly) CGFloat wideLineSpacing;
- (CGSize)imageSize;
- (CGSize)itemSizeForCollectionViewWidth:(CGFloat)collectionViewWidth;
+ (TGMediaPickerLayoutMetrics *)defaultLayoutMetrics;
+ (TGMediaPickerLayoutMetrics *)panoramaLayoutMetrics;
@end