Flutter Engine
The Flutter Engine
Instance Methods | Class Methods | Properties | List of all members
FlutterTextPosition Class Reference

#import <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 69 of file FlutterTextInputPlugin.h.

Method Documentation

◆ initWithIndex:affinity:

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

Definition at line 461 of file FlutterTextInputPlugin.mm.

527 :(NSUInteger)index affinity:(UITextStorageDirection)affinity {
528 self = [super init];
529 if (self) {
530 _index = index;
531 _affinity = affinity;
532 }
533 return self;
534}
UITextStorageDirection affinity

◆ positionWithIndex:

+ (instancetype) positionWithIndex: (NSUInteger)  index

Definition at line 461 of file FlutterTextInputPlugin.mm.

519 :(NSUInteger)index {
520 return [[FlutterTextPosition alloc] initWithIndex:index affinity:UITextStorageDirectionForward];
521}

◆ positionWithIndex:affinity:

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

Definition at line 461 of file FlutterTextInputPlugin.mm.

523 :(NSUInteger)index affinity:(UITextStorageDirection)affinity {
524 return [[FlutterTextPosition alloc] initWithIndex:index affinity:affinity];
525}

Property Documentation

◆ affinity

- (UITextStorageDirection) affinity
readnonatomicassign

Definition at line 72 of file FlutterTextInputPlugin.h.

◆ index

- (NSUInteger) index
readnonatomicassign

Definition at line 71 of file FlutterTextInputPlugin.h.


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