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: boolWhether handle_event will propagate pointer
events to selection handlers.
Implementations§
Source§impl RenderEditable
impl RenderEditable
Sourcepub 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>
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>
Sourcepub fn text(self: RenderHandle<Self>, app: &App) -> Option<InlineSpanRef>
pub fn text(self: RenderHandle<Self>, app: &App) -> Option<InlineSpanRef>
The text to display.
Sourcepub fn set_text(
self: RenderHandle<Self>,
app: &mut App,
value: Option<InlineSpanRef>,
)
pub fn set_text( self: RenderHandle<Self>, app: &mut App, value: Option<InlineSpanRef>, )
Sets text.
Sourcepub fn text_align(self: RenderHandle<Self>, app: &App) -> TextAlign
pub fn text_align(self: RenderHandle<Self>, app: &App) -> TextAlign
How the text should be aligned horizontally.
Sourcepub fn set_text_align(self: RenderHandle<Self>, app: &mut App, value: TextAlign)
pub fn set_text_align(self: RenderHandle<Self>, app: &mut App, value: TextAlign)
Sets text_align.
Sourcepub fn text_direction(self: RenderHandle<Self>, app: &App) -> TextDirection
pub fn text_direction(self: RenderHandle<Self>, app: &App) -> TextDirection
The directionality of the text.
Sourcepub fn set_text_direction(
self: RenderHandle<Self>,
app: &mut App,
value: TextDirection,
)
pub fn set_text_direction( self: RenderHandle<Self>, app: &mut App, value: TextDirection, )
Sets text_direction.
Sourcepub fn cursor_color(self: RenderHandle<Self>, app: &App) -> Option<Color>
pub fn cursor_color(self: RenderHandle<Self>, app: &App) -> Option<Color>
The color to use when painting the cursor.
Sourcepub fn set_cursor_color(
self: RenderHandle<Self>,
app: &mut App,
value: Option<Color>,
)
pub fn set_cursor_color( self: RenderHandle<Self>, app: &mut App, value: Option<Color>, )
Sets cursor_color.
Sourcepub fn background_cursor_color(
self: RenderHandle<Self>,
app: &App,
) -> Option<Color>
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.
Sourcepub fn set_background_cursor_color(
self: RenderHandle<Self>,
app: &mut App,
value: Option<Color>,
)
pub fn set_background_cursor_color( self: RenderHandle<Self>, app: &mut App, value: Option<Color>, )
Sets background_cursor_color.
Sourcepub fn show_cursor(
self: RenderHandle<Self>,
app: &App,
) -> Handle<ValueNotifier<bool>>
pub fn show_cursor( self: RenderHandle<Self>, app: &App, ) -> Handle<ValueNotifier<bool>>
Whether to paint the cursor.
Sourcepub fn set_show_cursor(
self: RenderHandle<Self>,
app: &mut App,
value: Handle<ValueNotifier<bool>>,
)
pub fn set_show_cursor( self: RenderHandle<Self>, app: &mut App, value: Handle<ValueNotifier<bool>>, )
Sets show_cursor.
Sourcepub fn has_focus(self: RenderHandle<Self>, app: &App) -> bool
pub fn has_focus(self: RenderHandle<Self>, app: &App) -> bool
Whether the editable is currently focused.
Sourcepub fn set_has_focus(self: RenderHandle<Self>, app: &mut App, value: bool)
pub fn set_has_focus(self: RenderHandle<Self>, app: &mut App, value: bool)
Sets has_focus.
Sourcepub fn start_handle_layer_link(
self: RenderHandle<Self>,
app: &App,
) -> Handle<LayerLink>
pub fn start_handle_layer_link( self: RenderHandle<Self>, app: &App, ) -> Handle<LayerLink>
The LayerLink of start selection handle.
Sourcepub fn set_start_handle_layer_link(
self: RenderHandle<Self>,
app: &mut App,
value: Handle<LayerLink>,
)
pub fn set_start_handle_layer_link( self: RenderHandle<Self>, app: &mut App, value: Handle<LayerLink>, )
Sets start_handle_layer_link.
Sourcepub fn end_handle_layer_link(
self: RenderHandle<Self>,
app: &App,
) -> Handle<LayerLink>
pub fn end_handle_layer_link( self: RenderHandle<Self>, app: &App, ) -> Handle<LayerLink>
The LayerLink of end selection handle.
Sourcepub fn set_end_handle_layer_link(
self: RenderHandle<Self>,
app: &mut App,
value: Handle<LayerLink>,
)
pub fn set_end_handle_layer_link( self: RenderHandle<Self>, app: &mut App, value: Handle<LayerLink>, )
Sets end_handle_layer_link.
Sourcepub fn max_lines(self: RenderHandle<Self>, app: &App) -> Option<i32>
pub fn max_lines(self: RenderHandle<Self>, app: &App) -> Option<i32>
The maximum number of lines for the text to span, wrapping if necessary.
Sourcepub fn set_max_lines(
self: RenderHandle<Self>,
app: &mut App,
value: Option<i32>,
)
pub fn set_max_lines( self: RenderHandle<Self>, app: &mut App, value: Option<i32>, )
Sets max_lines.
Sourcepub fn min_lines(self: RenderHandle<Self>, app: &App) -> Option<i32>
pub fn min_lines(self: RenderHandle<Self>, app: &App) -> Option<i32>
The minimum number of lines to occupy when the content spans fewer lines.
Sourcepub fn set_min_lines(
self: RenderHandle<Self>,
app: &mut App,
value: Option<i32>,
)
pub fn set_min_lines( self: RenderHandle<Self>, app: &mut App, value: Option<i32>, )
Sets min_lines.
Sourcepub fn expands(self: RenderHandle<Self>, app: &App) -> bool
pub fn expands(self: RenderHandle<Self>, app: &App) -> bool
Whether this widget’s height will be sized to fill its parent.
Sourcepub fn set_expands(self: RenderHandle<Self>, app: &mut App, value: bool)
pub fn set_expands(self: RenderHandle<Self>, app: &mut App, value: bool)
Sets expands.
Sourcepub fn selection_color(self: RenderHandle<Self>, app: &App) -> Option<Color>
pub fn selection_color(self: RenderHandle<Self>, app: &App) -> Option<Color>
The color to use when painting the selection.
Sourcepub fn set_selection_color(
self: RenderHandle<Self>,
app: &mut App,
value: Option<Color>,
)
pub fn set_selection_color( self: RenderHandle<Self>, app: &mut App, value: Option<Color>, )
Sets selection_color.
Sourcepub fn text_scaler(self: RenderHandle<Self>, app: &App) -> TextScaler
pub fn text_scaler(self: RenderHandle<Self>, app: &App) -> TextScaler
The font scaling strategy to use when laying out and rendering the text.
Sourcepub fn set_text_scaler(
self: RenderHandle<Self>,
app: &mut App,
value: TextScaler,
)
pub fn set_text_scaler( self: RenderHandle<Self>, app: &mut App, value: TextScaler, )
Sets text_scaler.
Sourcepub fn selection(self: RenderHandle<Self>, app: &App) -> Option<TextSelection>
pub fn selection(self: RenderHandle<Self>, app: &App) -> Option<TextSelection>
The region of text that is selected, if any.
Sourcepub fn set_selection(
self: RenderHandle<Self>,
app: &mut App,
value: Option<TextSelection>,
)
pub fn set_selection( self: RenderHandle<Self>, app: &mut App, value: Option<TextSelection>, )
Sets selection.
Sourcepub fn offset(self: RenderHandle<Self>, app: &App) -> AnyViewportOffset
pub fn offset(self: RenderHandle<Self>, app: &App) -> AnyViewportOffset
The offset at which the text should be painted.
Sourcepub fn set_offset(
self: RenderHandle<Self>,
app: &mut App,
value: AnyViewportOffset,
)
pub fn set_offset( self: RenderHandle<Self>, app: &mut App, value: AnyViewportOffset, )
Sets offset.
Sourcepub fn read_only(self: RenderHandle<Self>, app: &App) -> bool
pub fn read_only(self: RenderHandle<Self>, app: &App) -> bool
Whether the text can be changed.
Sourcepub fn set_read_only(self: RenderHandle<Self>, app: &mut App, value: bool)
pub fn set_read_only(self: RenderHandle<Self>, app: &mut App, value: bool)
Sets read_only.
Sourcepub fn force_line(self: RenderHandle<Self>, app: &App) -> bool
pub fn force_line(self: RenderHandle<Self>, app: &App) -> bool
Whether this rendering object will take a full line regardless the text width.
Sourcepub fn set_force_line(self: RenderHandle<Self>, app: &mut App, value: bool)
pub fn set_force_line(self: RenderHandle<Self>, app: &mut App, value: bool)
Sets force_line.
Sourcepub fn text_height_behavior(
self: RenderHandle<Self>,
app: &App,
) -> Option<TextHeightBehavior>
pub fn text_height_behavior( self: RenderHandle<Self>, app: &App, ) -> Option<TextHeightBehavior>
{@macro dart.ui.textHeightBehavior}
Sourcepub fn set_text_height_behavior(
self: RenderHandle<Self>,
app: &mut App,
value: Option<TextHeightBehavior>,
)
pub fn set_text_height_behavior( self: RenderHandle<Self>, app: &mut App, value: Option<TextHeightBehavior>, )
Sets text_height_behavior.
Sourcepub fn text_width_basis(self: RenderHandle<Self>, app: &App) -> TextWidthBasis
pub fn text_width_basis(self: RenderHandle<Self>, app: &App) -> TextWidthBasis
{@macro flutter.painting.textPainter.textWidthBasis}
Sourcepub fn set_text_width_basis(
self: RenderHandle<Self>,
app: &mut App,
value: TextWidthBasis,
)
pub fn set_text_width_basis( self: RenderHandle<Self>, app: &mut App, value: TextWidthBasis, )
Sets text_width_basis.
Sourcepub fn obscuring_character(self: RenderHandle<Self>, app: &App) -> &str
pub fn obscuring_character(self: RenderHandle<Self>, app: &App) -> &str
Character used for obscuring text if obscure_text is true.
Sourcepub fn set_obscuring_character(
self: RenderHandle<Self>,
app: &mut App,
value: impl Into<String>,
)
pub fn set_obscuring_character( self: RenderHandle<Self>, app: &mut App, value: impl Into<String>, )
Sets obscuring_character.
Sourcepub fn obscure_text(self: RenderHandle<Self>, app: &App) -> bool
pub fn obscure_text(self: RenderHandle<Self>, app: &App) -> bool
Whether to hide the text being edited (e.g., for passwords).
Sourcepub fn set_obscure_text(self: RenderHandle<Self>, app: &mut App, value: bool)
pub fn set_obscure_text(self: RenderHandle<Self>, app: &mut App, value: bool)
Sets obscure_text.
Sourcepub fn cursor_width(self: RenderHandle<Self>, app: &App) -> f64
pub fn cursor_width(self: RenderHandle<Self>, app: &App) -> f64
How wide the cursor is.
Sourcepub fn set_cursor_width(self: RenderHandle<Self>, app: &mut App, value: f64)
pub fn set_cursor_width(self: RenderHandle<Self>, app: &mut App, value: f64)
Sets cursor_width.
Sourcepub fn cursor_height(self: RenderHandle<Self>, app: &mut App) -> f64
pub fn cursor_height(self: RenderHandle<Self>, app: &mut App) -> f64
How tall the cursor will be.
Sourcepub fn set_cursor_height(
self: RenderHandle<Self>,
app: &mut App,
value: Option<f64>,
)
pub fn set_cursor_height( self: RenderHandle<Self>, app: &mut App, value: Option<f64>, )
Sets the explicit cursor height; None uses preferred_line_height.
Sourcepub fn cursor_radius(self: RenderHandle<Self>, app: &App) -> Option<Radius>
pub fn cursor_radius(self: RenderHandle<Self>, app: &App) -> Option<Radius>
The radius of the cursor.
Sourcepub fn set_cursor_radius(
self: RenderHandle<Self>,
app: &mut App,
value: Option<Radius>,
)
pub fn set_cursor_radius( self: RenderHandle<Self>, app: &mut App, value: Option<Radius>, )
Sets cursor_radius.
Sourcepub fn paint_cursor_above_text(self: RenderHandle<Self>, app: &App) -> bool
pub fn paint_cursor_above_text(self: RenderHandle<Self>, app: &App) -> bool
Whether the cursor paints above the text.
Sourcepub fn set_paint_cursor_above_text(
self: RenderHandle<Self>,
app: &mut App,
value: bool,
)
pub fn set_paint_cursor_above_text( self: RenderHandle<Self>, app: &mut App, value: bool, )
Sets paint_cursor_above_text.
Sourcepub fn cursor_offset(self: RenderHandle<Self>, app: &App) -> Offset
pub fn cursor_offset(self: RenderHandle<Self>, app: &App) -> Offset
The offset that is used, in pixels, when painting the cursor on screen.
Sourcepub fn set_cursor_offset(self: RenderHandle<Self>, app: &mut App, value: Offset)
pub fn set_cursor_offset(self: RenderHandle<Self>, app: &mut App, value: Offset)
Sets cursor_offset.
Sourcepub fn device_pixel_ratio(self: RenderHandle<Self>, app: &App) -> f64
pub fn device_pixel_ratio(self: RenderHandle<Self>, app: &App) -> f64
The pixel ratio of the current device.
Sourcepub fn set_device_pixel_ratio(
self: RenderHandle<Self>,
app: &mut App,
value: f64,
)
pub fn set_device_pixel_ratio( self: RenderHandle<Self>, app: &mut App, value: f64, )
Sets device_pixel_ratio.
Sourcepub fn selection_height_style(
self: RenderHandle<Self>,
app: &App,
) -> BoxHeightStyle
pub fn selection_height_style( self: RenderHandle<Self>, app: &App, ) -> BoxHeightStyle
Controls how tall the selection highlight boxes are computed to be.
Sourcepub fn set_selection_height_style(
self: RenderHandle<Self>,
app: &mut App,
value: BoxHeightStyle,
)
pub fn set_selection_height_style( self: RenderHandle<Self>, app: &mut App, value: BoxHeightStyle, )
Sets selection_height_style.
Sourcepub fn selection_width_style(
self: RenderHandle<Self>,
app: &App,
) -> BoxWidthStyle
pub fn selection_width_style( self: RenderHandle<Self>, app: &App, ) -> BoxWidthStyle
Controls how wide the selection highlight boxes are computed to be.
Sourcepub fn set_selection_width_style(
self: RenderHandle<Self>,
app: &mut App,
value: BoxWidthStyle,
)
pub fn set_selection_width_style( self: RenderHandle<Self>, app: &mut App, value: BoxWidthStyle, )
Sets selection_width_style.
Sourcepub fn enable_interactive_selection(
self: RenderHandle<Self>,
app: &App,
) -> Option<bool>
pub fn enable_interactive_selection( self: RenderHandle<Self>, app: &App, ) -> Option<bool>
Whether to allow the user to change the selection.
Sourcepub fn set_enable_interactive_selection(
self: RenderHandle<Self>,
app: &mut App,
value: Option<bool>,
)
pub fn set_enable_interactive_selection( self: RenderHandle<Self>, app: &mut App, value: Option<bool>, )
Sourcepub fn text_selection_delegate(
self: RenderHandle<Self>,
app: &App,
) -> AnyTextSelectionDelegate
pub fn text_selection_delegate( self: RenderHandle<Self>, app: &App, ) -> AnyTextSelectionDelegate
The TextSelectionDelegate for
this RenderEditable.
Sourcepub fn set_text_selection_delegate(
self: RenderHandle<Self>,
app: &mut App,
value: AnyTextSelectionDelegate,
)
pub fn set_text_selection_delegate( self: RenderHandle<Self>, app: &mut App, value: AnyTextSelectionDelegate, )
Sets text_selection_delegate.
Sourcepub fn prompt_rect_color(self: RenderHandle<Self>, app: &App) -> Option<Color>
pub fn prompt_rect_color(self: RenderHandle<Self>, app: &App) -> Option<Color>
The color of the prompt rectangle for a pending autocorrection.
Sourcepub fn set_prompt_rect_color(
self: RenderHandle<Self>,
app: &mut App,
value: Option<Color>,
)
pub fn set_prompt_rect_color( self: RenderHandle<Self>, app: &mut App, value: Option<Color>, )
Sets prompt_rect_color.
Sourcepub fn set_prompt_rect_range(
self: RenderHandle<Self>,
app: &mut App,
value: Option<TextRange>,
)
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.
Sourcepub fn clip_behavior(self: RenderHandle<Self>, app: &App) -> Clip
pub fn clip_behavior(self: RenderHandle<Self>, app: &App) -> Clip
The content will be clipped (or not) according to this option.
Sourcepub fn set_clip_behavior(self: RenderHandle<Self>, app: &mut App, value: Clip)
pub fn set_clip_behavior(self: RenderHandle<Self>, app: &mut App, value: Clip)
Sets clip_behavior.
Sourcepub fn get_boxes_for_selection(
self: RenderHandle<Self>,
app: &mut App,
selection: TextSelection,
) -> Vec<TextBox>
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.
Sourcepub fn selection_start_in_viewport(
self: RenderHandle<Self>,
app: &App,
) -> Handle<ValueNotifier<bool>>
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.
Sourcepub fn selection_end_in_viewport(
self: RenderHandle<Self>,
app: &App,
) -> Handle<ValueNotifier<bool>>
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.
Sourcepub fn plain_text(self: RenderHandle<Self>, app: &mut App) -> String
pub fn plain_text(self: RenderHandle<Self>, app: &mut App) -> String
If obscure_text is true, returns the obscured text.
Sourcepub fn preferred_line_height(self: RenderHandle<Self>, app: &mut App) -> f64
pub fn preferred_line_height(self: RenderHandle<Self>, app: &mut App) -> f64
An estimate of the height of a line in the text.
Sourcepub fn get_endpoints_for_selection(
self: RenderHandle<Self>,
app: &mut App,
selection: TextSelection,
) -> Vec<TextSelectionPoint>
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.
Sourcepub fn get_rect_for_composing_range(
self: RenderHandle<Self>,
app: &mut App,
range: TextRange,
) -> Option<Rect>
pub fn get_rect_for_composing_range( self: RenderHandle<Self>, app: &mut App, range: TextRange, ) -> Option<Rect>
Sourcepub fn get_position_for_point(
self: RenderHandle<Self>,
app: &mut App,
global_position: Offset,
) -> TextPosition
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.
Sourcepub fn get_local_rect_for_caret(
self: RenderHandle<Self>,
app: &mut App,
caret_position: TextPosition,
) -> Rect
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.
Sourcepub fn handle_tap_down(
self: RenderHandle<Self>,
_app: &mut App,
details: &TapDownDetails,
)
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.
Sourcepub fn last_secondary_tap_down_position(
self: RenderHandle<Self>,
app: &App,
) -> Option<Offset>
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.
Sourcepub fn handle_secondary_tap_down(
self: RenderHandle<Self>,
app: &mut App,
details: &TapDownDetails,
)
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.
Sourcepub fn handle_tap(self: RenderHandle<Self>, app: &mut App)
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.
Sourcepub fn handle_double_tap(self: RenderHandle<Self>, app: &mut App)
pub fn handle_double_tap(self: RenderHandle<Self>, app: &mut App)
Select the word around the last tap-down.
Sourcepub fn handle_long_press(self: RenderHandle<Self>, app: &mut App)
pub fn handle_long_press(self: RenderHandle<Self>, app: &mut App)
Select the word around the last long-press.
Sourcepub fn select_position(
self: RenderHandle<Self>,
app: &mut App,
cause: SelectionChangedCause,
)
pub fn select_position( self: RenderHandle<Self>, app: &mut App, cause: SelectionChangedCause, )
Move the selection to the location of the last tap down.
Sourcepub fn select_position_at(
self: RenderHandle<Self>,
app: &mut App,
from: Offset,
to: Option<Offset>,
cause: SelectionChangedCause,
)
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.
Sourcepub fn select_word(
self: RenderHandle<Self>,
app: &mut App,
cause: SelectionChangedCause,
)
pub fn select_word( self: RenderHandle<Self>, app: &mut App, cause: SelectionChangedCause, )
Select a word around the location of the last tap down.
Sourcepub fn select_words_in_range(
self: RenderHandle<Self>,
app: &mut App,
from: Offset,
to: Option<Offset>,
cause: SelectionChangedCause,
)
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.
Sourcepub fn select_word_edge(
self: RenderHandle<Self>,
app: &mut App,
cause: SelectionChangedCause,
)
pub fn select_word_edge( self: RenderHandle<Self>, app: &mut App, cause: SelectionChangedCause, )
Move the selection to the beginning or end of a word.
Sourcepub fn get_word_at_offset(
self: RenderHandle<Self>,
app: &mut App,
position: TextPosition,
) -> TextSelection
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.
Sourcepub fn get_line_at_offset(
self: RenderHandle<Self>,
app: &mut App,
position: TextPosition,
) -> TextSelection
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.
Sourcepub fn word_boundaries(self: RenderHandle<Self>, app: &App) -> WordBoundary
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.
Sourcepub fn get_word_boundary(
self: RenderHandle<Self>,
app: &mut App,
position: TextPosition,
) -> TextRange
pub fn get_word_boundary( self: RenderHandle<Self>, app: &mut App, position: TextPosition, ) -> TextRange
See TextPainter.get_word_boundary.
Sourcepub fn get_text_position_above(
self: RenderHandle<Self>,
app: &mut App,
position: TextPosition,
) -> TextPosition
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.
Sourcepub fn get_text_position_below(
self: RenderHandle<Self>,
app: &mut App,
position: TextPosition,
) -> TextPosition
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.
Sourcepub fn start_vertical_caret_movement(
self: RenderHandle<Self>,
app: &mut App,
start_position: TextPosition,
) -> VerticalCaretMovementRun
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
impl ContainerRenderObjectMixin for RenderEditable
Source§type ChildType = AnyRenderBox
type ChildType = AnyRenderBox
ChildType: the protocol of this render object’s children.Source§type ParentDataType = TextParentData
type ParentDataType = TextParentData
ParentDataType: the parent data this render object installs on its children.Source§fn container_data(
self: RenderHandle<Self>,
app: &App,
) -> &ContainerRenderObjectData<AnyRenderBox>
fn container_data( self: RenderHandle<Self>, app: &App, ) -> &ContainerRenderObjectData<AnyRenderBox>
Source§fn container_data_mut(
self: RenderHandle<Self>,
app: &mut App,
) -> &mut ContainerRenderObjectData<AnyRenderBox>
fn container_data_mut( self: RenderHandle<Self>, app: &mut App, ) -> &mut ContainerRenderObjectData<AnyRenderBox>
container_data.Source§fn child_count(self: RenderHandle<Self>, app: &App) -> usize
fn child_count(self: RenderHandle<Self>, app: &App) -> usize
Source§fn insert(
self: RenderHandle<Self>,
app: &mut App,
child: Self::ChildType,
after: Option<Self::ChildType>,
)
fn insert( self: RenderHandle<Self>, app: &mut App, child: Self::ChildType, after: Option<Self::ChildType>, )
Source§fn add(self: RenderHandle<Self>, app: &mut App, child: Self::ChildType)
fn add(self: RenderHandle<Self>, app: &mut App, child: Self::ChildType)
Source§fn add_all(
self: RenderHandle<Self>,
app: &mut App,
children: Option<Vec<Self::ChildType>>,
)
fn add_all( self: RenderHandle<Self>, app: &mut App, children: Option<Vec<Self::ChildType>>, )
Source§fn remove(self: RenderHandle<Self>, app: &mut App, child: Self::ChildType)
fn remove(self: RenderHandle<Self>, app: &mut App, child: Self::ChildType)
Source§fn remove_all(self: RenderHandle<Self>, app: &mut App)
fn remove_all(self: RenderHandle<Self>, app: &mut App)
Source§fn move_child(
self: RenderHandle<Self>,
app: &mut App,
child: Self::ChildType,
after: Option<Self::ChildType>,
)
fn move_child( self: RenderHandle<Self>, app: &mut App, child: Self::ChildType, after: Option<Self::ChildType>, )
child in the child list to be after another child. Read moreSource§fn did_attach(
self: RenderHandle<Self>,
app: &mut App,
owner: Handle<PipelineOwner>,
)
fn did_attach( self: RenderHandle<Self>, app: &mut App, owner: Handle<PipelineOwner>, )
attach override: attaches every child in the list.Source§fn did_detach(self: RenderHandle<Self>, app: &mut App)
fn did_detach(self: RenderHandle<Self>, app: &mut App)
detach override: detaches every child in the list.Source§fn redepth_children(self: RenderHandle<Self>, app: &mut App)
fn redepth_children(self: RenderHandle<Self>, app: &mut App)
redepthChildren: walks the child list.Source§fn visit_children(
self: RenderHandle<Self>,
app: &App,
visitor: &mut dyn FnMut(AnyRenderObject),
)
fn visit_children( self: RenderHandle<Self>, app: &App, visitor: &mut dyn FnMut(AnyRenderObject), )
visitChildren: walks the child list.Source§fn first_child(self: RenderHandle<Self>, app: &App) -> Option<Self::ChildType>
fn first_child(self: RenderHandle<Self>, app: &App) -> Option<Self::ChildType>
Source§fn last_child(self: RenderHandle<Self>, app: &App) -> Option<Self::ChildType>
fn last_child(self: RenderHandle<Self>, app: &App) -> Option<Self::ChildType>
Source§fn child_before(
self: RenderHandle<Self>,
app: &App,
child: Self::ChildType,
) -> Option<Self::ChildType>
fn child_before( self: RenderHandle<Self>, app: &App, child: Self::ChildType, ) -> Option<Self::ChildType>
Source§fn child_after(
self: RenderHandle<Self>,
app: &App,
child: Self::ChildType,
) -> Option<Self::ChildType>
fn child_after( self: RenderHandle<Self>, app: &App, child: Self::ChildType, ) -> Option<Self::ChildType>
Source§fn children_as_list(self: RenderHandle<Self>, app: &App) -> Vec<Self::ChildType>
fn children_as_list(self: RenderHandle<Self>, app: &App) -> Vec<Self::ChildType>
Source§impl RelayoutWhenSystemFontsChangeMixin for RenderEditable
impl RelayoutWhenSystemFontsChangeMixin for RenderEditable
Source§fn relayout_when_system_fonts_change_data(
self: RenderHandle<Self>,
app: &App,
) -> &RelayoutWhenSystemFontsChangeData
fn relayout_when_system_fonts_change_data( self: RenderHandle<Self>, app: &App, ) -> &RelayoutWhenSystemFontsChangeData
Source§fn relayout_when_system_fonts_change_data_mut(
self: RenderHandle<Self>,
app: &mut App,
) -> &mut RelayoutWhenSystemFontsChangeData
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)
fn system_fonts_did_change(self: RenderHandle<Self>, app: &mut App)
Source§fn attach_system_fonts(self: RenderHandle<Self>, app: &mut App)
fn attach_system_fonts(self: RenderHandle<Self>, app: &mut App)
attach override body after super.attach.Source§fn detach_system_fonts(self: RenderHandle<Self>, app: &mut App)
fn detach_system_fonts(self: RenderHandle<Self>, app: &mut App)
detach override body before super.detach.fn system_fonts_listener(self: RenderHandle<Self>) -> Listener
fn schedule_system_fonts_update(self: RenderHandle<Self>, app: &mut App)
Source§impl RenderBox for RenderEditable
impl RenderBox for RenderEditable
Source§fn render_box_data(self: RenderHandle<Self>, app: &App) -> &RenderBoxData
fn render_box_data(self: RenderHandle<Self>, app: &App) -> &RenderBoxData
Source§fn render_box_data_mut(
self: RenderHandle<Self>,
app: &mut App,
) -> &mut RenderBoxData
fn render_box_data_mut( self: RenderHandle<Self>, app: &mut App, ) -> &mut RenderBoxData
render_box_data.Source§fn setup_parent_data(
self: RenderHandle<Self>,
app: &mut App,
child: AnyRenderObject,
)
fn setup_parent_data( self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject, )
BoxParentData unless the child already has it. Read moreSource§fn compute_min_intrinsic_width(
self: RenderHandle<Self>,
app: &mut App,
_height: f64,
) -> f64
fn compute_min_intrinsic_width( self: RenderHandle<Self>, app: &mut App, _height: f64, ) -> f64
get_min_intrinsic_width.
Do not call this function directly, instead, call
get_min_intrinsic_width. Read moreSource§fn compute_max_intrinsic_width(
self: RenderHandle<Self>,
app: &mut App,
_height: f64,
) -> f64
fn compute_max_intrinsic_width( self: RenderHandle<Self>, app: &mut App, _height: f64, ) -> f64
get_max_intrinsic_width.
Do not call this function directly, instead, call
get_max_intrinsic_width. Read moreSource§fn compute_min_intrinsic_height(
self: RenderHandle<Self>,
app: &mut App,
width: f64,
) -> f64
fn compute_min_intrinsic_height( self: RenderHandle<Self>, app: &mut App, width: f64, ) -> f64
get_min_intrinsic_height. Do not call this function
directly, instead, call get_min_intrinsic_height. Read moreSource§fn compute_max_intrinsic_height(
self: RenderHandle<Self>,
app: &mut App,
width: f64,
) -> f64
fn compute_max_intrinsic_height( self: RenderHandle<Self>, app: &mut App, width: f64, ) -> f64
get_max_intrinsic_height. Do not call this function
directly, instead, call get_max_intrinsic_height. Read moreSource§fn compute_dry_layout(
self: RenderHandle<Self>,
app: &mut App,
constraints: BoxConstraints,
) -> Size
fn compute_dry_layout( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, ) -> Size
get_dry_layout. Do not call this
function directly, instead, call get_dry_layout. Read moreSource§fn compute_distance_to_actual_baseline(
self: RenderHandle<Self>,
app: &mut App,
baseline: TextBaseline,
) -> Option<f64>
fn compute_distance_to_actual_baseline( self: RenderHandle<Self>, app: &mut App, baseline: TextBaseline, ) -> Option<f64>
None otherwise. Read moreSource§fn hit_test_self(
self: RenderHandle<Self>,
_app: &App,
_position: Offset,
) -> bool
fn hit_test_self( self: RenderHandle<Self>, _app: &App, _position: Offset, ) -> bool
Source§fn hit_test_children(
self: RenderHandle<Self>,
app: &mut App,
result: &mut BoxHitTestResult<'_>,
position: Offset,
) -> bool
fn hit_test_children( self: RenderHandle<Self>, app: &mut App, result: &mut BoxHitTestResult<'_>, position: Offset, ) -> bool
Source§fn apply_paint_transform(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderObject,
transform: &mut Matrix4,
)
fn apply_paint_transform( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, transform: &mut Matrix4, )
Source§fn constraints(self: RenderHandle<Self>, app: &App) -> BoxConstraints
fn constraints(self: RenderHandle<Self>, app: &App) -> BoxConstraints
Source§fn get_min_intrinsic_width(
self: RenderHandle<Self>,
app: &mut App,
height: f64,
) -> f64
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
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
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
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
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>
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>
fn compute_dry_baseline( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, baseline: TextBaseline, ) -> Option<f64>
get_dry_baseline. Read moreSource§fn debug_cannot_compute_dry_layout(
self: RenderHandle<Self>,
failure: DryLayoutFailure<'_>,
)
fn debug_cannot_compute_dry_layout( self: RenderHandle<Self>, failure: DryLayoutFailure<'_>, )
compute_dry_layout or
compute_dry_baseline if this box does not support
calculating a dry layout. Read moreSource§fn get_distance_to_baseline(
self: RenderHandle<Self>,
app: &mut App,
baseline: TextBaseline,
only_real: bool,
) -> Option<f64>
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>
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)
fn mark_needs_layout(self: RenderHandle<Self>, app: &mut App)
Source§fn perform_resize(self: RenderHandle<Self>, app: &mut App)
fn perform_resize(self: RenderHandle<Self>, app: &mut App)
Source§fn paint_bounds(self: RenderHandle<Self>, app: &App) -> Rect
fn paint_bounds(self: RenderHandle<Self>, app: &App) -> Rect
Source§fn has_size(self: RenderHandle<Self>, app: &App) -> bool
fn has_size(self: RenderHandle<Self>, app: &App) -> bool
size.Source§fn handle_event(
self: RenderHandle<Self>,
app: &mut App,
event: &PointerEvent,
entry: &BoxHitTestEntry,
)
fn handle_event( self: RenderHandle<Self>, app: &mut App, event: &PointerEvent, entry: &BoxHitTestEntry, )
Source§fn hit_test(
self: RenderHandle<Self>,
app: &mut App,
result: &mut BoxHitTestResult<'_>,
position: Offset,
) -> bool
fn hit_test( self: RenderHandle<Self>, app: &mut App, result: &mut BoxHitTestResult<'_>, position: Offset, ) -> bool
Source§fn set_size(self: RenderHandle<Self>, app: &mut App, size: Size)
fn set_size(self: RenderHandle<Self>, app: &mut App, size: Size)
RenderObject::perform_layout or
RenderObject::perform_resize.Source§fn layout(
self: RenderHandle<Self>,
app: &mut App,
constraints: BoxConstraints,
parent_uses_size: bool,
)
fn layout( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, parent_uses_size: bool, )
AnyRenderBox::layout.Source§fn as_box(self: RenderHandle<Self>) -> AnyRenderBox
fn as_box(self: RenderHandle<Self>) -> AnyRenderBox
RenderBox handle. Free: the vtable is a const, and the id is copied.Source§fn as_object(self: RenderHandle<Self>) -> AnyRenderObject
fn as_object(self: RenderHandle<Self>) -> AnyRenderObject
RenderObject handle, through as_box.Source§fn adopt_child(self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject)
fn adopt_child(self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject)
Source§fn drop_child(self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject)
fn drop_child(self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject)
Source§fn mark_needs_paint(self: RenderHandle<Self>, app: &mut App)
fn mark_needs_paint(self: RenderHandle<Self>, app: &mut App)
Source§fn mark_needs_composited_layer_update(self: RenderHandle<Self>, app: &mut App)
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)
fn mark_needs_compositing_bits_update(self: RenderHandle<Self>, app: &mut App)
Source§fn schedule_initial_layout(self: RenderHandle<Self>, app: &mut App)
fn schedule_initial_layout(self: RenderHandle<Self>, app: &mut App)
Source§fn parent(self: RenderHandle<Self>, app: &App) -> Option<AnyRenderObject>
fn parent(self: RenderHandle<Self>, app: &App) -> Option<AnyRenderObject>
Source§fn owner(self: RenderHandle<Self>, app: &App) -> Option<Handle<PipelineOwner>>
fn owner(self: RenderHandle<Self>, app: &App) -> Option<Handle<PipelineOwner>>
Source§fn debug_needs_layout(self: RenderHandle<Self>, app: &App) -> bool
fn debug_needs_layout(self: RenderHandle<Self>, app: &App) -> bool
Source§impl RenderInlineChildrenContainerDefaults for RenderEditable
impl RenderInlineChildrenContainerDefaults for RenderEditable
Source§fn setup_parent_data(
self: RenderHandle<Self>,
app: &mut App,
child: AnyRenderObject,
)
fn setup_parent_data( self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject, )
Source§fn layout_inline_children(
self: RenderHandle<Self>,
app: &mut App,
max_width: f64,
layout_child: ChildLayouter,
get_child_baseline: ChildBaselineGetter,
) -> Vec<PlaceholderDimensions>
fn layout_inline_children( self: RenderHandle<Self>, app: &mut App, max_width: f64, layout_child: ChildLayouter, get_child_baseline: ChildBaselineGetter, ) -> Vec<PlaceholderDimensions>
max_width constraint. Read moreSource§fn position_inline_children(
self: RenderHandle<Self>,
app: &mut App,
boxes: &[TextBox],
)
fn position_inline_children( self: RenderHandle<Self>, app: &mut App, boxes: &[TextBox], )
boxes
list. Read moreSource§fn default_apply_paint_transform(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderObject,
transform: &mut Matrix4,
)
fn default_apply_paint_transform( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, transform: &mut Matrix4, )
Source§fn paint_inline_children(
self: RenderHandle<Self>,
app: &mut App,
context: &mut PaintingContext,
offset: Offset,
)
fn paint_inline_children( self: RenderHandle<Self>, app: &mut App, context: &mut PaintingContext, offset: Offset, )
Source§fn hit_test_inline_children(
self: RenderHandle<Self>,
app: &mut App,
result: &mut BoxHitTestResult<'_>,
position: Offset,
) -> bool
fn hit_test_inline_children( self: RenderHandle<Self>, app: &mut App, result: &mut BoxHitTestResult<'_>, position: Offset, ) -> bool
Source§impl RenderObject for RenderEditable
impl RenderObject for RenderEditable
Source§fn render_object_data(self: RenderHandle<Self>, app: &App) -> &RenderObjectData
fn render_object_data(self: RenderHandle<Self>, app: &App) -> &RenderObjectData
Source§fn render_object_data_mut(
self: RenderHandle<Self>,
app: &mut App,
) -> &mut RenderObjectData
fn render_object_data_mut( self: RenderHandle<Self>, app: &mut App, ) -> &mut RenderObjectData
render_object_data.Source§fn visit_children(
self: RenderHandle<Self>,
app: &App,
visitor: &mut dyn FnMut(AnyRenderObject),
)
fn visit_children( self: RenderHandle<Self>, app: &App, visitor: &mut dyn FnMut(AnyRenderObject), )
visitor for each immediate child.Source§fn redepth_children(self: RenderHandle<Self>, app: &mut App)
fn redepth_children(self: RenderHandle<Self>, app: &mut App)
visit_children.Source§fn did_attach(
self: RenderHandle<Self>,
app: &mut App,
owner: Handle<PipelineOwner>,
)
fn did_attach( self: RenderHandle<Self>, app: &mut App, owner: Handle<PipelineOwner>, )
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)
fn did_detach(self: RenderHandle<Self>, app: &mut App)
detach override after super.detach(). The default detaches
the children reported by visit_children.Source§fn dispose(self: RenderHandle<Self>, app: &mut App)
fn dispose(self: RenderHandle<Self>, app: &mut App)
Source§fn perform_layout(self: RenderHandle<Self>, app: &mut App)
fn perform_layout(self: RenderHandle<Self>, app: &mut App)
Source§fn paint(
self: RenderHandle<Self>,
app: &mut App,
context: &mut PaintingContext,
offset: Offset,
)
fn paint( self: RenderHandle<Self>, app: &mut App, context: &mut PaintingContext, offset: Offset, )
Source§fn as_render_object(self: RenderHandle<Self>, app: &App) -> AnyRenderObject
fn as_render_object(self: RenderHandle<Self>, app: &App) -> AnyRenderObject
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)
fn perform_resize(self: RenderHandle<Self>, _app: &mut App)
Source§fn setup_parent_data(
self: RenderHandle<Self>,
app: &mut App,
child: AnyRenderObject,
)
fn setup_parent_data( self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject, )
child if it has none. Read moreSource§fn sized_by_parent(self: RenderHandle<Self>, _app: &App) -> bool
fn sized_by_parent(self: RenderHandle<Self>, _app: &App) -> bool
Source§fn apply_paint_transform(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderObject,
transform: &mut Matrix4,
)
fn apply_paint_transform( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, transform: &mut Matrix4, )
Source§fn is_repaint_boundary(self: RenderHandle<Self>, _app: &App) -> bool
fn is_repaint_boundary(self: RenderHandle<Self>, _app: &App) -> bool
Source§fn always_needs_compositing(self: RenderHandle<Self>, _app: &App) -> bool
fn always_needs_compositing(self: RenderHandle<Self>, _app: &App) -> bool
Source§fn mouse_tracker_annotation(
self: RenderHandle<Self>,
_app: &App,
) -> Option<MouseTrackerAnnotation>
fn mouse_tracker_annotation( self: RenderHandle<Self>, _app: &App, ) -> Option<MouseTrackerAnnotation>
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
fn update_composited_layer( self: RenderHandle<Self>, app: &mut App, old_layer: Option<AnyOffsetLayer>, ) -> AnyOffsetLayer
Source§fn show_on_screen(
self: RenderHandle<Self>,
app: &mut App,
descendant: Option<AnyRenderObject>,
rect: Option<Rect>,
duration: Duration,
curve: Rc<dyn Curve>,
)
fn show_on_screen( self: RenderHandle<Self>, app: &mut App, descendant: Option<AnyRenderObject>, rect: Option<Rect>, duration: Duration, curve: Rc<dyn Curve>, )
RenderObject visible on screen. Read moreAuto Trait Implementations§
impl !Freeze for RenderEditable
impl !RefUnwindSafe for RenderEditable
impl !Send for RenderEditable
impl !Sync for RenderEditable
impl !UnwindSafe for RenderEditable
impl Unpin for RenderEditable
impl UnsafeUnpin for RenderEditable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> ContainerRenderObjectBase for Twhere
T: ContainerRenderObjectMixin,
impl<T> ContainerRenderObjectBase for Twhere
T: ContainerRenderObjectMixin,
Source§fn insert(
self: RenderHandle<Self>,
app: &mut App,
child: Self::ChildType,
after: Option<Self::ChildType>,
)
fn insert( self: RenderHandle<Self>, app: &mut App, child: Self::ChildType, after: Option<Self::ChildType>, )
ContainerRenderObjectMixin.insert.Source§fn remove(self: RenderHandle<Self>, app: &mut App, child: Self::ChildType)
fn remove(self: RenderHandle<Self>, app: &mut App, child: Self::ChildType)
ContainerRenderObjectMixin.remove.Source§fn remove_all(self: RenderHandle<Self>, app: &mut App)
fn remove_all(self: RenderHandle<Self>, app: &mut App)
ContainerRenderObjectMixin.removeAll.Source§fn move_child(
self: RenderHandle<Self>,
app: &mut App,
child: Self::ChildType,
after: Option<Self::ChildType>,
)
fn move_child( self: RenderHandle<Self>, app: &mut App, child: Self::ChildType, after: Option<Self::ChildType>, )
ContainerRenderObjectMixin.move.impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> RenderObjectBase for Twhere
T: RenderObject,
impl<T> RenderObjectBase for Twhere
T: RenderObject,
Source§fn dispose(self: RenderHandle<Self>, app: &mut App)
fn dispose(self: RenderHandle<Self>, app: &mut App)
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)
fn mark_needs_layout(self: RenderHandle<Self>, app: &mut App)
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>,
)
fn show_on_screen( self: RenderHandle<Self>, app: &mut App, descendant: Option<AnyRenderObject>, rect: Option<Rect>, duration: Duration, curve: Rc<dyn Curve>, )
RenderObject.showOnScreen.