Skip to main content

RenderTreeRootElement

Trait RenderTreeRootElement 

Source
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§

Source

fn attach_render_object( self: Handle<Self>, app: &mut App, new_slot: Option<Slot>, )

RenderTreeRootElement.attachRenderObject.

Source

fn detach_render_object(self: Handle<Self>, app: &mut App)

RenderTreeRootElement.detachRenderObject.

Source

fn update_slot(self: Handle<Self>, app: &mut App, new_slot: Option<Slot>)

RenderTreeRootElement.updateSlot.

Source

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".

Implementors§