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:
55
submodules/LegacyComponents/Sources/PGPhotoTool.h
Normal file
55
submodules/LegacyComponents/Sources/PGPhotoTool.h
Normal file
@@ -0,0 +1,55 @@
|
||||
#import "PGPhotoEditorItem.h"
|
||||
#import "PGPhotoProcessPass.h"
|
||||
|
||||
@class PGPhotoToolComposer;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
PGPhotoToolTypePass,
|
||||
PGPhotoToolTypeShader
|
||||
} PGPhotoToolType;
|
||||
|
||||
@protocol PGCustomToolValue <NSObject>
|
||||
|
||||
- (id<PGCustomToolValue>)cleanValue;
|
||||
|
||||
@end
|
||||
|
||||
@interface PGPhotoTool : NSObject <PGPhotoEditorItem>
|
||||
{
|
||||
PGPhotoProcessPass *_pass;
|
||||
|
||||
NSString *_identifier;
|
||||
PGPhotoToolType _type;
|
||||
NSInteger _order;
|
||||
|
||||
NSArray *_parameters;
|
||||
NSArray *_constants;
|
||||
|
||||
CGFloat _minimumValue;
|
||||
CGFloat _maximumValue;
|
||||
CGFloat _defaultValue;
|
||||
}
|
||||
|
||||
@property (nonatomic, readonly) PGPhotoToolType type;
|
||||
@property (nonatomic, readonly) NSInteger order;
|
||||
|
||||
@property (nonatomic, readonly) bool isHidden;
|
||||
|
||||
@property (nonatomic, readonly) NSString *shaderString;
|
||||
@property (nonatomic, readonly) NSString *ancillaryShaderString;
|
||||
@property (nonatomic, readonly) PGPhotoProcessPass *pass;
|
||||
|
||||
@property (nonatomic, readonly) bool isSimple;
|
||||
|
||||
@property (nonatomic, weak) PGPhotoToolComposer *toolComposer;
|
||||
|
||||
- (void)invalidate;
|
||||
|
||||
- (NSString *)stringValue;
|
||||
- (NSString *)stringValue:(bool)includeZero;
|
||||
|
||||
- (UIView <TGPhotoEditorToolView> *)itemControlViewWithChangeBlock:(void (^)(id newValue, bool animated))changeBlock explicit:(bool)explicit nameWidth:(CGFloat)nameWidth;
|
||||
- (UIView <TGPhotoEditorToolView> *)itemAreaViewWithChangeBlock:(void (^)(id))changeBlock explicit:(bool)explicit;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user