Skip to main content

Module focus

Module focus 

Source
Expand description

The focus the Settings edit: whose host values (a library’s, a workspace’s…) the Settings show and write, when the host has several windows that each have their own.

The host names its foci (SettingsFoci::foci): an id, a label, the application windows that belong to each. Opened from a window (admin.open), the Settings edit that window’s focus; a header above the page names it and a switch picks another, shown once there are several foci. Editing a focus is the host’s to do (SettingsFoci::edit): it attaches the store holding that focus’s values and offers its scopes, so the fields show that focus’s values. A setting with no host level is the app’s and the same in every focus.

egui-pop resolves one value per setting in a process: the layers of the focus edited are the ones applied.

Structs§

SettingsFocus
A focus the Settings can edit.

Constants§

CMD_FOCUS
Edits a focus’s values in the Settings ({"id"}); without id, says which is edited and which there are.

Traits§

SettingsFoci
The host’s foci, as the Settings ask for them.