pub struct RenderParagraph { /* private fields */ }Expand description
Implementations§
Source§impl RenderParagraph
impl RenderParagraph
Sourcepub fn new(
app: &mut App,
text: InlineSpanRef,
text_direction: TextDirection,
fonts: Option<Handle<FontCollection>>,
) -> RenderHandle<Self>
pub fn new( app: &mut App, text: InlineSpanRef, text_direction: TextDirection, fonts: Option<Handle<FontCollection>>, ) -> RenderHandle<Self>
Creates a paragraph render object.
Sourcepub fn fonts(self: RenderHandle<Self>, app: &mut App) -> Handle<FontCollection>
pub fn fonts(self: RenderHandle<Self>, app: &mut App) -> Handle<FontCollection>
The collection this paragraph shapes against: the override, else the app-wide one.
Sourcepub fn text(self: RenderHandle<Self>, app: &App) -> InlineSpanRef
pub fn text(self: RenderHandle<Self>, app: &App) -> InlineSpanRef
The text to display.
Sourcepub fn set_text(self: RenderHandle<Self>, app: &mut App, value: InlineSpanRef)
pub fn set_text(self: RenderHandle<Self>, app: &mut App, value: 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.
This decides how the TextAlign::Start, TextAlign::End, and
TextAlign::Justify values of text_align are interpreted.
This is also used to disambiguate how to render bidirectional text. For example, if
the text is an English phrase followed by a Hebrew phrase, in a
TextDirection::Ltr context the English phrase will be on the left and the Hebrew
phrase to its right, while in a TextDirection::Rtl context, the English phrase
will be on the right and the Hebrew phrase on its left.
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 soft_wrap(self: RenderHandle<Self>, app: &App) -> bool
pub fn soft_wrap(self: RenderHandle<Self>, app: &App) -> bool
Sourcepub fn set_soft_wrap(self: RenderHandle<Self>, app: &mut App, value: bool)
pub fn set_soft_wrap(self: RenderHandle<Self>, app: &mut App, value: bool)
Sets soft_wrap.
Sourcepub fn overflow(self: RenderHandle<Self>, app: &App) -> TextOverflow
pub fn overflow(self: RenderHandle<Self>, app: &App) -> TextOverflow
How visual overflow should be handled.
Sourcepub fn set_overflow(
self: RenderHandle<Self>,
app: &mut App,
value: TextOverflow,
)
pub fn set_overflow( self: RenderHandle<Self>, app: &mut App, value: TextOverflow, )
Sets overflow.
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 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 device this paragraph is being rendered on.
Flutter repaints on change only on the web; here it is bookkeeping.
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 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. The value may be None. If it is not None, then
it must be greater than zero.
Sourcepub fn text_width_basis(self: RenderHandle<Self>, app: &App) -> TextWidthBasis
pub fn text_width_basis(self: RenderHandle<Self>, app: &App) -> TextWidthBasis
Defines how to measure the width of the rendered text.
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 text_height_behavior(
self: RenderHandle<Self>,
app: &App,
) -> Option<TextHeightBehavior>
pub fn text_height_behavior( self: RenderHandle<Self>, app: &App, ) -> Option<TextHeightBehavior>
Defines how to apply TextStyle.height over and under text.
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 preferred_line_height(self: RenderHandle<Self>, app: &mut App) -> f64
pub fn preferred_line_height(self: RenderHandle<Self>, app: &mut App) -> f64
The height of a space in text in logical pixels.
Sourcepub fn get_offset_for_caret(
self: RenderHandle<Self>,
app: &mut App,
position: TextPosition,
caret_prototype: Rect,
) -> Offset
pub fn get_offset_for_caret( self: RenderHandle<Self>, app: &mut App, position: TextPosition, caret_prototype: Rect, ) -> Offset
Returns the offset at which to paint the caret.
Valid only after layout.
Sourcepub fn get_full_height_for_caret(
self: RenderHandle<Self>,
app: &mut App,
position: TextPosition,
) -> f64
pub fn get_full_height_for_caret( self: RenderHandle<Self>, app: &mut App, position: TextPosition, ) -> f64
Returns the full height of the caret at the given position.
Valid only after layout.
Sourcepub fn get_boxes_for_selection(
self: RenderHandle<Self>,
app: &mut App,
selection: TextSelection,
box_height_style: BoxHeightStyle,
box_width_style: BoxWidthStyle,
) -> Vec<TextBox>
pub fn get_boxes_for_selection( self: RenderHandle<Self>, app: &mut App, selection: TextSelection, box_height_style: BoxHeightStyle, box_width_style: BoxWidthStyle, ) -> Vec<TextBox>
Returns a list of rects that bound the given selection.
The box_height_style and box_width_style arguments may be used to select the
shape of the TextBoxes. These properties default to BoxHeightStyle::Tight and
BoxWidthStyle::Tight respectively.
A given selection might have more than one rect if this text painter contains bidirectional text because logically contiguous text might not be visually contiguous.
Valid only after layout.
Sourcepub fn get_position_for_offset(
self: RenderHandle<Self>,
app: &mut App,
offset: Offset,
) -> TextPosition
pub fn get_position_for_offset( self: RenderHandle<Self>, app: &mut App, offset: Offset, ) -> TextPosition
Returns the position within the text for the given pixel offset.
Valid only after layout.
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
Returns the text range of the word at the given offset. Characters not part of a word, such as spaces, symbols, and punctuation, have word breaks on both sides. In such cases, this method will return a text range that contains the given text position.
Word boundaries are defined more precisely in Unicode Standard Annex #29 http://www.unicode.org/reports/tr29/#Word_Boundaries.
Valid only after layout.
Sourcepub fn text_size(self: RenderHandle<Self>, app: &App) -> Size
pub fn text_size(self: RenderHandle<Self>, app: &App) -> Size
Returns the size of the text as laid out.
This can differ from size if the text overflowed or if the
constraints provided by the parent
RenderObject forced the layout to be bigger than necessary
for the given text.
This returns the TextPainter::size of the underlying TextPainter.
Valid only after layout.
Sourcepub fn did_exceed_max_lines(self: RenderHandle<Self>, app: &App) -> bool
pub fn did_exceed_max_lines(self: RenderHandle<Self>, app: &App) -> bool
Whether the text was truncated or ellipsized as laid out.
This returns the TextPainter::did_exceed_max_lines of the underlying
TextPainter.
Valid only after layout.
Trait Implementations§
Source§impl ContainerRenderObjectMixin for RenderParagraph
impl ContainerRenderObjectMixin for RenderParagraph
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 RenderParagraph
impl RelayoutWhenSystemFontsChangeMixin for RenderParagraph
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 RenderParagraph
impl RenderBox for RenderParagraph
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 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 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 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 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 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 RenderParagraph
impl RenderInlineChildrenContainerDefaults for RenderParagraph
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 RenderParagraph
impl RenderObject for RenderParagraph
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 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 redepth_children(self: RenderHandle<Self>, app: &mut App)
fn redepth_children(self: RenderHandle<Self>, app: &mut App)
visit_children.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 RenderParagraph
impl !RefUnwindSafe for RenderParagraph
impl !Send for RenderParagraph
impl !Sync for RenderParagraph
impl !UnwindSafe for RenderParagraph
impl Unpin for RenderParagraph
impl UnsafeUnpin for RenderParagraph
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.