Skip to content

API map ​

Everything below is re-exported by egui_workbench unless a module path is shown. The crate root keeps the original function API; components adds builders.

Application runtime — egui_workbench::app ​

ItemKindPage
ThemeStatestructThemes
Documents<T>, Documentstruct, traitDocuments
CommandRegistrystructCommands
History<S>structHistory and sessions
Layout, LayoutNode, EditorGroup, LayoutTab, LayoutActionlayoutWorkspace layouts
LinkHub, LinkMode, LinkSelectionselection busLinked views
MinMaxPyramid, StreamingSeries, Triggerdata enginePlot engine
Renderer, set_output_formatGPUPlot engine
histogram, box_plot, hexbin, contour, polar, smithfamiliesAnalysis
find_peaks, savgol, spectrum, fit_model, StatisticsanalysisAnalysis
PlotAnnotation, Colormap, ExportPreset, to_unicode_mathpublicationAnalysis
HostSpec, Host, Patch, Message, CustomWidgethostHost
Python Workbench, Command, Context, widgetspythonPython
WebWorkbench, createWorkbench, connectRemote, RemoteServer, wb_host_*webWeb and remote
McpServer, Permissions, Automation, AccessNode, show_agent_panel, DevToolsStateagentAgents and DevTools
ExtensionManager, ExtensionManifest, Capability, show_extension_managerextensionsExtensions
ThemeStudioState, LocalizationState, Localizer, FontLibraryglobalTheme Studio and global
DatasetPlot, PlotGrid, ViewHistorylinked plotsLinked views
Dataset, Column, DataSource, Query, DataGriddataData fabric
ViewerRegistry, ViewerFile, ViewerKindviewerData fabric
ActivityBar, ActivityBarItembuilderWorkspace layouts
CommandJournal, Macro, MacroLibrarystructHistory and sessions
Workspace, Stash, HotExit, RecoverystructHistory and sessions
DevToolsState, show_devtoolsstruct/fnHistory and sessions
Command, CommandId, When, WhenContext, KeyChord, KeySequence, KeybindingsmetadataCommands
Keymap<C>struct (legacy)Commands
CloseGuardstructDocuments
WorkbenchApp, show_workbenchtrait, functionWorkbench layout
TITLE_BAR_PANEL, SIDEBAR_PANEL, RIGHT_PANEL, TAB_STRIP_PANEL, STATUS_BAR_PANEL, BOTTOM_PANEL&str idsWorkbench layout
SIDEBAR_MIN_WIDTH, CONTENT_MIN_WIDTH, RIGHT_PANEL_MIN_WIDTH, BOTTOM_PANEL_MIN_HEIGHTf32Workbench layout

Theme — egui_workbench::theme and root ​

ItemKind
Theme, ThemeId, ThemeModestruct, enum, enum
apply, apply_id, apply_theme, apply_tokensfunctions
current, effective_id, system_is_dark, motion_enabled, set_reduced_motionfunctions
ANIMATION_TIMEf32
mix, relative_luminance, readable_on, contrast_ratiofunctions

Theme methods: light, dark, for_id, is_dark, with_accent, accessibility_issues, border_stroke, and the deprecated radius (use style::get(ctx).control()).

Style — egui_workbench::style ​

ItemKind
WorkbenchStylestruct
Densityenum
get(ctx), set(ctx, style)functions
TYPE_SCALE[(TextStyle, f32); 5]

WorkbenchStyle fields: density, control_radius, item_radius, inner_radius, container_radius, dialog_radius, pill_radius, border_width, text_scale. Methods: sharp, rounded, with_density, scaled, control_height, size_height, size_padding, menu_row_height, list_row_height, tree_row_height, control, item, inner, tight, mark, container, dialog, pill, border, text_scale, font_size, font, mono, text.

Density: Compact, Default, Comfortable; factor, ALL, as_setting, from_setting.

Metrics — egui_workbench::metrics ​

ICON_SMALL, ICON_MEDIUM, ICON_LARGE, TITLE_HEIGHT, TAB_HEIGHT, TAB_STRIP_PADDING, STATUS_HEIGHT, TREE_ROW_HEIGHT, TREE_INDENT, CHEVRON_SIZE, SIDEBAR_WIDTH, ACTION_BUTTON, TOOL_BUTTON, SMALL_BUTTON, WINDOW_BUTTON_WIDTH, WINDOW_BUTTON_HEIGHT, CONTROL_HEIGHT, MENU_ROW_HEIGHT, LIST_ROW_HEIGHT, RESIZE_EDGE.

Window — root ​

handle_window_edges, apply_window_action, is_maximized, set_window_title, WindowAction. native_options and native_options_sized are native-only (#[cfg(not(target_arch = "wasm32"))]); wasm uses eframe::WebRunner and eframe::WebOptions (see Live demo).

Title bar — root ​

show_title_bar, TitleBar, TitleBarOutput, WindowLabels, Pill, title_menu.

Buttons — root ​

action_button, IconState, tool_button, tool_button_response, menu_tool_button, small_button, segmented, Segment, close_glyph.

Controls — root ​

text_field, primary_button, secondary_button, numeric_stepper, switch, combo, compact_menu, menu_item, menu_button, menu_toggle.

Tabs, tree, status — root ​

AreaItems
Tabsshow_tab_strip, TabItem, TabIcon, TabEvent
Treesection_header, show_tree, TreeNode, TreeState, TreeView, TreeEvent, RowIcon
Statusshow_status_bar, StatusItem, ellipsize_start, show_empty_state, editor_scroll_style, with_editor_scrollbars
Splitsplit_panes, STACK_BELOW

Dialogs, settings, palette, keyboard menu — root ​

AreaItems
Dialogsdialog_frame, dialog_header, dialog_footer, show_name_prompt, NamePrompt, show_confirm_prompt, ConfirmPrompt, PromptAction, show_choice_window, show_progress, banner, popover_frame, show_popover
Settingsshow_settings_dialog, SettingsDialog, settings_section, settings_row, settings_switch
Paletteshow_palette, fuzzy_filter, PaletteItem<T>, PaletteState, PaletteLabels, PaletteMode, PaletteFeed<T>
CommandsCommandRegistry, Command, CommandId, When, WhenContext, KeyChord, KeySequence, Keybindings, KeybindingsEditorState, show_keybindings_editor, command_menu_groups, show_command_menu, command_palette_items, show_command_palette
Keyboard menushow_keyboard_menu, open_from_keyboard, KeyboardMenuState, MenuGroup<T>, MenuEntry<T>

Icons — root ​

ItemKind
Iconsstruct
MaterialIconsstruct (feature material-icons)
FULL_UVRect

Icons: new, bundled, register, lucide_names, lucide_search, texture, texture_sized, paint, put, show, show_tinted, and the material field. MaterialIcons: file_icon, folder_icon, texture, texture_sized, draw.

Charts — egui_workbench::components::plot ​

Plot, PlotState, PlotConfig, Series, ChartMode, PlotHover, PlotResponse, ExportFormat, ExportOptions, Fit, FitKind, LineStyle, Marker, Smoothing, YAxis, Bounds, Scale, points_in. New families: Series::{pie, candles, heatmap, radar, gauge, waterfall} with PieConfig, RadarConfig, GaugeConfig, HeatmapConfig, and WaterfallConfig. Hover animation: LegendAnimation (13 effects), AnimationEasing, LegendHoverConfig, DirectionArrowConfig. 3D: Plot3D, Plot3DState, Plot3DConfig, Series3D, Surface, Camera3D, Projection, Bounds3D, Plot3DHover, Plot3DResponse, Series3DStyle, Surface3DConfig, Plot3DTool; constructors Series3D::{line, scatter, bars, surface, surface_fn}.

File viewer — egui_workbench::components::viewer ​

FileViewer, FileFormat, Document, Workbook, Sheet, Table, Cell, CellKind, TextFile, ViewerError. Open with FileViewer::{open, from_bytes, text}; paint with viewer.show(ui).

Components — egui_workbench::components ​

ItemKind
Button, IconButton, CloseButtonbuilders
TextField, TextArea, Switch, Checkbox, Select<T>, Stepper, SegmentedControlbuilders
Label, Badge, Banner, Card, Separator, Popover, StatusBar, NavTabbuilders
Menu, MenuButton, MenuItem, MenuToggle, MenuIconButtonbuilders
TabStrip, Tree, CommandPalettebuilders
Dialog, ConfirmDialog, NameDialog, ProgressDialogbuilders
IconGrid, IconPreview, IconSize, IconLayoutbuilders/enums
Toasts, Toast, ToastKind, ToastPosition, ToastId, ToastEventtoasts
Size, ButtonVariant, IconButtonSize, Tone, Orientationshared values
Component, IconComponenttraits
preludethe common imports
blockscomposite re-exports
plotsee below

components::prelude exports: Badge, Banner, Button, ButtonVariant, Card, Checkbox, CloseButton, CommandPalette, Component, ConfirmDialog, Dialog, IconButton, IconButtonSize, IconComponent, IconGrid, IconLayout, IconPreview, IconSize, Label, Menu, MenuButton, MenuIconButton, MenuItem, MenuToggle, NameDialog, NavTab, Orientation, PaletteItem, PaletteLabels, PaletteState, Popover, ProgressDialog, PromptAction, RowIcon, SegmentedControl, Select, Separator, Size, StatusBar, Stepper, Switch, TabEvent, TabIcon, TabItem, TabStrip, TextArea, TextField, Toast, ToastEvent, ToastKind, ToastPosition, Toasts, Tone, Tree, TreeEvent, TreeNode, TreeState.

Charts — egui_workbench::components::plot ​

ItemKind
Plot, Plot3Dbuilders
PlotState, PlotTool, PlotHover, PlotResponse, LegendPosition, PlotMeasurement, MeasurementConfig, FilterKind, TransformKindstate/response
Plot3DState, Plot3DTool, Plot3DHover, Plot3DResponse, Camera3D, Projection, Bounds3D3D state/camera
Series, Marker, LineStyle, points_indata
Series3D, Surface3D data
Fit, FitKindanalysis
Bounds, Scaleaxes
AxisConfig, Minor, PlotColors, PlotConfig, SeriesStyleconfiguration
Plot3DConfig, Series3DStyle, Surface3DConfig3D configuration
ExportOptions, ExportFormatexport

Plot methods: new, config, current_config, series_names, x_limits, y_limits, settings_button, export_button, series, fit, title, x_label, y_label, x_scale, y_scale, width, height, legend, grid, toolbar, x_window, include, show, to_svg, to_png.

Root re-exports ​

rust
pub use eframe;
pub use egui;
pub use theme::{Theme, ThemeId, ThemeMode};
pub use foundation::{metrics, style, theme};
pub use foundation::icons::{FULL_UV, Icons};
#[cfg(feature = "material-icons")]
pub use foundation::material::MaterialIcons;

The crate has no dependency on your Command type. PaletteItem<T>, MenuGroup<T>, TreeNode<K>, CommandRegistry (by id), and Documents<T> are generic over it.

Released under MIT OR Apache-2.0. Icons: Lucide (ISC) and Material Icon Theme (MIT).