Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 17 additions & 15 deletions EGOTextView/EGOTextView.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ extern NSString * const EGOTextAttachmentPlaceholderString;
UITextInputStringTokenizer *_tokenizer;
UITextChecker *_textChecker;
UILongPressGestureRecognizer *_longPress;

BOOL _ignoreSelectionMenu;
BOOL _delegateRespondsToShouldBeginEditing;
BOOL _delegateRespondsToShouldEndEditing;
Expand All @@ -79,47 +79,49 @@ extern NSString * const EGOTextAttachmentPlaceholderString;
BOOL _delegateRespondsToDidChange;
BOOL _delegateRespondsToDidChangeSelection;
BOOL _delegateRespondsToDidSelectURL;

NSAttributedString *_attributedString;
UIFont *_font;
UIFont *_font;
BOOL _editing;
BOOL _editable;
BOOL _editable;
BOOL _spellCheck;
BOOL _dataDetectors;
NSRange _markedRange;

NSRange _markedRange;
NSRange _selectedRange;
NSRange _correctionRange;
NSRange _linkRange;

CTFramesetterRef _framesetter;
CTFrameRef _frame;

EGOContentView *_textContentView;
EGOTextWindow *_textWindow;
EGOCaretView *_caretView;
EGOSelectionView *_selectionView;

NSMutableArray *_attachmentViews;

}

@property(nonatomic) UIDataDetectorTypes dataDetectorTypes; // UIDataDetectorTypeLink supported
@property(nonatomic) UITextAutocapitalizationType autocapitalizationType;
@property(nonatomic) UITextAutocorrectionType autocorrectionType;
@property(nonatomic) UIKeyboardType keyboardType;
@property(nonatomic) UIKeyboardAppearance keyboardAppearance;
@property(nonatomic) UIReturnKeyType returnKeyType;
@property(nonatomic) BOOL enablesReturnKeyAutomatically;
@property(nonatomic) UITextAutocorrectionType autocorrectionType;
@property(nonatomic) UIKeyboardType keyboardType;
@property(nonatomic) UIKeyboardAppearance keyboardAppearance;
@property(nonatomic) UIReturnKeyType returnKeyType;
@property(nonatomic) BOOL enablesReturnKeyAutomatically;

@property(nonatomic,assign) id <EGOTextViewDelegate> delegate;
@property(nonatomic,copy) NSAttributedString *attributedString;
@property(nonatomic,copy) NSString *text;
@property(nonatomic,retain) UIFont *font; // ignored when attributedString is not nil
@property(nonatomic,getter=isEditable) BOOL editable; //default YES
@property(nonatomic) BOOL correctable; //default YES
@property(nonatomic) NSRange selectedRange;
@property(nonatomic) NSRange markedRange;

- (BOOL)hasText;
- (void)replaceNSRange:(NSRange)range withText:(NSString *)text;

@end
@end
Loading