#include <accessibility_text_entry.h>
An implementation of UITextInput
used for text fields that do not currently have input focus.
This class is used by TextInputSemanticsObject
.
Definition at line 14 of file accessibility_text_entry.h.
◆ baseWritingDirectionForPosition:inDirection:
- (UITextWritingDirection) baseWritingDirectionForPosition: |
|
(UITextPosition*) |
position |
inDirection: |
|
(UITextStorageDirection) |
direction |
|
|
| |
|
implementation |
Definition at line 10 of file accessibility_text_entry.mm.
114 :(UITextPosition*)position
115 inDirection:(UITextStorageDirection)direction {
116
117 return UITextWritingDirectionNatural;
118}
◆ caretRectForPosition:
- (CGRect) caretRectForPosition: |
|
(UITextPosition*) |
position |
|
|
implementation |
◆ characterRangeAtPoint:
- (UITextRange *) characterRangeAtPoint: |
|
(CGPoint) |
point |
|
|
implementation |
◆ characterRangeByExtendingPosition:inDirection:
- (UITextRange *) characterRangeByExtendingPosition: |
|
(UITextPosition*) |
position |
inDirection: |
|
(UITextLayoutDirection) |
direction |
|
|
| |
|
implementation |
Definition at line 10 of file accessibility_text_entry.mm.
106 :(UITextPosition*)position
107 inDirection:(UITextLayoutDirection)direction {
108
109
110
111 return nil;
112}
◆ closestPositionToPoint:
- (UITextPosition *) closestPositionToPoint: |
|
(CGPoint) |
point |
|
|
implementation |
◆ closestPositionToPoint:withinRange:
Definition at line 10 of file accessibility_text_entry.mm.
146 :(CGPoint)point withinRange:(UITextRange*)range {
147
148
149
150 return nil;
151}
◆ comparePosition:toPosition:
- (NSComparisonResult) comparePosition: |
|
(UITextPosition*) |
position |
toPosition: |
|
(UITextPosition*) |
other |
|
|
| |
|
implementation |
Definition at line 10 of file accessibility_text_entry.mm.
84 :(UITextPosition*)position toPosition:(UITextPosition*)other {
85
86
87
88 return NSOrderedSame;
89}
◆ dealloc
Definition at line 10 of file accessibility_text_entry.mm.
19 {
20 [_text release];
21 [_markedText release];
22 [_markedTextRange release];
23 [_selectedTextRange release];
24 [_markedTextStyle release];
25 [super dealloc];
26}
◆ deleteBackward
◆ firstRectForRange:
- (CGRect) firstRectForRange: |
|
(UITextRange*) |
range |
|
|
implementation |
◆ hasText
◆ insertText:
- (void) insertText: |
|
(NSString*) |
text |
|
|
implementation |
◆ offsetFromPosition:toPosition:
- (NSInteger) offsetFromPosition: |
|
(UITextPosition*) |
from |
toPosition: |
|
(UITextPosition*) |
toPosition |
|
|
| |
|
implementation |
Definition at line 10 of file accessibility_text_entry.mm.
91 :(UITextPosition*)from toPosition:(UITextPosition*)toPosition {
92
93
94
95 return 0;
96}
◆ positionFromPosition:inDirection:offset:
- (UITextPosition *) positionFromPosition: |
|
(UITextPosition*) |
position |
inDirection: |
|
(UITextLayoutDirection) |
direction |
offset: |
|
(NSInteger) |
offset |
|
|
| |
|
implementation |
Definition at line 10 of file accessibility_text_entry.mm.
75 :(UITextPosition*)position
76 inDirection:(UITextLayoutDirection)direction
78
79
80
81 return nil;
82}
◆ positionFromPosition:offset:
- (UITextPosition *) positionFromPosition: |
|
(UITextPosition*) |
position |
offset: |
|
(NSInteger) |
offset |
|
|
| |
|
implementation |
◆ positionWithinRange:farthestInDirection:
- (UITextPosition *) positionWithinRange: |
|
(UITextRange*) |
range |
farthestInDirection: |
|
(UITextLayoutDirection) |
direction |
|
|
| |
|
implementation |
Definition at line 10 of file accessibility_text_entry.mm.
98 :(UITextRange*)range
99 farthestInDirection:(UITextLayoutDirection)direction {
100
101
102
103 return nil;
104}
◆ replaceRange:withText:
- (void) replaceRange: |
|
(UITextRange*) |
range |
withText: |
|
(NSString*) |
text |
|
|
| |
|
implementation |
◆ selectionRectsForRange:
- (NSArray *) selectionRectsForRange: |
|
(UITextRange*) |
range |
|
|
implementation |
◆ setBaseWritingDirection:forRange:
- (void) setBaseWritingDirection: |
|
(UITextWritingDirection) |
writingDirection |
forRange: |
|
(UITextRange*) |
range |
|
|
| |
|
implementation |
Definition at line 10 of file accessibility_text_entry.mm.
120 :(UITextWritingDirection)writingDirection
121 forRange:(UITextRange*)range {
122
123}
◆ setMarkedText:selectedRange:
- (void) setMarkedText: |
|
(NSString*) |
markedText |
selectedRange: |
|
(NSRange) |
markedSelectedRange |
|
|
| |
|
implementation |
◆ textInRange:
- (NSString *) textInRange: |
|
(UITextRange*) |
range |
|
|
implementation |
Definition at line 10 of file accessibility_text_entry.mm.
32 :(UITextRange*)range {
33 if (!range) {
34 return nil;
35 }
37 @"Expected a FlutterTextRange for range (got %@).", [range class]);
39 NSAssert(textRange.location != NSNotFound, @"Expected a valid text range.");
40 return [self.text substringWithRange:textRange];
41}
◆ textRangeFromPosition:toPosition:
- (UITextRange *) textRangeFromPosition: |
|
(UITextPosition*) |
fromPosition |
toPosition: |
|
(UITextPosition*) |
toPosition |
|
|
| |
|
implementation |
◆ unmarkText
◆ inputDelegate
- (id<UITextInputDelegate>) inputDelegate |
|
readwritenonatomicassign |
◆ markedText
- (NSMutableString*) markedText |
|
readnonatomiccopy |
◆ markedTextRange
- (UITextRange*) markedTextRange |
|
readnonatomicstrong |
◆ markedTextStyle
- (NSDictionary<NSAttributedStringKey, id>*) markedTextStyle |
|
readwritenonatomiccopy |
◆ selectedTextRange
- (UITextRange*) selectedTextRange |
|
readwriteatomiccopy |
◆ text
The documentation for this class was generated from the following files: