pub struct RenderSliverFixedExtentList { /* private fields */ }Expand description
A sliver that places multiple box children with the same main axis extent in a linear array.
RenderSliverFixedExtentList places its children in a linear array along the main axis
starting at offset zero and without gaps. Each child is forced to have the
item_extent in the main axis and the
crate::SliverConstraints::cross_axis_extent in the cross axis.
RenderSliverFixedExtentList is more efficient than crate::RenderSliverList because it
does not need to perform layout on its children to obtain their extent in the main axis.
Implementations§
Source§impl RenderSliverFixedExtentList
impl RenderSliverFixedExtentList
Sourcepub fn new(
app: &mut App,
child_manager: Rc<dyn RenderSliverBoxChildManager>,
item_extent: f64,
) -> RenderHandle<RenderSliverFixedExtentList>
pub fn new( app: &mut App, child_manager: Rc<dyn RenderSliverBoxChildManager>, item_extent: f64, ) -> RenderHandle<RenderSliverFixedExtentList>
Creates a sliver that contains multiple box children that have a given extent in the main axis.
Sourcepub fn set_item_extent(self: RenderHandle<Self>, app: &mut App, value: f64)
pub fn set_item_extent(self: RenderHandle<Self>, app: &mut App, value: f64)
Trait Implementations§
Source§impl ContainerRenderObjectMixin for RenderSliverFixedExtentList
impl ContainerRenderObjectMixin for RenderSliverFixedExtentList
Source§type ChildType = AnyRenderBox
type ChildType = AnyRenderBox
Flutter’s
ChildType: the protocol of this render object’s children.Source§type ParentDataType = SliverMultiBoxAdaptorParentData
type ParentDataType = SliverMultiBoxAdaptorParentData
Flutter’s
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>
Mixin field access.
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>
See
container_data.Source§fn insert(
self: RenderHandle<Self>,
app: &mut App,
child: AnyRenderBox,
after: Option<AnyRenderBox>,
)
fn insert( self: RenderHandle<Self>, app: &mut App, child: AnyRenderBox, after: Option<AnyRenderBox>, )
Insert child into this render object’s child list after the given child. Read more
Source§fn move_child(
self: RenderHandle<Self>,
app: &mut App,
child: AnyRenderBox,
after: Option<AnyRenderBox>,
)
fn move_child( self: RenderHandle<Self>, app: &mut App, child: AnyRenderBox, after: Option<AnyRenderBox>, )
Move the given
child in the child list to be after another child. Read moreSource§fn remove(self: RenderHandle<Self>, app: &mut App, child: AnyRenderBox)
fn remove(self: RenderHandle<Self>, app: &mut App, child: AnyRenderBox)
Remove this child from the child list. Read more
Source§fn remove_all(self: RenderHandle<Self>, app: &mut App)
fn remove_all(self: RenderHandle<Self>, app: &mut App)
Remove all their children from this render object’s child list. Read more
Source§fn child_count(self: RenderHandle<Self>, app: &App) -> usize
fn child_count(self: RenderHandle<Self>, app: &App) -> usize
The number of children.
Source§fn add(self: RenderHandle<Self>, app: &mut App, child: Self::ChildType)
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>>,
)
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 did_attach(
self: RenderHandle<Self>,
app: &mut App,
owner: Handle<PipelineOwner>,
)
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)
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)
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),
)
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>
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>
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>
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>
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>
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 RenderObject for RenderSliverFixedExtentList
impl RenderObject for RenderSliverFixedExtentList
Source§fn render_object_data(self: RenderHandle<Self>, app: &App) -> &RenderObjectData
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
fn render_object_data_mut( self: RenderHandle<Self>, app: &mut App, ) -> &mut RenderObjectData
See
render_object_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, )
Sets up parent data for
child if it has none. Read moreSource§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), )
Calls
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>, )
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)
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)
fn redepth_children(self: RenderHandle<Self>, app: &mut App)
Adjusts the depth of each child reported by
visit_children.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, )
Applies the transform that would be applied when painting the given child to the
given matrix. Read more
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, )
Paint this render object into the given context at the given offset. Read more
Source§fn perform_layout(self: RenderHandle<Self>, app: &mut App)
fn perform_layout(self: RenderHandle<Self>, app: &mut App)
Do the work of computing the layout for this render object. Read more
Source§fn as_render_object(self: RenderHandle<Self>, app: &App) -> AnyRenderObject
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)
fn perform_resize(self: RenderHandle<Self>, _app: &mut App)
Updates the render object’s size using only the constraints. Read more
Source§fn sized_by_parent(self: RenderHandle<Self>, _app: &App) -> bool
fn sized_by_parent(self: RenderHandle<Self>, _app: &App) -> bool
Whether the constraints are the only input to the sizing algorithm.
Source§fn is_repaint_boundary(self: RenderHandle<Self>, _app: &App) -> bool
fn is_repaint_boundary(self: RenderHandle<Self>, _app: &App) -> bool
Whether this render object repaints separately from its parent. Read more
Source§fn always_needs_compositing(self: RenderHandle<Self>, _app: &App) -> bool
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>
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
fn update_composited_layer( self: RenderHandle<Self>, app: &mut App, old_layer: Option<AnyOffsetLayer>, ) -> AnyOffsetLayer
Update the composited layer owned by this render object. Read more
Source§fn show_on_screen(
self: RenderHandle<Self>,
app: &mut App,
descendant: Option<AnyRenderObject>,
rect: Option<Rect>,
duration: Duration,
curve: Rc<dyn Curve>,
)
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 moreSource§impl RenderSliver for RenderSliverFixedExtentList
impl RenderSliver for RenderSliverFixedExtentList
Source§fn render_sliver_data(self: RenderHandle<Self>, app: &App) -> &RenderSliverData
fn render_sliver_data(self: RenderHandle<Self>, app: &App) -> &RenderSliverData
Mixin field access.
Source§fn render_sliver_data_mut(
self: RenderHandle<Self>,
app: &mut App,
) -> &mut RenderSliverData
fn render_sliver_data_mut( self: RenderHandle<Self>, app: &mut App, ) -> &mut RenderSliverData
See
render_sliver_data.Source§fn hit_test_children(
self: RenderHandle<Self>,
app: &mut App,
result: &mut SliverHitTestResult<'_>,
main_axis_position: f64,
cross_axis_position: f64,
) -> bool
fn hit_test_children( self: RenderHandle<Self>, app: &mut App, result: &mut SliverHitTestResult<'_>, main_axis_position: f64, cross_axis_position: f64, ) -> bool
Override this method to check whether any children are located at the given position. Read more
Source§fn child_main_axis_position(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderObject,
) -> f64
fn child_main_axis_position( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, ) -> f64
Returns the distance from the leading visible edge of the sliver to the side of the
given child closest to that edge. Read more
Source§fn child_scroll_offset(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderObject,
) -> Option<f64>
fn child_scroll_offset( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, ) -> Option<f64>
Returns the scroll offset for the leading edge of the given child. Read more
Source§fn constraints(self: RenderHandle<Self>, app: &App) -> SliverConstraints
fn constraints(self: RenderHandle<Self>, app: &App) -> SliverConstraints
The sliver constraints most recently supplied by the parent.
Source§fn geometry(self: RenderHandle<Self>, app: &App) -> SliverGeometry
fn geometry(self: RenderHandle<Self>, app: &App) -> SliverGeometry
The amount of space this sliver occupies.
Source§fn set_geometry(
self: RenderHandle<Self>,
app: &mut App,
geometry: SliverGeometry,
)
fn set_geometry( self: RenderHandle<Self>, app: &mut App, geometry: SliverGeometry, )
Sets the geometry of this sliver. Call from
RenderObject::perform_layout.Source§fn paint_bounds(self: RenderHandle<Self>, app: &App) -> Rect
fn paint_bounds(self: RenderHandle<Self>, app: &App) -> Rect
An estimate of the bounds within which this render object will paint: the paint extent
along the main axis by the cross axis extent.
Source§fn center_offset_adjustment(self: RenderHandle<Self>, _app: &App) -> f64
fn center_offset_adjustment(self: RenderHandle<Self>, _app: &App) -> f64
For a center sliver, the distance before the absolute zero scroll offset that this
sliver can cover. Read more
Source§fn hit_test(
self: RenderHandle<Self>,
app: &mut App,
result: &mut SliverHitTestResult<'_>,
main_axis_position: f64,
cross_axis_position: f64,
) -> bool
fn hit_test( self: RenderHandle<Self>, app: &mut App, result: &mut SliverHitTestResult<'_>, main_axis_position: f64, cross_axis_position: f64, ) -> bool
Determines the set of render objects located at the given position. Read more
Source§fn hit_test_self(
self: RenderHandle<Self>,
_app: &App,
_main_axis_position: f64,
_cross_axis_position: f64,
) -> bool
fn hit_test_self( self: RenderHandle<Self>, _app: &App, _main_axis_position: f64, _cross_axis_position: f64, ) -> bool
Override this method if this render object can be hit even if its children were not hit. Read more
Source§fn handle_event(
self: RenderHandle<Self>,
_app: &mut App,
_event: &PointerEvent,
_entry: &SliverHitTestEntry,
)
fn handle_event( self: RenderHandle<Self>, _app: &mut App, _event: &PointerEvent, _entry: &SliverHitTestEntry, )
Override to handle pointer events that hit this render object.
Source§fn calculate_paint_offset(
self: RenderHandle<Self>,
_app: &App,
constraints: SliverConstraints,
from: f64,
to: f64,
) -> f64
fn calculate_paint_offset( self: RenderHandle<Self>, _app: &App, constraints: SliverConstraints, from: f64, to: f64, ) -> f64
Computes the portion of the region from
from to to that is visible, assuming that
only the region from the SliverConstraints::scroll_offset that is
SliverConstraints::remaining_paint_extent high is visible, and that the relationship
between scroll offsets and paint offsets is linear. Read moreSource§fn calculate_cache_offset(
self: RenderHandle<Self>,
_app: &App,
constraints: SliverConstraints,
from: f64,
to: f64,
) -> f64
fn calculate_cache_offset( self: RenderHandle<Self>, _app: &App, constraints: SliverConstraints, from: f64, to: f64, ) -> f64
Computes the portion of the region from
from to to that is within the cache extent
of the viewport, assuming that only the region from the
SliverConstraints::cache_origin that is
SliverConstraints::remaining_cache_extent high is visible, and that the relationship
between scroll offsets and paint offsets is linear. Read moreSource§fn child_cross_axis_position(
self: RenderHandle<Self>,
_app: &App,
_child: AnyRenderObject,
) -> f64
fn child_cross_axis_position( self: RenderHandle<Self>, _app: &App, _child: AnyRenderObject, ) -> f64
Returns the distance along the cross axis from the zero of the cross axis in this
sliver’s paint coordinate space to the nearest side of the given child. Read more
Source§fn get_absolute_size_relative_to_origin(
self: RenderHandle<Self>,
app: &App,
) -> Size
fn get_absolute_size_relative_to_origin( self: RenderHandle<Self>, app: &App, ) -> Size
This returns a
Size with dimensions relative to the leading edge of the sliver,
specifically the same offset that is given to the RenderObject::paint method. This
means that the dimensions may be negative. Read moreSource§fn get_absolute_size(self: RenderHandle<Self>, app: &App) -> Size
fn get_absolute_size(self: RenderHandle<Self>, app: &App) -> Size
Source§fn get_max_paint_rect(self: RenderHandle<Self>, app: &App) -> Rect
fn get_max_paint_rect(self: RenderHandle<Self>, app: &App) -> Rect
Source§fn layout(
self: RenderHandle<Self>,
app: &mut App,
constraints: SliverConstraints,
parent_uses_size: bool,
)
fn layout( self: RenderHandle<Self>, app: &mut App, constraints: SliverConstraints, parent_uses_size: bool, )
Source§fn as_sliver(self: RenderHandle<Self>) -> AnyRenderSliver
fn as_sliver(self: RenderHandle<Self>) -> AnyRenderSliver
The type-erased
RenderSliver 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
The type-erased
RenderObject handle, through as_sliver.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_layout(self: RenderHandle<Self>, app: &mut App)
fn mark_needs_layout(self: RenderHandle<Self>, app: &mut App)
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 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 RenderSliverFixedExtentBoxAdaptor for RenderSliverFixedExtentList
impl RenderSliverFixedExtentBoxAdaptor for RenderSliverFixedExtentList
Source§fn fixed_extent_data(
self: RenderHandle<Self>,
app: &App,
) -> &RenderSliverFixedExtentBoxAdaptorData
fn fixed_extent_data( self: RenderHandle<Self>, app: &App, ) -> &RenderSliverFixedExtentBoxAdaptorData
Mixin field access.
Source§fn fixed_extent_data_mut(
self: RenderHandle<Self>,
app: &mut App,
) -> &mut RenderSliverFixedExtentBoxAdaptorData
fn fixed_extent_data_mut( self: RenderHandle<Self>, app: &mut App, ) -> &mut RenderSliverFixedExtentBoxAdaptorData
See
fixed_extent_data.Source§fn item_extent(self: RenderHandle<Self>, app: &App) -> Option<f64>
fn item_extent(self: RenderHandle<Self>, app: &App) -> Option<f64>
The main-axis extent of each item. Read more
Source§fn item_extent_builder(
self: RenderHandle<Self>,
app: &App,
) -> Option<ItemExtentBuilder>
fn item_extent_builder( self: RenderHandle<Self>, app: &App, ) -> Option<ItemExtentBuilder>
The main-axis extent builder of each item. Read more
Source§fn layout_dimensions(
self: RenderHandle<Self>,
app: &App,
) -> SliverLayoutDimensions
fn layout_dimensions( self: RenderHandle<Self>, app: &App, ) -> SliverLayoutDimensions
The layout dimensions for the sliver. Read more
Source§fn index_to_layout_offset(
self: RenderHandle<Self>,
app: &App,
index: i32,
) -> f64
fn index_to_layout_offset( self: RenderHandle<Self>, app: &App, index: i32, ) -> f64
The layout offset for the child with the given index. Read more
Source§fn get_min_child_index_for_scroll_offset(
self: RenderHandle<Self>,
app: &App,
scroll_offset: f64,
) -> i32
fn get_min_child_index_for_scroll_offset( self: RenderHandle<Self>, app: &App, scroll_offset: f64, ) -> i32
The minimum child index that is visible at the given scroll offset. Read more
Source§fn get_max_child_index_for_scroll_offset(
self: RenderHandle<Self>,
app: &App,
scroll_offset: f64,
) -> i32
fn get_max_child_index_for_scroll_offset( self: RenderHandle<Self>, app: &App, scroll_offset: f64, ) -> i32
The maximum child index that is visible at the given scroll offset. Read more
Source§fn child_index_for_scroll_offset(
self: RenderHandle<Self>,
app: &App,
scroll_offset: f64,
builder: &ItemExtentBuilder,
) -> i32
fn child_index_for_scroll_offset( self: RenderHandle<Self>, app: &App, scroll_offset: f64, builder: &ItemExtentBuilder, ) -> i32
Flutter’s
_getChildIndexForScrollOffset.Source§fn estimate_max_scroll_offset(
self: RenderHandle<Self>,
app: &App,
constraints: SliverConstraints,
first_index: Option<i32>,
last_index: Option<i32>,
leading_scroll_offset: Option<f64>,
trailing_scroll_offset: Option<f64>,
) -> f64
fn estimate_max_scroll_offset( self: RenderHandle<Self>, app: &App, constraints: SliverConstraints, first_index: Option<i32>, last_index: Option<i32>, leading_scroll_offset: Option<f64>, trailing_scroll_offset: Option<f64>, ) -> f64
Called to estimate the total scrollable extents of this object. Read more
Source§fn compute_max_scroll_offset(
self: RenderHandle<Self>,
app: &mut App,
_constraints: SliverConstraints,
) -> f64
fn compute_max_scroll_offset( self: RenderHandle<Self>, app: &mut App, _constraints: SliverConstraints, ) -> f64
Called to obtain a precise measure of the total scrollable extents of this object. Read more
Source§fn child_constraints(
self: RenderHandle<Self>,
app: &App,
index: i32,
) -> BoxConstraints
fn child_constraints( self: RenderHandle<Self>, app: &App, index: i32, ) -> BoxConstraints
Flutter’s
_getChildConstraints.Source§fn paint_extent_of(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderBox,
) -> f64
fn paint_extent_of( self: RenderHandle<Self>, app: &App, child: AnyRenderBox, ) -> f64
The body of Flutter’s
paintExtentOf override.Source§fn perform_layout(self: RenderHandle<Self>, app: &mut App)
fn perform_layout(self: RenderHandle<Self>, app: &mut App)
The body of Flutter’s
performLayout override.Source§impl RenderSliverHelpers for RenderSliverFixedExtentList
impl RenderSliverHelpers for RenderSliverFixedExtentList
Source§fn hit_test_box_child(
self: RenderHandle<Self>,
app: &mut App,
result: &mut BoxHitTestResult<'_>,
child: AnyRenderBox,
main_axis_position: f64,
cross_axis_position: f64,
) -> bool
fn hit_test_box_child( self: RenderHandle<Self>, app: &mut App, result: &mut BoxHitTestResult<'_>, child: AnyRenderBox, main_axis_position: f64, cross_axis_position: f64, ) -> bool
Utility function for
RenderSliver::hit_test_children for use when the children are
crate::RenderBox widgets. Read moreSource§fn apply_paint_transform_for_box_child(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderBox,
transform: &mut Matrix4,
)
fn apply_paint_transform_for_box_child( self: RenderHandle<Self>, app: &App, child: AnyRenderBox, transform: &mut Matrix4, )
Utility function for
RenderObject::apply_paint_transform for use when the children
are crate::RenderBox widgets. Read moreSource§impl RenderSliverMultiBoxAdaptor for RenderSliverFixedExtentList
impl RenderSliverMultiBoxAdaptor for RenderSliverFixedExtentList
Source§fn adaptor_data(
self: RenderHandle<Self>,
app: &App,
) -> &RenderSliverMultiBoxAdaptorData
fn adaptor_data( self: RenderHandle<Self>, app: &App, ) -> &RenderSliverMultiBoxAdaptorData
Mixin field access.
Source§fn adaptor_data_mut(
self: RenderHandle<Self>,
app: &mut App,
) -> &mut RenderSliverMultiBoxAdaptorData
fn adaptor_data_mut( self: RenderHandle<Self>, app: &mut App, ) -> &mut RenderSliverMultiBoxAdaptorData
See
adaptor_data.Source§fn paint_extent_of(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderBox,
) -> f64
fn paint_extent_of( self: RenderHandle<Self>, app: &App, child: AnyRenderBox, ) -> f64
Returns the dimension of the given child in the main axis, as given by the child’s size. Read more
Source§fn child_manager(
self: RenderHandle<Self>,
app: &App,
) -> Rc<dyn RenderSliverBoxChildManager>
fn child_manager( self: RenderHandle<Self>, app: &App, ) -> Rc<dyn RenderSliverBoxChildManager>
The delegate that manages the children of this object. Read more
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, )
The body of Flutter’s
setupParentData override.Source§fn debug_child_integrity_enabled(self: RenderHandle<Self>, app: &App) -> bool
fn debug_child_integrity_enabled(self: RenderHandle<Self>, app: &App) -> bool
Whether the integrity check is enabled. Read more
Source§fn set_debug_child_integrity_enabled(
self: RenderHandle<Self>,
app: &mut App,
enabled: bool,
)
fn set_debug_child_integrity_enabled( self: RenderHandle<Self>, app: &mut App, enabled: bool, )
Sets
debug_child_integrity_enabled, immediately
performing an integrity check.Source§fn debug_assert_child_list_locked(self: RenderHandle<Self>, app: &App) -> bool
fn debug_assert_child_list_locked(self: RenderHandle<Self>, app: &App) -> bool
Flutter’s
_debugAssertChildListLocked.Source§fn debug_verify_child_order(self: RenderHandle<Self>, app: &App) -> bool
fn debug_verify_child_order(self: RenderHandle<Self>, app: &App) -> bool
Verify that the child list index is in strictly increasing order. Read more
Source§fn insert(
self: RenderHandle<Self>,
app: &mut App,
child: AnyRenderBox,
after: Option<AnyRenderBox>,
)
fn insert( self: RenderHandle<Self>, app: &mut App, child: AnyRenderBox, after: Option<AnyRenderBox>, )
The body of Flutter’s
insert override.Source§fn did_adopt_child(self: RenderHandle<Self>, app: &mut App, child: AnyRenderBox)
fn did_adopt_child(self: RenderHandle<Self>, app: &mut App, child: AnyRenderBox)
The body of Flutter’s
adoptChild override, run after a child joins the child list. Read moreSource§fn move_child(
self: RenderHandle<Self>,
app: &mut App,
child: AnyRenderBox,
after: Option<AnyRenderBox>,
)
fn move_child( self: RenderHandle<Self>, app: &mut App, child: AnyRenderBox, after: Option<AnyRenderBox>, )
The body of Flutter’s
move override. Read moreSource§fn remove(self: RenderHandle<Self>, app: &mut App, child: AnyRenderBox)
fn remove(self: RenderHandle<Self>, app: &mut App, child: AnyRenderBox)
The body of Flutter’s
remove override.Source§fn remove_all(self: RenderHandle<Self>, app: &mut App)
fn remove_all(self: RenderHandle<Self>, app: &mut App)
The body of Flutter’s
removeAll override.Source§fn keep_alive_children(self: RenderHandle<Self>, app: &App) -> Vec<AnyRenderBox>
fn keep_alive_children(self: RenderHandle<Self>, app: &App) -> Vec<AnyRenderBox>
The children currently held in the keep-alive bucket, in insertion order.
Source§fn create_or_obtain_child(
self: RenderHandle<Self>,
app: &mut App,
index: i32,
after: Option<AnyRenderBox>,
)
fn create_or_obtain_child( self: RenderHandle<Self>, app: &mut App, index: i32, after: Option<AnyRenderBox>, )
Flutter’s
_createOrObtainChild.Source§fn destroy_or_cache_child(
self: RenderHandle<Self>,
app: &mut App,
child: AnyRenderBox,
)
fn destroy_or_cache_child( self: RenderHandle<Self>, app: &mut App, child: AnyRenderBox, )
Flutter’s
_destroyOrCacheChild.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>, )
The body of Flutter’s
attach override: attaches the kept-alive children too.Source§fn did_detach(self: RenderHandle<Self>, app: &mut App)
fn did_detach(self: RenderHandle<Self>, app: &mut App)
The body of Flutter’s
detach override: detaches the kept-alive children too.Source§fn redepth_children(self: RenderHandle<Self>, app: &mut App)
fn redepth_children(self: RenderHandle<Self>, app: &mut App)
The body of Flutter’s
redepthChildren override.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), )
The body of Flutter’s
visitChildren override: visits the kept-alive children too.Source§fn add_initial_child(
self: RenderHandle<Self>,
app: &mut App,
index: i32,
layout_offset: f64,
) -> bool
fn add_initial_child( self: RenderHandle<Self>, app: &mut App, index: i32, layout_offset: f64, ) -> bool
Called during layout to create and add the child with the given index and scroll offset. Read more
Source§fn insert_and_layout_leading_child(
self: RenderHandle<Self>,
app: &mut App,
child_constraints: BoxConstraints,
parent_uses_size: bool,
) -> Option<AnyRenderBox>
fn insert_and_layout_leading_child( self: RenderHandle<Self>, app: &mut App, child_constraints: BoxConstraints, parent_uses_size: bool, ) -> Option<AnyRenderBox>
Called during layout to create, add, and lay out the child before
ContainerRenderObjectMixin::first_child. Read moreSource§fn insert_and_layout_child(
self: RenderHandle<Self>,
app: &mut App,
child_constraints: BoxConstraints,
after: Option<AnyRenderBox>,
parent_uses_size: bool,
) -> Option<AnyRenderBox>
fn insert_and_layout_child( self: RenderHandle<Self>, app: &mut App, child_constraints: BoxConstraints, after: Option<AnyRenderBox>, parent_uses_size: bool, ) -> Option<AnyRenderBox>
Called during layout to create, add, and lay out the child after the given child. Read more
Source§fn calculate_leading_garbage(
self: RenderHandle<Self>,
app: &App,
first_index: i32,
) -> usize
fn calculate_leading_garbage( self: RenderHandle<Self>, app: &App, first_index: i32, ) -> usize
Returns the number of children preceding the
first_index that need to be garbage
collected.Source§fn calculate_trailing_garbage(
self: RenderHandle<Self>,
app: &App,
last_index: i32,
) -> usize
fn calculate_trailing_garbage( self: RenderHandle<Self>, app: &App, last_index: i32, ) -> usize
Returns the number of children following the
last_index that need to be garbage
collected.Source§fn collect_garbage(
self: RenderHandle<Self>,
app: &mut App,
leading_garbage: usize,
trailing_garbage: usize,
)
fn collect_garbage( self: RenderHandle<Self>, app: &mut App, leading_garbage: usize, trailing_garbage: usize, )
Called after layout with the number of children that can be garbage collected at the head
and tail of the child list. Read more
Source§fn index_of(self: RenderHandle<Self>, app: &App, child: AnyRenderBox) -> i32
fn index_of(self: RenderHandle<Self>, app: &App, child: AnyRenderBox) -> i32
Returns the index of the given child, as given by the
SliverMultiBoxAdaptorParentData::index field of the child’s parent data.Source§fn hit_test_children(
self: RenderHandle<Self>,
app: &mut App,
result: &mut SliverHitTestResult<'_>,
main_axis_position: f64,
cross_axis_position: f64,
) -> bool
fn hit_test_children( self: RenderHandle<Self>, app: &mut App, result: &mut SliverHitTestResult<'_>, main_axis_position: f64, cross_axis_position: f64, ) -> bool
The body of Flutter’s
hitTestChildren override.Source§fn child_main_axis_position(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderObject,
) -> f64
fn child_main_axis_position( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, ) -> f64
The body of Flutter’s
childMainAxisPosition override.Source§fn child_scroll_offset(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderObject,
) -> Option<f64>
fn child_scroll_offset( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, ) -> Option<f64>
The body of Flutter’s
childScrollOffset override.Source§fn paints_child(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderBox,
) -> bool
fn paints_child( self: RenderHandle<Self>, app: &App, child: AnyRenderBox, ) -> bool
Whether the given child is painted, i.e. it is reified and not kept alive off-screen. Read more
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, )
The body of Flutter’s
applyPaintTransform override.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, )
The body of Flutter’s
paint override.Source§fn debug_assert_child_list_is_non_empty_and_contiguous(
self: RenderHandle<Self>,
app: &App,
) -> bool
fn debug_assert_child_list_is_non_empty_and_contiguous( self: RenderHandle<Self>, app: &App, ) -> bool
Asserts that the reified child list is not empty and has a contiguous sequence of indices. Read more
Source§impl RenderSliverWithKeepAliveMixin for RenderSliverFixedExtentList
impl RenderSliverWithKeepAliveMixin for RenderSliverFixedExtentList
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, )
Alerts the developer that the child’s parent data needs to embed a
KeepAliveParentData.Auto Trait Implementations§
impl !RefUnwindSafe for RenderSliverFixedExtentList
impl !Send for RenderSliverFixedExtentList
impl !Sync for RenderSliverFixedExtentList
impl !UnwindSafe for RenderSliverFixedExtentList
impl Freeze for RenderSliverFixedExtentList
impl Unpin for RenderSliverFixedExtentList
impl UnsafeUnpin for RenderSliverFixedExtentList
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
Mutably borrows from an owned value. Read more
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>, )
Flutter’s
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)
Flutter’s
ContainerRenderObjectMixin.remove.Source§fn remove_all(self: RenderHandle<Self>, app: &mut App)
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>,
)
fn move_child( self: RenderHandle<Self>, app: &mut App, child: Self::ChildType, after: Option<Self::ChildType>, )
Flutter’s
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)
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)
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>,
)
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.