Expand description
Use the built-in widgets or create your own.
Modules§
- button
- Buttons allow your users to perform actions by pressing them.
- canvas
- Canvases can be leveraged to draw interactive 2D graphics.
- checkbox
- Checkboxes can be used to let users make binary choices.
- combo_
box - Combo boxes display a dropdown list of searchable and selectable options.
- container
- Containers let you align a widget inside their boundaries.
- float
- Make elements float!
- grid
- Distribute content on a grid.
- image
image - Images display raster graphics in different formats (PNG, JPG, etc.).
- keyed
- Keyed widgets can provide hints to ensure continuity.
- markdown
- Markdown widgets can parse and display Markdown.
- operation
- Change internal widget state.
- overlay
- Display interactive elements on top of other widgets.
- pane_
grid - Pane grids let your users split regions of your application and organize layout dynamically.
- pick_
list - Pick lists display a dropdown list of selectable options.
- progress_
bar - Progress bars visualize the progression of an extended computer operation, such as a download, file transfer, or installation.
- qr_code
- QR codes display information in a type of two-dimensional matrix barcode.
- radio
- Radio buttons let users choose a single option from a bunch of options.
- row
- Distribute content horizontally.
- rule
- Rules divide space horizontally or vertically.
- scrollable
- Scrollables let users navigate an endless amount of content with a scrollbar.
- selector
- Find and query widgets in your applications.
- sensor
- Generate messages when content pops in and out of view.
- shader
- A custom shader widget for wgpu applications.
- slider
- Sliders let users set a value by moving an indicator.
- space
- Add some explicit spacing between elements.
- svg
- Svg widgets display vector graphics in your application.
- table
- Display tables.
- text
- Draw and interact with text.
- text_
editor - Text editors display a multi-line text input for text editing.
- text_
input - Text inputs display fields that can be filled with text.
- theme
- Use the built-in theme and styles.
- toggler
- Togglers let users make binary choices by toggling a switch.
- tooltip
- Tooltips display a hint of information over some element when hovered.
- vertical_
slider - Sliders let users set a value by moving an indicator.
Macros§
- column
- Creates a
Columnwith the given children. - keyed_
column - Creates a keyed
Columnwith the given children. - rich_
text - Creates some
Richtext with the given spans. - row
- Creates a
Rowwith the given children. - stack
- Creates a
Stackwith the given children. - text
- Creates a new
Textwidget with the provided content.
Structs§
- Action
- A runtime action that can be performed by some widgets.
- Button
- A generic widget that produces a message when pressed.
- Canvas
- A widget capable of drawing 2D graphics.
- Checkbox
- A box that can be checked.
- Column
- A container that distributes its contents vertically.
- Combo
Box - A widget for searching and selecting a single value from a list of options.
- Container
- A widget that aligns its contents inside of its boundaries.
- Float
- A widget that can make its contents float over other widgets.
- Grid
- A container that distributes its contents on a responsive grid.
- Id
- The identifier of a generic widget.
- Image
- A frame that displays an image while keeping aspect ratio.
- Lazy
- A widget that only rebuilds its contents when necessary.
- Mouse
Area - Emit messages on mouse events.
- Pane
Grid - A collection of panes distributed using either vertical or horizontal splits to completely fill the space available.
- Pick
List - A widget for selecting a single value from a list of options.
- Pin
- A widget that positions its contents at some fixed coordinates inside of its boundaries.
- Progress
Bar - A bar that displays progress.
- QRCode
- A type of matrix barcode consisting of squares arranged in a grid which can be read by an imaging device, such as a camera.
- Radio
- A circular button representing a choice.
- Responsive
- A widget that is aware of its dimensions.
- Row
- A container that distributes its contents horizontally.
- Rule
- Display a horizontal or vertical rule for dividing content.
- Scrollable
- A widget that can vertically display an infinite amount of content with a scrollbar.
- Sensor
- A widget that can generate messages when its content pops in and out of view.
- Shader
- A widget which can render custom shaders with Iced’s
wgpubackend. - Slider
- An horizontal bar and a handle that selects a single value from a range of values.
- Space
- An amount of empty space.
- Stack
- A container that displays children on top of each other.
- Svg
- A vector graphics image.
- Text
Editor - A multi-line text input.
- Text
Input - A field that can be filled with text.
- Themer
- A widget that applies any
Themeto its contents. - Toggler
- A toggler widget.
- Tooltip
- An element to display a widget over another.
- Vertical
Slider - An vertical bar and a handle that selects a single value from a range of values.
Enums§
- Theme
- A built-in theme.
Traits§
- Component
Deprecated - A reusable, custom widget that uses The Elm Architecture.
Functions§
- bottom
- Creates a new
Containerthat fills all the available space vertically and bottom-aligns its contents inside. - bottom_
center - Creates a new
Containerthat fills all the available space and aligns its contents inside to the bottom center. - bottom_
right - Creates a new
Containerthat fills all the available space and aligns its contents inside to the bottom right corner. - button
- Creates a new
Buttonwith the provided content. - canvas
- Creates a new
Canvas. - center
- Creates a new
Containerthat fills all the available space and centers its contents inside. - center_
x - Creates a new
Containerthat fills all the available space horizontally and centers its contents inside. - center_
y - Creates a new
Containerthat fills all the available space vertically and centers its contents inside. - checkbox
- Creates a new
Checkbox. - column
- Creates a new
Columnwith the given children. - combo_
box - Creates a new
ComboBox. - component
Deprecated - Turns an implementor of
Componentinto an [Element] that can be embedded in any application. - container
- Creates a new
Containerwith the provided content. - float
- Creates a new
Floatwidget with the given content. - grid
- Creates a new
Gridfrom an iterator. - hover
- Displays a widget on top of another one, only when the base widget is hovered.
- iced
- Creates an [
Element] that displays the iced logo with the giventext_size. - image
- Creates a new
Image. - keyed_
column - Creates a new
keyed::Columnfrom an iterator of elements. - lazy
- Creates a new
Lazywidget with the given dataDependencyand a closure that can turn this data into a widget tree. - markdown
- Display a bunch of Markdown items.
- mouse_
area - Creates a new
MouseArea. - opaque
- Wraps the given widget and captures any mouse button presses inside the bounds of the widget—effectively making it opaque.
- pane_
grid - Creates a
PaneGridwith the givenpane_grid::Stateand view function. - pick_
list - Creates a new
PickList. - pin
- Creates a new
Pinwidget with the given content. - progress_
bar - Creates a new
ProgressBar. - qr_code
- Creates a new
QRCodewidget from the givenData. - radio
- Creates a new
Radio. - responsive
- Creates a new
Responsivewidget with a closure that produces its contents. - rich_
text - Creates a new
Richtext widget with the provided spans. - right
- Creates a new
Containerthat fills all the available space horizontally and right-aligns its contents inside. - right_
center - Creates a new
Containerthat fills all the available space and aligns its contents inside to the right center. - row
- Creates a new
Rowfrom an iterator. - scrollable
- Creates a new
Scrollablewith the provided content. - sensor
- Creates a new
Sensorwidget. - shader
- Creates a new
Shader. - slider
- Creates a new
Slider. - space
- Creates some empty
Spacewith no size. - span
- Creates a new
Spanof text with the provided content. - stack
- Creates a new
Stackwith the given children. - svg
- Creates a new
Svgwidget from the givenHandle. - table
- Creates a new
Tablewith the given columns and rows. - text
- Creates a new
Textwidget with the provided content. - text_
editor - Creates a new
TextEditor. - text_
input - Creates a new
TextInput. - themer
- A widget that applies any
Themeto its contents. - toggler
- Creates a new
Toggler. - tooltip
- Creates a new
Tooltipfor the provided content with the given [Element] andtooltip::Position. - value
- Creates a new
Textwidget that displays the provided value. - vertical_
slider - Creates a new
VerticalSlider.