pub trait RenderTreeRootElement: RenderObjectElement {
// Provided methods
fn attach_render_object(
self: Handle<Self>,
app: &mut App,
new_slot: Option<Slot>,
) { ... }
fn detach_render_object(self: Handle<Self>, app: &mut App) { ... }
fn update_slot(self: Handle<Self>, app: &mut App, new_slot: Option<Slot>) { ... }
fn debug_check_must_not_attach_render_object_to_ancestor(
self: Handle<Self>,
app: &App,
) -> bool { ... }
}Expand description
The attachRenderObject / detachRenderObject / updateSlot bodies of a
RenderTreeRootElement: a render object element whose render object does not attach to
an ancestor, because it is the root of its own render tree (RenderView).
A concrete element writes its own Element impl and calls these where Dart’s
RenderTreeRootElement would run.
Provided Methods§
Sourcefn attach_render_object(
self: Handle<Self>,
app: &mut App,
new_slot: Option<Slot>,
)
fn attach_render_object( self: Handle<Self>, app: &mut App, new_slot: Option<Slot>, )
RenderTreeRootElement.attachRenderObject.
Sourcefn detach_render_object(self: Handle<Self>, app: &mut App)
fn detach_render_object(self: Handle<Self>, app: &mut App)
RenderTreeRootElement.detachRenderObject.
Sourcefn update_slot(self: Handle<Self>, app: &mut App, new_slot: Option<Slot>)
fn update_slot(self: Handle<Self>, app: &mut App, new_slot: Option<Slot>)
RenderTreeRootElement.updateSlot.
fn debug_check_must_not_attach_render_object_to_ancestor( self: Handle<Self>, app: &App, ) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".