| Flutter iOS Embedder |

Instance Methods | Class Methods | Properties | List of all members
FlutterTextSelectionRect Class Reference

`#import <FlutterTextInputPlugin.h>`

Inheritance diagram for FlutterTextSelectionRect:

## Instance Methods
(instancetype) | - initWithRectAndInfo:position:writingDirection:containsStart:containsEnd:isVertical:
(instancetype) | - NS_UNAVAILABLE
(BOOL) | - isRTL

## Class Methods
(instancetype) | + selectionRectWithRectAndInfo:position:writingDirection:containsStart:containsEnd:isVertical:
(instancetype) | + selectionRectWithRect:position:
(instancetype) | + selectionRectWithRect:position:writingDirection:

## Properties
CGRect | rect
NSUInteger | position
NSWritingDirection | writingDirection
BOOL | containsStart
BOOL | containsEnd
BOOL | isVertical

## Detailed Description

Definition at line 100 of file FlutterTextInputPlugin.h.

## Method Documentation

## ◆ initWithRectAndInfo:position:writingDirection:containsStart:containsEnd:isVertical:

- (instancetype) initWithRectAndInfo: |  | (CGRect) | rect
position: |  | (NSUInteger) | position
writingDirection: |  | (NSWritingDirection) | writingDirection
containsStart: |  | (BOOL) | containsStart
containsEnd: |  | (BOOL) | containsEnd
isVertical: |  | (BOOL) | isVertical

Definition at line 589 of file FlutterTextInputPlugin.mm.

711 :(CGRect)rect
712 position:(NSUInteger)position
713 writingDirection:(NSWritingDirection)writingDirection
714 containsStart:(BOOL)containsStart
715 containsEnd:(BOOL)containsEnd
716 isVertical:(BOOL)isVertical {
717 self = [super init];
718 if (self) {
719 self.rect = rect;
720 self.position = position;
721 self.writingDirection = writingDirection;
722 self.containsStart = containsStart;
723 self.containsEnd = containsEnd;
724 self.isVertical = isVertical;
725 }
726 return self;
727 }
FlutterTextSelectionRect::writingDirection
NSWritingDirection writingDirection
Definition: FlutterTextInputPlugin.h:104
FlutterTextSelectionRect::rect
CGRect rect
Definition: FlutterTextInputPlugin.h:102
FlutterTextSelectionRect::position
NSUInteger position
Definition: FlutterTextInputPlugin.h:103
FlutterTextSelectionRect::containsEnd
BOOL containsEnd
Definition: FlutterTextInputPlugin.h:106
FlutterTextSelectionRect::containsStart
BOOL containsStart
Definition: FlutterTextInputPlugin.h:105
FlutterTextSelectionRect::isVertical
BOOL isVertical
Definition: FlutterTextInputPlugin.h:107

## ◆ isRTL

- (BOOL) isRTL |  |  |

Definition at line 589 of file FlutterTextInputPlugin.mm.

729 {
730 return _writingDirection == NSWritingDirectionRightToLeft;
731 }

## ◆ NS_UNAVAILABLE

- (instancetype) NS_UNAVAILABLE |  |  |

## ◆ selectionRectWithRect:position:

+ (instancetype) selectionRectWithRect: |  | (CGRect) | rect
position: |  | (NSUInteger) | position

Definition at line 589 of file FlutterTextInputPlugin.mm.

691 :(CGRect)rect position:(NSUInteger)position {
692 return [[FlutterTextSelectionRect alloc] initWithRectAndInfo:rect
693 position:position
694 writingDirection:NSWritingDirectionNatural
695 containsStart:NO
696 containsEnd:NO
697 isVertical:NO];
698 }
FlutterTextSelectionRect
Definition: FlutterTextInputPlugin.h:101

## ◆ selectionRectWithRect:position:writingDirection:

+ (instancetype) selectionRectWithRect: |  | (CGRect) | rect
position: |  | (NSUInteger) | position
writingDirection: |  | (NSWritingDirection) | writingDirection

Definition at line 589 of file FlutterTextInputPlugin.mm.

700 :(CGRect)rect
701 position:(NSUInteger)position
702 writingDirection:(NSWritingDirection)writingDirection {
703 return [[FlutterTextSelectionRect alloc] initWithRectAndInfo:rect
704 position:position
705 writingDirection:writingDirection
706 containsStart:NO
707 containsEnd:NO
708 isVertical:NO];
709 }

## ◆ selectionRectWithRectAndInfo:position:writingDirection:containsStart:containsEnd:isVertical:

+ (instancetype) selectionRectWithRectAndInfo: |  | (CGRect) | rect
position: |  | (NSUInteger) | position
writingDirection: |  | (NSWritingDirection) | writingDirection
containsStart: |  | (BOOL) | containsStart
containsEnd: |  | (BOOL) | containsEnd
isVertical: |  | (BOOL) | isVertical

Definition at line 589 of file FlutterTextInputPlugin.mm.

677 :(CGRect)rect
678 position:(NSUInteger)position
679 writingDirection:(NSWritingDirection)writingDirection
680 containsStart:(BOOL)containsStart
681 containsEnd:(BOOL)containsEnd
682 isVertical:(BOOL)isVertical {
683 return [[FlutterTextSelectionRect alloc] initWithRectAndInfo:rect
684 position:position
685 writingDirection:writingDirection
686 containsStart:containsStart
687 containsEnd:containsEnd
688 isVertical:isVertical];
689 }

## Property Documentation

## ◆ containsEnd

- (BOOL) containsEnd
| readwritenonatomicassign

Definition at line 106 of file FlutterTextInputPlugin.h.

## ◆ containsStart

- (BOOL) containsStart
| readwritenonatomicassign

Definition at line 105 of file FlutterTextInputPlugin.h.

## ◆ isVertical

- (BOOL) isVertical
| readwritenonatomicassign

Definition at line 107 of file FlutterTextInputPlugin.h.

## ◆ position

- (NSUInteger) position
| readwritenonatomicassign

Definition at line 103 of file FlutterTextInputPlugin.h.

## ◆ rect

- (CGRect) rect
| readwritenonatomicassign

Definition at line 102 of file FlutterTextInputPlugin.h.

## ◆ writingDirection

- (NSWritingDirection) writingDirection
| readwritenonatomicassign

Definition at line 104 of file FlutterTextInputPlugin.h.

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

- shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.h
- shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm