Skip to main content

Module widgets

Module widgets 

Source

Re-exports§

pub use button::Button;
pub use button::ButtonIcon;
pub use button::ButtonTheme;
pub use checkbox::Checkbox;
pub use chevron::ChevronWidget;
pub use chevron::CHEVRON_SIZE;
pub use collapsing_header::CollapsingHeader;
pub use color_picker::ColorPicker;
pub use color_wheel_picker::color_wheel_picker_dialog;
pub use color_wheel_picker::ColorWheelPicker;
pub use combo_box::ComboBox;
pub use conditional::Conditional;
pub use container::Container;
pub use drag_value::DragValue;
pub use flex::FlexColumn;
pub use flex_row::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 menu::MenuBar;
pub use menu::MenuBarStrip;
pub use menu::MenuEntry;
pub use menu::MenuItem;
pub use menu::MenuResponse;
pub use menu::MenuSelection;
pub use menu::MenuShortcut;
pub use menu::PopupMenu;
pub use menu::ShortcutKey;
pub use menu::TopMenu;
pub use performance::paint_sparkline;
pub use performance::shared_frame_history;
pub use performance::shared_run_mode;
pub use performance::FrameHistory;
pub use performance::PerformanceView;
pub use performance::RunMode;
pub use performance::RunModeDesc;
pub use performance::RunModeRow;
pub use performance::SharedFrameHistory;
pub use primitives::Padding;
pub use primitives::SizedBox;
pub use primitives::Stack;
pub use reserve_inset::ReserveInset;
pub use reserve_inset::ReservedEdge;
pub use spacers::Separator;
pub use spacers::Spacer;
pub use progress_bar::ProgressBar;
pub use qr_view::QrView;
pub use property_row::paint_editor_only;
pub use property_row::paint_row;
pub use property_row::EditorKind;
pub use property_row::NodeFieldAttrs;
pub use property_row::NumberAttrs;
pub use property_row::RowValue;
pub use property_row::VisibleWhen;
pub use radio_group::RadioGroup;
pub use resize::Resize;
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 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 slider::Slider;
pub use splitter::Splitter;
pub use tab_view::TabView;
pub use table::clip_text_to_width as table_clip_text_to_width;
pub use table::CellInfo;
pub use table::CellPainter;
pub use table::ColumnSize;
pub use table::HeaderClick;
pub use table::HeaderInfo;
pub use table::HeaderPainter;
pub use table::RowPredicate;
pub use table::Table;
pub use table::TableBuilder;
pub use table::TableColumn;
pub use table::TableRows;
pub use text_area::TextArea;
pub use text_field::TextField;
pub use text_field::TextFieldTheme;
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, compositional button with a Label child.
button_theme
Visual theme for super::Button — colours, corner radius, focus ring.
checkbox
Checkbox — a boolean toggle with a label.
chevron
ChevronWidget — a small clickable arrow that toggles a collapsed/expanded state. Composes into title bars, accordion headers, tree rows, anywhere a “fold” affordance is needed.
collapsing_header
CollapsingHeader — a clickable header that shows/hides child content.
color_picker
ColorPicker — an inline-expanding colour selection widget.
color_wheel_picker
ColorWheelPicker — circular hue wheel + saturation/value triangle colour picker, modelled on NodeDesigner’s color-picker.js.
combo_box
ComboBox — a single-selection dropdown widget.
conditional
Conditional — show/hide a single child based on an external Cell.
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).
flex_row
FlexRow: horizontal flex layout (children left-to-right).
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.
menu
Reusable menu infrastructure.
on_screen_keyboard
On-screen software keyboard
performance
PerformanceView — Mean CPU usage label + frame-time sparkline.
primitives
Primitive layout widgets: Stack, Padding, SizedBox. (Spacer/Separator → spacers.)
progress_bar
ProgressBar — a read-only horizontal progress indicator.
property_row
Reflection-driven property row vocabulary.
qr_view
QrView — renders a QR code for an arbitrary string.
radio_group
RadioGroup — a set of mutually exclusive radio buttons.
reserve_inset
ReserveInset — transparent wrapper that marks its child as edge chrome.
resize
Resize — a nested, user-draggable resizable container.
scroll_view
ScrollView — scrolling container with egui-style scrollbars.
slider
Slider — a horizontal range slider with a draggable thumb.
spacers
Spacing primitives: Spacer (flex filler) and Separator (divider line).
splitter
Splitter — draggable divider between two children.
tab_view
TabView — a tabbed container with a clickable tab bar.
table
Table — a virtualised data-table widget with header, scrolling body, striping, overlines, row-selection, sort-toggle hooks and scroll_to_row.
text_area
TextArea — a multiline text editor.
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 egui-style hover help.
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.