pub trait HostEmbeddedView {
// Required methods
fn set_metrics(&self, metrics: ViewMetrics);
fn set_in_sight(&self, in_sight: bool);
fn remove(&self);
}Expand description
The host’s side of a view the app added, which its EmbeddedView’s calls reach. A host
implements it for the views it embeds, as it implements HostWindow for
its windows.
Required Methods§
Sourcefn set_metrics(&self, metrics: ViewMetrics)
fn set_metrics(&self, metrics: ViewMetrics)
The view takes metrics (EmbeddedView::set_metrics).
Sourcefn set_in_sight(&self, in_sight: bool)
fn set_in_sight(&self, in_sight: bool)
The view is in sight or not (EmbeddedView::set_in_sight).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".