mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Build ChatListUI
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
#import <LegacyComponents/LegacyComponentsContext.h>
|
||||
|
||||
@class TGPaintSwatch;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TGPhotoPaintSettingsViewIconBrush,
|
||||
TGPhotoPaintSettingsViewIconText,
|
||||
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 (^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;
|
||||
|
||||
+ (UIImage *)landscapeLeftBackgroundImage;
|
||||
+ (UIImage *)landscapeRightBackgroundImage;
|
||||
+ (UIImage *)portraitBackgroundImage;
|
||||
|
||||
@end
|
||||
|
||||
@protocol TGPhotoPaintPanelView
|
||||
|
||||
@property (nonatomic, assign) UIInterfaceOrientation interfaceOrientation;
|
||||
|
||||
- (void)present;
|
||||
- (void)dismissWithCompletion:(void (^)(void))completion;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user