Module button

Source
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 the Button with the given Id.
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 a Button.
standard
A text button with the standard style
suggested
A text button with the suggested style
text
A text button with the text style

Type Aliases§

IconButton
ImageButton
LinkButton
TextButton