summaryrefslogtreecommitdiffstats
path: root/graphics/src/widget/button.rs
blob: 3d3e66757358e798084e1aef91eed89a3f6fd8c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
//! Allow your users to perform actions by pressing a button.
//!
//! A [`Button`] has some local [`State`].
use crate::Renderer;

pub use iced_native::button::{State, Style, StyleSheet};

/// 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, Backend> =
    iced_native::Button<'a, Message, Renderer<Backend>>;