gpuikit 0.6.0

A UI toolkit for GPUI applications
Documentation
1
2
3
4
5
6
7
8
9
use super::clickable::Clickable;

/// A button is a clickable element that dispatches some
/// handler when clicked.
pub trait Button: Clickable {
    type Variant: Default;

    fn variant(&self) -> Self::Variant;
}