1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-04 10:27:46 +01:00
Telegram/Share/TGShareToolbarView.h

28 lines
764 B
C
Raw Normal View History

2016-02-25 01:03:51 +01:00
#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