Skip to main content

RenderShrinkWrappingViewport

Struct RenderShrinkWrappingViewport 

Source
pub struct RenderShrinkWrappingViewport { /* private fields */ }
Expand description

A render object that is bigger on the inside and shrink wraps its children in the main axis.

RenderShrinkWrappingViewport displays a subset of its children according to its own dimensions and the given RenderViewportBase::offset. As the offset varies, different children are visible through the viewport.

It differs from RenderViewport in that RenderViewport expands to fill the main axis whereas this shrink-wraps itself to match its children in the main axis. This shrink wrapping behavior is expensive because the children, and hence the viewport, could potentially change size whenever the offset changes (e.g., because of a collapsing header).

RenderShrinkWrappingViewport cannot contain RenderBox children directly. Instead, use a crate::RenderSliverList, crate::RenderSliverFixedExtentList, or a crate::RenderSliverToBoxAdapter, for example.

Implementations§

Source§

impl RenderShrinkWrappingViewport

Source

pub fn new( app: &mut App, cross_axis_direction: AxisDirection, offset: AnyViewportOffset, children: Option<Vec<AnyRenderSliver>>, ) -> RenderHandle<RenderShrinkWrappingViewport>

Creates a viewport (for AnyRenderSliver objects) that shrink-wraps its contents.

For testing purposes, consider passing a crate::FixedViewportOffset as the offset.

Trait Implementations§

Source§

impl ContainerRenderObjectMixin for RenderShrinkWrappingViewport

Source§

type ChildType = AnyRenderSliver

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

type ParentDataType = SliverLogicalContainerParentData

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

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

Mixin field access.
Source§

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

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 RenderAbstractViewport for RenderShrinkWrappingViewport

Source§

fn get_offset_to_reveal( self: RenderHandle<Self>, app: &App, target: AnyRenderObject, alignment: f64, rect: Option<Rect>, axis: Option<Axis>, ) -> RevealedOffset

Returns the offset that would be needed to reveal the target render object. Read more
Source§

fn as_abstract_viewport(self: RenderHandle<Self>) -> AnyRenderAbstractViewport

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

impl RenderBox for RenderShrinkWrappingViewport

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 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 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 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 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 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 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 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 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 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 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 RenderObject for RenderShrinkWrappingViewport

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 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 redepth_children(self: RenderHandle<Self>, app: &mut App)

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

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

Whether this render object repaints separately from its parent. 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
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 dispose(self: RenderHandle<Self>, app: &mut App)

Release any resources held 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 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 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§

impl RenderViewportBase for RenderShrinkWrappingViewport

Source§

fn viewport_data(self: RenderHandle<Self>, app: &App) -> &RenderViewportBaseData

Mixin field access.
Source§

fn viewport_data_mut( self: RenderHandle<Self>, app: &mut App, ) -> &mut RenderViewportBaseData

Source§

fn debug_throw_if_not_checking_intrinsics(self: RenderHandle<Self>) -> bool

Panics saying that the object does not support returning intrinsic dimensions if, in debug mode, we are not in the debug_checking_intrinsics mode. Read more
Source§

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

Whether the contents of this viewport would paint outside the bounds of the viewport if paint did not clip. Read more
Source§

fn update_out_of_band_data( self: RenderHandle<Self>, app: &mut App, growth_direction: GrowthDirection, child_layout_geometry: SliverGeometry, )

Called during layout_child_sequence for each child. Read more
Source§

fn update_child_layout_offset( self: RenderHandle<Self>, app: &mut App, child: AnyRenderSliver, layout_offset: f64, growth_direction: GrowthDirection, )

Called during layout_child_sequence to store the layout offset for the given child. Read more
Source§

fn paint_offset_of( self: RenderHandle<Self>, app: &App, child: AnyRenderSliver, ) -> Offset

The offset at which the given child should be painted. Read more
Source§

fn scroll_offset_of( self: RenderHandle<Self>, app: &App, child: AnyRenderSliver, scroll_offset_within_child: f64, ) -> f64

Returns the scroll offset within the viewport for the given scroll_offset_within_child within the given child. Read more
Source§

fn max_scroll_obstruction_extent_before( self: RenderHandle<Self>, app: &App, child: AnyRenderSliver, ) -> f64

Returns the total scroll obstruction extent of all slivers in the viewport before child. Read more
Source§

fn compute_child_main_axis_position( self: RenderHandle<Self>, app: &App, child: AnyRenderSliver, parent_main_axis_position: f64, ) -> f64

Converts the parent_main_axis_position into the child’s coordinate system. Read more
Source§

fn index_of_first_child(self: RenderHandle<Self>, _app: &App) -> i32

The index of the first child of the viewport relative to the center child. Read more
Source§

fn label_for_child(self: RenderHandle<Self>, index: i32) -> String

A short string to identify the child with the given index.
Source§

fn axis_direction(self: RenderHandle<Self>, app: &App) -> AxisDirection

The direction in which the SliverConstraints::scroll_offset increases. Read more
Source§

fn set_axis_direction( self: RenderHandle<Self>, app: &mut App, value: AxisDirection, )

Source§

fn cross_axis_direction(self: RenderHandle<Self>, app: &App) -> AxisDirection

The direction in which child should be laid out in the cross axis. Read more
Source§

fn set_cross_axis_direction( self: RenderHandle<Self>, app: &mut App, value: AxisDirection, )

Source§

fn axis(self: RenderHandle<Self>, app: &App) -> Axis

The axis along which the viewport scrolls. Read more
Source§

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

Which part of the content inside the viewport should be visible. Read more
Source§

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

Sets offset.
Source§

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

Dart’s _offset.addListener(markNeedsLayout) tear-off.
Source§

fn scroll_cache_extent(self: RenderHandle<Self>, app: &App) -> ScrollCacheExtent

The viewport has an area before and after the visible area to cache items that are about to become visible when the user scrolls. Read more
Source§

fn set_scroll_cache_extent( self: RenderHandle<Self>, app: &mut App, value: Option<ScrollCacheExtent>, )

Source§

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

👎Deprecated:

Use scroll_cache_extent instead.

Deprecated. Use scroll_cache_extent instead.
Source§

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

👎Deprecated:

Use set_scroll_cache_extent instead.

Deprecated. Use set_scroll_cache_extent instead. Read more
Source§

fn cache_extent_style(self: RenderHandle<Self>, app: &App) -> CacheExtentStyle

👎Deprecated:

Use scroll_cache_extent instead.

Deprecated. Use scroll_cache_extent instead.
Source§

fn set_cache_extent_style( self: RenderHandle<Self>, app: &mut App, value: CacheExtentStyle, )

👎Deprecated:

Use set_scroll_cache_extent instead.

Deprecated. Use set_scroll_cache_extent instead.
Source§

fn paint_order(self: RenderHandle<Self>, app: &App) -> SliverPaintOrder

The order in which to paint the slivers; equivalently, the order in which to arrange them in the z-direction. Read more
Source§

fn set_paint_order( self: RenderHandle<Self>, app: &mut App, value: SliverPaintOrder, )

Source§

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

The content will be clipped (or not) according to this option. Read more
Source§

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

Source§

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

The body of Flutter’s attach override: listens to the offset.
Source§

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

The body of Flutter’s detach override: stops listening to the offset.
Source§

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

Zero; a viewport has no intrinsic dimensions.
Source§

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

Zero; a viewport has no intrinsic dimensions.
Source§

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

Zero; a viewport has no intrinsic dimensions.
Source§

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

Zero; a viewport has no intrinsic dimensions.
Source§

fn layout_child_sequence( self: RenderHandle<Self>, app: &mut App, child: Option<AnyRenderSliver>, scroll_offset: f64, overlap: f64, layout_offset: f64, remaining_paint_extent: f64, main_axis_extent: f64, cross_axis_extent: f64, growth_direction: GrowthDirection, advance: &SliverAdvance<Self>, remaining_cache_extent: f64, cache_origin: f64, ) -> f64

Determines the size and position of some of the children of the viewport. Read more
Source§

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

The body of Flutter’s paint override.
Source§

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

Flutter’s dispose: drop the clip layer handle, then super.dispose().
Source§

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

Flutter’s _paintContents.
Source§

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

The body of Flutter’s hitTestChildren override.
Source§

fn get_offset_to_reveal( self: RenderHandle<Self>, app: &App, target: AnyRenderObject, alignment: f64, rect: Option<Rect>, _axis: Option<Axis>, ) -> RevealedOffset

The body of Flutter’s getOffsetToReveal override.
Source§

fn compute_absolute_paint_offset( self: RenderHandle<Self>, app: &App, child: AnyRenderSliver, layout_offset: f64, growth_direction: GrowthDirection, ) -> Offset

The offset at which the given child should be painted. Read more
Source§

fn children_in_paint_order( self: RenderHandle<Self>, app: &App, ) -> Vec<AnyRenderSliver>

Walks the children of the viewport, in the order that they should be painted. Read more
Source§

fn children_in_hit_test_order( self: RenderHandle<Self>, app: &App, ) -> Vec<AnyRenderSliver>

Walks the children of the viewport, in the order that hit-testing should use. Read more
Source§

fn children_last_to_first( self: RenderHandle<Self>, app: &App, ) -> Vec<AnyRenderSliver>

Flutter’s _childrenLastToFirst.
Source§

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

The body of Flutter’s showOnScreen override.

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>