pub trait RenderObjectBase: RenderObject {
// Provided methods
fn dispose(self: RenderHandle<Self>, app: &mut App) { ... }
fn mark_needs_layout(self: RenderHandle<Self>, app: &mut App) { ... }
fn show_on_screen(
self: RenderHandle<Self>,
app: &mut App,
descendant: Option<AnyRenderObject>,
rect: Option<Rect>,
duration: Duration,
curve: Rc<dyn Curve>,
) { ... }
}Expand description
Flutter’s RenderObject bodies that an override calls through super.
Blanket-implemented for every RenderObject, and repeats the default bodies of the
virtuals above: a leaf’s own override shadows the default it would otherwise call.
Provided Methods§
Sourcefn 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().
Sourcefn 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().
Sourcefn 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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".