| 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 87 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 688 of file FlutterTextInputPlugin.mm.

688 :(CGRect)rect
689 position:(NSUInteger)position
690 writingDirection:(NSWritingDirection)writingDirection
691 containsStart:(BOOL)containsStart
692 containsEnd:(BOOL)containsEnd
693 isVertical:(BOOL)isVertical {
694 self = [super init];
695 if (self) {
696 self.rect = rect;
697 self.position = position;
698 self.writingDirection = writingDirection;
699 self.containsStart = containsStart;
700 self.containsEnd = containsEnd;
701 self.isVertical = isVertical;
702 }
703 return self;
704 }

References containsEnd, containsStart, isVertical, position, rect, and writingDirection.

## ◆ isRTL

- (BOOL) isRTL |  |  |

Definition at line 706 of file FlutterTextInputPlugin.mm.

706 {
707 return _writingDirection == NSWritingDirectionRightToLeft;
708 }

## ◆ NS_UNAVAILABLE

- (instancetype) NS_UNAVAILABLE |  |  |

## ◆ selectionRectWithRect:position:

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

Definition at line 668 of file FlutterTextInputPlugin.mm.

668 :(CGRect)rect position:(NSUInteger)position {
669 return [[FlutterTextSelectionRect alloc] initWithRectAndInfo:rect
670 position:position
671 writingDirection:NSWritingDirectionNatural
672 containsStart:NO
673 containsEnd:NO
674 isVertical:NO];
675 }

## ◆ selectionRectWithRect:position:writingDirection:

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

Definition at line 677 of file FlutterTextInputPlugin.mm.

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

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

654 :(CGRect)rect
655 position:(NSUInteger)position
656 writingDirection:(NSWritingDirection)writingDirection
657 containsStart:(BOOL)containsStart
658 containsEnd:(BOOL)containsEnd
659 isVertical:(BOOL)isVertical {
660 return [[FlutterTextSelectionRect alloc] initWithRectAndInfo:rect
661 position:position
662 writingDirection:writingDirection
663 containsStart:containsStart
664 containsEnd:containsEnd
665 isVertical:isVertical];
666 }

## Property Documentation

## ◆ containsEnd

- (BOOL) containsEnd
| read write nonatomic assign

Definition at line 93 of file FlutterTextInputPlugin.h.

Referenced by initWithRectAndInfo:position:writingDirection:containsStart:containsEnd:isVertical:.

## ◆ containsStart

- (BOOL) containsStart
| read write nonatomic assign

Definition at line 92 of file FlutterTextInputPlugin.h.

Referenced by initWithRectAndInfo:position:writingDirection:containsStart:containsEnd:isVertical:.

## ◆ isVertical

- (BOOL) isVertical
| read write nonatomic assign

Definition at line 94 of file FlutterTextInputPlugin.h.

Referenced by initWithRectAndInfo:position:writingDirection:containsStart:containsEnd:isVertical:.

## ◆ position

- (NSUInteger) position
| read write nonatomic assign

Definition at line 90 of file FlutterTextInputPlugin.h.

Referenced by initWithRectAndInfo:position:writingDirection:containsStart:containsEnd:isVertical:.

## ◆ rect

- (CGRect) rect
| read write nonatomic assign

Definition at line 89 of file FlutterTextInputPlugin.h.

Referenced by initWithRectAndInfo:position:writingDirection:containsStart:containsEnd:isVertical:.

## ◆ writingDirection

- (NSWritingDirection) writingDirection
| read write nonatomic assign

Definition at line 91 of file FlutterTextInputPlugin.h.

Referenced by initWithRectAndInfo:position:writingDirection:containsStart:containsEnd:isVertical:.

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

FlutterTextSelectionRect::writingDirection
NSWritingDirection writingDirection
Definition: FlutterTextInputPlugin.h:91
FlutterTextSelectionRect::containsStart
BOOL containsStart
Definition: FlutterTextInputPlugin.h:92
FlutterTextSelectionRect::containsEnd
BOOL containsEnd
Definition: FlutterTextInputPlugin.h:93
FlutterTextSelectionRect::rect
CGRect rect
Definition: FlutterTextInputPlugin.h:89
FlutterTextSelectionRect::isVertical
BOOL isVertical
Definition: FlutterTextInputPlugin.h:94
FlutterTextSelectionRect::position
NSUInteger position
Definition: FlutterTextInputPlugin.h:90
FlutterTextSelectionRect
Definition: FlutterTextInputPlugin.h:87