| 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 93 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 588 of file FlutterTextInputPlugin.mm.

710 :(CGRect)rect
711 position:(NSUInteger)position
712 writingDirection:(NSWritingDirection)writingDirection
713 containsStart:(BOOL)containsStart
714 containsEnd:(BOOL)containsEnd
715 isVertical:(BOOL)isVertical {
716 self = [super init];
717 if (self) {
718 self.rect = rect;
719 self.position = position;
720 self.writingDirection = writingDirection;
721 self.containsStart = containsStart;
722 self.containsEnd = containsEnd;
723 self.isVertical = isVertical;
724 }
725 return self;
726 }
FlutterTextSelectionRect::writingDirection
NSWritingDirection writingDirection
Definition: FlutterTextInputPlugin.h:97
FlutterTextSelectionRect::rect
CGRect rect
Definition: FlutterTextInputPlugin.h:95
FlutterTextSelectionRect::position
NSUInteger position
Definition: FlutterTextInputPlugin.h:96
FlutterTextSelectionRect::containsEnd
BOOL containsEnd
Definition: FlutterTextInputPlugin.h:99
FlutterTextSelectionRect::containsStart
BOOL containsStart
Definition: FlutterTextInputPlugin.h:98
FlutterTextSelectionRect::isVertical
BOOL isVertical
Definition: FlutterTextInputPlugin.h:100

## ◆ isRTL

- (BOOL) isRTL |  |  |

Definition at line 588 of file FlutterTextInputPlugin.mm.

728 {
729 return _writingDirection == NSWritingDirectionRightToLeft;
730 }

## ◆ NS_UNAVAILABLE

- (instancetype) NS_UNAVAILABLE |  |  |

## ◆ selectionRectWithRect:position:

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

Definition at line 588 of file FlutterTextInputPlugin.mm.

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

## ◆ selectionRectWithRect:position:writingDirection:

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

Definition at line 588 of file FlutterTextInputPlugin.mm.

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

## ◆ 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 588 of file FlutterTextInputPlugin.mm.

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

## Property Documentation

## ◆ containsEnd

- (BOOL) containsEnd
| read write nonatomic assign

Definition at line 99 of file FlutterTextInputPlugin.h.

## ◆ containsStart

- (BOOL) containsStart
| read write nonatomic assign

Definition at line 98 of file FlutterTextInputPlugin.h.

## ◆ isVertical

- (BOOL) isVertical
| read write nonatomic assign

Definition at line 100 of file FlutterTextInputPlugin.h.

## ◆ position

- (NSUInteger) position
| read write nonatomic assign

Definition at line 96 of file FlutterTextInputPlugin.h.

## ◆ rect

- (CGRect) rect
| read write nonatomic assign

Definition at line 95 of file FlutterTextInputPlugin.h.

## ◆ writingDirection

- (NSWritingDirection) writingDirection
| read write nonatomic assign

Definition at line 97 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