pub trait ProxyElement: ComponentElement {
// Required methods
fn proxied_child(self: Handle<Self>, app: &App) -> WidgetRef;
fn notify_clients(self: Handle<Self>, app: &mut App, old_widget: WidgetRef);
// Provided methods
fn updated(self: Handle<Self>, app: &mut App, old_widget: WidgetRef) { ... }
fn update(self: Handle<Self>, app: &mut App, new_widget: WidgetRef) { ... }
}Expand description
An Element that uses a ProxyWidget as its configuration.
Required Methods§
Sourcefn proxied_child(self: Handle<Self>, app: &App) -> WidgetRef
fn proxied_child(self: Handle<Self>, app: &App) -> WidgetRef
The proxied child widget.
Provided Methods§
Sourcefn updated(self: Handle<Self>, app: &mut App, old_widget: WidgetRef)
fn updated(self: Handle<Self>, app: &mut App, old_widget: WidgetRef)
Called during build when the widget has changed.
By default, calls notify_clients. Subclasses may override
this method to avoid calling notify_clients unnecessarily
(e.g. if the old and new widgets are equivalent).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".