dartlangeditorflutterflutter-appsflutter-examplesflutter-packageflutter-widgetquillquill-deltaquilljsreactquillrich-textrich-text-editorwysiwygwysiwyg-editor
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
39 lines
1.1 KiB
4 years ago
|
import 'package:flutter/rendering.dart';
|
||
|
import 'package:flutter_quill/models/documents/nodes/container.dart';
|
||
|
|
||
|
abstract class RenderContentProxyBox implements RenderBox {
|
||
|
double getPreferredLineHeight();
|
||
|
|
||
|
Offset getOffsetForCaret(TextPosition position, Rect caretPrototype);
|
||
|
|
||
|
TextPosition getPositionForOffset(Offset offset);
|
||
|
|
||
|
double getFullHeightForCaret(TextPosition position);
|
||
|
|
||
|
TextRange getWordBoundary(TextPosition position);
|
||
|
|
||
|
List<TextBox> getBoxesForSelection(TextSelection textSelection);
|
||
|
}
|
||
|
|
||
|
abstract class RenderEditableBox extends RenderBox {
|
||
|
Container getContainer();
|
||
|
|
||
|
double preferredLineHeight(TextPosition position);
|
||
|
|
||
|
Offset getOffsetForCaret(TextPosition position);
|
||
|
|
||
|
TextPosition getPositionForOffset(Offset offset);
|
||
|
|
||
|
TextPosition getPositionAbove(TextPosition position);
|
||
|
|
||
|
TextPosition getPositionBelow(TextPosition position);
|
||
|
|
||
|
TextRange getWordBoundary(TextPosition position);
|
||
|
|
||
|
TextRange getLineBoundary(TextPosition position);
|
||
|
|
||
|
TextSelectionPoint getBaseEndpointForSelection(TextSelection textSelection);
|
||
|
|
||
|
TextSelectionPoint getExtentEndpointForSelection(TextSelection textSelection);
|
||
|
}
|