mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
39 lines
980 B
Objective-C
39 lines
980 B
Objective-C
#import "TGPhotoPaintEntityView.h"
|
|
#import "TGPhotoPaintTextEntity.h"
|
|
|
|
@class TGPaintSwatch;
|
|
|
|
@interface TGPhotoTextSelectionView : TGPhotoPaintEntitySelectionView
|
|
|
|
@end
|
|
|
|
|
|
@interface TGPhotoTextEntityView : TGPhotoPaintEntityView
|
|
|
|
@property (nonatomic, readonly) TGPhotoPaintTextEntity *entity;
|
|
|
|
@property (nonatomic, readonly) bool isEmpty;
|
|
|
|
@property (nonatomic, copy) void (^beganEditing)(TGPhotoTextEntityView *);
|
|
@property (nonatomic, copy) void (^finishedEditing)(TGPhotoTextEntityView *);
|
|
|
|
- (instancetype)initWithEntity:(TGPhotoPaintTextEntity *)entity;
|
|
- (void)setFont:(TGPhotoPaintFont *)font;
|
|
- (void)setSwatch:(TGPaintSwatch *)swatch;
|
|
- (void)setStroke:(bool)stroke;
|
|
|
|
@property (nonatomic, readonly) bool isEditing;
|
|
- (void)beginEditing;
|
|
- (void)endEditing;
|
|
|
|
@end
|
|
|
|
|
|
@interface TGPhotoTextView : UITextView
|
|
|
|
@property (nonatomic, strong) UIColor *strokeColor;
|
|
@property (nonatomic, assign) CGFloat strokeWidth;
|
|
@property (nonatomic, assign) CGPoint strokeOffset;
|
|
|
|
@end
|