An implementation of UITextInput
used for text fields that do not currently have input focus.
This class is used by TextInputSemanticsObject
.
Definition at line 19 of file TextInputSemanticsObject.mm.
◆ baseWritingDirectionForPosition:inDirection:
- (UITextWritingDirection) baseWritingDirectionForPosition: |
|
(UITextPosition*) |
position |
inDirection: |
|
(UITextStorageDirection) |
direction |
|
|
| |
|
implementation |
Definition at line 20 of file TextInputSemanticsObject.mm.
119 :(UITextPosition*)position
120 inDirection:(UITextStorageDirection)direction {
121
122 return UITextWritingDirectionNatural;
123}
◆ 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 20 of file TextInputSemanticsObject.mm.
111 :(UITextPosition*)position
112 inDirection:(UITextLayoutDirection)direction {
113
114
115
116 return nil;
117}
◆ closestPositionToPoint:
- (UITextPosition *) closestPositionToPoint: |
|
(CGPoint) |
point |
|
|
implementation |
◆ closestPositionToPoint:withinRange:
Definition at line 20 of file TextInputSemanticsObject.mm.
151 :(CGPoint)point withinRange:(UITextRange*)range {
152
153
154
155 return nil;
156}
◆ comparePosition:toPosition:
- (NSComparisonResult) comparePosition: |
|
(UITextPosition*) |
position |
toPosition: |
|
(UITextPosition*) |
other |
|
|
| |
|
implementation |
Definition at line 20 of file TextInputSemanticsObject.mm.
89 :(UITextPosition*)position toPosition:(UITextPosition*)other {
90
91
92
93 return NSOrderedSame;
94}
◆ 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 20 of file TextInputSemanticsObject.mm.
96 :(UITextPosition*)from toPosition:(UITextPosition*)toPosition {
97
98
99
100 return 0;
101}
◆ positionFromPosition:inDirection:offset:
- (UITextPosition *) positionFromPosition: |
|
(UITextPosition*) |
position |
inDirection: |
|
(UITextLayoutDirection) |
direction |
offset: |
|
(NSInteger) |
offset |
|
|
| |
|
implementation |
Definition at line 20 of file TextInputSemanticsObject.mm.
80 :(UITextPosition*)position
81 inDirection:(UITextLayoutDirection)direction
83
84
85
86 return nil;
87}
◆ positionFromPosition:offset:
- (UITextPosition *) positionFromPosition: |
|
(UITextPosition*) |
position |
offset: |
|
(NSInteger) |
offset |
|
|
| |
|
implementation |
◆ positionWithinRange:farthestInDirection:
- (UITextPosition *) positionWithinRange: |
|
(UITextRange*) |
range |
farthestInDirection: |
|
(UITextLayoutDirection) |
direction |
|
|
| |
|
implementation |
Definition at line 20 of file TextInputSemanticsObject.mm.
103 :(UITextRange*)range
104 farthestInDirection:(UITextLayoutDirection)direction {
105
106
107
108 return nil;
109}
◆ 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 20 of file TextInputSemanticsObject.mm.
125 :(UITextWritingDirection)writingDirection
126 forRange:(UITextRange*)range {
127
128}
◆ setMarkedText:selectedRange:
- (void) setMarkedText: |
|
(NSString*) |
markedText |
selectedRange: |
|
(NSRange) |
markedSelectedRange |
|
|
| |
|
implementation |
◆ textInRange:
- (NSString *) textInRange: |
|
(UITextRange*) |
range |
|
|
implementation |
Definition at line 20 of file TextInputSemanticsObject.mm.
37 :(UITextRange*)range {
38 if (!range) {
39 return nil;
40 }
42 @"Expected a FlutterTextRange for range (got %@).", [range class]);
44 NSAssert(textRange.location != NSNotFound, @"Expected a valid text range.");
45 return [self.text substringWithRange:textRange];
46}
◆ textRangeFromPosition:toPosition:
- (UITextRange *) textRangeFromPosition: |
|
(UITextPosition*) |
fromPosition |
toPosition: |
|
(UITextPosition*) |
toPosition |
|
|
| |
|
implementation |
◆ unmarkText
◆ text
The documentation for this class was generated from the following file: