Expand description
Button widgets for COSMIC applications.
Re-exports§
pub use crate::theme::Button as ButtonClass;
Modules§
- link
- Hyperlink button widget
Structs§
- Builder
- A builder for constructing a custom
Button
. - Button
- A generic button which emits a message when pressed.
- Style
- The appearance of a button.
Traits§
- Catalog
- A set of rules that dictate the style of a button.
Functions§
- custom
- A button with a custom element for its content.
- custom_
image_ button - An image button which may contain any widget as its content.
- destructive
- A text button with the destructive style
- draw
- focus
- Produces a
Task
that focuses theButton
with the givenId
. - icon
- A button constructed from an icon handle, using icon button styling.
- image
- A button constructed from an image handle, using image button styling.
- layout
- Computes the layout of a
Button
. - link
- A hyperlink button.
- mouse_
interaction - Returns the
mouse::Interaction
of aButton
. - standard
- A text button with the standard style
- suggested
- A text button with the suggested style
- text
- A text button with the text style