Module controls

Source
Expand description

Interactive controls (button, text field, tabs, …). Interactive controls implementing the runtime Widget trait.

Re-exports§

pub use accordion::Accordion;
pub use accordion::AccordionItem;
pub use accordion::AccordionMode;
pub use accordion::AccordionSize;
pub use accordion::AccordionStyle;
pub use avatar::Avatar;
pub use avatar::AvatarStyle;
pub use avatar::AvatarTone;
pub use badge::Badge;
pub use badge::BadgeStyle;
pub use badge::BadgeTone;
pub use badge::BadgeVariant;
pub use badge::Chip;
pub use badge::Tag;
pub use button::Button;
pub use button::ButtonStyle;
pub use button::ButtonVariant;
pub use card::Card;
pub use card::CardStyle;
pub use card::CardVariant;
pub use charts::BarChart;
pub use charts::ChartSize;
pub use charts::ChartStyle;
pub use charts::ChartTone;
pub use charts::LineChart;
pub use charts::RadialGauge;
pub use chat_widget::ChatComposerControls;
pub use chat_widget::ChatComposerOption;
pub use chat_widget::ChatMessageRenderer;
pub use chat_widget::ChatWidget;
pub use chat_widget::ChatWidgetAction;
pub use chat_widget::ChatWidgetActionHandler;
pub use chat_widget::ChatWidgetCopyHandler;
pub use chat_widget::ChatWidgetRetryHandler;
pub use chat_widget::ChatWidgetSendHandler;
pub use chat_widget::ChatWidgetStyle;
pub use checkbox::draw_checkbox;
pub use checkbox::CheckboxStyle;
pub use combo_box::Autocomplete;
pub use combo_box::AutocompleteItem;
pub use combo_box::AutocompleteSize;
pub use combo_box::AutocompleteStyle;
pub use combo_box::ComboBox;
pub use combo_box::ComboBoxOption;
pub use combo_box::ComboBoxSize;
pub use combo_box::ComboBoxStyle;
pub use command_palette::CommandItem;
pub use command_palette::CommandPalette;
pub use command_palette::CommandPaletteSize;
pub use command_palette::CommandPaletteStyle;
pub use context_menu::ContextMenu;
pub use context_menu::ContextMenuEntry;
pub use context_menu::ContextMenuItem;
pub use context_menu::ContextMenuStyle;
pub use dialog::Dialog;
pub use dialog::DialogStyle;
pub use dialog::DialogTone;
pub use disclosure_row::DisclosureRow;
pub use disclosure_row::DisclosureRowStyle;
pub use disclosure_row::DisclosureRowVariant;
pub use divider::Divider;
pub use divider::DividerOrientation;
pub use divider::DividerStyle;
pub use divider::DividerVariant;
pub use icon_button::draw_icon_button;Deprecated
pub use icon_button::IconButtonStyle;Deprecated
pub use link::LinkStyle;
pub use list_view::ListItem;
pub use list_view::ListItemStyle;
pub use list_view::ListItemVariant;
pub use list_view::ListView;
pub use list_view::ListViewStyle;
pub use navigation::NavItem;
pub use navigation::NavItemStyle;
pub use navigation::NavItemVariant;
pub use navigation::Sidebar;
pub use navigation::SidebarStyle;
pub use pickers::ColorPicker;
pub use pickers::ColorPickerSize;
pub use pickers::ColorPickerStyle;
pub use pickers::DatePicker;
pub use pickers::DatePickerSize;
pub use pickers::DatePickerStyle;
pub use pickers::TimePicker;
pub use pickers::TimePickerSize;
pub use pickers::TimePickerStyle;
pub use progress::CircularProgress;
pub use progress::ProgressBar;
pub use progress::ProgressSize;
pub use progress::ProgressStyle;
pub use progress::ProgressVariant;
pub use radio::RadioButton;
pub use radio::RadioDirection;
pub use radio::RadioGroup;
pub use radio::RadioOption;
pub use radio::RadioSize;
pub use radio::RadioStyle;
pub use segmented::SegmentedControl;
pub use segmented::SegmentedOption;
pub use segmented::SegmentedSize;
pub use segmented::SegmentedStyle;
pub use select::Dropdown;
pub use select::DropdownItem;
pub use select::DropdownSize;
pub use select::DropdownStyle;
pub use select::Select;
pub use select::SelectOption;
pub use select::SelectSize;
pub use select::SelectStyle;
pub use slider::RangeSlider;
pub use slider::Slider;
pub use slider::SliderOrientation;
pub use slider::SliderSize;
pub use slider::SliderStyle;
pub use status_indicator::StatusIndicator;
pub use status_indicator::StatusStyle;
pub use status_indicator::StatusTone;
pub use status_indicator::StatusVariant;
pub use switch::Switch;
pub use switch::SwitchOrientation;
pub use switch::SwitchSize;
pub use switch::SwitchStyle;
pub use table_view::TableAlign;
pub use table_view::TableCell;
pub use table_view::TableCellKind;
pub use table_view::TableColumn;
pub use table_view::TableColumnWidth;
pub use table_view::TableRow;
pub use table_view::TableView;
pub use table_view::TableViewSize;
pub use table_view::TableViewStyle;
pub use tabs::draw_tabs_bar_with_options;
pub use tabs::TabsBarOptions;
pub use terminal::terminal_search_matches;
pub use terminal::TerminalEvent;
pub use terminal::TerminalEventBuffer;
pub use terminal::TerminalEventKind;
pub use terminal::TerminalEventSource;
pub use terminal::TerminalLine;
pub use terminal::TerminalLineAttrs;
pub use terminal::TerminalLineKind;
pub use terminal::TerminalPosition;
pub use terminal::TerminalSearchMatch;
pub use terminal::TerminalSelection;
pub use terminal::TerminalView;
pub use terminal::TerminalViewStyle;
pub use terminal_widget::terminal_key_bytes;
pub use terminal_widget::terminal_key_bytes_with_modes;
pub use terminal_widget::terminal_selection_text;
pub use terminal_widget::Terminal;
pub use terminal_widget::TerminalCellMetrics;
pub use terminal_widget::TerminalGeometry;
pub use terminal_widget::TerminalSelectionMode;
pub use terminal_widget::TerminalViewportSize;
pub use terminal_widget::TerminalWidgetStyle;
pub use text_input::TextInput;
pub use text_input::TextInputStyle;
pub use toast::Toast;
pub use toast::ToastHost;
pub use toast::ToastPosition;
pub use toast::ToastStyle;
pub use toast::ToastTone;
pub use tooltip::Tooltip;
pub use tooltip::TooltipStyle;
pub use tree_model::FlatTreeIndex;
pub use tree_model::FlatTreeRow;
pub use tree_model::TreeItem;
pub use tree_model::TreeModel;
pub use tree_model::TreeModelDelta;
pub use tree_model::TreeModelError;
pub use tree_model::TreeModelHandle;
pub use tree_model::TreeModelSubscription;
pub use tree_model::TreeMutation;
pub use tree_view::TreeContextMenu;
pub use tree_view::TreeCreate;
pub use tree_view::TreeCreateCancel;
pub use tree_view::TreeCreateKind;
pub use tree_view::TreeCreateRequest;
pub use tree_view::TreeDelete;
pub use tree_view::TreeDropPosition;
pub use tree_view::TreeMove;
pub use tree_view::TreeMutationMode;
pub use tree_view::TreeNode;
pub use tree_view::TreeNodeTrailingAction;
pub use tree_view::TreeRename;
pub use tree_view::TreeShortcut;
pub use tree_view::TreeView;
pub use tree_view::TreeViewCommand;
pub use tree_view::TreeViewDiagnostics;
pub use tree_view::TreeViewDiagnosticsSnapshot;
pub use tree_view::TreeViewSize;
pub use tree_view::TreeViewStyle;
pub use upload_dropzone::UploadDropzone;
pub use upload_dropzone::UploadDropzoneStyle;
pub use upload_dropzone::UploadDropzoneVariant;

Modules§

accordion
Retained single- or multi-open accordion sections.
avatar
Circular avatars derived from names, explicit initials, or icons.
badge
Compact informational badges, taxonomy tags, and dismissible chips.
button
Clickable single-child buttons with state-aware container styling.
card
Theme-aware containers for grouping a single child as a card.
charts
Non-interactive bar, line, and radial-gauge data visualizations.
chat_widget
Stateful chat transcript and resizable composer control.
checkbox
Immediate-mode checkbox drawing primitives.
combo_box
Editable combo-box and free-text autocomplete controls.
command_palette
Full-slot command palette overlay with editable filtering and keyboard navigation.
context_menu
Right-click menus rendered through retained popup portals.
dialog
Modal confirmation dialogs painted over an optional host child.
disclosure_row
Single-line disclosure rows with optional leading and trailing content.
divider
Non-interactive horizontal and vertical separators.
icon_button
Legacy draw-command helper for a square icon button.
link
Accessible links that open validated external HTTP(S) URLs.
list
Immediate-mode drawing for a compact, non-interactive row list.
list_view
Retained stacked lists and actionable list rows.
navigation
Retained sidebars and actionable navigation rows.
pickers
Overlay date, time, and RGB color picker controls.
progress
Non-interactive linear and circular determinate progress indicators.
radio
Standalone radio buttons and typed single-selection radio groups.
segmented
Equal-width, single-selection segmented controls.
select
Typed select and action-menu dropdown controls with retained popups.
slider
Single- and dual-thumb sliders with controlled or two-way bound values.
status_indicator
Compact, non-interactive indicators for status and activity.
switch
Accessible binary switches with controlled or two-way-bound state.
table_view
Retained, scrollable data table with typed row selection and rich cells.
tabs
Immediate-mode drawing and hit geometry for a compact tab bar.
terminal
Retained terminal-log viewer with streaming events, search, selection, and scrolling.
terminal_widget
Interactive terminal-grid renderer backed by ailloli_ui_terminal_core state.
text_input
Single- and multi-line editable text widgets plus a legacy draw helper.
toast
Overlay toast values and a non-focusable stacking host.
tooltip
Retained text tooltips hosted through the shared popup portal.
tree_model
Stable-ID retained tree model with atomic mutations and a persistent flat index.
tree_view
Interactive snapshot or retained-model tree with selection, editing, drag/drop, creation/deletion, context menus, shortcuts, and optional row virtualization.
upload_dropzone
Retained file dropzone with browse and filtered-drop callbacks.

Enums§

PopupAlignment
Cross-axis alignment of a popup relative to its anchor.
PopupPlacement
Preferred vertical side of an anchored popup.