Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
FlutterTextPosition Class Reference

#include <FlutterTextInputPlugin.h>

Inheritance diagram for FlutterTextPosition:

Instance Methods

(instancetype) - initWithIndex:affinity:
 

Class Methods

(instancetype) + positionWithIndex:
 
(instancetype) + positionWithIndex:affinity:
 

Properties

NSUInteger index
 
UITextStorageDirection affinity
 

Detailed Description

An indexed position in the buffer of a Flutter text editing widget.

Definition at line 76 of file FlutterTextInputPlugin.h.

Method Documentation

◆ initWithIndex:affinity:

- (instancetype) initWithIndex: (NSUInteger)  index
affinity: (UITextStorageDirection)  affinity 

Definition at line 470 of file FlutterTextInputPlugin.mm.

536 :(NSUInteger)index affinity:(UITextStorageDirection)affinity {
537 self = [super init];
538 if (self) {
539 _index = index;
540 _affinity = affinity;
541 }
542 return self;
543}
UITextStorageDirection affinity

References IsApproximatelyEqual().

◆ positionWithIndex:

+ (instancetype) positionWithIndex: (NSUInteger)  index

Definition at line 470 of file FlutterTextInputPlugin.mm.

528 :(NSUInteger)index {
529 return [[FlutterTextPosition alloc] initWithIndex:index affinity:UITextStorageDirectionForward];
530}

◆ positionWithIndex:affinity:

+ (instancetype) positionWithIndex: (NSUInteger)  index
affinity: (UITextStorageDirection)  affinity 

Definition at line 470 of file FlutterTextInputPlugin.mm.

532 :(NSUInteger)index affinity:(UITextStorageDirection)affinity {
533 return [[FlutterTextPosition alloc] initWithIndex:index affinity:affinity];
534}

Property Documentation

◆ affinity

- (UITextStorageDirection) affinity
readnonatomicassign

Definition at line 79 of file FlutterTextInputPlugin.h.

◆ index

- (NSUInteger) index
readnonatomicassign

Definition at line 78 of file FlutterTextInputPlugin.h.


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