Skip to main content

Crate re_ui

Crate re_ui 

Source
Expand description

Rerun GUI theme and helpers, built around egui.

Re-exports§

pub use self::icons::Icon;
pub use self::syntax_highlighting::SyntaxHighlighting;
pub use self::theme::ReTheme;

Modules§

alert
debug_only
Helpers for marking the parts of the UI that only exist in debug builds.
discovery
Progressive feature discovery: at most one attention dot is visible at a time.
drag_and_drop
Helpers for drag and drop support for reordering hierarchical lists.
egui_ext
Things that should be upstream moved to egui/eframe at some point
filter_widget
icons
list_item
Second-generation list item.
loading_indicator
The loading indicator are three dots that fade in and out in sequence.
menu
modal
notifications
UI for notifications.
re_form
syntax_highlighting
testing
text_edit
theme
Rerun’s theme: the StyleProviders that turn widget classes into design tokens.
time

Structs§

AlertVisuals
ButtonVisuals
Colors for a single button crate::Variant.
CmdRow
The visual content of a single command-palette row, as produced by a CommandPaletteProvider.
ComboItem
A selectable button to be used within egui::ComboBoxes or egui::Popups.
ComboItemHeader
A header to group multiple ComboItems.
CommandPalette
A command palette where you can select a custom command.
ControlRow
A single row in the controls table.
DesignTokens
The look and feel of the UI.
DesignTokensAlreadyInitializedError
Returned by crate::try_set_design_tokens when the design tokens have already been initialized.
FuzzyMatch
How well a FuzzyQuery matches a target string.
FuzzyQuery
Help
A help popup where you can show markdown text and controls as a table.
IconText
KeyMarkdown
Newtype over egui::Key which provides a Display implementation suitable for markdown.
LinkButton
A button optimized for showing links (has a built-in copy button).
MatchedCmd
A specific command that matches some FuzzyQuery.
MetaLineVisuals
A metadata line that pairs each value with the word naming it.
ModifiersMarkdown
Newtype over egui::Modifiers which provides a Display implementation suitable for markdown.
MouseButtonMarkdown
Newtype over egui::PointerButton which provides a Display implementation suitable for markdown.
MouseButtonText
Helper to show mouse buttons as text/icons.
OnResponse
Wrap a Widget and register actions on its Response.
Outlines
The colors a card is outlined with to say what state its content is in.
PanelTitleBar
Static title bar that separates a panel into sections.
ProgressRing
A small ring, the size of an icon, that fills clockwise from twelve o’clock.
SectionCollapsingHeader
A collapsible section header, with support for optional help tooltip and button.
TabBar
A row of tabs, with the selected one underlined.
TabVisuals
The label colors of a tab bar, one per interaction state.
TextEditVisuals
Colors for a single text edit crate::text_edit::TextEditVariant.
TopBarStyle
UrlDecorator
The globally-installed UrlDecoratorFn, stored in egui memory.

Enums§

ListItemDensity
Row spacing for list items.
RequestedObject
A handle to an object that is requested asynchronously.
RowState
How a command-palette row should be drawn.
ServerValue
A value that has to be fetched from the server holding it.
Size
The height (and thus padding) of a button.
TableStyle
UICommand
Commands dispatched against the viewer’s current context instead of an explicit target.
UiLayout
Specifies the context in which the UI is used and the constraints it should follow.
Variant
The color scheme of a button.
WindowFrameConfig

Constants§

FLAG_BUTTON_SIZE
Width of the flag button, and the height it takes where the row has room for it.
TAB_TOOLBAR_HEIGHT
Height of the row between a TabBar and the content under it. The row summarizes that content on the left and holds its actions on the right.
TAB_TOOLBAR_MARGIN_Y
Space above and below a TAB_TOOLBAR_HEIGHT row.

Traits§

ButtonExt
Rerun’s button styling, as extensions to egui::Button.
CommandPaletteProvider
One source of commands.
ContextExt
Extension trait for egui::Context.
DragValueExt
Rerun’s styling, as extensions to egui::DragValue.
HasDesignTokens
OnResponseExt
UICommandSender
Interface for sending UICommand messages.
UiExt
Rerun custom extensions to egui::Ui.

Functions§

apply_style_and_install_loaders
Apply the Rerun design tokens to the given egui context and install image loaders.
conflicts_with_text_editing
Like KeyboardShortcut::conflicts_with_text_editing, but also reserves undo/redo (cmd/ctrl + Z/Y) for the focused text edit.
consume_best_shortcut
Consume the best-matching pressed keyboard shortcut, if any.
custom_window_decorations_default
Whether custom (client-drawn) window decorations should be the default on this system.
design_tokens_of
design_tokens_of_visuals
format_shortcut
Like egui::Context::format_shortcut, but spells arrow keys with glyphs our bundled fonts have.
fullsize_content
If true, we fill the entire window, except for the close/maximize/minimize buttons in the top-left. See https://github.com/emilk/egui/pull/2049
key_symbol_or_name
Like egui::Key::symbol_or_name, but spells arrow keys with glyphs our bundled fonts have.
paint_command_row
Lay out and paint one command-palette row.
supports_custom_decorations
Whether this platform supports custom window decorations.
try_set_design_tokens
Override the embedded design tokens before they’re first read.
viewport_with_window_chrome
Set up the window chrome: who draws the decorations, and what is left of the native title bar.
with_hover_icon_button
Show a Button that reveals an icon button on hover.
with_hover_icon_buttons
Show a Button that reveals more icon buttons (or other content) on hover.

Type Aliases§

MatchGroup
Commands in a group, that somehow belong together.
UrlDecoratorFn
A decorator that turns a recognized URL string into a labeled LinkButton.