pub trait EguiPresentable {
// Required method
fn render_component(&self, ui: &mut Ui);
// Provided methods
fn render_window(&self, context: &Context) { ... }
fn render_window_mut(&mut self, context: &Context) { ... }
fn render_component_mut(&mut self, ui: &mut Ui) { ... }
}
Expand description
Allows the implementing object to be rendered as an eGUI component.
Required Methods§
Sourcefn render_component(&self, ui: &mut Ui)
fn render_component(&self, ui: &mut Ui)
Renders the implementor as a sub-component not allowing to change the values.
Provided Methods§
Sourcefn render_window(&self, context: &Context)
fn render_window(&self, context: &Context)
Renders the implementor as a stand-alone window not allowing to change the values.
Sourcefn render_window_mut(&mut self, context: &Context)
fn render_window_mut(&mut self, context: &Context)
Renders the implementor as a stand-alone window allowing to change the values.
Sourcefn render_component_mut(&mut self, ui: &mut Ui)
fn render_component_mut(&mut self, ui: &mut Ui)
Renders the implementor as a sub-component allowing to change the values.
§Note
If not re-implemented, the default implementation shows the immutable UI.