Skip to main content

RenderProxyBoxMixin

Trait RenderProxyBoxMixin 

Source
pub trait RenderProxyBoxMixin: RenderObjectWithChildMixin<ChildType = AnyRenderBox> + RenderBox {
Show 13 methods // Provided methods fn setup_parent_data( self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject, ) { ... } fn apply_paint_transform( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, transform: &mut Matrix4, ) { ... } 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 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 perform_layout(self: RenderHandle<Self>, app: &mut App) { ... } fn compute_size_for_no_child( self: RenderHandle<Self>, _app: &App, constraints: BoxConstraints, ) -> Size { ... } fn hit_test_children( self: RenderHandle<Self>, app: &mut App, result: &mut BoxHitTestResult<'_>, position: Offset, ) -> bool { ... } fn paint( self: RenderHandle<Self>, app: &mut App, context: &mut PaintingContext, offset: Offset, ) { ... }
}
Expand description

A base class for render boxes that resemble their children.

Flutter’s RenderProxyBoxMixin: the shared bodies of a proxy box. A leaf implements the marker and calls these where Dart would run the inherited method: RenderProxyBoxMixin::perform_layout(self, app).

Provided Methods§

Source

fn setup_parent_data( self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject, )

A proxy child gets plain parent data, not crate::BoxParentData.

Source

fn apply_paint_transform( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, transform: &mut Matrix4, )

A proxy paints its child at its own offset: no transform to apply.

Source

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

The child’s minimum intrinsic width, or 0 without a child.

Source

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

The child’s maximum intrinsic width, or 0 without a child.

Source

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

The child’s minimum intrinsic height, or 0 without a child.

Source

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

The child’s maximum intrinsic height, or 0 without a child.

Source

fn compute_distance_to_actual_baseline( self: RenderHandle<Self>, app: &mut App, baseline: TextBaseline, ) -> Option<f64>

The child’s baseline, or none without a child.

Source

fn compute_dry_baseline( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, baseline: TextBaseline, ) -> Option<f64>

The child’s dry baseline, or none without a child.

Source

fn compute_dry_layout( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, ) -> Size

The child’s dry layout at this box’s constraints, or compute_size_for_no_child.

Source

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

Lays the child out with this box’s constraints and takes its size.

Source

fn compute_size_for_no_child( self: RenderHandle<Self>, _app: &App, constraints: BoxConstraints, ) -> Size

Calculate the size the proxy box would have when it has no child.

Source

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

Hit tests the child at this box’s position.

Source

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

Paints the child at this box’s offset.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl RenderProxyBoxMixin for RenderAbsorbPointer

Source§

impl RenderProxyBoxMixin for RenderAnimatedOpacity

Source§

impl RenderProxyBoxMixin for RenderAspectRatio

Source§

impl RenderProxyBoxMixin for RenderBackdropFilter

Source§

impl RenderProxyBoxMixin for RenderClipOval

Source§

impl RenderProxyBoxMixin for RenderClipPath

Source§

impl RenderProxyBoxMixin for RenderClipRRect

Source§

impl RenderProxyBoxMixin for RenderClipRSuperellipse

Source§

impl RenderProxyBoxMixin for RenderClipRect

Source§

impl RenderProxyBoxMixin for RenderColoredBox

Source§

impl RenderProxyBoxMixin for RenderConstrainedBox

Source§

impl RenderProxyBoxMixin for RenderCustomPaint

Source§

impl RenderProxyBoxMixin for RenderDecoratedBox

Source§

impl RenderProxyBoxMixin for RenderFittedBox

Source§

impl RenderProxyBoxMixin for RenderFollowerLayer

Source§

impl RenderProxyBoxMixin for RenderFractionalTranslation

Source§

impl RenderProxyBoxMixin for RenderIgnorePointer

Source§

impl RenderProxyBoxMixin for RenderIntrinsicHeight

Source§

impl RenderProxyBoxMixin for RenderIntrinsicWidth

Source§

impl RenderProxyBoxMixin for RenderLeaderLayer

Source§

impl RenderProxyBoxMixin for RenderLimitedBox

Source§

impl RenderProxyBoxMixin for RenderMetaData

Source§

impl RenderProxyBoxMixin for RenderMouseRegion

Source§

impl RenderProxyBoxMixin for RenderOffstage

Source§

impl RenderProxyBoxMixin for RenderOpacity

Source§

impl RenderProxyBoxMixin for RenderPointerListener

Source§

impl RenderProxyBoxMixin for RenderRepaintBoundary

Source§

impl RenderProxyBoxMixin for RenderTransform

Source§

impl<T: PartialEq + 'static> RenderProxyBoxMixin for RenderAnnotatedRegion<T>