Module widget

Source
Expand description

Use the built-in widgets or create your own.

Modules§

button
Buttons allow your users to perform actions by pressing them.
canvascanvas
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.
imageimage
Images display raster graphics in different formats (PNG, JPG, etc.).
keyed
Keyed widgets can provide hints to ensure continuity.
markdownmarkdown
Markdown widgets can parse and display Markdown.
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.
pop
Generate messages when content pops in and out of view.
progress_bar
Progress bars visualize the progression of an extended computer operation, such as a download, file transfer, or installation.
qr_codeqr_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.
rule
Rules divide space horizontally or vertically.
scrollable
Scrollables let users navigate an endless amount of content with a scrollbar.
shaderwgpu
A custom shader widget for wgpu applications.
slider
Sliders let users set a value by moving an indicator.
svgsvg
Svg widgets display vector graphics in your application.
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 Column with the given children.
keyed_column
Creates a keyed Column with the given children.
rich_text
Creates some Rich text with the given spans.
row
Creates a Row with the given children.
stack
Creates a Stack with the given children.
text
Creates a new Text widget 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.
ComboBox
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.
Image
A frame that displays an image while keeping aspect ratio.
Lazylazy
A widget that only rebuilds its contents when necessary.
MouseArea
Emit messages on mouse events.
PaneGrid
A collection of panes distributed using either vertical or horizontal splits to completely fill the space available.
PickList
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.
Pop
A widget that can generate messages when its content pops in and out of view.
ProgressBar
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.
Responsivelazy
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.
Shader
A widget which can render custom shaders with Iced’s wgpu backend.
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.
TextEditor
A multi-line text input.
TextInput
A field that can be filled with text.
Themer
A widget that applies any Theme to its contents.
Toggler
A toggler widget.
Tooltip
An element to display a widget over another.
VerticalSlider
An vertical bar and a handle that selects a single value from a range of values.

Enums§

Theme
A built-in theme.

Traits§

ComponentDeprecatedlazy
A reusable, custom widget that uses The Elm Architecture.

Functions§

bottom
Creates a new Container that fills all the available space vertically and bottom-aligns its contents inside.
bottom_center
Creates a new Container that fills all the available space and aligns its contents inside to the bottom center.
bottom_right
Creates a new Container that fills all the available space and aligns its contents inside to the bottom right corner.
button
Creates a new Button with the provided content.
canvascanvas
Creates a new Canvas.
center
Creates a new Container that fills all the available space and centers its contents inside.
center_x
Creates a new Container that fills all the available space horizontally and centers its contents inside.
center_y
Creates a new Container that fills all the available space vertically and centers its contents inside.
checkbox
Creates a new Checkbox.
column
Creates a new Column with the given children.
combo_box
Creates a new ComboBox.
componentDeprecatedlazy
Turns an implementor of Component into an Element that can be embedded in any application.
container
Creates a new Container with the provided content.
focus_next
Focuses the next focusable widget.
focus_previous
Focuses the previous focusable widget.
horizontal_rule
Creates a horizontal Rule with the given height.
horizontal_space
Creates a new Space widget that fills the available horizontal space.
hover
Displays a widget on top of another one, only when the base widget is hovered.
icedsvg
Creates an Element that displays the iced logo with the given text_size.
imageimage
Creates a new Image.
keyed_column
Creates a new keyed::Column from an iterator of elements.
lazylazy
Creates a new Lazy widget with the given data Dependency and a closure that can turn this data into a widget tree.
markdown
Display a bunch of Markdown items.
mouse_area
A container intercepting mouse events.
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 PaneGrid with the given pane_grid::State and view function.
pick_list
Creates a new PickList.
pin
Creates a new Pin widget with the given content.
pop
Creates a new Pop widget.
progress_bar
Creates a new ProgressBar.
qr_codeqr_code
Creates a new QRCode widget from the given Data.
radio
Creates a new Radio.
responsivelazy
Creates a new Responsive widget with a closure that produces its contents.
rich_text
Creates a new Rich text widget with the provided spans.
right
Creates a new Container that fills all the available space horizontally and right-aligns its contents inside.
right_center
Creates a new Container that fills all the available space and aligns its contents inside to the right center.
row
Creates a new Row from an iterator.
scrollable
Creates a new Scrollable with the provided content.
shaderwgpu
Creates a new Shader.
slider
Creates a new Slider.
span
Creates a new Span of text with the provided content.
stack
Creates a new Stack with the given children.
svgsvg
Creates a new Svg widget from the given Handle.
text
Creates a new Text widget with the provided content.
text_editor
Creates a new TextEditor.
text_input
Creates a new TextInput.
themer
A widget that applies any Theme to its contents.
toggler
Creates a new Toggler.
tooltip
Creates a new Tooltip for the provided content with the given Element and tooltip::Position.
value
Creates a new Text widget that displays the provided value.
vertical_rule
Creates a vertical Rule with the given width.
vertical_slider
Creates a new VerticalSlider.
vertical_space
Creates a new Space widget that fills the available vertical space.

Type Aliases§

Renderer
The default graphics renderer for iced.
Text
A bunch of text.