egui_pop_core/lib.rs
1//! The egui layer of egui-pop (layer L2, see ADR 0001): what an
2//! application framework needs from egui, below the application API.
3//!
4//! - [`theme`]: design tokens into egui's style, typed tokens in the
5//! context;
6//! - [`focus`]: focus scopes and the focus chain, rebuilt each pass;
7//! - [`frame`]: a window's own title bar and resize edges, publishing
8//! their hit regions in physical pixels;
9//! - [`focus_mode`]: whether the pointer gives the keyboard (click or
10//! hover, as the window manager does or as the user chose);
11//! - [`keys`]: the key dispatcher (chords, consumption, traces);
12//! - [`motion`]: the motion clock (frozen in tests, still under reduced
13//! motion) and the delayed busy indicator;
14//! - [`layers`]: ranks fixing the order of the foreground layers (lying-over
15//! zones, then overlays, then menus and popups);
16//! - [`overlay`]: the overlay stack (top-layer dismissal, modality,
17//! focus restore);
18//! - [`band`]: the header band a movable dialog or a palette is dragged
19//! by;
20//! - [`field`]: a field's state (modified, required, invalid, disabled
21//! with a reason, read-only, pending) drawn, announced and reported;
22//! - [`input`]: the decorated input (placeholder, slots, clear, attached
23//! and split buttons, a dropdown) and the split button;
24//! - [`tab`]: Tab order in focus scopes (reading order, indices,
25//! groups; cycling in a modal) and F6 between panels;
26//! - [`regions`]: F6 through a window's parts, built on focus scopes;
27//! - [`param`]: the editor a value descriptor calls for, in the three
28//! binding modes;
29//! - [`slider`]: darktable-style sliders (soft and hard range, fine
30//! and coarse, reset, typed expressions, a quad button), logarithmic,
31//! on a gradient track, or a range with two thumbs; a hook on every
32//! change;
33//! - [`progress`]: progress bars, rings, meters and spinners (delayed),
34//! on the motion clock, named for assistive technologies;
35//! - [`placeholder`]: skeletons standing in for loading content, and
36//! empty states;
37//! - [`late`]: a cell for a value arriving after asynchronous work
38//! (pending, fresh, refreshing, failed with Retry), its size kept;
39//! - [`placement`]: floating elements placed with flip and shift;
40//! - [`pointer`](mod@pointer): the pointer gestures in force (the profile's table
41//! canvases read) and the wheel read raw, unit and modifiers kept;
42//! - [`scale`]: the window's scales, crisp strokes, the scale-changed
43//! signal, the interface zoom's steps;
44//! - [`a11y`]: accessible names and an announcer;
45//! - [`strings`]: the library's own strings, by key, with English
46//! fallbacks;
47//! - [`icon`]: icons by role, sized and coloured from tokens;
48//! - [`areas`]: the area registry: what each interactive area writes
49//! (display, navigate, edit), an edit area's grips at rest, cursor and
50//! hover card drawn by the framework, inert while its panel is stale;
51//! - [`hover_card`]: rich hover cards (formatted text, rows, live
52//! values, command links) next to any widget, read by agents as data;
53//! - [`indicator`]: micro-indicators (dots and LEDs, badges, pips,
54//! flags, swatches, icons by state) drawn by the kit, passive or
55//! buttons, inline or on a widget, recorded for agents;
56//! - [`note`]: an inline message in sentences (an error, a warning),
57//! wrapped, selectable and copyable, announced to screen readers;
58//! - [`ui`]: layout helpers named by role on egui's `Ui` (text roles,
59//! spacing by intent, a card and a button in a tone);
60//! - [`sections`]: collapsible sections stacked in a panel, each a
61//! band over its own scrolling body, folded and resized, remembered;
62//! - [`fold`]: a group folding inside a panel under its header band,
63//! and a hand-built tree's rows with their toggles, kept by id;
64//! - [`persist`]: documents written atomically, with a backup and
65//! migrations;
66//! - [`fault`]: fault boundaries showing an error card on panic;
67//! - [`binding`]: plain, bound and watch-only values;
68//! - [`latest`]: a slow load following a selection, the latest asked
69//! winning, nothing run behind a hidden panel;
70//! - [`thumbnail`]: thumbnails and a virtualised grid of them;
71//! - [`rating`]: rating stars, edited (a preview under the pointer, the
72//! current value as a ghost, a click on it clears) or shown, drawn by
73//! the kit;
74//! - [`widgets`]: egui's checkbox, radio button, selectable row and
75//! combo box arrow drawn through the kit, and a toggle chip;
76//! - [`state`]: typed slots for the state kept in egui's memory,
77//! listed by the debug bridge;
78//! - [`debug`]: the debug bridge and its collectors;
79//! - [`inspect`]: the element picker behind devtools' inspect mode.
80
81pub mod a11y;
82pub mod areas;
83pub mod band;
84pub mod binding;
85pub mod canvas;
86pub mod compact;
87pub mod debug;
88pub mod fault;
89pub mod field;
90pub mod focus;
91pub mod focus_mode;
92pub mod fold;
93pub mod fonts;
94pub mod frame;
95pub mod hover_card;
96pub mod icon;
97pub mod icon_set;
98pub mod indicator;
99pub mod input;
100pub mod inspect;
101pub mod keys;
102pub mod kit;
103pub mod knob;
104pub mod late;
105pub mod latest;
106pub mod layers;
107pub mod motion;
108pub mod note;
109pub mod number;
110pub mod overlay;
111pub mod param;
112pub mod persist;
113mod place;
114pub mod placeholder;
115pub mod placement;
116pub mod pointer;
117pub mod progress;
118pub mod rating;
119pub mod regions;
120mod reveal;
121mod ring;
122mod roving;
123pub mod scale;
124pub mod schema;
125mod scroll_keys;
126pub mod sections;
127pub mod segmented;
128pub mod slider;
129mod stay;
130pub mod strings;
131pub mod tab;
132pub mod theme;
133pub mod thumbnail;
134pub mod tooltip;
135pub mod ui;
136pub mod widgets;
137pub mod window_surface;
138
139pub mod state;
140
141pub use egui;
142pub use egui_pop_model as model;
143pub use egui_pop_tokens as tokens;
144pub use state::lock;