Trait Presentation

Source
pub trait Presentation {
    // Required methods
    fn with_root(root: View, id: NodeId) -> Self;
    fn get_input(&mut self, input_buffer: &mut Vec<Input>);
    fn display_view<V: AsRef<View>>(
        &mut self,
        view_tree: &Tree<V>,
        display_values: Drain<'_, (NodeId, Display)>,
    );

    // Provided method
    fn make_interface<A: Application>() -> Interface<A, Self>
       where Self: Sized { ... }
}
Expand description

Implements a means of getting input and displaying view data

Required Methods§

Source

fn with_root(root: View, id: NodeId) -> Self

Source

fn get_input(&mut self, input_buffer: &mut Vec<Input>)

Source

fn display_view<V: AsRef<View>>( &mut self, view_tree: &Tree<V>, display_values: Drain<'_, (NodeId, Display)>, )

Provided Methods§

Source

fn make_interface<A: Application>() -> Interface<A, Self>
where Self: Sized,

Overridable constructor allowing the presentation backend to do custom initialization of the interface, e.g. initializing the root screen element of a graphical interface.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Presentation for Curses

Available on crate feature curses only.
Source§

impl Presentation for gooey::presentation::fmod::remote::Remote

Available on crate feature fmod only.
Source§

impl Presentation for Fmod

Available on crate feature fmod only.
Source§

impl Presentation for Headless

Source§

impl Presentation for gooey::presentation::opengl::remote::Remote

Available on crate feature opengl only.
Source§

impl Presentation for Opengl

Available on crate feature opengl only.
Source§

impl<G, A> Presentation for Composite<G, A>
where G: Graphics, A: Audio,