Skip to main content

egui_elements/widgets/
mod.rs

1//! Themed widgets that read visuals from an installed [`Theme`](crate::theme::Theme).
2//!
3//! These types shadow a few egui names (`Button`, `ComboBox`, `Window`). Prefer
4//! `egui_elements::widgets::{Button, ComboBox, Label, Window, …}` after
5//! `use eframe::egui::*`, or alias the egui types.
6//!
7//! Visuals resolve in this order: the value passed to `.visuals(...)` →
8//! the theme stored on [`egui::Context`] by [`Theme::install`](crate::theme::Theme::install)
9//! → stock [`egui::Style`].
10
11pub mod badge;
12pub mod button;
13pub mod combo_box;
14pub mod frame;
15pub mod hold;
16pub mod label;
17pub mod modal;
18pub mod multi_label;
19pub mod particles;
20pub mod secure_text_edit;
21pub mod window;
22
23pub use badge::{Badge, BadgeCorner};
24pub use button::Button;
25pub use combo_box::ComboBox;
26pub use frame::Frame;
27pub use hold::{HoldBurst, HoldSettings};
28pub use label::Label;
29pub use modal::Modal;
30pub use multi_label::MultiLabel;
31pub use particles::{
32   Light, LightMotion, LightSettings, Lightning, LightningSettings, ParticleLayer, Snow,
33   SnowSettings,
34};
35pub use secure_text_edit::SecureTextEdit;
36pub use window::Window;