iced-yoda/glow/src/widget/button.rs

16 lines
499 B
Rust
Raw Normal View History

//! Allow your users to perform actions by pressing a button.
//!
//! A [`Button`] has some local [`State`].
//!
//! [`Button`]: type.Button.html
//! [`State`]: struct.State.html
use crate::Renderer;
2020-05-19 17:15:44 +02:00
pub use iced_graphics::button::{Style, StyleSheet};
pub use iced_native::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::Button<'a, Message, Renderer>;