Skip to main content

HostEmbeddedView

Trait HostEmbeddedView 

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

Source

fn set_metrics(&self, metrics: ViewMetrics)

The view takes metrics (EmbeddedView::set_metrics).

Source

fn set_in_sight(&self, in_sight: bool)

The view is in sight or not (EmbeddedView::set_in_sight).

Source

fn remove(&self)

The view is removed, as its handle is dropped.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§