iced/glow/src/widget/button.rs
2021-10-31 16:14:34 +07:00

13 lines
449 B
Rust

//! Allow your users to perform actions by pressing a button.
//!
//! A [`Button`] has some local [`State`].
use crate::Renderer;
pub use iced_graphics::button::{Style, StyleSheet};
pub use iced_native::widget::button::State;
/// A widget that produces a message when clicked.
///
/// This is an alias of an `iced_native` button with an `iced_wgpu::Renderer`.
pub type Button<'a, Message> =
iced_native::widget::Button<'a, Message, Renderer>;