Crate iced_widget
source ·Expand description
Use the built-in widgets or create your own.
Re-exports§
pub use button::Button;pub use checkbox::Checkbox;pub use column::Column;pub use combo_box::ComboBox;pub use container::Container;pub use mouse_area::MouseArea;pub use pane_grid::PaneGrid;pub use pick_list::PickList;pub use progress_bar::ProgressBar;pub use radio::Radio;pub use row::Row;pub use rule::Rule;pub use scrollable::Scrollable;pub use slider::Slider;pub use space::Space;pub use stack::Stack;pub use text::Text;pub use text_editor::TextEditor;pub use text_input::TextInput;pub use themer::Themer;pub use toggler::Toggler;pub use tooltip::Tooltip;pub use vertical_slider::VerticalSlider;pub use shader::Shader;wgpupub use svg::Svg;svgpub use image::Image;imagepub use canvas::Canvas;canvaspub use qr_code::QRCode;qr_codepub use iced_renderer as renderer;pub use iced_renderer::graphics;pub use iced_runtime as runtime;pub use iced_runtime::core;
Modules§
- Buttons allow your users to perform actions by pressing them.
- canvas
canvasCanvases 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
imageImages display raster graphics in different formats (PNG, JPG, etc.). - Keyed widgets can provide hints to ensure continuity.
- markdown
markdownMarkdown 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_codeQR 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
wgpuA custom shader widget for wgpu applications. - Sliders let users set a value by moving an indicator.
- svg
svgSvg 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
Columnwith the given children. - Creates some
Richtext with the given spans. - Creates a [
Row] with the given children. - Creates a
Stackwith the given children. - Creates a new
Textwidget with the provided content.
Structs§
- Lazy
lazyA widget that only rebuilds its contents when necessary. - Responsive
lazyA widget that is aware of its dimensions.
Enums§
- A built-in theme.
Traits§
- Component
Deprecated lazyA reusable, custom widget that uses The Elm Architecture.
Functions§
- Creates a new
Buttonwith the provided content. - canvas
canvasCreates a newCanvas. - Creates a new
Containerthat 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 - Creates a new
Containerwith the provided content. - Focuses the next focusable widget.
- Focuses the previous focusable widget.
- Creates a horizontal
Rulewith 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
svgCreates anElementthat displays the iced logo with the giventext_size. - image
imageCreates a newImage. - Creates a new
keyed::Columnfrom an iterator of elements. - lazy
lazyCreates a newLazywidget with the given dataDependencyand a closure that can turn this data into a widget tree. - markdown
markdownDisplay 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
PaneGridwith the givenpane_grid::Stateand view function. - Creates a new
PickList. - Creates a new
ProgressBar. - qr_code
qr_code - Creates a new
Radio. - responsive
lazyCreates a newResponsivewidget with a closure that produces its contents. - Creates a new
Richtext widget with the provided spans. - Creates a new [
Row] from an iterator. - Creates a new
Scrollablewith the provided content. - shader
wgpuCreates a newShader. - Creates a new
Slider. - Creates a new
Spanof text with the provided content. - Creates a new
Stackwith the given children. - svg
svg - Creates a new
Textwidget with the provided content. - Creates a new
TextEditor. - Creates a new
TextInput. - A widget that applies any
Themeto its contents. - Creates a new
Toggler. - Creates a new
Textwidget that displays the provided value. - Creates a vertical
Rulewith 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.