Skip to main content

Module zones

Module zones 

Source
Expand description

Zones and blocks (ADR 0005). A zone is a named place; blocks are drawn in it, lightest first. Four operations: add, replace, extend (before or after a block) and wrap (around a block, receiving it as a closure). They are resolved when the application is built or a plugin comes or goes, never per frame; what cannot apply is reported with what happens instead.

Structs§

Resolved
One block of a resolved zone: what draws it, what wraps it.
ZoneInfo
A declared zone.

Enums§

Block
A block operation, as a plugin declares it.
Place
Where an extending block goes.

Constants§

ACTIVITY_BAR
A strip along the start edge, beside the side bar (the activity bar of strips::StripsPlugin).
CAPTION
Items in the window’s own title bar, before its buttons (declared by frame::FramePlugin).
CAPTION_START
The start of the window’s own title bar (declared by frame::FramePlugin): by default the egui_pop.frame.menu block (the system menu button and the application’s name); an application puts its logo there by replacing that block.
INSPECTOR
The side bar at the end.
MAIN
The main area.
OVERLAYS
Drawn after the shell, every frame, in the main window only: blocks there show what stays in the main window (the settings window, the frame’s edges) or follow a setting. Overlays that open in the window the user works in go in WINDOW_OVERLAYS.
SHELL
The shell’s zones, declared by the framework.
SIDE_BAR
The side bar at the start (left in left-to-right).
STATUS_BAR
The status bar at the bottom.
TITLE
Above the menu bar, the whole window’s width: a window’s own title bar (frame::FramePlugin), or anything an application puts there.
TOP_BAR
The top bar, after the main menu.
TOP_BAR_END
The top bar’s end: blocks drawn there, left to right, sit at the bar’s end before the commands of app::MENU_BAR_END (a document’s name, a readout, a widget of the application’s). They keep the width they took the pass before, as the top bar’s do; the menus overflow first. Declared by the framework beside the shell’s zones.
WINDOW_OVERLAYS
Drawn after each window’s content, in the main window and in every detached panel’s window: blocks there show overlays that belong to a window (the dialogs and the command palette, over the window they were opened from; the toasts, in the active window), each drawing only in its own (AppHandle::active_window, egui’s Context::viewport_id). Declared by the framework beside the shell’s zones.

Type Aliases§

DrawFn
Draws a block.
WrapFn
Draws around a block; calls inner (or not) where it likes.