summaryrefslogblamecommitdiffstats
path: root/glow/src/widget/button.rs
blob: fee7a7f89e55391a52f171c57241a8513f9cc7c2 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                             
                                                   
                                   




                                                                              
//! 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;

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>;