Trait EguiPresentable

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

Source

fn render_component(&self, ui: &mut Ui)

Renders the implementor as a sub-component not allowing to change the values.

Provided Methods§

Source

fn render_window(&self, context: &Context)

Renders the implementor as a stand-alone window not allowing to change the values.

Source

fn render_window_mut(&mut self, context: &Context)

Renders the implementor as a stand-alone window allowing to change the values.

Source

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.

Implementations on Foreign Types§

Source§

impl EguiPresentable for &str

Source§

fn render_component(&self, ui: &mut Ui)

Source§

impl EguiPresentable for bool

Source§

fn render_component(&self, ui: &mut Ui)

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

impl EguiPresentable for f32

Source§

fn render_component(&self, ui: &mut Ui)

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

impl EguiPresentable for f64

Source§

fn render_component(&self, ui: &mut Ui)

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

impl EguiPresentable for i8

Source§

fn render_component(&self, ui: &mut Ui)

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

impl EguiPresentable for i16

Source§

fn render_component(&self, ui: &mut Ui)

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

impl EguiPresentable for i32

Source§

fn render_component(&self, ui: &mut Ui)

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

impl EguiPresentable for i64

Source§

fn render_component(&self, ui: &mut Ui)

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

impl EguiPresentable for isize

Source§

fn render_component(&self, ui: &mut Ui)

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

impl EguiPresentable for u8

Source§

fn render_component(&self, ui: &mut Ui)

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

impl EguiPresentable for u16

Source§

fn render_component(&self, ui: &mut Ui)

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

impl EguiPresentable for u32

Source§

fn render_component(&self, ui: &mut Ui)

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

impl EguiPresentable for u64

Source§

fn render_component(&self, ui: &mut Ui)

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

impl EguiPresentable for usize

Source§

fn render_component(&self, ui: &mut Ui)

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

impl EguiPresentable for String

Source§

fn render_component(&self, ui: &mut Ui)

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

impl EguiPresentable for Mat3

Source§

fn render_component(&self, ui: &mut Ui)

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

impl EguiPresentable for Mat2

Source§

fn render_component(&self, ui: &mut Ui)

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

impl EguiPresentable for Mat4

Source§

fn render_component(&self, ui: &mut Ui)

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

impl EguiPresentable for Vec4

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

fn render_component(&self, ui: &mut Ui)

Source§

impl EguiPresentable for Vec2

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

fn render_component(&self, ui: &mut Ui)

Source§

impl EguiPresentable for Vec3

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

fn render_component(&self, ui: &mut Ui)

Source§

impl<K: EguiPresentable, V: EguiPresentable> EguiPresentable for BTreeMap<K, V>

Source§

fn render_component(&self, ui: &mut Ui)

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

impl<K: EguiPresentable, V: EguiPresentable> EguiPresentable for HashMap<K, V>

Source§

fn render_component(&self, ui: &mut Ui)

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

impl<T: EguiPresentable + Ord> EguiPresentable for BTreeSet<T>

Source§

fn render_component(&self, ui: &mut Ui)

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

impl<T: EguiPresentable + Default> EguiPresentable for Option<T>

Source§

fn render_component(&self, ui: &mut Ui)

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

impl<T: EguiPresentable> EguiPresentable for Vec<T>

Source§

fn render_component(&self, ui: &mut Ui)

Source§

fn render_component_mut(&mut self, ui: &mut Ui)

Source§

impl<T: EguiPresentable> EguiPresentable for HashSet<T>

Source§

fn render_component(&self, ui: &mut Ui)

Implementors§