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 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;pub use iced_style as style;
Modules§
- Allow your users to perform actions by pressing a button.
- canvas
canvasDraw 2D graphics for your users. - Show toggle controls using checkboxes.
- Display a dropdown list of searchable and selectable options.
- Decorate content and apply alignment.
- image
imageDisplay images in your user interface. - Use widgets that can provide hints to ensure continuity.
- Display interactive elements on top of other widgets.
- Let your users split regions of your application and organize layout dynamically.
- Display a dropdown list of selectable values.
- Provide progress feedback to your users.
- qr_code
qr_codeEncode and display information in a QR code. - Create choices using radio buttons.
- Display a horizontal or vertical rule for dividing content.
- Navigate an endless amount of content with a scrollbar.
- shader
wgpuA custom shader widget for wgpu applications. - Display an interactive selector of a single value from a range of values.
- Distribute content vertically.
- svg
svgDisplay vector graphics in your application. - Draw and interact with text.
- Display a multi-line text input for text editing.
- Display fields that can be filled with text.
- Use the built-in theme and styles.
- Show toggle controls using togglers.
- Display a widget over another.
- Display an interactive selector of a single value from a range of values.
Macros§
- Creates a
Columnwith the given children. - Creates a
Columnwith the given children. - Creates a
Rowwith the given children.
Structs§
- Lazy
lazyA widget that only rebuilds its contents when necessary. - Responsive
lazyA widget that is aware of its dimensions.
Enums§
- The default graphics renderer for
iced. - A built-in theme.
Traits§
- Component
lazyA reusable, custom widget that uses The Elm Architecture.
Functions§
- Creates a new
Buttonwith the provided content. - canvas
canvasCreates a newCanvas. - Creates a new
Checkbox. - Creates a new [
Column] with the given children. - Creates a new
ComboBox. - component
lazyTurns an implementor ofComponentinto an [Element] that can be embedded in any application. - 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
Spacewidget that fills the available horizontal space. - image
imageCreates a newImage. - Creates a new
keyed::Columnwith the given children. - lazy
lazyCreates a newLazywidget with the given dataDependencyand a closure that can turn this data into a widget tree. - A container intercepting mouse events.
- 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
Rowwith the given children. - Creates a new
Scrollablewith the provided content. - shader
wgpuCreates a newShader. - Creates a new
Slider. - 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 vertical
Rulewith the given width. - Creates a new
VerticalSlider. - Creates a new
Spacewidget that fills the available vertical space.