Expand description
Use the built-in widgets or create your own.
Modules§
- Buttons allow your users to perform actions by pressing them.
- canvas
canvas
Canvases can be leveraged to draw interactive 2D graphics. - Checkboxes can be used to let users make binary choices.
- Combo boxes display a dropdown list of searchable and selectable options.
- Containers let you align a widget inside their boundaries.
- image
image
Images display raster graphics in different formats (PNG, JPG, etc.). - Keyed widgets can provide hints to ensure continuity.
- markdown
markdown
Markdown widgets can parse and display Markdown. - Display interactive elements on top of other widgets.
- Pane grids let your users split regions of your application and organize layout dynamically.
- Pick lists display a dropdown list of selectable options.
- Progress bars visualize the progression of an extended computer operation, such as a download, file transfer, or installation.
- qr_code
qr_code
QR codes display information in a type of two-dimensional matrix barcode. - Radio buttons let users choose a single option from a bunch of options.
- Rules divide space horizontally or vertically.
- Scrollables let users navigate an endless amount of content with a scrollbar.
- shader
wgpu
A custom shader widget for wgpu applications. - Sliders let users set a value by moving an indicator.
- svg
svg
Svg widgets display vector graphics in your application. - Draw and interact with text.
- Text editors display a multi-line text input for text editing.
- Text inputs display fields that can be filled with text.
- Use the built-in theme and styles.
- Togglers let users make binary choices by toggling a switch.
- Tooltips display a hint of information over some element when hovered.
- Sliders let users set a value by moving an indicator.
Macros§
- Creates a
Column
with the given children. - Creates a keyed
Column
with the given children. - Creates some
Rich
text with the given spans. - Creates a
Row
with the given children. - Creates a
Stack
with the given children. - Creates a new
Text
widget with the provided content.
Structs§
- A runtime action that can be performed by some widgets.
- A generic widget that produces a message when pressed.
- A widget capable of drawing 2D graphics.
- A box that can be checked.
- A container that distributes its contents vertically.
- A widget for searching and selecting a single value from a list of options.
- A widget that aligns its contents inside of its boundaries.
- A frame that displays an image while keeping aspect ratio.
- Lazy
lazy
A widget that only rebuilds its contents when necessary. - Emit messages on mouse events.
- A collection of panes distributed using either vertical or horizontal splits to completely fill the space available.
- A widget for selecting a single value from a list of options.
- A bar that displays progress.
- A type of matrix barcode consisting of squares arranged in a grid which can be read by an imaging device, such as a camera.
- A circular button representing a choice.
- Responsive
lazy
A widget that is aware of its dimensions. - A container that distributes its contents horizontally.
- Display a horizontal or vertical rule for dividing content.
- A widget that can vertically display an infinite amount of content with a scrollbar.
- A widget which can render custom shaders with Iced’s
wgpu
backend. - An horizontal bar and a handle that selects a single value from a range of values.
- An amount of empty space.
- A container that displays children on top of each other.
- A vector graphics image.
- A multi-line text input.
- A field that can be filled with text.
- A widget that applies any
Theme
to its contents. - A toggler widget.
- An element to display a widget over another.
- An vertical bar and a handle that selects a single value from a range of values.
Enums§
- A built-in theme.
Traits§
- Component
Deprecated lazy
A reusable, custom widget that uses The Elm Architecture.
Functions§
- Creates a new
Button
with the provided content. - canvas
canvas
Creates a newCanvas
. - Creates a new
Container
that fills all the available space and centers its contents inside. - Creates a new
Checkbox
. - Creates a new
Column
with the given children. - Creates a new
ComboBox
. - component
Deprecated lazy
Turns an implementor ofComponent
into an [Element
] that can be embedded in any application. - Creates a new
Container
with the provided content. - Focuses the next focusable widget.
- Focuses the previous focusable widget.
- Creates a horizontal
Rule
with the given height. - Creates a new
Space
widget that fills the available horizontal space. - Displays a widget on top of another one, only when the base widget is hovered.
- iced
svg
Creates an [Element
] that displays the iced logo with the giventext_size
. - image
image
Creates a newImage
. - Creates a new
keyed::Column
from an iterator of elements. - lazy
lazy
Creates a newLazy
widget with the given dataDependency
and a closure that can turn this data into a widget tree. - Display a bunch of Markdown items.
- A container intercepting mouse events.
- Wraps the given widget and captures any mouse button presses inside the bounds of the widget—effectively making it opaque.
- Creates a
PaneGrid
with the givenpane_grid::State
and view function. - Creates a new
PickList
. - Creates a new
ProgressBar
. - qr_code
qr_code
- Creates a new
Radio
. - responsive
lazy
Creates a newResponsive
widget with a closure that produces its contents. - Creates a new
Rich
text widget with the provided spans. - Creates a new
Row
from an iterator. - Creates a new
Scrollable
with the provided content. - shader
wgpu
Creates a newShader
. - Creates a new
Slider
. - Creates a new
Span
of text with the provided content. - Creates a new
Stack
with the given children. - svg
svg
- Creates a new
Text
widget with the provided content. - Creates a new
TextEditor
. - Creates a new
TextInput
. - A widget that applies any
Theme
to its contents. - Creates a new
Toggler
. - Creates a new
Text
widget that displays the provided value. - Creates a vertical
Rule
with the given width. - Creates a new
VerticalSlider
. - Creates a new
Space
widget that fills the available vertical space.
Type Aliases§
- The default graphics renderer for
iced
. - A bunch of text.