mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00

git-subtree-dir: submodules/LegacyComponents git-subtree-mainline: 608630530451e02e5aec48389d144dbf7a3625b9 git-subtree-split: d5594346161c1b7f203d1e87068bbe77bcaac019
33 lines
1.1 KiB
Objective-C
33 lines
1.1 KiB
Objective-C
#import <UIKit/UIKit.h>
|
|
|
|
@class TGMediaAssetsPallete;
|
|
|
|
@interface TGMediaPickerToolbarView : UIView
|
|
|
|
@property (nonatomic, assign) UIEdgeInsets safeAreaInset;
|
|
|
|
@property (nonatomic, strong) UIImage *attributionImage;
|
|
@property (nonatomic, strong) NSString *leftButtonTitle;
|
|
@property (nonatomic, strong) NSString *rightButtonTitle;
|
|
|
|
@property (nonatomic, readonly) UIButton *centerButton;
|
|
@property (nonatomic, strong) UIImage *centerButtonImage;
|
|
@property (nonatomic, strong) UIImage *centerButtonSelectedImage;
|
|
|
|
@property (nonatomic, copy) void (^leftPressed)(void);
|
|
@property (nonatomic, copy) void (^rightPressed)(void);
|
|
@property (nonatomic, copy) void (^centerPressed)(void);
|
|
|
|
- (void)setPallete:(TGMediaAssetsPallete *)pallete;
|
|
|
|
- (void)setRightButtonHidden:(bool)hidden;
|
|
- (void)setRightButtonEnabled:(bool)enabled animated:(bool)animated;
|
|
- (void)setSelectedCount:(NSInteger)count animated:(bool)animated;
|
|
|
|
- (void)setCenterButtonSelected:(bool)selected;
|
|
- (void)setCenterButtonHidden:(bool)hidden animated:(bool)animated;
|
|
|
|
@end
|
|
|
|
extern const CGFloat TGMediaPickerToolbarHeight;
|