Swiftgram/LegacyComponents/TGMenuSheetButtonItemView.h
Ilya Laktyushin fecf8300ca no message
2018-08-17 18:22:21 +03:00

32 lines
894 B
Objective-C

#import <LegacyComponents/TGMenuSheetItemView.h>
typedef enum
{
TGMenuSheetButtonTypeDefault,
TGMenuSheetButtonTypeCancel,
TGMenuSheetButtonTypeDestructive,
TGMenuSheetButtonTypeSend
} TGMenuSheetButtonType;
@class TGModernButton;
@interface TGMenuSheetButtonItemView : TGMenuSheetItemView
{
TGModernButton *_button;
}
@property (nonatomic, strong) NSString *title;
@property (nonatomic, assign) TGMenuSheetButtonType buttonType;
@property (nonatomic, copy) void(^longPressAction)(void);
@property (nonatomic, copy) void (^action)(void);
@property (nonatomic, assign) bool thickDivider;
- (instancetype)initWithTitle:(NSString *)title type:(TGMenuSheetButtonType)type action:(void (^)(void))action;
@property (nonatomic, assign) bool collapsed;
- (void)setCollapsed:(bool)collapsed animated:(bool)animated;
@end
extern const CGFloat TGMenuSheetButtonItemViewHeight;