Expand description
§Egui Widget Extension Pack
This crate provides additional widgets for use with egui, allowing for modular inclusion of UI components via feature flags.
§Features
The intent is to have a feature for each widget and its associated functionality so that users can include only what they need.
toggle_switch
: Simple toggle switch widgetalert
: Widget for displaying alertsall
: Enables all widgets provided by this crate
Structs§
- Alert
- A customizable alert box widget for egui.
- Alert
Manager - Manages and displays a list of alerts with shared styling and positioning.
- Toast
- A customizable toast notification widget for egui.
- Toast
Manager
Enums§
- Alert
Level - Represents the severity level of an alert. Determines the background color and semantic meaning of the alert box.
Functions§
- alert
- Convenience function to create an alert widget with a given level and message.
- alert_
manager - Convenience function to create an alert manager widget with a mutable vector of alerts.
- toast
- Convenience function to create a toast with a message and default settings.
- toast_
manager - Convenience function to create a toast manager widget with a mutable VecDeque of toasts.
- toggle_
switch - A wrapper function that creates a toggle switch widget.