Expand description
§sweeten
sweeten provides enhanced versions of common iced widgets with
additional functionality for more complex use cases. It aims to maintain
the simplicity and elegance of iced while offering “sweetened” variants
with extended capabilities.
§Widgets
The following widgets are available in the widget module:
button— A button widget, with support foron_focusandon_blurmessages.column— Distribute content vertically, with support for drag-and-drop reordering viaon_drag.mouse_area— A container for capturing mouse events where all handlers receive the cursor position as aPoint.pick_list— A dropdown list of selectable options, with support for disabling items.row— Distribute content horizontally, with support for drag-and-drop reordering viaon_drag.text_input— A text input field, with support foron_focusandon_blurmessages.
§Usage
Import the widgets you need from sweeten::widget:
use sweeten::widget::{button, column, mouse_area, pick_list, row, text_input};The widgets are designed to be drop-in replacements for their iced
counterparts, with additional methods for the extended functionality.
Modules§
- scrollable
- Scrollables let users navigate an endless amount of content with a scrollbar.
- text_
editor - Text editors display a multi-line text input for text editing.
- widget
- Sweetened widgets for
iced.
Macros§
Enums§
- Theme
- A built-in theme.
Functions§
- button
- Creates a new
Buttonwith the given content. - column
- Creates a new
Columnwith the given children. - mouse_
area - Creates a new
MouseAreafor capturing mouse events. - pick_
list - Creates a new
PickList. - row
- Creates a new
Rowwith the given children. - scrollable
- Creates a new
Scrollablewith the provided content. - text_
editor - Creates a new
TextEditor. - text_
input - Creates a new
TextInput.