Skip to main content

Kit

Struct Kit 

Source
#[non_exhaustive]
pub struct Kit {
Show 115 fields pub list_row: Component, pub list_item: Component, pub list_guide: Component, pub list_view: Component, pub menu_item: Component, pub menu_item_gutter: Component, pub meter: Component, pub meter_tick: Component, pub progress_bar: Component, pub progress_caption: Component, pub progress_fill: Component, pub progress_line: Component, pub progress_ring: Component, pub side_area: Component, pub dock_area: Component, pub skeleton: Component, pub skeleton_shimmer: Component, pub slider: Component, pub slider_fill: Component, pub slider_thumb: Component, pub slider_toggle: Component, pub slider_value: Component, pub spinner: Component, pub splitter: Component, pub status_indicator: Component, pub activity_bar_item: Component, pub area_grip: Component, pub area_strip: Component, pub assist_card: Component, pub button: Component, pub card: Component, pub checkbox: Component, pub combo_arrow: Component, pub combo_box: Component, pub command_button: Component, pub command_palette_row: Component, pub backdrop: Component, pub band_icon_button: Component, pub compare_pane: Component, pub dialog: Component, pub dialog_grip: Component, pub dialog_header: Component, pub dock_preview: Component, pub dock_body: Component, pub dock_separator: Component, pub drag_ghost: Component, pub drag_ghost_count: Component, pub drag_verdict: Component, pub drop_target: Component, pub editor_frame: Component, pub empty_state: Component, pub field: Component, pub fault_card: Component, pub find_bar: Component, pub find_bar_button: Component, pub fullscreen_exit: Component, pub header_band: Component, pub icon_button: Component, pub indicator_badge: Component, pub indicator_button: Component, pub indicator_dot: Component, pub indicator_flag: Component, pub indicator_outline: Component, pub indicator_swatch: Component, pub job_log: Component, pub mark_toggle: Component, pub palette_window: Component, pub pill: Component, pub plot: Component, pub plot_cursor: Component, pub popover: Component, pub radio: Component, pub rating_star: Component, pub rating_star_display: Component, pub readout: Component, pub scroll_bar: Component, pub search_field: Component, pub section_band: Component, pub section_count: Component, pub section_disclosure: Component, pub selectable_row: Component, pub switch: Component, pub tab: Component, pub tab_bar: Component, pub tab_preview: Component, pub table_header_cell: Component, pub table_row: Component, pub table_stripe: Component, pub tag_chip: Component, pub thumb_cell: Component, pub thumb_layer: Component, pub thumb_overlay_badge: Component, pub thumbnail: Component, pub title_bar: Component, pub tree_drop_marker: Component, pub terminal_frame: Component, pub tip_card: Component, pub toast: Component, pub tooltip: Component, pub toggle_button: Component, pub toggle_chip: Component, pub toolbar_button: Component, pub viewport_focus: Component, pub viewport_label: Component, pub window_button: Component, pub window_close: Component, pub glyphs: Glyphs, pub window: WindowKit, pub window_edge: WindowEdgeKit, pub sections: SectionsKit, pub drag_cursors: DragCursorKit, pub area_line: AreaLineKit, pub scroll: ScrollBarKit, pub scoped: ScopedKit, pub problems: Vec<String>,
}
Expand description

A compiled kit: every component egui-pop draws through one.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§list_row: Component

A row of a tree, a list or a table: selected, hover, and focus for the cursor of a focused view.

§list_item: Component

A dense row, based on list-row: a list item or a property row, and the tree’s and the list’s rows; active while pressed, disabled, its trailing text and a property’s name in the muted tone.

§list_guide: Component

An indent guide down a nested row, a part with no width.

§list_view: Component

A data view as a whole (tree, list, table, library grid): its outline while it has the keyboard focus, painted over its rows.

§menu_item: Component

An item of a menu (command, check item, submenu): egui lays it out and takes its clicks, the kit paints its box under it; selected while its submenu is open, its shortcut in the muted tone.

§menu_item_gutter: Component

The column on a menu item’s left holding its icon, tick, radio dot or spinner: its width (else the inline icon size plus space.s on each side, Kit::menu_gutter); selected frames the icon of a checked command.

§meter: Component

A meter’s track (its fill is a progress-fill).

§meter_tick: Component

A meter’s threshold, a line across its track.

§progress_bar: Component

A progress bar’s track (its fill and sections are progress-fill).

§progress_caption: Component

A bar’s caption: its name, and its value text in the muted tone.

§progress_fill: Component

A stretch of a track, by tone: a bar’s fill and sections, a meter’s fill, an indeterminate bar’s segment.

§progress_line: Component

A thin progress line’s track (under a title, along a viewport).

§progress_ring: Component

A progress ring, colours only (its arc is drawn by egui-pop): the track in fill, the arc in indicator-color, by tone.

§side_area: Component

A side area of the workbench: egui draws it and its separator line (none when border-width is 0).

§dock_area: Component

Every dock area of a window, side, bottom and centre alike, in the main window and the others: padding-x and padding-y between its edges and its panels, the one set of margins that keeps neighbouring areas’ tab strips level (Kit::dock_area_margin).

§skeleton: Component

A shape of a skeleton standing in for loading content.

§skeleton_shimmer: Component

The band crossing a skeleton’s shapes, painted where they meet.

§slider: Component

A slider’s bar: its track and its label; hover, active while dragged, focus. A range slider’s bar is in the states of both its thumbs.

§slider_fill: Component

A slider’s fill, a strip along the bar’s bottom (height, else 15 % of the bar); not drawn on a gradient track.

§slider_thumb: Component

A slider’s thumb, a line across the bar, in its own thumb’s state.

§slider_toggle: Component

The square button at a slider’s end, its icon in text; selected while its toggle is on.

§slider_value: Component

A slider’s value text, in the warning tone past the soft range.

§spinner: Component

A spinner, colours only like progress-ring; its label in text.

§splitter: Component

The line between two panes side by side (width thick): hover, active while dragged, focus with the keyboard (widgets::Splitter).

§status_indicator: Component

A status bar indicator, colours only: its text by tone, its progress line (border-color the track, indicator-* the fill).

§activity_bar_item: Component

An icon of the activity bar, its icon in text: selected while its panel is shown (never hover then).

§area_grip: Component

A side area’s resize grip at the middle of its edge (width its thickness, height its length); egui takes the drag.

§area_strip: Component

A folded side area’s strip (width); a click unfolds the area.

§assist_card: Component

The frame of an editor’s code assist popups (completions, actions, hover cards).

§button: Component

A push button. egui’s own widgets take their states from it: rest, hover, active, and selected for an open menu or combo box; by tone, UiPop::button_tone (accent a primary action, the status tones a solid fill, muted no box at rest).

§card: Component

A card grouping content in a panel or a page (UiPop::card); by tone, an edge in the status colour, muted a sunken well.

§checkbox: Component

A checkbox’s box, its mark the check or indeterminate glyph: selected while checked (widgets::Checkbox).

§combo_arrow: Component

A combo box’s arrow, the dropdown glyph: selected while its list is open (widgets::combo_box).

§combo_box: Component

The box of egui’s combo box, which egui draws (handler scoped): its states become egui’s in a scope (UiPop::combo_box), selected while its list is open.

§command_button: Component

A button running a command: egui lays it out and takes its clicks, the kit paints its box; egui greys it when disabled.

§command_palette_row: Component

A command in the command palette: egui lays it out, the kit paints its box under it; selected for the one Enter runs, its matches in the accent tone, its keys in the muted tone.

§backdrop: Component

What dims the interface behind a modal dialog: its fill at opacity (egui paints it).

§band_icon_button: Component

An icon button on a header band (a palette’s close, roll and pin, a dialog’s close), its icon in text; selected for a pinned palette.

§compare_pane: Component

A pane of the library’s comparison: selected for the best image, its ring painted again over the image.

§dialog: Component

A dialog’s frame.

§dialog_grip: Component

A resizable dialog’s corner handle (lines in text, in a square height across, border-width wide); width is how far the dialog’s edges take the pointer on either side of them.

§dialog_header: Component

A dialog’s title row, colours only: its title in text, on the header band of a movable dialog (padding-y below it).

§dock_preview: Component

Where a dragged tab or palette would dock (its fill at opacity); disabled when refused, its label saying why.

§dock_body: Component

The border of a panel’s body in a dock (kit::dock): rest, hover under the pointer, focus for the dock’s focused panel; its width, colour, corners and glow (the ring) per state. None in a frameless area.

§dock_separator: Component

The line between two panels of a dock (width thick): hover, active while dragged, focus with the keyboard.

§drag_ghost: Component

What a drag carries under the pointer (bus::drag::Ghost in the application API): the frame of the first item’s thumbnail, with offset edges behind it when more go, or an object’s chip (its icon and name in text); width the thumbnail’s longest side, height a chip’s, painted at opacity.

§drag_ghost_count: Component

How many items a drag carries, a badge on its ghost’s corner.

§drag_verdict: Component

What a drop would do, a symbol on the ghost’s other corner (in text) while it hovers a target; disabled when refused.

§drop_target: Component

The outline of the drop target a drag hovers; disabled when it refuses the drag.

§editor_frame: Component

The frame around a text or code editor; focus while it has the keyboard.

§empty_state: Component

An empty place: its box (none in the default kit) around the icon, title, sentence and action; the icon and the sentence in text, the icon in the danger tone when something went wrong.

§field: Component

A text field. egui’s text fields take their background from it.

§fault_card: Component

The card standing in for a part that panicked.

§find_bar: Component

An editor’s find and replace bar.

§find_bar_button: Component

An icon button of the find bar (previous, next, close).

§fullscreen_exit: Component

The strip at the top of a full screen window, its way out.

§header_band: Component

The band at the top of a movable dialog and of a palette, dragged to move it: hover under the pointer, active while dragged.

§icon_button: Component

A button made of an icon alone (IconWidget::sense_click), its icon in text, by tone; selected while it is on.

§indicator_badge: Component

A count or short text badge (a micro-indicator): a pill by tone.

§indicator_button: Component

The target of an interactive micro-indicator: hover, active, focus, disabled, selected for a toggle that is on; its text is an icon mark’s colour.

§indicator_dot: Component

A dot or an LED, colours only: its colour in fill by tone, an LED that is off a ring in border-color.

§indicator_flag: Component

A flag, colours only: its colour in fill by tone.

§indicator_outline: Component

The ring separating an overhanging mark from its host, colours only (ring-color, ring-width).

§indicator_swatch: Component

A colour swatch’s box: its outline and corners over the colour; text the slash of no colour and the dash of mixed ones.

§job_log: Component

A job’s log console, as plain lines.

§mark_toggle: Component

A pick, reject or colour label toggle: selected while on.

§palette_window: Component

A floating palette’s window.

§pill: Component

A pill over a thumbnail: a badge (by tone) or a stack’s count.

§plot: Component

A chart’s plot area (egui_pop_views::plot): its background and frame, its axis text and grid in text (hover while the pointer is over it).

§plot_cursor: Component

A plot’s time cursor, a line across its area (width thick).

§popover: Component

A popover’s or a menu’s surface.

§radio: Component

A radio button’s circle, its mark the radio glyph: selected while chosen (widgets::RadioButton).

§rating_star: Component

A star of a rating (rating::RatingStars), drawn by the star handler: rest an empty star’s outline, selected a star of the value, hover a star of the value the pointer previews, and selected in the muted tone a star of the current value past the preview (its ghost); disabled in a disabled Ui.

§rating_star_display: Component

A star of a rating shown, not edited (a table’s column, a file’s facts): based on rating-star, at rest or selected.

§readout: Component

A viewport’s pixel readout; its label is the readout’s text.

§scroll_bar: Component

The scroll bars of every scroll area, which egui draws (handler scoped): rest, hover and active the thumb (its fill and radius); the terms that do not change with the state are Kit::scroll.

§search_field: Component

The library’s search field: focus while its text has the keyboard.

§section_band: Component

The title band of a collapsible section (sections::Sections): a line above and under it, hover, active while pressed, focus with the keyboard; its title in text.

§section_count: Component

The count on a section’s band, based on indicator-badge.

§section_disclosure: Component

A section band’s disclosure mark, colours only: the disclosure-open or disclosure-closed glyph in text, width across, in the band’s state.

§selectable_row: Component

A row picked from a short list (widgets::SelectableRow): a combo box’s choices, the assist card’s rows; selected for the chosen one, never hover then.

§switch: Component

An on/off switch’s track (widgets::Switch), its thumb in text: selected while on.

§tab: Component

A tab of the workbench’s tab bars.

§tab_bar: Component

The bar behind a row of tabs.

§tab_preview: Component

The ghost of a dragged tab where it would land in another area’s tab bar, drawn at rest; based on tab (its handler and sizes).

§table_header_cell: Component

A column’s header in a data table: hover when the column sorts, selected when the table is sorted by it.

§table_row: Component

A row of a data table: selected, hover (never while selected), focus for the cursor of a focused table. Based on list-row, so a table’s rows look like a list’s unless a kit gives them their own look (a quiet selection, a side marker).

§table_stripe: Component

Behind every other row of a data table.

§tag_chip: Component

A tag or filter chip: selected, hover, focus.

§thumb_cell: Component

A cell of the library’s grid: selected, hover (never while selected), focus for the cursor of a focused grid.

§thumb_layer: Component

What a library cell lays over its image, by tone: muted a rejected image’s veil, accent a stack member’s bar.

§thumb_overlay_badge: Component

The box behind a cell’s flag, labels and stars.

§thumbnail: Component

A thumbnail (crate::thumbnail): selected, hover, focus.

§title_bar: Component

A window’s own title bar; its label is the window’s title.

§tree_drop_marker: Component

Where a drag over a tree drops: around the target row, or a line between rows (a part with no height); disabled when refused.

§terminal_frame: Component

The frame around a terminal’s grid; focus while it has the keyboard. Its fill is the grid’s default background.

§tip_card: Component

A tip’s card.

§toast: Component

A toast’s frame (its level’s tone is its icon’s); its text is the message’s.

§tooltip: Component

A tooltip’s frame (tooltip::TooltipExt): its text, its font-size (else the Body style’s), its placement (widget or pointer), its offset and, at the pointer, its offset-x.

§toggle_button: Component

egui’s button shown on or off (Button::selected), which egui draws (handler scoped): its states become egui’s in a scope, selected its fill and text while on.

§toggle_chip: Component

A small toggle showing a text or a glyph (widgets::ToggleChip): the find bar’s options; selected while on.

§toolbar_button: Component

A toolbar’s button (toolbars): its icon and label in text, a fill under the pointer; selected, framed, while its command is on.

§viewport_focus: Component

An image viewport’s outline while it has the keyboard focus.

§viewport_label: Component

A label over an image (an overlay’s name, a HUD’s readout), its fill translucent so the image shows through; its label is the text, drawn at rest.

§window_button: Component

Minimize and maximize (the glyph is drawn in the box’s text), in the tones warning and success; traffic-light draws circles.

§window_close: Component

The close button, in the tone danger.

§glyphs: Glyphs

The icon of each glyph role (glyph.*).

§window: WindowKit

The window’s own terms (title-bar.buttons-side, title-bar.buttons-hover, window.corners).

§window_edge: WindowEdgeKit

The window’s edge beside its line (window.inactive, window.radius).

§sections: SectionsKit

The sections’ terms (section-count.placement).

§drag_cursors: DragCursorKit

The drag cursors by kind (drag-cursor.<kind>.hover, .drag, .policy), under the pointer profile’s.

§area_line: AreaLineKit

The line between two areas while hovered and dragged (side-area.hover.border-*, side-area.active.border-*).

§scroll: ScrollBarKit

The scroll bars’ terms (scroll-bar.width, width-rest, opacity-rest, room, min-length, margin, placement, visibility, track-fill): egui’s ScrollStyle (ScrollBarKit::style).

§scoped: ScopedKit

egui’s own widgets’ visuals in a scope, per Stock kind and tone (Kit::scope).

§problems: Vec<String>

What could not be compiled as written (an unknown shape, a bad side): fallbacks were used.

Implementations§

Source§

impl Kit

Source

pub fn dock_area_margin(&self, frameless: bool) -> Margin

The margin between a dock area’s edges and its panels, the same for every area kind (start, end, bottom, centre) in every window (dock-area.padding-x, dock-area.padding-y); none for a frameless area. One set, so neighbouring areas’ tab strips start at the same height and the gaps between areas match.

Source

pub fn area_line_room(&self, style: &Style) -> f32

The breadth an area keeps for the line on its side facing the centre, as an egui side panel reserved it in its frame’s outer margin: the resting line’s width when the kit’s side-area has a border (the line shows at rest), else none.

Source

pub fn paint_area_line( &self, painter: &Painter, sash: &SashPaint<'_>, inward: Vec2, )

The line between two areas (an egui side panel’s separator): shown at rest only when the kit’s side-area has a border, highlighted while hovered, focused or dragged (Kit::area_line_stroke). inward points from the boundary into the area the line belongs to (zero: centred on the boundary); the line then lies in the room the area keeps for it (Kit::area_line_room), where egui drew a panel’s separator.

Source

pub fn area_line_stroke( &self, style: &Style, flags: PartState, ppp: f32, ) -> Option<Stroke>

The stroke of the line between two areas in a sash’s state, none when no line is drawn. Dragged: side-area.active.border-*; hovered or focused: side-area.hover.border-* (AreaLineKit); a state whose tokens say nothing takes egui’s widget stroke (widgets.active.fg_stroke, widgets.hovered.fg_stroke). At rest, egui’s non-interactive stroke when side-area has a border. A width of 0 draws no line.

Source

pub fn paint_over_edge( &self, painter: &Painter, edge: &SashPaint<'_>, inward: Vec2, )

The free edge of an area lying over the centre, the edge that resizes it, while hovered, focused or dragged: the line between two areas in that state (Kit::paint_area_line), only when the kit gives the state’s tokens (side-area.hover.border-*, side-area.active.border-*). Without them, and at rest, nothing: the area’s frame is its border, as before the tokens existed. inward points from the edge into the area lying over.

Source

pub fn fold_guide_stroke(&self, default: Stroke, ppp: f32) -> Option<Stroke>

The stroke of the guide shown while a line between two areas is dragged far enough to fold its area on release (SnapKind::Fold): side-area.fold.border-width and border-color, each one the kit leaves out taken from default (egui_stack’s LayoutStyle::snap_guide). None when the width is 0.

Source

pub fn paint_snap_guide(&self, painter: &Painter, guide: &SnapGuidePaint<'_>)

A guide line while a line between two areas is dragged: the fold guide from the kit (Kit::fold_guide_stroke), the others as egui_stack draws them (LayoutStyle::snap_guide).

Source

pub fn paint_area_strip( &self, painter: &Painter, rect: Rect, state: State, inner: Side, )

A folded area’s strip (area-strip): its box, the line on the side facing the centre (inner), and the drag-handle glyph near its top.

Source§

impl Kit

Source

pub fn components(&self) -> impl Iterator<Item = &Component>

Every component of the kit, in COMPONENTS’ order: what a check walks.

Source§

impl Kit

Source

pub fn compile(t: &Tokens, shapes: &Shapes) -> Kit

Compiles the kit a theme describes, with the handlers given.

Source

pub fn scope<R>( &self, ui: &mut Ui, stock: Stock, tone: Tone, add: impl FnOnce(&mut Ui) -> R, ) -> InnerResponse<R>

add in a scope where egui’s own widgets of a Stock kind are drawn from the kit’s component, in a tone (Tone::Neutral for its own box): its states become egui’s widget visuals (ScopedVisuals, compiled with the kit), so egui keeps drawing the widget, with its layout, icons and shortcut text. Outside the scope, egui’s visuals are unchanged.

Source

pub fn glyph(&self, glyph: Glyph) -> Icon

The icon a kit draws for a glyph role.

Source

pub fn menu_gutter(&self, t: &Tokens) -> f32

The width of a menu’s gutter (menu-item-gutter.width), else the inline icon size plus space.s on each side: 24 points in the comfortable density, 16 in the compact one.

Source

pub fn of(ctx: &Context) -> Arc<Kit>

The kit of the theme drawn now (of egui’s theme of the moment, as Tokens::of), or the ones of the installed tokens, compiled on first use. Read it while drawing; a cache keeping what it drew from it across frames keeps the Arc and compares it (Arc::ptr_eq): a new kit comes with a theme install and with egui’s light or dark mode. Keep it, not only its address, which a dropped kit can lend to the next one.

Inside a ScopedTheme’s show, it is the scoped theme’s kit.

Trait Implementations§

Source§

impl Clone for Kit

Source§

fn clone(&self) -> Kit

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Kit

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl DockPainter for Kit

Source§

fn tab_width(&self, tab: &TabMeasure<'_>) -> f32

The width of a tab, padding and close button included. A tab bar filling its width (TabBarStyle::fill_tab_bar) can still make it wider.
Source§

fn tab_bar(&self, painter: &Painter, bar: &TabBarPaint<'_>)

A tab bar’s background, painted before its tabs. Read more
Source§

fn tab(&self, painter: &Painter, tab: &TabPaint<'_>)

A tab, with its title and its close button if it has one. Read more
Source§

fn tab_bar_tail(&self, _painter: &Painter, _tail: &TabBarTailPaint<'_>)

The part of a tab bar right of its last tab, its buttons included, painted after the tabs; and, when the bar starts with a collapse button, that button’s slot at its left end, painted the same way. The default paints the line under the bar, which parts it from the body, and so runs under every button: none when the leaf is folded.
Source§

fn tab_body(&self, painter: &Painter, body: &TabBodyPaint<'_>)

A leaf’s body border, painted over the body’s background and before its contents. Read more
Source§

fn separator(&self, painter: &Painter, separator: &SeparatorPaint<'_>)

A separator between two nodes.
Source§

fn drop_target(&self, _painter: &Painter, _target: &DropTargetPaint<'_>)

While a tab is dragged, the node or surface under the pointer, painted first.
Source§

fn drop_button(&self, painter: &Painter, button: &DropButtonPaint<'_>)

One of the drop overlay’s buttons ([OverlayType::Widgets]): the middle one (no split) or a split’s.
Source§

fn drop_preview(&self, painter: &Painter, drop: &DropPaint<'_>)

Where a dragged tab would land if released now, or why it may not (TabViewer::drop_allowed). Read more
Source§

fn section_band(&self, painter: &Painter, band: &SectionBandPaint<'_>)

The title band of a section in a Sections stack: its background, its disclosure mark, its title and its count. Painted from the band’s [egui::Style], as a section stack has no dock [Style].
Source§

fn section_boundary( &self, painter: &Painter, boundary: &SectionBoundaryPaint<'_>, )

A boundary between two sections of a Sections stack, which resizes the open section above it. Painted after the bands, so that a focus ring shows over them. The default paints nothing at rest: the bands’ own lines part the sections.
Source§

fn tool_item(&self, painter: &Painter, item: &ToolItemPaint<'_>)

A tool of a ToolRow (a button, a toggle, a menu), or a row of its More menu ([ToolItemPaint::in_menu]): its background, icon (or a spinner while busy), label and mark. The row lays it out: the painter paints at the places it is given. Painted from the row’s [egui::Style].
Source§

fn tool_more(&self, painter: &Painter, more: &ToolMorePaint<'_>)

The More button at the end of a ToolRow, shown when some tools do not fit: it opens them as a menu. The default paints three dots, along the row.
Source§

fn tool_separator(&self, painter: &Painter, separator: &ToolSeparatorPaint<'_>)

The line between two groups of a ToolRow: across the row, in the middle of its room.
§

fn tab_bar_grip(&self, painter: &Painter, grip: &TabBarGripPaint<'_>)

The grip at the end of a tab bar, which moves the whole tab group (GroupHandles::GRIP), painted after the bar’s tail. The default paints two columns of three dots, on a background when the grip is hovered, focused or dragged.
§

fn window_outline(&self, painter: &Painter, outline: &WindowOutlinePaint<'_>)

While a tab is dragged out of another window where the system hides window positions (Wayland), a dock of this window that could take it: no window can tell whether the pointer is over it before the release, so each outlines its docks (DockSpace::dragging). The default strokes the dock’s rect with OverlayStyle::zone_stroke, in the error color where the drop would be refused.
§

fn dragged_group(&self, painter: &Painter, group: &DraggedGroupPaint<'_>)

While a whole tab group is dragged, its ghost under the pointer: its tab bar with the tabs that fit, the active one SELECTED, a “+N” for the others, and a hint of its body below. It is painted on a layer above the drop overlay, in every window of a DockSpace the pointer is over. The default paints a translucent frame with a shadow, the bar and its tabs through tab_bar and tab, and the body’s background, see-through enough to show the drop overlay under it, unless the application paints the body (body_painted).
§

fn dragged_tab(&self, painter: &Painter, tab: &DraggedGroupPaint<'_>)

While a single tab is dragged, its ghost under the pointer: a one-tab group’s, holding just that tab (count is 1), sized and placed as a group’s ghost is. It is painted on a layer above the drop overlay, in every window of a DockSpace the pointer is over. The default paints it as dragged_group does, so that both ghosts look the same.
§

fn restore_band(&self, painter: &Painter, band: &RestoreBandPaint<'_>)

A collapsed zone’s restore band, while a tab is dragged (Fold::Collapse): every band of the layout, the one under the pointer hovered. A band restores a zone instead of splitting one, so it looks unlike the drop zones: the default paints a dashed line of OverlayStyle::selection_color along the band, filled in when hovered. Where the zone would come back is the drop_preview painted next.
Source§

impl LayoutPainter for Kit

The kit paints egui_stack’s layout: the line between two areas (as an egui side panel’s separator, shown at rest only when the kit’s side-area has a border), the folded areas’ strips (area-strip) and the frame of what lies over the centre (side-area, its shadow).

Source§

fn sash(&self, painter: &Painter, sash: &SashPaint<'_>)

A sash between two zones.
Source§

fn snap_guide(&self, painter: &Painter, guide: &SnapGuidePaint<'_>)

The guide line of a dragged sash that caught a snap target, or of a fold or unfold to come on release; painted above everything.
Source§

fn over_edge(&self, painter: &Painter, edge: &SashPaint<'_>)

The free edge of a zone lying over its neighbour, the edge that resizes it, painted above the zone’s content. edge.rect is [LayoutStyle::sash_width] thick, centred on the edge; edge.state tells whether it is hovered or dragged, as a sash’s. By default nothing: the zone’s frame ([LayoutPainter::flyout_frame]) is its only border. A host that styles its sashes’ hover and drag can paint the same line here, so both kinds of edge look alike.
Source§

fn strip(&self, painter: &Painter, strip: &StripPaint<'_>)

A folded zone’s strip, with its grip (painted before the [ZoneViewer::strip] content).
Source§

fn flyout_frame(&self, painter: &Painter, frame: &FlyoutPaint<'_>)

The frame of a zone lying over its neighbour, or of a flyout: shadow, background and border, painted before its content.

Auto Trait Implementations§

§

impl Freeze for Kit

§

impl !RefUnwindSafe for Kit

§

impl Send for Kit

§

impl Sync for Kit

§

impl Unpin for Kit

§

impl UnsafeUnpin for Kit

§

impl !UnwindSafe for Kit

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T, S> SimdFrom<T, S> for T
where S: Simd,

§

fn simd_from(_simd: S, value: T) -> T

§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

§

fn simd_into(self, simd: S) -> T

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

§

impl<T> SerializableAny for T
where T: 'static + Any + Clone + for<'a> Send + Sync,