Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Instance Methods | Class Methods | Properties | List of all members
FlutterTextRange Class Reference

#include <FlutterTextInputPlugin.h>

Inheritance diagram for FlutterTextRange:

Instance Methods

(instancetype) - initWithNSRange: [implementation]
 
(UITextPosition *) - start [implementation]
 
(UITextPosition *) - end [implementation]
 
(BOOL- isEmpty [implementation]
 
(id- copyWithZone: [implementation]
 
(BOOL- isEqualTo: [implementation]
 

Class Methods

(instancetype) + rangeWithNSRange:
 

Properties

NSRange range
 

Detailed Description

A range of text in the buffer of a Flutter text editing widget.

Definition at line 81 of file FlutterTextInputPlugin.h.

Method Documentation

◆ copyWithZone:

- (id) copyWithZone: (NSZone*)  zone
implementation

Definition at line 461 of file FlutterTextInputPlugin.mm.

568 :(NSZone*)zone {
569 return [[FlutterTextRange allocWithZone:zone] initWithNSRange:self.range];
570}

◆ end

- (UITextPosition *) end
implementation

Definition at line 461 of file FlutterTextInputPlugin.mm.

559 {
560 return [FlutterTextPosition positionWithIndex:self.range.location + self.range.length
561 affinity:UITextStorageDirectionBackward];
562}
instancetype positionWithIndex:affinity:(NSUInteger index,[affinity] UITextStorageDirection affinity)

◆ initWithNSRange:

- (instancetype) initWithNSRange: (NSRange)  range
implementation

Definition at line 461 of file FlutterTextInputPlugin.mm.

546 :(NSRange)range {
547 self = [super init];
548 if (self) {
549 _range = range;
550 }
551 return self;
552}
NSRange _range

◆ isEmpty

- (BOOL) isEmpty
implementation

Definition at line 461 of file FlutterTextInputPlugin.mm.

564 {
565 return self.range.length == 0;
566}

◆ isEqualTo:

- (BOOL) isEqualTo: (FlutterTextRange*)  other
implementation

Definition at line 461 of file FlutterTextInputPlugin.mm.

572 :(FlutterTextRange*)other {
573 return NSEqualRanges(self.range, other.range);
574}

◆ rangeWithNSRange:

+ (instancetype) rangeWithNSRange: (NSRange)  range

Definition at line 461 of file FlutterTextInputPlugin.mm.

542 :(NSRange)range {
543 return [[FlutterTextRange alloc] initWithNSRange:range];
544}

◆ start

- (UITextPosition *) start
implementation

Definition at line 461 of file FlutterTextInputPlugin.mm.

554 {
555 return [FlutterTextPosition positionWithIndex:self.range.location
556 affinity:UITextStorageDirectionForward];
557}

Property Documentation

◆ range

- (NSRange) range
readnonatomicassign

Definition at line 83 of file FlutterTextInputPlugin.h.


The documentation for this class was generated from the following files: