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

43 lines
1.3 KiB
Objective-C

#import <UIKit/UIKit.h>
@class TGMenuSheetView;
typedef enum
{
TGMenuSheetItemTypeDefault,
TGMenuSheetItemTypeHeader,
TGMenuSheetItemTypeFooter
} TGMenuSheetItemType;
@interface TGMenuSheetItemView : UIView
{
CGFloat _screenHeight;
UIUserInterfaceSizeClass _sizeClass;
}
@property (nonatomic, readonly) TGMenuSheetItemType type;
- (instancetype)initWithType:(TGMenuSheetItemType)type;
- (void)setHidden:(bool)hidden animated:(bool)animated;
@property (nonatomic, readonly) CGFloat contentHeightCorrection;
- (CGFloat)preferredHeightForWidth:(CGFloat)width screenHeight:(CGFloat)screenHeight;
@property (nonatomic, assign) bool requiresDivider;
@property (nonatomic, assign) CGFloat screenHeight;
@property (nonatomic, assign) UIUserInterfaceSizeClass sizeClass;
@property (nonatomic, copy) void (^layoutUpdateBlock)(void);
- (void)requestMenuLayoutUpdate;
@property (nonatomic, copy) void (^highlightUpdateBlock)(bool highlighted);
- (void)menuView:(TGMenuSheetView *)menuView willAppearAnimated:(bool)animated;
- (void)menuView:(TGMenuSheetView *)menuView didAppearAnimated:(bool)animated;
- (void)menuView:(TGMenuSheetView *)menuView willDisappearAnimated:(bool)animated;
- (void)menuView:(TGMenuSheetView *)menuView didDisappearAnimated:(bool)animated;
@end