Skip to main content

Gui

Trait Gui 

Source
pub trait Gui {
    type Events;

    // Required method
    fn draw_gui(ui: &Ui<'_>, ext: &mut Self) -> Self::Events;
}
Expand description

Trait implemented by the derive macro.

Required Associated Types§

Required Methods§

Source

fn draw_gui(ui: &Ui<'_>, ext: &mut Self) -> Self::Events

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T: Gui> Gui for Box<T>

Source§

type Events = <T as Gui>::Events

Source§

fn draw_gui(ui: &Ui<'_>, ext: &mut Self) -> Self::Events

Source§

impl<T: Gui> Gui for Option<T>

Source§

type Events = <T as Gui>::Events

Source§

fn draw_gui(ui: &Ui<'_>, ext: &mut Self) -> Self::Events

Implementors§