Skip to main content

Module registry

Module registry 

Source
Expand description

Registry: everything an editor offers, gathered in one builder that each operation crate adds to with its one register function — the operations a step can be, how what they build is drawn and listed (Drawer), the exporters and inspectors (crate::output), the panels (Panel), the tools (Tool), what settles the program’s state after every edit (Settle) and the examples (ExampleSet).

The crate::editor::Editor names none of them: what it shows and does beyond editing steps is what its registry holds.

Structs§

Drawings
What each drawer of a registry drew last (Registry::draw), kept by what it read (Reads): a part shown again with other sketches — a sketch opened, or closed — draws its sketches again, not its faces.
ExampleSet
Example programs, and examples made of several files, that an editor offers to load (crate::editor::Command::LoadExample).
Registry
Everything an editor offers: see the module docs.
StructureItem
An entry of the structure of the part drawn, by name: what Drawer::structure lists.

Traits§

Drawer
What a crate draws of the part, and lists of it: the targets it defines. A part is drawn by every drawer of the registry in turn, into one PartView — the parts placed in it as instances of components, never one mesh per placement (see crate::view::ViewInstance).
ErasedPanel
A Panel with its types erased, to keep panels of every kind in one registry.
Panel
A view of the program a front end shows beside the steps, and the commands it is sent from there (crate::editor::Command::Panel): the program’s parameters, the joints of an assembly. A front end looks its component up by Panel::KEY.
Settle
What settles a program’s state after every edit: moves what the steps say a solve moves — where placed parts are — so that the constraints they declare hold. At most one per registry; with none, the state is kept as given. When to settle, and what of the program runs first, is the editor’s.

Type Aliases§

Example
An example by name, with what makes it: a program, or the files of one made of several. Listing examples builds none.
ExampleFiles
The files of an example made of several, by path: the first is the one edited.