pub trait AppEventObserver {
// Provided methods
fn raw_event(&mut self, ev: &Event) { ... }
fn event_preview(&mut self, update: &mut EventUpdate) { ... }
fn event_ui(&mut self, update: &mut EventUpdate) { ... }
fn event(&mut self, update: &mut EventUpdate) { ... }
fn update_preview(&mut self) { ... }
fn update_ui(&mut self, update_widgets: &mut WidgetUpdates) { ... }
fn update(&mut self) { ... }
fn info(&mut self, info_widgets: &mut InfoUpdates) { ... }
fn layout(&mut self, layout_widgets: &mut LayoutUpdates) { ... }
fn render(
&mut self,
render_widgets: &mut RenderUpdates,
render_update_widgets: &mut RenderUpdates,
) { ... }
fn as_dyn(&mut self) -> DynAppEventObserver<'_>
where Self: Sized { ... }
}
Expand description
Observer for HeadlessApp::update_observed
.
This works like a temporary app extension that runs only for the update call.
Provided Methods§
sourcefn event_preview(&mut self, update: &mut EventUpdate)
fn event_preview(&mut self, update: &mut EventUpdate)
Called just after AppExtension::event_preview
.
sourcefn event_ui(&mut self, update: &mut EventUpdate)
fn event_ui(&mut self, update: &mut EventUpdate)
Called just after AppExtension::event_ui
.
sourcefn event(&mut self, update: &mut EventUpdate)
fn event(&mut self, update: &mut EventUpdate)
Called just after AppExtension::event
.
sourcefn update_preview(&mut self)
fn update_preview(&mut self)
Called just after AppExtension::update_preview
.
sourcefn update_ui(&mut self, update_widgets: &mut WidgetUpdates)
fn update_ui(&mut self, update_widgets: &mut WidgetUpdates)
Called just after AppExtension::update_ui
.
sourcefn update(&mut self)
fn update(&mut self)
Called just after AppExtension::update
.
sourcefn info(&mut self, info_widgets: &mut InfoUpdates)
fn info(&mut self, info_widgets: &mut InfoUpdates)
Called just after AppExtension::info
.
sourcefn layout(&mut self, layout_widgets: &mut LayoutUpdates)
fn layout(&mut self, layout_widgets: &mut LayoutUpdates)
Called just after AppExtension::layout
.
sourcefn render(
&mut self,
render_widgets: &mut RenderUpdates,
render_update_widgets: &mut RenderUpdates,
)
fn render( &mut self, render_widgets: &mut RenderUpdates, render_update_widgets: &mut RenderUpdates, )
Called just after AppExtension::render
.
Implementations on Foreign Types§
impl AppEventObserver for ()
Nil observer, does nothing.