Skip to main content

Module widgets

Module widgets 

Source

Re-exports§

pub use button::Button;
pub use checkbox::Checkbox;
pub use color_picker::ColorPicker;
pub use collapsing_header::CollapsingHeader;
pub use combo_box::ComboBox;
pub use container::Container;
pub use drag_value::DragValue;
pub use flex::FlexColumn;
pub use flex::FlexRow;
pub use image_view::ImageView;
pub use inspector::InspectorPanel;
pub use inspector::InspectorSavedState;
pub use label::Label;
pub use label::LabelAlign;
pub use markdown::MarkdownView;
pub use primitives::Padding;
pub use primitives::Separator;
pub use primitives::SizedBox;
pub use primitives::Spacer;
pub use primitives::Stack;
pub use progress_bar::ProgressBar;
pub use radio_group::RadioGroup;
pub use scroll_view::ScrollBarColor;
pub use scroll_view::ScrollBarKind;
pub use scroll_view::ScrollBarStyle;
pub use scroll_view::ScrollBarVisibility;
pub use scroll_view::ScrollView;
pub use scroll_view::current_scroll_style;
pub use scroll_view::current_scroll_visibility;
pub use scroll_view::set_scroll_style;
pub use scroll_view::set_scroll_visibility;
pub use slider::Slider;
pub use splitter::Splitter;
pub use tab_view::TabView;
pub use text_field::TextField;
pub use toggle_switch::ToggleSwitch;
pub use tooltip::Tooltip;
pub use tree_view::NodeIcon;
pub use tree_view::TreeView;
pub use window::Window;

Modules§

button
Button — a clickable button with hover, pressed, and focus states.
checkbox
Checkbox — a boolean toggle with a label.
collapsing_header
CollapsingHeader — a clickable header that shows/hides child content.
color_picker
ColorPicker — an inline-expanding colour selection widget.
combo_box
ComboBox — a single-selection dropdown widget.
container
Container — a rectangular box with optional background, border, and padding that holds zero or more child widgets.
drag_value
DragValue — a numeric scrubber that lets the user drag left/right to change a value.
flex
Flex layout widgets: FlexColumn (vertical) and FlexRow (horizontal).
hyperlink
Hyperlink — a clickable label rendered in link style (blue, underlined).
image_view
ImageView — paints an Option<(rgba8_top_down, w, h)> as an image.
inspector
Widget inspector panel — uses the system TreeView for tree display.
label
Label — static text display widget.
markdown
MarkdownView — render a Markdown string as formatted text with images.
primitives
Primitive layout widgets: Stack, Padding, SizedBox, Spacer, Separator.
progress_bar
ProgressBar — a read-only horizontal progress indicator.
radio_group
RadioGroup — a set of mutually exclusive radio buttons.
scroll_view
ScrollView — scrolling container with egui-style scrollbars.
slider
Slider — a horizontal range slider with a draggable thumb.
splitter
Splitter — draggable divider between two side-by-side children.
tab_view
TabView — a tabbed container with a clickable tab bar.
text_field
TextField — single-line editable text input.
text_field_core
Internal helpers for TextField: UTF-8 navigation, word boundaries, hit-test geometry, shared edit state, and the undo command type.
toggle_switch
ToggleSwitch — an iOS-style pill-shaped boolean toggle widget.
tooltip
Tooltip — a wrapper widget that shows a hover tooltip.
tree_view
TreeView — compositional tree widget with expand/collapse, multi-select, keyboard navigation, and drag-and-drop reordering.
window
Window — a floating, draggable, resizable panel with a title bar.
window_title_bar
WindowTitleBar — paint delegate for the strip at the top of a Window.