Inheritance
System.Object
RenderEditable
public class RenderEditable : RenderBox, HitTestTarget
Constructors
RenderEditable(TextSpan, TextDirection, ViewportOffset, ValueNotifier<Boolean>, TextAlign, Single, Color, Color, Nullable<Boolean>, Nullable<Int32>, Color, TextSelection, Boolean, SelectionChangedHandler, CaretChangedHandler, Boolean, Single, Radius, Nullable<Boolean>, Boolean, Offset, Single, EdgeInsets, TextSelectionDelegate)
Declaration
public RenderEditable(TextSpan text, TextDirection textDirection, ViewportOffset offset, ValueNotifier<bool> showCursor, TextAlign textAlign = TextAlign.left, float textScaleFactor = 1F, Color cursorColor = null, Color backgroundCursorColor = null, bool? hasFocus = default(bool? ), int? maxLines, Color selectionColor = null, TextSelection selection = null, bool obscureText = false, SelectionChangedHandler onSelectionChanged = null, CaretChangedHandler onCaretChanged = null, bool ignorePointer = false, float cursorWidth = 1F, Radius cursorRadius = null, bool? enableInteractiveSelection = default(bool? ), bool paintCursorAboveText = false, Offset cursorOffset = null, float devicePixelRatio = 1F, EdgeInsets floatingCursorAddedMargin = null, TextSelectionDelegate textSelectionDelegate = null)
Parameters
Fields
Declaration
public bool ignorePointer
Field Value
Type |
Description |
System.Boolean |
|
Declaration
public static readonly char obscuringCharacter
Field Value
Type |
Description |
System.Char |
|
Declaration
public CaretChangedHandler onCaretChanged
Field Value
Declaration
public SelectionChangedHandler onSelectionChanged
Field Value
textSelectionDelegate
Declaration
public TextSelectionDelegate textSelectionDelegate
Field Value
Properties
Declaration
public Color backgroundCursorColor { get; set; }
Property Value
Declaration
public Color cursorColor { get; set; }
Property Value
Declaration
public Offset cursorOffset { get; set; }
Property Value
Declaration
public Radius cursorRadius { get; set; }
Property Value
Declaration
public float cursorWidth { get; set; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public float devicePixelRatio { get; set; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public bool? enableInteractiveSelection { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Boolean> |
|
Declaration
public EdgeInsets floatingCursorAddedMargin { get; set; }
Property Value
Declaration
public bool hasFocus { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public int? maxLines { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Int32> |
|
obscureText
Declaration
public bool obscureText { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public ViewportOffset offset { get; set; }
Property Value
paintCursorAboveText
Declaration
public bool paintCursorAboveText { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public float preferredLineHeight { get; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public TextSelection selection { get; set; }
Property Value
Declaration
public Color selectionColor { get; set; }
Property Value
Declaration
public bool selectionEnabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public ValueNotifier<bool> showCursor { get; set; }
Property Value
text
Declaration
public TextSpan text { get; set; }
Property Value
textAlign
Declaration
public TextAlign textAlign { get; set; }
Property Value
textDirection
Declaration
public TextDirection? textDirection { get; set; }
Property Value
textScaleFactor
Declaration
public float textScaleFactor { get; set; }
Property Value
Type |
Description |
System.Single |
|
Methods
Declaration
public override void attach(object ownerObject)
Parameters
Type |
Name |
Description |
System.Object |
ownerObject |
|
Overrides
Declaration
public Offset calculateBoundedFloatingCursorOffset(Offset rawCursorOffset)
Parameters
Type |
Name |
Description |
Offset |
rawCursorOffset |
|
Returns
computeDistanceToActualBaseline(TextBaseline)
Declaration
protected override float? computeDistanceToActualBaseline(TextBaseline baseline)
Parameters
Returns
Type |
Description |
System.Nullable<System.Single> |
|
Overrides
Declaration
protected override float computeMaxIntrinsicHeight(float width)
Parameters
Type |
Name |
Description |
System.Single |
width |
|
Returns
Type |
Description |
System.Single |
|
Overrides
Declaration
protected override float computeMaxIntrinsicWidth(float height)
Parameters
Type |
Name |
Description |
System.Single |
height |
|
Returns
Type |
Description |
System.Single |
|
Overrides
Declaration
protected override float computeMinIntrinsicHeight(float width)
Parameters
Type |
Name |
Description |
System.Single |
width |
|
Returns
Type |
Description |
System.Single |
|
Overrides
Declaration
protected override float computeMinIntrinsicWidth(float height)
Parameters
Type |
Name |
Description |
System.Single |
height |
|
Returns
Type |
Description |
System.Single |
|
Overrides
Declaration
public override List<DiagnosticsNode> debugDescribeChildren()
Returns
Overrides
Declaration
public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
Parameters
Overrides
Declaration
public override Rect describeApproximatePaintClip(RenderObject child)
Parameters
Returns
Overrides
Declaration
public override void detach()
Overrides
getEndpointsForSelection(TextSelection)
Declaration
public List<TextSelectionPoint> getEndpointsForSelection(TextSelection selection)
Parameters
Returns
getLineEndPosition(TextPosition, Nullable<TextAffinity>)
Declaration
public TextPosition getLineEndPosition(TextPosition position, TextAffinity? affinity = default(TextAffinity? ))
Parameters
Returns
getLineStartPosition(TextPosition, Nullable<TextAffinity>)
Declaration
public TextPosition getLineStartPosition(TextPosition position, TextAffinity? affinity = default(TextAffinity? ))
Parameters
Returns
getLocalRectForCaret(TextPosition)
Declaration
public Rect getLocalRectForCaret(TextPosition caretPosition)
Parameters
Returns
getParagraphBackward(TextPosition, Nullable<TextAffinity>)
Declaration
public TextPosition getParagraphBackward(TextPosition position, TextAffinity? affinity = default(TextAffinity? ))
Parameters
Returns
getParagraphEnd(TextPosition, Nullable<TextAffinity>)
Declaration
public TextPosition getParagraphEnd(TextPosition position, TextAffinity? affinity = default(TextAffinity? ))
Parameters
Returns
getParagraphForward(TextPosition, Nullable<TextAffinity>)
Declaration
public TextPosition getParagraphForward(TextPosition position, TextAffinity? affinity = default(TextAffinity? ))
Parameters
Returns
getParagraphStart(TextPosition, Nullable<TextAffinity>)
Declaration
public TextPosition getParagraphStart(TextPosition position, TextAffinity? affinity = default(TextAffinity? ))
Parameters
Returns
getPositionDown(TextPosition)
Declaration
public TextPosition getPositionDown(TextPosition position)
Parameters
Returns
Declaration
public TextPosition getPositionForPoint(Offset globalPosition)
Parameters
Type |
Name |
Description |
Offset |
globalPosition |
|
Returns
getPositionUp(TextPosition)
Declaration
public TextPosition getPositionUp(TextPosition position)
Parameters
Returns
getWordLeft(TextPosition)
Declaration
public TextPosition getWordLeft(TextPosition position)
Parameters
Returns
getWordRight(TextPosition)
Declaration
public TextPosition getWordRight(TextPosition position)
Parameters
Returns
Declaration
public void handleDoubleTap(DoubleTapDetails details)
Parameters
handleEvent(PointerEvent, HitTestEntry)
Declaration
public override void handleEvent(PointerEvent evt, HitTestEntry entry)
Parameters
Overrides
Declaration
public void handleLongPress()
Declaration
Declaration
public void handleTapDown(TapDownDetails details)
Parameters
Declaration
protected override bool hitTestSelf(Offset position)
Parameters
Type |
Name |
Description |
Offset |
position |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public bool isLineEndOrStart(int offset)
Parameters
Type |
Name |
Description |
System.Int32 |
offset |
|
Returns
Type |
Description |
System.Boolean |
|
markNeedsTextLayout()
Declaration
protected void markNeedsTextLayout()
paint(PaintingContext, Offset)
Declaration
public override void paint(PaintingContext context, Offset offset)
Parameters
Overrides
Declaration
protected override void performLayout()
Overrides
Declaration
public void selectPositionAt(Offset from = null, Offset to = null, SelectionChangedCause? cause = default(SelectionChangedCause? ))
Parameters
setFloatingCursor(Nullable<FloatingCursorDragState>, Offset, TextPosition, Nullable<Single>)
Declaration
public void setFloatingCursor(FloatingCursorDragState? state, Offset boundedOffset, TextPosition lastTextPosition, float? resetLerpValue = default(float? ))
Parameters