pub struct RenderSliverFillViewport { /* private fields */ }Expand description
A sliver that contains multiple box children that each fill the viewport.
RenderSliverFillViewport places its children in a linear array along the main axis. Each
child is sized to fill the viewport, both in the main and cross axis. A
viewport_fraction factor can be provided to size the children to
a multiple of the viewport’s main axis dimension (typically a fraction less than 1.0).
See also:
RenderSliverFillRemaining, which sizes the children based on the remaining space rather than the viewport itself.crate::RenderSliverFixedExtentList, which has a configurable item extent.crate::RenderSliverList, which does not require its children to have the same extent in the main axis.
Implementations§
Source§impl RenderSliverFillViewport
impl RenderSliverFillViewport
Sourcepub fn new(
app: &mut App,
child_manager: Rc<dyn RenderSliverBoxChildManager>,
viewport_fraction: f64,
allow_implicit_scrolling: bool,
) -> RenderHandle<RenderSliverFillViewport>
pub fn new( app: &mut App, child_manager: Rc<dyn RenderSliverBoxChildManager>, viewport_fraction: f64, allow_implicit_scrolling: bool, ) -> RenderHandle<RenderSliverFillViewport>
Creates a sliver that contains multiple box children that each fill the viewport.
Dart’s defaults: viewport_fraction 1.0, allow_implicit_scrolling true.
Sourcepub fn viewport_fraction(self: RenderHandle<Self>, app: &App) -> f64
pub fn viewport_fraction(self: RenderHandle<Self>, app: &App) -> f64
The fraction of the viewport that each child should fill in the main axis.
If this fraction is less than 1.0, more than one child will be visible at once. If this fraction is greater than 1.0, each child will be larger than the viewport in the main axis.
Sourcepub fn set_viewport_fraction(
self: RenderHandle<Self>,
app: &mut App,
value: f64,
)
pub fn set_viewport_fraction( self: RenderHandle<Self>, app: &mut App, value: f64, )
See viewport_fraction.
Sourcepub fn allow_implicit_scrolling(self: RenderHandle<Self>, app: &App) -> bool
pub fn allow_implicit_scrolling(self: RenderHandle<Self>, app: &App) -> bool
Whether the pages answer implicit scrolling, as PageView::allow_implicit_scrolling
describes.
This is typically used by assistive technologies, such as screen readers.
Sourcepub fn set_allow_implicit_scrolling(
self: RenderHandle<Self>,
app: &mut App,
value: bool,
)
pub fn set_allow_implicit_scrolling( self: RenderHandle<Self>, app: &mut App, value: bool, )
Trait Implementations§
Source§impl ContainerRenderObjectMixin for RenderSliverFillViewport
impl ContainerRenderObjectMixin for RenderSliverFillViewport
Source§type ChildType = AnyRenderBox
type ChildType = AnyRenderBox
ChildType: the protocol of this render object’s children.Source§type ParentDataType = SliverMultiBoxAdaptorParentData
type ParentDataType = SliverMultiBoxAdaptorParentData
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 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>, )
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>, )
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)
Source§fn remove_all(self: RenderHandle<Self>, app: &mut App)
fn remove_all(self: RenderHandle<Self>, app: &mut App)
Source§fn child_count(self: RenderHandle<Self>, app: &App) -> usize
fn child_count(self: RenderHandle<Self>, app: &App) -> usize
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 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 debug_describe_children(
self: RenderHandle<Self>,
app: &App,
) -> Vec<Rc<dyn DiagnosticsNode>>
fn debug_describe_children( self: RenderHandle<Self>, app: &App, ) -> Vec<Rc<dyn DiagnosticsNode>>
ContainerRenderObjectMixin.debugDescribeChildren: the children in order,
named child 1, child 2, …. A class with this mixin answers
RenderObject::debug_describe_children with it.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 RenderObject for RenderSliverFillViewport
impl RenderObject for RenderSliverFillViewport
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 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 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 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 paints_child(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderObject,
) -> bool
fn paints_child( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, ) -> bool
Source§fn debug_fill_properties(
self: RenderHandle<Self>,
app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( self: RenderHandle<Self>, app: &App, properties: &mut DiagnosticPropertiesBuilder, )
debugFillProperties: the properties this class shows in a dump, after its base
classes’. A trait default cannot call super, so the framework adds RenderObject’s and
RenderBox’s or RenderSliver’s properties first and an override adds only its own,
in Dart’s order.Source§fn debug_describe_children(
self: RenderHandle<Self>,
app: &App,
) -> Vec<Rc<dyn DiagnosticsNode>>
fn debug_describe_children( self: RenderHandle<Self>, app: &App, ) -> Vec<Rc<dyn DiagnosticsNode>>
debugDescribeChildren: the children a dump shows under this object. Dart’s
default shows none and its child mixins name theirs (child; child 1, child 2, …);
this default shows the children visit_children visits, named
child when there is one and child 1, child 2, … when there are more, so a dump never
drops a child of a class that has not described its own.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 perform_layout(self: RenderHandle<Self>, app: &mut App)
fn perform_layout(self: RenderHandle<Self>, app: &mut App)
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 sized_by_parent(self: RenderHandle<Self>, _app: &App) -> bool
fn sized_by_parent(self: RenderHandle<Self>, _app: &App) -> bool
Source§fn describe_approximate_paint_clip(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderObject,
) -> Option<Rect>
fn describe_approximate_paint_clip( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, ) -> Option<Rect>
describeApproximatePaintClip: the rectangle, in this object’s coordinates, that
it clips child’s painting to, or None where it does not clip it. An estimate, for the
inspector’s screenshot bounds: a clip it may apply is enough.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 debug_fill_base_properties(
self: RenderHandle<Self>,
app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_base_properties( self: RenderHandle<Self>, app: &App, properties: &mut DiagnosticPropertiesBuilder, )
super.debugFillProperties as a class’s override calls it: RenderObject’s
properties, then RenderBox’s or RenderSliver’s, which the framework adds before
debug_fill_properties. A class whose Dart override leaves
the super call out, as RenderView’s does, overrides this to add nothing.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 moreSource§impl RenderSliver for RenderSliverFillViewport
impl RenderSliver for RenderSliverFillViewport
Source§fn render_sliver_data(self: RenderHandle<Self>, app: &App) -> &RenderSliverData
fn render_sliver_data(self: RenderHandle<Self>, app: &App) -> &RenderSliverData
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
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
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
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>
Source§fn ensure_semantics(self: RenderHandle<Self>, _app: &App) -> bool
fn ensure_semantics(self: RenderHandle<Self>, _app: &App) -> bool
Source§fn constraints(self: RenderHandle<Self>, app: &App) -> SliverConstraints
fn constraints(self: RenderHandle<Self>, app: &App) -> SliverConstraints
Source§fn geometry(self: RenderHandle<Self>, app: &App) -> SliverGeometry
fn geometry(self: RenderHandle<Self>, app: &App) -> SliverGeometry
Source§fn set_geometry(
self: RenderHandle<Self>,
app: &mut App,
geometry: SliverGeometry,
)
fn set_geometry( self: RenderHandle<Self>, app: &mut App, geometry: SliverGeometry, )
RenderObject::perform_layout.Source§fn paint_bounds(self: RenderHandle<Self>, app: &App) -> Rect
fn paint_bounds(self: RenderHandle<Self>, app: &App) -> Rect
Source§fn center_offset_adjustment(self: RenderHandle<Self>, _app: &App) -> f64
fn center_offset_adjustment(self: RenderHandle<Self>, _app: &App) -> f64
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
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
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, )
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
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
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
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
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
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
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 RenderSliverFillViewport
impl RenderSliverFixedExtentBoxAdaptor for RenderSliverFillViewport
Source§fn fixed_extent_data(
self: RenderHandle<Self>,
app: &App,
) -> &RenderSliverFixedExtentBoxAdaptorData
fn fixed_extent_data( self: RenderHandle<Self>, app: &App, ) -> &RenderSliverFixedExtentBoxAdaptorData
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
fixed_extent_data.Source§fn item_extent(self: RenderHandle<Self>, app: &App) -> Option<f64>
fn item_extent(self: RenderHandle<Self>, app: &App) -> Option<f64>
Source§fn item_extent_builder(
self: RenderHandle<Self>,
app: &App,
) -> Option<ItemExtentBuilder>
fn item_extent_builder( self: RenderHandle<Self>, app: &App, ) -> Option<ItemExtentBuilder>
Source§fn layout_dimensions(
self: RenderHandle<Self>,
app: &App,
) -> SliverLayoutDimensions
fn layout_dimensions( self: RenderHandle<Self>, app: &App, ) -> SliverLayoutDimensions
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
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
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
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
_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
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
Source§fn child_constraints(
self: RenderHandle<Self>,
app: &App,
index: i32,
) -> BoxConstraints
fn child_constraints( self: RenderHandle<Self>, app: &App, index: i32, ) -> BoxConstraints
_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
paintExtentOf override.Source§fn perform_layout(self: RenderHandle<Self>, app: &mut App)
fn perform_layout(self: RenderHandle<Self>, app: &mut App)
performLayout override.Source§impl RenderSliverHelpers for RenderSliverFillViewport
impl RenderSliverHelpers for RenderSliverFillViewport
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
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, )
RenderObject::apply_paint_transform for use when the children
are crate::RenderBox widgets. Read moreSource§impl RenderSliverMultiBoxAdaptor for RenderSliverFillViewport
impl RenderSliverMultiBoxAdaptor for RenderSliverFillViewport
Source§fn adaptor_data(
self: RenderHandle<Self>,
app: &App,
) -> &RenderSliverMultiBoxAdaptorData
fn adaptor_data( self: RenderHandle<Self>, app: &App, ) -> &RenderSliverMultiBoxAdaptorData
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
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
Source§fn child_manager(
self: RenderHandle<Self>,
app: &App,
) -> Rc<dyn RenderSliverBoxChildManager>
fn child_manager( self: RenderHandle<Self>, app: &App, ) -> Rc<dyn RenderSliverBoxChildManager>
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, )
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
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, )
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
_debugAssertChildListLocked.Source§fn debug_verify_child_order(self: RenderHandle<Self>, app: &App) -> bool
fn debug_verify_child_order(self: RenderHandle<Self>, app: &App) -> bool
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 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)
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>, )
move override. Read moreSource§fn remove(self: RenderHandle<Self>, app: &mut App, child: AnyRenderBox)
fn remove(self: RenderHandle<Self>, app: &mut App, child: AnyRenderBox)
remove override.Source§fn remove_all(self: RenderHandle<Self>, app: &mut App)
fn remove_all(self: RenderHandle<Self>, app: &mut App)
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>
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>, )
_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, )
_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>, )
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)
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)
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), )
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
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>
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>
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
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
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, )
Source§fn index_of(self: RenderHandle<Self>, app: &App, child: AnyRenderBox) -> i32
fn index_of(self: RenderHandle<Self>, app: &App, child: AnyRenderBox) -> i32
SliverMultiBoxAdaptorParentData::index field of the child’s parent data.Source§fn debug_fill_properties(
self: RenderHandle<Self>,
app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( self: RenderHandle<Self>, app: &App, properties: &mut DiagnosticPropertiesBuilder, )
debugFillProperties: the range of live child indices, or that there are none.Source§fn debug_describe_children(
self: RenderHandle<Self>,
app: &App,
) -> Vec<Rc<dyn DiagnosticsNode>>
fn debug_describe_children( self: RenderHandle<Self>, app: &App, ) -> Vec<Rc<dyn DiagnosticsNode>>
debugDescribeChildren: the live children by index, then the kept-alive children
by index, offstage.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
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
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>
childScrollOffset override.Source§fn paints_child(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderObject,
) -> bool
fn paints_child( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, ) -> bool
paintsChild override: the child is painted when it is reified
and not kept alive off-screen.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, )
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, )
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
Source§impl RenderSliverWithKeepAliveMixin for RenderSliverFillViewport
impl RenderSliverWithKeepAliveMixin for RenderSliverFillViewport
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, )
KeepAliveParentData.Auto Trait Implementations§
impl !RefUnwindSafe for RenderSliverFillViewport
impl !Send for RenderSliverFillViewport
impl !Sync for RenderSliverFillViewport
impl !UnwindSafe for RenderSliverFillViewport
impl Forget for RenderSliverFillViewport
impl Freeze for RenderSliverFillViewportwhere
&'static RenderObjectVTable: Freeze,
NonZero<u32>: Freeze,
PhantomData<fn() -> PipelineOwner>: Freeze,
*const dyn ParentData is !null: Freeze,
PhantomData<dyn ParentData>: Freeze,
&'static ContainerLayerVTable: Freeze,
&'static RenderBoxVTable: Freeze,
*const RcInner<dyn RenderSliverBoxChildManager> is !null: Freeze,
PhantomData<RcInner<dyn RenderSliverBoxChildManager>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<i32, AnyRenderBox>>: Freeze,
PhantomData<AnyRenderBox>: Freeze,
impl Move for RenderSliverFillViewport
impl Unpin for RenderSliverFillViewport
impl UnsafeUnpin for RenderSliverFillViewportwhere
&'static RenderObjectVTable: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
PhantomData<fn() -> PipelineOwner>: UnsafeUnpin,
*const dyn ParentData is !null: UnsafeUnpin,
PhantomData<dyn ParentData>: UnsafeUnpin,
&'static ContainerLayerVTable: UnsafeUnpin,
&'static RenderBoxVTable: UnsafeUnpin,
*const RcInner<dyn RenderSliverBoxChildManager> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn RenderSliverBoxChildManager>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<i32, AnyRenderBox>>: UnsafeUnpin,
PhantomData<AnyRenderBox>: UnsafeUnpin,
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.