mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-15 15:59:26 +00:00
32 lines
921 B
Objective-C
32 lines
921 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 fontSize:(CGFloat)fontSize action:(void (^)(void))action;
|
|
|
|
@property (nonatomic, assign) bool collapsed;
|
|
- (void)setCollapsed:(bool)collapsed animated:(bool)animated;
|
|
|
|
@end
|
|
|
|
extern const CGFloat TGMenuSheetButtonItemViewHeight;
|