mirror of
https://github.com/danog/Telegram.git
synced 2024-12-04 02:17:51 +01:00
28 lines
764 B
Objective-C
28 lines
764 B
Objective-C
#import <UIKit/UIKit.h>
|
|
|
|
typedef enum
|
|
{
|
|
TGShareToolbarTabNone = 0,
|
|
TGShareToolbarTabCaption = 1 << 0,
|
|
TGShareToolbarTabCrop = 1 << 1,
|
|
TGShareToolbarTabAdjustments = 1 << 2,
|
|
TGShareToolbarTabRotate = 1 << 3
|
|
} TGShareToolbarTab;
|
|
|
|
@interface TGShareToolbarView : UIView
|
|
|
|
@property (nonatomic, strong) NSString *leftButtonTitle;
|
|
@property (nonatomic, strong) NSString *rightButtonTitle;
|
|
|
|
@property (nonatomic, copy) void (^leftPressed)(void);
|
|
@property (nonatomic, copy) void (^rightPressed)(void);
|
|
|
|
- (void)setHidden:(bool)hidden animated:(bool)animated;
|
|
|
|
- (void)setRightButtonHidden:(bool)hidden;
|
|
- (void)setRightButtonEnabled:(bool)enabled animated:(bool)animated;
|
|
|
|
- (void)setToolbarTabs:(TGShareToolbarTab)tabs animated:(bool)animated;
|
|
|
|
@end
|