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

709 :(CGRect)rect
710 position:(NSUInteger)position
711 writingDirection:(NSWritingDirection)writingDirection
712 containsStart:(BOOL)containsStart
713 containsEnd:(BOOL)containsEnd
714 isVertical:(BOOL)isVertical {
715 self = [super init];
716 if (self) {
717 self.rect = rect;
718 self.position = position;
719 self.writingDirection = writingDirection;
720 self.containsStart = containsStart;
721 self.containsEnd = containsEnd;
722 self.isVertical = isVertical;
723 }
724 return self;
725 }

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

## ◆ isRTL

- (BOOL) isRTL |  |  |

Definition at line 727 of file FlutterTextInputPlugin.mm.

727 {
728 return _writingDirection == NSWritingDirectionRightToLeft;
729 }

## ◆ NS_UNAVAILABLE

- (instancetype) NS_UNAVAILABLE |  |  |

## ◆ selectionRectWithRect:position:

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

Definition at line 689 of file FlutterTextInputPlugin.mm.

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

## ◆ selectionRectWithRect:position:writingDirection:

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

Definition at line 698 of file FlutterTextInputPlugin.mm.

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

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

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

## Property Documentation

## ◆ containsEnd

- (BOOL) containsEnd
| read write nonatomic assign

Definition at line 99 of file FlutterTextInputPlugin.h.

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

## ◆ containsStart

- (BOOL) containsStart
| read write nonatomic assign

Definition at line 98 of file FlutterTextInputPlugin.h.

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

## ◆ isVertical

- (BOOL) isVertical
| read write nonatomic assign

Definition at line 100 of file FlutterTextInputPlugin.h.

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

## ◆ position

- (NSUInteger) position
| read write nonatomic assign

Definition at line 96 of file FlutterTextInputPlugin.h.

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

## ◆ rect

- (CGRect) rect
| read write nonatomic assign

Definition at line 95 of file FlutterTextInputPlugin.h.

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

## ◆ writingDirection

- (NSWritingDirection) writingDirection
| read write nonatomic assign

Definition at line 97 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:97
FlutterTextSelectionRect::containsStart
BOOL containsStart
Definition: FlutterTextInputPlugin.h:98
FlutterTextSelectionRect::containsEnd
BOOL containsEnd
Definition: FlutterTextInputPlugin.h:99
FlutterTextSelectionRect::rect
CGRect rect
Definition: FlutterTextInputPlugin.h:95
FlutterTextSelectionRect::isVertical
BOOL isVertical
Definition: FlutterTextInputPlugin.h:100
FlutterTextSelectionRect::position
NSUInteger position
Definition: FlutterTextInputPlugin.h:96
FlutterTextSelectionRect
Definition: FlutterTextInputPlugin.h:93