Expand description
The mount contract in the application (ADR 0013): the hosts this
crate builds and what each offers, the components of this crate and
of egui-pop-core and what each needs, the components and hosts an
application declares (Ctx::mountable, Ctx::host_offer), and
the questions agents and code ask:
AppHandle::where_can: every host and the verdict for a component;AppHandle::mount: a component put in a host, recorded with its conditions, or refused with its rule (reported, ADR 0003);- the debug bridge’s
mountscollector: the declarations, what is mounted where, and thewhere_canandcheckactions.
use egui_pop_api::{App, mounts};
let app = App::builder().build(&egui::Context::default()).unwrap();
let verdicts = app.handle().where_can(mounts::JOBS_CENTRE).unwrap();
let status_bar = verdicts.iter().find(|v| v.host == mounts::STATUS_BAR).unwrap();
assert_eq!(status_bar.fit.cell(), "D1");Structs§
Constants§
- CUSTOM_
DIALOG - A custom dialog: a body of its own, the dialog rules kept
(
crate::dialogs::Custom). - DIALOG
- A dialog of the four kinds (
Confirm,Form,Choose,Info). - FORMS
- Forms of value-descriptor fields.
- JOBS_
CENTRE - The jobs centre (
crate::jobs_centre). - LINE
- A block of a line zone (the top bar, the caption, the activity bar).
- MODAL
- A raw modal overlay, drawn from a block of the
OVERLAYSzone. - PALETTE
- A floating palette.
- PANEL
- A docked panel: a tab in an area.
- POPOVER
- A popover anchored to something.
- PROGRESS
- The progress bar and spinner (
egui_pop_core::progress). - SETTINGS_
PAGE - A custom page of the settings window
(
crate::settings_pages::SettingsPage). - SLIDERS
- The value-descriptor sliders (
egui_pop_core::slider). - STATUS_
BAR - The status bar.
- STORY
- A gallery story.
- THEME_
EDITOR - The theme editor (
crate::theme_editor). - TIPS
- The tip of the day and hints (
crate::tips). - WINDOW
- A panel detached into an auxiliary window.
Functions§
- components
- The components of this crate and of
egui-pop-core. - dialog
- A dialog of the four kinds: descriptors, no free content.
- forms
- Forms: one row per value-descriptor field.
- hosts
- The hosts of this crate, in the order of
docs/hosts.md’s columns (the viewport’s overlays areegui-pop-viewport’s). - jobs_
centre - The jobs centre: one per application, from the host’s journal.
- line
- A block of a line zone.
- modal
- A raw modal overlay: any
Ui, none of the dialog rules. - palette
- A floating palette: a bounded width, the content’s height, until the user resizes it (the size kept in the layout).
- panel
- A docked panel: the area’s whole rect, resized by the user.
- panel_
host - A panel’s host for a place: the panel’s offer in an area, the palette’s floating, the window’s detached.
- popover
- A popover: next to its anchor, closed by Escape or a click outside.
- progress
- The progress bar and spinner: not interactive.
- sliders
- Sliders: a value dragged, typed or stepped.
- status_
bar - The status bar.
- story
- A gallery story: drawn by the gallery in its main zone.
- theme_
editor - The theme editor: one draft per application.
- tips
- The tip of the day and hints.
- window
- An auxiliary window: a detachable panel in a window of its own.