Swiftgram/submodules/LegacyComponents/Sources/TGPhotoPaintSettingsView.h
Ilya Laktyushin 1d2953f342 Cleanup
2020-11-04 22:22:25 +04:00

48 lines
1.5 KiB
Objective-C

#import <UIKit/UIKit.h>
#import <LegacyComponents/LegacyComponentsContext.h>
@class TGPaintSwatch;
typedef enum
{
TGPhotoPaintSettingsViewIconBrushPen,
TGPhotoPaintSettingsViewIconBrushMarker,
TGPhotoPaintSettingsViewIconBrushNeon,
TGPhotoPaintSettingsViewIconBrushArrow,
TGPhotoPaintSettingsViewIconTextRegular,
TGPhotoPaintSettingsViewIconTextOutlined,
TGPhotoPaintSettingsViewIconTextFramed,
TGPhotoPaintSettingsViewIconMirror
} TGPhotoPaintSettingsViewIcon;
@interface TGPhotoPaintSettingsView : UIView
@property (nonatomic, copy) void (^beganColorPicking)(void);
@property (nonatomic, copy) void (^changedColor)(TGPhotoPaintSettingsView *sender, TGPaintSwatch *swatch);
@property (nonatomic, copy) void (^finishedColorPicking)(TGPhotoPaintSettingsView *sender, TGPaintSwatch *swatch);
@property (nonatomic, copy) void (^eyedropperPressed)(void);
@property (nonatomic, copy) void (^settingsPressed)(void);
@property (nonatomic, readonly) UIButton *settingsButton;
@property (nonatomic, strong) TGPaintSwatch *swatch;
@property (nonatomic, assign) UIInterfaceOrientation interfaceOrientation;
- (instancetype)initWithContext:(id<LegacyComponentsContext>)context;
- (void)setIcon:(TGPhotoPaintSettingsViewIcon)icon animated:(bool)animated;
- (void)setHighlighted:(bool)highlighted;
@end
@protocol TGPhotoPaintPanelView
@property (nonatomic, assign) UIInterfaceOrientation interfaceOrientation;
- (void)present;
- (void)dismissWithCompletion:(void (^)(void))completion;
@end