Skip to main content

Frame

Trait Frame 

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

Source

fn navigate(&mut self, attrs: &FrameAttrs)

Source

fn post(&mut self, wire: &str, target_origin: &str)

Deliver a message to the document’s window.

Source

fn place(&mut self, placement: Option<Placement>)

Show the document at placement, or hide it (None: not painted this frame).

Source

fn rehome(&mut self, window: &mut Window)

Re-parent to window; the document goes with it and is not reloaded.

Source

fn focus(&mut self, on: bool)

Give the document the keyboard focus, or take it back.

Source

fn pointer(&mut self, input: PointerInput)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§