#[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
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.list_row: ComponentA row of a tree, a list or a table: selected, hover, and
focus for the cursor of a focused view.
list_item: ComponentA 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: ComponentAn indent guide down a nested row, a part with no width.
list_view: ComponentA data view as a whole (tree, list, table, library grid): its outline while it has the keyboard focus, painted over its rows.
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.
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: ComponentA meter’s track (its fill is a progress-fill).
meter_tick: ComponentA meter’s threshold, a line across its track.
progress_bar: ComponentA progress bar’s track (its fill and sections are progress-fill).
progress_caption: ComponentA bar’s caption: its name, and its value text in the muted tone.
progress_fill: ComponentA stretch of a track, by tone: a bar’s fill and sections, a meter’s fill, an indeterminate bar’s segment.
progress_line: ComponentA thin progress line’s track (under a title, along a viewport).
progress_ring: ComponentA progress ring, colours only (its arc is drawn by egui-pop): the
track in fill, the arc in indicator-color, by tone.
side_area: ComponentA side area of the workbench: egui draws it and its separator line
(none when border-width is 0).
dock_area: ComponentEvery 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: ComponentA shape of a skeleton standing in for loading content.
skeleton_shimmer: ComponentThe band crossing a skeleton’s shapes, painted where they meet.
slider: ComponentA 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: ComponentA slider’s fill, a strip along the bar’s bottom (height, else
15 % of the bar); not drawn on a gradient track.
slider_thumb: ComponentA slider’s thumb, a line across the bar, in its own thumb’s state.
slider_toggle: ComponentThe square button at a slider’s end, its icon in text;
selected while its toggle is on.
slider_value: ComponentA slider’s value text, in the warning tone past the soft range.
spinner: ComponentA spinner, colours only like progress-ring; its label in text.
splitter: ComponentThe line between two panes side by side (width thick): hover,
active while dragged, focus with the keyboard
(widgets::Splitter).
status_indicator: ComponentA status bar indicator, colours only: its text by tone, its
progress line (border-color the track, indicator-* the fill).
activity_bar_item: ComponentAn icon of the activity bar, its icon in text: selected while
its panel is shown (never hover then).
area_grip: ComponentA side area’s resize grip at the middle of its edge (width its
thickness, height its length); egui takes the drag.
area_strip: ComponentA folded side area’s strip (width); a click unfolds the area.
assist_card: ComponentThe frame of an editor’s code assist popups (completions, actions, hover cards).
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: ComponentA card grouping content in a panel or a page (UiPop::card); by
tone, an edge in the status colour, muted a sunken well.
checkbox: ComponentA checkbox’s box, its mark the check or indeterminate glyph:
selected while checked (widgets::Checkbox).
combo_arrow: ComponentA combo box’s arrow, the dropdown glyph: selected while its
list is open (widgets::combo_box).
combo_box: ComponentThe 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.
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: ComponentA 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: ComponentWhat dims the interface behind a modal dialog: its fill at
opacity (egui paints it).
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: ComponentA pane of the library’s comparison: selected for the best
image, its ring painted again over the image.
dialog: ComponentA dialog’s frame.
dialog_grip: ComponentA 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: ComponentA dialog’s title row, colours only: its title in text, on the
header band of a movable dialog (padding-y below it).
dock_preview: ComponentWhere a dragged tab or palette would dock (its fill at opacity);
disabled when refused, its label saying why.
dock_body: ComponentThe 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: ComponentThe line between two panels of a dock (width thick): hover,
active while dragged, focus with the keyboard.
drag_ghost: ComponentWhat 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: ComponentHow many items a drag carries, a badge on its ghost’s corner.
drag_verdict: ComponentWhat a drop would do, a symbol on the ghost’s other corner (in
text) while it hovers a target; disabled when refused.
drop_target: ComponentThe outline of the drop target a drag hovers; disabled when it
refuses the drag.
editor_frame: ComponentThe frame around a text or code editor; focus while it has the
keyboard.
empty_state: ComponentAn 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: ComponentA text field. egui’s text fields take their background from it.
fault_card: ComponentThe card standing in for a part that panicked.
find_bar: ComponentAn editor’s find and replace bar.
An icon button of the find bar (previous, next, close).
fullscreen_exit: ComponentThe strip at the top of a full screen window, its way out.
header_band: ComponentThe band at the top of a movable dialog and of a palette, dragged to
move it: hover under the pointer, active while dragged.
A button made of an icon alone (IconWidget::sense_click), its
icon in text, by tone; selected while it is on.
indicator_badge: ComponentA count or short text badge (a micro-indicator): a pill by tone.
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: ComponentA dot or an LED, colours only: its colour in fill by tone, an
LED that is off a ring in border-color.
indicator_flag: ComponentA flag, colours only: its colour in fill by tone.
indicator_outline: ComponentThe ring separating an overhanging mark from its host, colours
only (ring-color, ring-width).
indicator_swatch: ComponentA 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: ComponentA job’s log console, as plain lines.
mark_toggle: ComponentA pick, reject or colour label toggle: selected while on.
palette_window: ComponentA floating palette’s window.
pill: ComponentA pill over a thumbnail: a badge (by tone) or a stack’s count.
plot: ComponentA 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: ComponentA plot’s time cursor, a line across its area (width thick).
popover: ComponentA popover’s or a menu’s surface.
radio: ComponentA radio button’s circle, its mark the radio glyph: selected
while chosen (widgets::RadioButton).
rating_star: ComponentA 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: ComponentA star of a rating shown, not edited (a table’s column, a file’s
facts): based on rating-star, at rest or selected.
readout: ComponentA viewport’s pixel readout; its label is the readout’s text.
scroll_bar: ComponentThe 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: ComponentThe library’s search field: focus while its text has the
keyboard.
section_band: ComponentThe 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: ComponentThe count on a section’s band, based on indicator-badge.
section_disclosure: ComponentA 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: ComponentA 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: ComponentAn on/off switch’s track (widgets::Switch), its thumb in text:
selected while on.
tab: ComponentA tab of the workbench’s tab bars.
tab_bar: ComponentThe bar behind a row of tabs.
tab_preview: ComponentThe 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: ComponentA column’s header in a data table: hover when the column sorts,
selected when the table is sorted by it.
table_row: ComponentA 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: ComponentBehind every other row of a data table.
tag_chip: ComponentA tag or filter chip: selected, hover, focus.
thumb_cell: ComponentA cell of the library’s grid: selected, hover (never while
selected), focus for the cursor of a focused grid.
thumb_layer: ComponentWhat a library cell lays over its image, by tone: muted a
rejected image’s veil, accent a stack member’s bar.
thumb_overlay_badge: ComponentThe box behind a cell’s flag, labels and stars.
thumbnail: ComponentA thumbnail (crate::thumbnail): selected, hover, focus.
title_bar: ComponentA window’s own title bar; its label is the window’s title.
tree_drop_marker: ComponentWhere 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: ComponentThe frame around a terminal’s grid; focus while it has the
keyboard. Its fill is the grid’s default background.
tip_card: ComponentA tip’s card.
toast: ComponentA toast’s frame (its level’s tone is its icon’s); its text is
the message’s.
tooltip: ComponentA 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.
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: ComponentA small toggle showing a text or a glyph (widgets::ToggleChip):
the find bar’s options; selected while on.
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: ComponentAn image viewport’s outline while it has the keyboard focus.
viewport_label: ComponentA 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.
Minimize and maximize (the glyph is drawn in the box’s text),
in the tones warning and success; traffic-light draws
circles.
window_close: ComponentThe close button, in the tone danger.
glyphs: GlyphsThe icon of each glyph role (glyph.*).
window: WindowKitThe window’s own terms (title-bar.buttons-side,
title-bar.buttons-hover, window.corners).
window_edge: WindowEdgeKitThe window’s edge beside its line (window.inactive,
window.radius).
sections: SectionsKitThe sections’ terms (section-count.placement).
drag_cursors: DragCursorKitThe drag cursors by kind (drag-cursor.<kind>.hover,
.drag, .policy), under the pointer profile’s.
area_line: AreaLineKitThe line between two areas while hovered and dragged
(side-area.hover.border-*, side-area.active.border-*).
scroll: ScrollBarKitThe scroll bars’ terms (scroll-bar.width, width-rest,
opacity-rest, room, min-length, margin, placement,
visibility, track-fill): egui’s
ScrollStyle (ScrollBarKit::style).
scoped: ScopedKitegui’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
impl Kit
Sourcepub fn dock_area_margin(&self, frameless: bool) -> Margin
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.
Sourcepub fn area_line_room(&self, style: &Style) -> f32
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.
Sourcepub fn paint_area_line(
&self,
painter: &Painter,
sash: &SashPaint<'_>,
inward: Vec2,
)
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.
Sourcepub fn area_line_stroke(
&self,
style: &Style,
flags: PartState,
ppp: f32,
) -> Option<Stroke>
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.
Sourcepub fn paint_over_edge(
&self,
painter: &Painter,
edge: &SashPaint<'_>,
inward: Vec2,
)
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.
Sourcepub fn fold_guide_stroke(&self, default: Stroke, ppp: f32) -> Option<Stroke>
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.
Sourcepub fn paint_snap_guide(&self, painter: &Painter, guide: &SnapGuidePaint<'_>)
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).
Sourcepub fn paint_area_strip(
&self,
painter: &Painter,
rect: Rect,
state: State,
inner: Side,
)
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
impl Kit
Sourcepub fn components(&self) -> impl Iterator<Item = &Component>
pub fn components(&self) -> impl Iterator<Item = &Component>
Every component of the kit, in COMPONENTS’ order: what
a check walks.
Source§impl Kit
impl Kit
Sourcepub fn compile(t: &Tokens, shapes: &Shapes) -> Kit
pub fn compile(t: &Tokens, shapes: &Shapes) -> Kit
Compiles the kit a theme describes, with the handlers given.
Sourcepub fn scope<R>(
&self,
ui: &mut Ui,
stock: Stock,
tone: Tone,
add: impl FnOnce(&mut Ui) -> R,
) -> InnerResponse<R>
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.
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.
Sourcepub fn of(ctx: &Context) -> Arc<Kit>
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 DockPainter for Kit
impl DockPainter for Kit
Source§fn tab_width(&self, tab: &TabMeasure<'_>) -> f32
fn tab_width(&self, tab: &TabMeasure<'_>) -> f32
TabBarStyle::fill_tab_bar) can still make it
wider.Source§fn tab_bar(&self, painter: &Painter, bar: &TabBarPaint<'_>)
fn tab_bar(&self, painter: &Painter, bar: &TabBarPaint<'_>)
Source§fn tab(&self, painter: &Painter, tab: &TabPaint<'_>)
fn tab(&self, painter: &Painter, tab: &TabPaint<'_>)
Source§fn tab_bar_tail(&self, _painter: &Painter, _tail: &TabBarTailPaint<'_>)
fn tab_bar_tail(&self, _painter: &Painter, _tail: &TabBarTailPaint<'_>)
Source§fn tab_body(&self, painter: &Painter, body: &TabBodyPaint<'_>)
fn tab_body(&self, painter: &Painter, body: &TabBodyPaint<'_>)
Source§fn separator(&self, painter: &Painter, separator: &SeparatorPaint<'_>)
fn separator(&self, painter: &Painter, separator: &SeparatorPaint<'_>)
Source§fn drop_target(&self, _painter: &Painter, _target: &DropTargetPaint<'_>)
fn drop_target(&self, _painter: &Painter, _target: &DropTargetPaint<'_>)
OverlayType::Widgets]):
the middle one (no split) or a split’s.Source§fn drop_preview(&self, painter: &Painter, drop: &DropPaint<'_>)
fn drop_preview(&self, painter: &Painter, drop: &DropPaint<'_>)
TabViewer::drop_allowed). Read moreSource§fn section_band(&self, painter: &Painter, band: &SectionBandPaint<'_>)
fn section_band(&self, painter: &Painter, band: &SectionBandPaint<'_>)
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<'_>,
)
fn section_boundary( &self, painter: &Painter, boundary: &SectionBoundaryPaint<'_>, )
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<'_>)
fn tool_item(&self, painter: &Painter, item: &ToolItemPaint<'_>)
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<'_>)
fn tool_more(&self, painter: &Painter, more: &ToolMorePaint<'_>)
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<'_>)
fn tool_separator(&self, painter: &Painter, separator: &ToolSeparatorPaint<'_>)
ToolRow: across the row,
in the middle of its room.§fn tab_bar_grip(&self, painter: &Painter, grip: &TabBarGripPaint<'_>)
fn tab_bar_grip(&self, painter: &Painter, grip: &TabBarGripPaint<'_>)
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<'_>)
fn window_outline(&self, painter: &Painter, outline: &WindowOutlinePaint<'_>)
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<'_>)
fn dragged_group(&self, painter: &Painter, group: &DraggedGroupPaint<'_>)
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<'_>)
fn dragged_tab(&self, painter: &Painter, tab: &DraggedGroupPaint<'_>)
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<'_>)
fn restore_band(&self, painter: &Painter, band: &RestoreBandPaint<'_>)
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).
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 snap_guide(&self, painter: &Painter, guide: &SnapGuidePaint<'_>)
fn snap_guide(&self, painter: &Painter, guide: &SnapGuidePaint<'_>)
Source§fn over_edge(&self, painter: &Painter, edge: &SashPaint<'_>)
fn over_edge(&self, painter: &Painter, edge: &SashPaint<'_>)
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<'_>)
fn strip(&self, painter: &Painter, strip: &StripPaint<'_>)
ZoneViewer::strip] content).Source§fn flyout_frame(&self, painter: &Painter, frame: &FlyoutPaint<'_>)
fn flyout_frame(&self, painter: &Painter, frame: &FlyoutPaint<'_>)
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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