pub trait RenderListBodyMixin:
RenderBox
+ ContainerRenderObjectMixin<ChildType = AnyRenderBox, ParentDataType = ListBodyParentData>
+ RenderBoxContainerDefaultsMixin {
Show 19 methods
// Required methods
fn list_body_data(
self: RenderHandle<Self>,
app: &App,
) -> &RenderListBodyData;
fn list_body_data_mut(
self: RenderHandle<Self>,
app: &mut App,
) -> &mut RenderListBodyData;
// Provided methods
fn setup_parent_data(
self: RenderHandle<Self>,
app: &mut App,
child: AnyRenderObject,
) { ... }
fn axis_direction(self: RenderHandle<Self>, app: &App) -> AxisDirection { ... }
fn set_axis_direction(
self: RenderHandle<Self>,
app: &mut App,
value: AxisDirection,
) { ... }
fn main_axis(self: RenderHandle<Self>, app: &App) -> Axis { ... }
fn compute_dry_baseline(
self: RenderHandle<Self>,
app: &mut App,
constraints: BoxConstraints,
baseline: TextBaseline,
) -> Option<f64> { ... }
fn compute_dry_layout(
self: RenderHandle<Self>,
app: &mut App,
constraints: BoxConstraints,
) -> Size { ... }
fn debug_check_constraints(
self: RenderHandle<Self>,
app: &App,
constraints: BoxConstraints,
) -> bool { ... }
fn perform_layout(self: RenderHandle<Self>, app: &mut App) { ... }
fn get_intrinsic_cross_axis(
self: RenderHandle<Self>,
app: &mut App,
child_size: impl Fn(&mut App, AnyRenderBox) -> f64,
) -> f64 { ... }
fn get_intrinsic_main_axis(
self: RenderHandle<Self>,
app: &mut App,
child_size: impl Fn(&mut App, AnyRenderBox) -> f64,
) -> f64 { ... }
fn compute_min_intrinsic_width(
self: RenderHandle<Self>,
app: &mut App,
height: f64,
) -> f64 { ... }
fn compute_max_intrinsic_width(
self: RenderHandle<Self>,
app: &mut App,
height: f64,
) -> f64 { ... }
fn compute_min_intrinsic_height(
self: RenderHandle<Self>,
app: &mut App,
width: f64,
) -> f64 { ... }
fn compute_max_intrinsic_height(
self: RenderHandle<Self>,
app: &mut App,
width: f64,
) -> f64 { ... }
fn compute_distance_to_actual_baseline(
self: RenderHandle<Self>,
app: &mut App,
baseline: TextBaseline,
) -> Option<f64> { ... }
fn paint(
self: RenderHandle<Self>,
app: &mut App,
context: &mut PaintingContext,
offset: Offset,
) { ... }
fn hit_test_children(
self: RenderHandle<Self>,
app: &mut App,
result: &mut BoxHitTestResult<'_>,
position: Offset,
) -> bool { ... }
}Expand description
Displays its children sequentially along a given axis, forcing them to the dimensions of the parent in the other axis.
Flutter’s RenderListBody: the shared bodies of the list body layout. A leaf holds a
RenderListBodyData, implements this trait, and calls these where Dart would run the
inherited method: RenderListBodyMixin::perform_layout(self, app).
See RenderListBody for the layout algorithm.
Required Methods§
Sourcefn list_body_data(self: RenderHandle<Self>, app: &App) -> &RenderListBodyData
fn list_body_data(self: RenderHandle<Self>, app: &App) -> &RenderListBodyData
Mixin field access.
Sourcefn list_body_data_mut(
self: RenderHandle<Self>,
app: &mut App,
) -> &mut RenderListBodyData
fn list_body_data_mut( self: RenderHandle<Self>, app: &mut App, ) -> &mut RenderListBodyData
See list_body_data.
Provided Methods§
Sourcefn setup_parent_data(
self: RenderHandle<Self>,
app: &mut App,
child: AnyRenderObject,
)
fn setup_parent_data( self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject, )
Dart’s RenderListBody.setupParentData.
Sourcefn axis_direction(self: RenderHandle<Self>, app: &App) -> AxisDirection
fn axis_direction(self: RenderHandle<Self>, app: &App) -> AxisDirection
The direction in which the children are laid out.
For example, if the axis_direction is AxisDirection::Down,
each child will be laid out below the next, vertically.
Sourcefn set_axis_direction(
self: RenderHandle<Self>,
app: &mut App,
value: AxisDirection,
)
fn set_axis_direction( self: RenderHandle<Self>, app: &mut App, value: AxisDirection, )
Sets axis_direction.
Sourcefn main_axis(self: RenderHandle<Self>, app: &App) -> Axis
fn main_axis(self: RenderHandle<Self>, app: &App) -> Axis
The axis (horizontal or vertical) corresponding to the current
axis_direction.
Sourcefn compute_dry_baseline(
self: RenderHandle<Self>,
app: &mut App,
constraints: BoxConstraints,
baseline: TextBaseline,
) -> Option<f64>
fn compute_dry_baseline( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, baseline: TextBaseline, ) -> Option<f64>
Dart’s RenderListBody.computeDryBaseline.
Sourcefn compute_dry_layout(
self: RenderHandle<Self>,
app: &mut App,
constraints: BoxConstraints,
) -> Size
fn compute_dry_layout( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, ) -> Size
Dart’s RenderListBody.computeDryLayout.
Sourcefn debug_check_constraints(
self: RenderHandle<Self>,
app: &App,
constraints: BoxConstraints,
) -> bool
fn debug_check_constraints( self: RenderHandle<Self>, app: &App, constraints: BoxConstraints, ) -> bool
Flutter’s _debugCheckConstraints: panics unless the main axis is unbounded and the cross
axis bounded. Internal to the list body layout.
Sourcefn perform_layout(self: RenderHandle<Self>, app: &mut App)
fn perform_layout(self: RenderHandle<Self>, app: &mut App)
Dart’s RenderListBody.performLayout.
Sourcefn get_intrinsic_cross_axis(
self: RenderHandle<Self>,
app: &mut App,
child_size: impl Fn(&mut App, AnyRenderBox) -> f64,
) -> f64
fn get_intrinsic_cross_axis( self: RenderHandle<Self>, app: &mut App, child_size: impl Fn(&mut App, AnyRenderBox) -> f64, ) -> f64
Flutter’s _getIntrinsicCrossAxis: the largest of the children’s sizes. Internal to the
list body layout.
Sourcefn get_intrinsic_main_axis(
self: RenderHandle<Self>,
app: &mut App,
child_size: impl Fn(&mut App, AnyRenderBox) -> f64,
) -> f64
fn get_intrinsic_main_axis( self: RenderHandle<Self>, app: &mut App, child_size: impl Fn(&mut App, AnyRenderBox) -> f64, ) -> f64
Flutter’s _getIntrinsicMainAxis: the sum of the children’s sizes. Internal to the list
body layout.
Sourcefn compute_min_intrinsic_width(
self: RenderHandle<Self>,
app: &mut App,
height: f64,
) -> f64
fn compute_min_intrinsic_width( self: RenderHandle<Self>, app: &mut App, height: f64, ) -> f64
Dart’s RenderListBody.computeMinIntrinsicWidth.
Sourcefn compute_max_intrinsic_width(
self: RenderHandle<Self>,
app: &mut App,
height: f64,
) -> f64
fn compute_max_intrinsic_width( self: RenderHandle<Self>, app: &mut App, height: f64, ) -> f64
Dart’s RenderListBody.computeMaxIntrinsicWidth.
Sourcefn compute_min_intrinsic_height(
self: RenderHandle<Self>,
app: &mut App,
width: f64,
) -> f64
fn compute_min_intrinsic_height( self: RenderHandle<Self>, app: &mut App, width: f64, ) -> f64
Dart’s RenderListBody.computeMinIntrinsicHeight.
Sourcefn compute_max_intrinsic_height(
self: RenderHandle<Self>,
app: &mut App,
width: f64,
) -> f64
fn compute_max_intrinsic_height( self: RenderHandle<Self>, app: &mut App, width: f64, ) -> f64
Dart’s RenderListBody.computeMaxIntrinsicHeight.
Sourcefn compute_distance_to_actual_baseline(
self: RenderHandle<Self>,
app: &mut App,
baseline: TextBaseline,
) -> Option<f64>
fn compute_distance_to_actual_baseline( self: RenderHandle<Self>, app: &mut App, baseline: TextBaseline, ) -> Option<f64>
Dart’s RenderListBody.computeDistanceToActualBaseline.
Sourcefn 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, )
Dart’s RenderListBody.paint.
Sourcefn hit_test_children(
self: RenderHandle<Self>,
app: &mut App,
result: &mut BoxHitTestResult<'_>,
position: Offset,
) -> bool
fn hit_test_children( self: RenderHandle<Self>, app: &mut App, result: &mut BoxHitTestResult<'_>, position: Offset, ) -> bool
Dart’s RenderListBody.hitTestChildren.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".