ferroui_base/utilities/event_args.rs
1//! The equivalent of the runtime library's `EventArgs`.
2
3/// The arguments of an event that carries no data: what the handler of a
4/// plain `EventHandler` event receives besides the sender.
5#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
6pub struct EventArgs;
7
8impl EventArgs {
9 /// The arguments of an event without data (`EventArgs.Empty`).
10 pub const EMPTY: EventArgs = EventArgs;
11}