Skip to main content

RenderEditable

Struct RenderEditable 

Source
pub struct RenderEditable {
    pub ignore_pointer: bool,
    /* private fields */
}
Expand description

Displays some text in a scrollable container with a potentially blinking cursor and with gesture recognizers.

This is the renderer for an editable text field. It does not directly provide affordances for editing the text, but it does handle text selection and manipulation of the text cursor.

Fields§

§ignore_pointer: bool

Whether handle_event will propagate pointer events to selection handlers.

Implementations§

Source§

impl RenderEditable

Source

pub fn new( app: &mut App, text_direction: TextDirection, start_handle_layer_link: Handle<LayerLink>, end_handle_layer_link: Handle<LayerLink>, offset: AnyViewportOffset, text_selection_delegate: AnyTextSelectionDelegate, ) -> RenderHandle<Self>

Creates a render object that implements the visual aspects of a text field.

Add the inline children with add or add_all; Dart’s constructor takes them.

Source

pub fn text(self: RenderHandle<Self>, app: &App) -> Option<InlineSpanRef>

The text to display.

Source

pub fn set_text( self: RenderHandle<Self>, app: &mut App, value: Option<InlineSpanRef>, )

Sets text.

Source

pub fn text_align(self: RenderHandle<Self>, app: &App) -> TextAlign

How the text should be aligned horizontally.

Source

pub fn set_text_align(self: RenderHandle<Self>, app: &mut App, value: TextAlign)

Sets text_align.

Source

pub fn text_direction(self: RenderHandle<Self>, app: &App) -> TextDirection

The directionality of the text.

Source

pub fn set_text_direction( self: RenderHandle<Self>, app: &mut App, value: TextDirection, )

Source

pub fn cursor_color(self: RenderHandle<Self>, app: &App) -> Option<Color>

The color to use when painting the cursor.

Source

pub fn set_cursor_color( self: RenderHandle<Self>, app: &mut App, value: Option<Color>, )

Source

pub fn background_cursor_color( self: RenderHandle<Self>, app: &App, ) -> Option<Color>

The color to use when painting the background cursor aligned with the text while rendering the floating cursor.

Source

pub fn set_background_cursor_color( self: RenderHandle<Self>, app: &mut App, value: Option<Color>, )

Source

pub fn show_cursor( self: RenderHandle<Self>, app: &App, ) -> Handle<ValueNotifier<bool>>

Whether to paint the cursor.

Source

pub fn set_show_cursor( self: RenderHandle<Self>, app: &mut App, value: Handle<ValueNotifier<bool>>, )

Source

pub fn has_focus(self: RenderHandle<Self>, app: &App) -> bool

Whether the editable is currently focused.

Source

pub fn set_has_focus(self: RenderHandle<Self>, app: &mut App, value: bool)

Sets has_focus.

The LayerLink of start selection handle.

The LayerLink of end selection handle.

Source

pub fn max_lines(self: RenderHandle<Self>, app: &App) -> Option<i32>

The maximum number of lines for the text to span, wrapping if necessary.

Source

pub fn set_max_lines( self: RenderHandle<Self>, app: &mut App, value: Option<i32>, )

Sets max_lines.

Source

pub fn min_lines(self: RenderHandle<Self>, app: &App) -> Option<i32>

The minimum number of lines to occupy when the content spans fewer lines.

Source

pub fn set_min_lines( self: RenderHandle<Self>, app: &mut App, value: Option<i32>, )

Sets min_lines.

Source

pub fn expands(self: RenderHandle<Self>, app: &App) -> bool

Whether this widget’s height will be sized to fill its parent.

Source

pub fn set_expands(self: RenderHandle<Self>, app: &mut App, value: bool)

Sets expands.

Source

pub fn selection_color(self: RenderHandle<Self>, app: &App) -> Option<Color>

The color to use when painting the selection.

Source

pub fn set_selection_color( self: RenderHandle<Self>, app: &mut App, value: Option<Color>, )

Source

pub fn text_scaler(self: RenderHandle<Self>, app: &App) -> TextScaler

The font scaling strategy to use when laying out and rendering the text.

Source

pub fn set_text_scaler( self: RenderHandle<Self>, app: &mut App, value: TextScaler, )

Source

pub fn selection(self: RenderHandle<Self>, app: &App) -> Option<TextSelection>

The region of text that is selected, if any.

Source

pub fn set_selection( self: RenderHandle<Self>, app: &mut App, value: Option<TextSelection>, )

Sets selection.

Source

pub fn offset(self: RenderHandle<Self>, app: &App) -> AnyViewportOffset

The offset at which the text should be painted.

Source

pub fn set_offset( self: RenderHandle<Self>, app: &mut App, value: AnyViewportOffset, )

Sets offset.

Source

pub fn read_only(self: RenderHandle<Self>, app: &App) -> bool

Whether the text can be changed.

Source

pub fn set_read_only(self: RenderHandle<Self>, app: &mut App, value: bool)

Sets read_only.

Source

pub fn force_line(self: RenderHandle<Self>, app: &App) -> bool

Whether this rendering object will take a full line regardless the text width.

Source

pub fn set_force_line(self: RenderHandle<Self>, app: &mut App, value: bool)

Sets force_line.

Source

pub fn text_height_behavior( self: RenderHandle<Self>, app: &App, ) -> Option<TextHeightBehavior>

{@macro dart.ui.textHeightBehavior}

Source

pub fn set_text_height_behavior( self: RenderHandle<Self>, app: &mut App, value: Option<TextHeightBehavior>, )

Source

pub fn text_width_basis(self: RenderHandle<Self>, app: &App) -> TextWidthBasis

{@macro flutter.painting.textPainter.textWidthBasis}

Source

pub fn set_text_width_basis( self: RenderHandle<Self>, app: &mut App, value: TextWidthBasis, )

Source

pub fn obscuring_character(self: RenderHandle<Self>, app: &App) -> &str

Character used for obscuring text if obscure_text is true.

Source

pub fn set_obscuring_character( self: RenderHandle<Self>, app: &mut App, value: impl Into<String>, )

Source

pub fn obscure_text(self: RenderHandle<Self>, app: &App) -> bool

Whether to hide the text being edited (e.g., for passwords).

Source

pub fn set_obscure_text(self: RenderHandle<Self>, app: &mut App, value: bool)

Source

pub fn cursor_width(self: RenderHandle<Self>, app: &App) -> f64

How wide the cursor is.

Source

pub fn set_cursor_width(self: RenderHandle<Self>, app: &mut App, value: f64)

Source

pub fn cursor_height(self: RenderHandle<Self>, app: &mut App) -> f64

How tall the cursor will be.

Source

pub fn set_cursor_height( self: RenderHandle<Self>, app: &mut App, value: Option<f64>, )

Sets the explicit cursor height; None uses preferred_line_height.

Source

pub fn cursor_radius(self: RenderHandle<Self>, app: &App) -> Option<Radius>

The radius of the cursor.

Source

pub fn set_cursor_radius( self: RenderHandle<Self>, app: &mut App, value: Option<Radius>, )

Source

pub fn paint_cursor_above_text(self: RenderHandle<Self>, app: &App) -> bool

Whether the cursor paints above the text.

Source

pub fn set_paint_cursor_above_text( self: RenderHandle<Self>, app: &mut App, value: bool, )

Source

pub fn cursor_offset(self: RenderHandle<Self>, app: &App) -> Offset

The offset that is used, in pixels, when painting the cursor on screen.

Source

pub fn set_cursor_offset(self: RenderHandle<Self>, app: &mut App, value: Offset)

Source

pub fn device_pixel_ratio(self: RenderHandle<Self>, app: &App) -> f64

The pixel ratio of the current device.

Source

pub fn set_device_pixel_ratio( self: RenderHandle<Self>, app: &mut App, value: f64, )

Source

pub fn selection_height_style( self: RenderHandle<Self>, app: &App, ) -> BoxHeightStyle

Controls how tall the selection highlight boxes are computed to be.

Source

pub fn set_selection_height_style( self: RenderHandle<Self>, app: &mut App, value: BoxHeightStyle, )

Source

pub fn selection_width_style( self: RenderHandle<Self>, app: &App, ) -> BoxWidthStyle

Controls how wide the selection highlight boxes are computed to be.

Source

pub fn set_selection_width_style( self: RenderHandle<Self>, app: &mut App, value: BoxWidthStyle, )

Source

pub fn enable_interactive_selection( self: RenderHandle<Self>, app: &App, ) -> Option<bool>

Whether to allow the user to change the selection.

Source

pub fn set_enable_interactive_selection( self: RenderHandle<Self>, app: &mut App, value: Option<bool>, )

Source

pub fn text_selection_delegate( self: RenderHandle<Self>, app: &App, ) -> AnyTextSelectionDelegate

Source

pub fn set_text_selection_delegate( self: RenderHandle<Self>, app: &mut App, value: AnyTextSelectionDelegate, )

Source

pub fn prompt_rect_color(self: RenderHandle<Self>, app: &App) -> Option<Color>

The color of the prompt rectangle for a pending autocorrection.

Source

pub fn set_prompt_rect_color( self: RenderHandle<Self>, app: &mut App, value: Option<Color>, )

Source

pub fn set_prompt_rect_range( self: RenderHandle<Self>, app: &mut App, value: Option<TextRange>, )

Sets the range of text that will be changed by a pending autocorrection.

Source

pub fn clip_behavior(self: RenderHandle<Self>, app: &App) -> Clip

The content will be clipped (or not) according to this option.

Source

pub fn set_clip_behavior(self: RenderHandle<Self>, app: &mut App, value: Clip)

Source

pub fn get_boxes_for_selection( self: RenderHandle<Self>, app: &mut App, selection: TextSelection, ) -> Vec<TextBox>

Returns a list of rects that bound the given selection, and the text direction. The text direction is used by the engine to calculate the closest position to a given point.

See TextPainter::get_boxes_for_selection for more details.

Source

pub fn selection_start_in_viewport( self: RenderHandle<Self>, app: &App, ) -> Handle<ValueNotifier<bool>>

Track whether the start of the selection is currently in the visible viewport.

Source

pub fn selection_end_in_viewport( self: RenderHandle<Self>, app: &App, ) -> Handle<ValueNotifier<bool>>

Track whether the end of the selection is currently in the visible viewport.

Source

pub fn plain_text(self: RenderHandle<Self>, app: &mut App) -> String

If obscure_text is true, returns the obscured text.

Source

pub fn preferred_line_height(self: RenderHandle<Self>, app: &mut App) -> f64

An estimate of the height of a line in the text.

Source

pub fn get_endpoints_for_selection( self: RenderHandle<Self>, app: &mut App, selection: TextSelection, ) -> Vec<TextSelectionPoint>

Returns the local coordinates of the endpoints of the given selection.

Source

pub fn get_rect_for_composing_range( self: RenderHandle<Self>, app: &mut App, range: TextRange, ) -> Option<Rect>

Returns the smallest Rect, in the local coordinate system, that covers the text within the TextRange specified.

Source

pub fn get_position_for_point( self: RenderHandle<Self>, app: &mut App, global_position: Offset, ) -> TextPosition

Returns the TextPosition closest to the given global point.

Source

pub fn get_local_rect_for_caret( self: RenderHandle<Self>, app: &mut App, caret_position: TextPosition, ) -> Rect

Returns the Rect in local coordinates for the caret at the given text position.

Source

pub fn handle_tap_down( self: RenderHandle<Self>, _app: &mut App, details: &TapDownDetails, )

If ignore_pointer is false then this method is called by the internal gesture recognizer. When it is true, an ancestor must call it.

Source

pub fn last_secondary_tap_down_position( self: RenderHandle<Self>, app: &App, ) -> Option<Offset>

The position of the most recent secondary tap down event on this text input.

Source

pub fn handle_secondary_tap_down( self: RenderHandle<Self>, app: &mut App, details: &TapDownDetails, )

Tracks the position of a secondary tap event.

Should be called before attempting to change the selection based on the position of a secondary tap.

Source

pub fn handle_tap(self: RenderHandle<Self>, app: &mut App)

Select the word at the last tap-down, or the position if the cause is a tap.

Source

pub fn handle_double_tap(self: RenderHandle<Self>, app: &mut App)

Select the word around the last tap-down.

Source

pub fn handle_long_press(self: RenderHandle<Self>, app: &mut App)

Select the word around the last long-press.

Source

pub fn select_position( self: RenderHandle<Self>, app: &mut App, cause: SelectionChangedCause, )

Move the selection to the location of the last tap down.

Source

pub fn select_position_at( self: RenderHandle<Self>, app: &mut App, from: Offset, to: Option<Offset>, cause: SelectionChangedCause, )

Select text between the global positions from and to.

Source

pub fn select_word( self: RenderHandle<Self>, app: &mut App, cause: SelectionChangedCause, )

Select a word around the location of the last tap down.

Source

pub fn select_words_in_range( self: RenderHandle<Self>, app: &mut App, from: Offset, to: Option<Offset>, cause: SelectionChangedCause, )

Selects the set words of a paragraph that intersect a given range of global positions.

Source

pub fn select_word_edge( self: RenderHandle<Self>, app: &mut App, cause: SelectionChangedCause, )

Move the selection to the beginning or end of a word.

Source

pub fn get_word_at_offset( self: RenderHandle<Self>, app: &mut App, position: TextPosition, ) -> TextSelection

Returns a TextSelection that encompasses the word at the given TextPosition.

Source

pub fn get_line_at_offset( self: RenderHandle<Self>, app: &mut App, position: TextPosition, ) -> TextSelection

Return a TextSelection containing the line of the given TextPosition.

Source

pub fn word_boundaries(self: RenderHandle<Self>, app: &App) -> WordBoundary

A WordBoundary over this render object’s text and layout.

Dart’s RenderEditable.wordBoundaries, which forwards to the text painter’s.

Source

pub fn get_word_boundary( self: RenderHandle<Self>, app: &mut App, position: TextPosition, ) -> TextRange

See TextPainter.get_word_boundary.

Source

pub fn get_text_position_above( self: RenderHandle<Self>, app: &mut App, position: TextPosition, ) -> TextPosition

Returns the TextPosition above the given offset into the text.

Source

pub fn get_text_position_below( self: RenderHandle<Self>, app: &mut App, position: TextPosition, ) -> TextPosition

Returns the TextPosition below the given offset into the text.

Source

pub fn start_vertical_caret_movement( self: RenderHandle<Self>, app: &mut App, start_position: TextPosition, ) -> VerticalCaretMovementRun

Starts a VerticalCaretMovementRun at the given location in the text.

Trait Implementations§

Source§

impl ContainerRenderObjectMixin for RenderEditable

Source§

type ChildType = AnyRenderBox

Flutter’s ChildType: the protocol of this render object’s children.
Source§

type ParentDataType = TextParentData

Flutter’s ParentDataType: the parent data this render object installs on its children.
Source§

fn container_data( self: RenderHandle<Self>, app: &App, ) -> &ContainerRenderObjectData<AnyRenderBox>

Mixin field access.
Source§

fn container_data_mut( self: RenderHandle<Self>, app: &mut App, ) -> &mut ContainerRenderObjectData<AnyRenderBox>

Source§

fn child_count(self: RenderHandle<Self>, app: &App) -> usize

The number of children.
Source§

fn insert( self: RenderHandle<Self>, app: &mut App, child: Self::ChildType, after: Option<Self::ChildType>, )

Insert child into this render object’s child list after the given child. Read more
Source§

fn add(self: RenderHandle<Self>, app: &mut App, child: Self::ChildType)

Append child to the end of this render object’s child list.
Source§

fn add_all( self: RenderHandle<Self>, app: &mut App, children: Option<Vec<Self::ChildType>>, )

Add all the children to the end of this render object’s child list.
Source§

fn remove(self: RenderHandle<Self>, app: &mut App, child: Self::ChildType)

Remove this child from the child list. Read more
Source§

fn remove_all(self: RenderHandle<Self>, app: &mut App)

Remove all their children from this render object’s child list. Read more
Source§

fn move_child( self: RenderHandle<Self>, app: &mut App, child: Self::ChildType, after: Option<Self::ChildType>, )

Move the given child in the child list to be after another child. Read more
Source§

fn did_attach( self: RenderHandle<Self>, app: &mut App, owner: Handle<PipelineOwner>, )

The body of Flutter’s attach override: attaches every child in the list.
Source§

fn did_detach(self: RenderHandle<Self>, app: &mut App)

The body of Flutter’s detach override: detaches every child in the list.
Source§

fn redepth_children(self: RenderHandle<Self>, app: &mut App)

Flutter’s redepthChildren: walks the child list.
Source§

fn visit_children( self: RenderHandle<Self>, app: &App, visitor: &mut dyn FnMut(AnyRenderObject), )

Flutter’s visitChildren: walks the child list.
Source§

fn first_child(self: RenderHandle<Self>, app: &App) -> Option<Self::ChildType>

The first child in the child list.
Source§

fn last_child(self: RenderHandle<Self>, app: &App) -> Option<Self::ChildType>

The last child in the child list.
Source§

fn child_before( self: RenderHandle<Self>, app: &App, child: Self::ChildType, ) -> Option<Self::ChildType>

The previous child before the given child in the child list.
Source§

fn child_after( self: RenderHandle<Self>, app: &App, child: Self::ChildType, ) -> Option<Self::ChildType>

The next child after the given child in the child list.
Source§

fn children_as_list(self: RenderHandle<Self>, app: &App) -> Vec<Self::ChildType>

Returns a list containing the children of this render object. Read more
Source§

impl RelayoutWhenSystemFontsChangeMixin for RenderEditable

Source§

fn relayout_when_system_fonts_change_data( self: RenderHandle<Self>, app: &App, ) -> &RelayoutWhenSystemFontsChangeData

Mixin field access.
Source§

fn relayout_when_system_fonts_change_data_mut( self: RenderHandle<Self>, app: &mut App, ) -> &mut RelayoutWhenSystemFontsChangeData

Source§

fn system_fonts_did_change(self: RenderHandle<Self>, app: &mut App)

A callback that is called when system fonts have changed. Read more
Source§

fn attach_system_fonts(self: RenderHandle<Self>, app: &mut App)

Flutter’s attach override body after super.attach.
Source§

fn detach_system_fonts(self: RenderHandle<Self>, app: &mut App)

Flutter’s detach override body before super.detach.
Source§

fn system_fonts_listener(self: RenderHandle<Self>) -> Listener

Source§

fn schedule_system_fonts_update(self: RenderHandle<Self>, app: &mut App)

Source§

impl RenderBox for RenderEditable

Source§

fn render_box_data(self: RenderHandle<Self>, app: &App) -> &RenderBoxData

Mixin field access.
Source§

fn render_box_data_mut( self: RenderHandle<Self>, app: &mut App, ) -> &mut RenderBoxData

Source§

fn setup_parent_data( self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject, )

Installs BoxParentData unless the child already has it. Read more
Source§

fn compute_min_intrinsic_width( self: RenderHandle<Self>, app: &mut App, _height: f64, ) -> f64

Computes the value returned by get_min_intrinsic_width. Do not call this function directly, instead, call get_min_intrinsic_width. Read more
Source§

fn compute_max_intrinsic_width( self: RenderHandle<Self>, app: &mut App, _height: f64, ) -> f64

Computes the value returned by get_max_intrinsic_width. Do not call this function directly, instead, call get_max_intrinsic_width. Read more
Source§

fn compute_min_intrinsic_height( self: RenderHandle<Self>, app: &mut App, width: f64, ) -> f64

Computes the value returned by get_min_intrinsic_height. Do not call this function directly, instead, call get_min_intrinsic_height. Read more
Source§

fn compute_max_intrinsic_height( self: RenderHandle<Self>, app: &mut App, width: f64, ) -> f64

Computes the value returned by get_max_intrinsic_height. Do not call this function directly, instead, call get_max_intrinsic_height. Read more
Source§

fn compute_dry_layout( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, ) -> Size

Computes the value returned by get_dry_layout. Do not call this function directly, instead, call get_dry_layout. Read more
Source§

fn compute_distance_to_actual_baseline( self: RenderHandle<Self>, app: &mut App, baseline: TextBaseline, ) -> Option<f64>

Returns the distance from the y-coordinate of the position of the box to the y-coordinate of the first given baseline in the box’s contents, if any, or None otherwise. Read more
Source§

fn hit_test_self( self: RenderHandle<Self>, _app: &App, _position: Offset, ) -> bool

Override this method if this render object can be hit even if its children were not hit. Read more
Source§

fn hit_test_children( self: RenderHandle<Self>, app: &mut App, result: &mut BoxHitTestResult<'_>, position: Offset, ) -> bool

Override this method to check whether any children are located at the given position. Read more
Source§

fn apply_paint_transform( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, transform: &mut Matrix4, )

Multiply the transform from the parent’s coordinate system to this box’s coordinate system into the given transform. Read more
Source§

fn constraints(self: RenderHandle<Self>, app: &App) -> BoxConstraints

The box constraints most recently supplied by the parent. Read more
Source§

fn get_min_intrinsic_width( self: RenderHandle<Self>, app: &mut App, height: f64, ) -> f64

Source§

fn get_max_intrinsic_width( self: RenderHandle<Self>, app: &mut App, height: f64, ) -> f64

Source§

fn get_min_intrinsic_height( self: RenderHandle<Self>, app: &mut App, width: f64, ) -> f64

Source§

fn get_max_intrinsic_height( self: RenderHandle<Self>, app: &mut App, width: f64, ) -> f64

Source§

fn get_dry_layout( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, ) -> Size

Source§

fn get_dry_baseline( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, baseline: TextBaseline, ) -> Option<f64>

Source§

fn compute_dry_baseline( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, baseline: TextBaseline, ) -> Option<f64>

Computes the value returned by get_dry_baseline. Read more
Source§

fn debug_cannot_compute_dry_layout( self: RenderHandle<Self>, failure: DryLayoutFailure<'_>, )

Called from compute_dry_layout or compute_dry_baseline if this box does not support calculating a dry layout. Read more
Source§

fn get_distance_to_baseline( self: RenderHandle<Self>, app: &mut App, baseline: TextBaseline, only_real: bool, ) -> Option<f64>

Source§

fn get_distance_to_actual_baseline( self: RenderHandle<Self>, app: &mut App, baseline: TextBaseline, ) -> Option<f64>

Source§

fn mark_needs_layout(self: RenderHandle<Self>, app: &mut App)

Mark this render object’s layout information as dirty. Read more
Source§

fn perform_resize(self: RenderHandle<Self>, app: &mut App)

Updates the box’s size using only the constraints. Read more
Source§

fn size(self: RenderHandle<Self>, app: &App) -> Size

The size of this box.
Source§

fn paint_bounds(self: RenderHandle<Self>, app: &App) -> Rect

An estimate of the bounds within which this render object will paint: the box’s own size.
Source§

fn has_size(self: RenderHandle<Self>, app: &App) -> bool

Whether this render object has undergone layout and has a size.
Source§

fn handle_event( self: RenderHandle<Self>, app: &mut App, event: &PointerEvent, entry: &BoxHitTestEntry, )

Override this method to handle pointer events that hit this render object. Read more
Source§

fn hit_test( self: RenderHandle<Self>, app: &mut App, result: &mut BoxHitTestResult<'_>, position: Offset, ) -> bool

Determines the set of render objects located at the given position. Read more
Source§

fn set_size(self: RenderHandle<Self>, app: &mut App, size: Size)

Sets the size of this box. Call from RenderObject::perform_layout or RenderObject::perform_resize.
Source§

fn layout( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, parent_uses_size: bool, )

Source§

fn as_box(self: RenderHandle<Self>) -> AnyRenderBox

The type-erased RenderBox handle. Free: the vtable is a const, and the id is copied.
Source§

fn as_object(self: RenderHandle<Self>) -> AnyRenderObject

The type-erased RenderObject handle, through as_box.
Source§

fn adopt_child(self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject)

Source§

fn drop_child(self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject)

Source§

fn mark_needs_paint(self: RenderHandle<Self>, app: &mut App)

Source§

fn mark_needs_composited_layer_update(self: RenderHandle<Self>, app: &mut App)

Source§

fn mark_needs_compositing_bits_update(self: RenderHandle<Self>, app: &mut App)

Source§

fn schedule_initial_layout(self: RenderHandle<Self>, app: &mut App)

Source§

fn parent(self: RenderHandle<Self>, app: &App) -> Option<AnyRenderObject>

Source§

fn owner(self: RenderHandle<Self>, app: &App) -> Option<Handle<PipelineOwner>>

Source§

fn attached(self: RenderHandle<Self>, app: &App) -> bool

Source§

fn debug_needs_layout(self: RenderHandle<Self>, app: &App) -> bool

Source§

impl RenderInlineChildrenContainerDefaults for RenderEditable

Source§

fn setup_parent_data( self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject, )

Installs TextParentData on child, the mixin’s setupParentData.
Source§

fn layout_inline_children( self: RenderHandle<Self>, app: &mut App, max_width: f64, layout_child: ChildLayouter, get_child_baseline: ChildBaselineGetter, ) -> Vec<PlaceholderDimensions>

Computes the layout for every inline child using the max_width constraint. Read more
Source§

fn position_inline_children( self: RenderHandle<Self>, app: &mut App, boxes: &[TextBox], )

Positions each inline child according to the coordinates provided in the boxes list. Read more
Source§

fn default_apply_paint_transform( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, transform: &mut Matrix4, )

Applies the transform that would be applied when painting the given child to the given matrix. Read more
Source§

fn paint_inline_children( self: RenderHandle<Self>, app: &mut App, context: &mut PaintingContext, offset: Offset, )

Paints each inline child. Read more
Source§

fn hit_test_inline_children( self: RenderHandle<Self>, app: &mut App, result: &mut BoxHitTestResult<'_>, position: Offset, ) -> bool

Performs a hit test on each inline child. Read more
Source§

impl RenderObject for RenderEditable

Source§

fn render_object_data(self: RenderHandle<Self>, app: &App) -> &RenderObjectData

Mixin field access.
Source§

fn render_object_data_mut( self: RenderHandle<Self>, app: &mut App, ) -> &mut RenderObjectData

Source§

fn visit_children( self: RenderHandle<Self>, app: &App, visitor: &mut dyn FnMut(AnyRenderObject), )

Calls visitor for each immediate child.
Source§

fn redepth_children(self: RenderHandle<Self>, app: &mut App)

Adjusts the depth of each child reported by visit_children.
Source§

fn did_attach( self: RenderHandle<Self>, app: &mut App, owner: Handle<PipelineOwner>, )

The body of Flutter’s attach override after super.attach(owner); the base body has already run. The default attaches the children reported by visit_children.
Source§

fn did_detach(self: RenderHandle<Self>, app: &mut App)

The body of Flutter’s detach override after super.detach(). The default detaches the children reported by visit_children.
Source§

fn dispose(self: RenderHandle<Self>, app: &mut App)

Release any resources held by this render object. Read more
Source§

fn perform_layout(self: RenderHandle<Self>, app: &mut App)

Do the work of computing the layout for this render object. Read more
Source§

fn paint( self: RenderHandle<Self>, app: &mut App, context: &mut PaintingContext, offset: Offset, )

Paint this render object into the given context at the given offset. Read more
Source§

fn as_render_object(self: RenderHandle<Self>, app: &App) -> AnyRenderObject

Dart’s implicit upcast of a concrete render object to RenderObject: this object’s type-erased handle, through the vtable the protocol recorded when it created it.
Source§

fn perform_resize(self: RenderHandle<Self>, _app: &mut App)

Updates the render object’s size using only the constraints. Read more
Source§

fn setup_parent_data( self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject, )

Sets up parent data for child if it has none. Read more
Source§

fn sized_by_parent(self: RenderHandle<Self>, _app: &App) -> bool

Whether the constraints are the only input to the sizing algorithm.
Source§

fn apply_paint_transform( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, transform: &mut Matrix4, )

Applies the transform that would be applied when painting the given child to the given matrix. Read more
Source§

fn is_repaint_boundary(self: RenderHandle<Self>, _app: &App) -> bool

Whether this render object repaints separately from its parent. Read more
Source§

fn always_needs_compositing(self: RenderHandle<Self>, _app: &App) -> bool

Whether this render object always needs compositing. Read more
Source§

fn mouse_tracker_annotation( self: RenderHandle<Self>, _app: &App, ) -> Option<MouseTrackerAnnotation>

Dart’s this is MouseTrackerAnnotation: the annotation this render object implements, read live each time the mouse tracker consults it. None for a render object that is not an annotation, which is the default.
Source§

fn update_composited_layer( self: RenderHandle<Self>, app: &mut App, old_layer: Option<AnyOffsetLayer>, ) -> AnyOffsetLayer

Update the composited layer owned by this render object. Read more
Source§

fn show_on_screen( self: RenderHandle<Self>, app: &mut App, descendant: Option<AnyRenderObject>, rect: Option<Rect>, duration: Duration, curve: Rc<dyn Curve>, )

Attempt to make (a portion of) this or a descendant RenderObject visible on screen. Read more
Source§

fn interface(self: RenderHandle<Self>, id: TypeId) -> Option<Box<dyn Any>>

Dart’s object is RenderAbstractViewport for any interface: the erased handle of the interface id names, if this type implements it. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> ContainerRenderObjectBase for T

Source§

fn insert( self: RenderHandle<Self>, app: &mut App, child: Self::ChildType, after: Option<Self::ChildType>, )

Flutter’s ContainerRenderObjectMixin.insert.
Source§

fn remove(self: RenderHandle<Self>, app: &mut App, child: Self::ChildType)

Flutter’s ContainerRenderObjectMixin.remove.
Source§

fn remove_all(self: RenderHandle<Self>, app: &mut App)

Flutter’s ContainerRenderObjectMixin.removeAll.
Source§

fn move_child( self: RenderHandle<Self>, app: &mut App, child: Self::ChildType, after: Option<Self::ChildType>, )

Flutter’s ContainerRenderObjectMixin.move.
Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> RenderObjectBase for T
where T: RenderObject,

Source§

fn dispose(self: RenderHandle<Self>, app: &mut App)

Flutter’s RenderObject.dispose body: releases the layer handle. An override calls it last, where Dart writes super.dispose().
Source§

fn mark_needs_layout(self: RenderHandle<Self>, app: &mut App)

Flutter’s RenderObject.markNeedsLayout body; an override calls it where Dart writes super.markNeedsLayout().
Source§

fn show_on_screen( self: RenderHandle<Self>, app: &mut App, descendant: Option<AnyRenderObject>, rect: Option<Rect>, duration: Duration, curve: Rc<dyn Curve>, )

Flutter’s RenderObject.showOnScreen.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>