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§
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 Methods§
Sourcefn make_interface<A: Application>() -> Interface<A, Self>where
Self: Sized,
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§
impl Presentation for Curses
Available on crate feature
curses
only.impl Presentation for gooey::presentation::fmod::remote::Remote
Available on crate feature
fmod
only.impl Presentation for Fmod
Available on crate feature
fmod
only.impl Presentation for Headless
impl Presentation for gooey::presentation::opengl::remote::Remote
Available on crate feature
opengl
only.impl Presentation for Opengl
Available on crate feature
opengl
only.