Skip to main content

Module hooks

Module hooks 

Source
Expand description

The application’s way into each step of the viewport’s lifecycle.

Experimental: may change in any release (docs/stability.md).

The widget does the plumbing; at each step an application may:

Every hook is optional; without one the default applies. What hooks decided is kept in the state’s trace and shown by the debug bridge’s viewport collector.

Structs§

HandleMove
A handle move the widget proposes.
Hooks
The hooks of one viewport (all optional). Set them on the ViewportState with hooks_mut.
TraceEntry
One decision of a hook, kept for the debug bridge.
ViewChange
A change of view the widget proposes.

Enums§

Cause
What made the view change (shared with every image canvas, egui_pop_core::pointer::view). What made a view change.
Verdict
What a before hook decides.

Constants§

TRACE_KEPT
How many trace entries a state keeps.