Trait glyph_ui::Gui [−][src]
A Glyph User Interface
Associated Types
type Message
[src]
Type of message produced by Gui::view()
's element
type Event
[src]
Custom event type
If custom events aren't needed, this can simply be set to ()
.
Required methods
fn view(&mut self) -> View<'_, Self::Event, Self::Message>
[src]
Produce the UI elements to be displayed
These UI elements may produce messages of type Self::Message
and may
also receive Event<T>
s where T
is Self::Event
.
fn update(&mut self, message: Self::Message)
[src]
Handle messages produced by the UI elements (or custom events)
fn control_flow(&self) -> ControlFlow
[src]
Change the ControlFlow
of the event loop
With this function, it's possible to react to a message by, for example, terminating the event loop and thus exiting the application.