pub trait RenderBoxBase: RenderBox {
// Provided methods
fn mark_needs_layout(self: RenderHandle<Self>, app: &mut App) { ... }
fn perform_resize(self: RenderHandle<Self>, app: &mut App) { ... }
fn hit_test(
self: RenderHandle<Self>,
app: &mut App,
result: &mut BoxHitTestResult<'_>,
position: Offset,
) -> bool { ... }
}Expand description
Flutter’s RenderBox bodies that an override calls through super.
A trait default cannot call super, and a leaf’s RenderBox::hit_test shadows the default
it would call; this sibling trait, blanket-implemented for every box, carries that body (the
shape ElementBase has for Element). A leaf in any crate calls it at Dart’s super call:
RenderBoxBase::hit_test(self, app, result, position).
Provided Methods§
Sourcefn mark_needs_layout(self: RenderHandle<Self>, app: &mut App)
fn mark_needs_layout(self: RenderHandle<Self>, app: &mut App)
Flutter’s RenderBox.markNeedsLayout.
Sourcefn perform_resize(self: RenderHandle<Self>, app: &mut App)
fn perform_resize(self: RenderHandle<Self>, app: &mut App)
Flutter’s RenderBox.performResize.
Sourcefn hit_test(
self: RenderHandle<Self>,
app: &mut App,
result: &mut BoxHitTestResult<'_>,
position: Offset,
) -> bool
fn hit_test( self: RenderHandle<Self>, app: &mut App, result: &mut BoxHitTestResult<'_>, position: Offset, ) -> bool
Flutter’s RenderBox.hitTest.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".