pub trait Frame {
// Required methods
fn navigate(&mut self, attrs: &FrameAttrs);
fn post(&mut self, wire: &str, target_origin: &str);
fn place(&mut self, placement: Option<Placement>);
fn rehome(&mut self, window: &mut Window);
fn focus(&mut self, on: bool);
fn pointer(&mut self, input: PointerInput);
}Required Methods§
Sourcefn post(&mut self, wire: &str, target_origin: &str)
fn post(&mut self, wire: &str, target_origin: &str)
Deliver a message to the document’s window.
Sourcefn place(&mut self, placement: Option<Placement>)
fn place(&mut self, placement: Option<Placement>)
Show the document at placement, or hide it (None: not painted this frame).
Sourcefn rehome(&mut self, window: &mut Window)
fn rehome(&mut self, window: &mut Window)
Re-parent to window; the document goes with it and is not reloaded.
fn pointer(&mut self, input: PointerInput)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".