pub struct ProgramState {Show 16 fields
pub program: Program,
pub path: Option<String>,
pub steps: Vec<StepInfo>,
pub marker: usize,
pub can_undo: bool,
pub can_redo: bool,
pub tool: Option<String>,
pub tools: Vec<ToolInfo>,
pub operations: Vec<Listed>,
pub exporters: Vec<&'static ExporterInfo>,
pub inspectors: Vec<&'static InspectorInfo>,
pub examples: Vec<&'static str>,
pub workspace_examples: Vec<&'static str>,
pub panels: BTreeMap<String, Value>,
pub details: BTreeMap<String, String>,
pub keys: &'static [AppKey],
}Expand description
The program, as shown.
Fields§
§program: ProgramThe program itself, to save.
path: Option<String>The file it is in, once the editor has been told.
steps: Vec<StepInfo>§marker: usizeHow many steps run: new steps go there.
can_undo: bool§can_redo: bool§tool: Option<String>The key of the tool in hand, if one is (Command::Tool).
tools: Vec<ToolInfo>The tools to take in hand, offered beside the inspectors — none of them is an operation; the pick tools are the inspectors’.
operations: Vec<Listed>Every operation a step can be, as the toolbar offers them: group by
group, in crate::editable::OperationGroup’s order, and within a
group by crate::editable::OperationTier, the most used first,
then in the order they were registered.
exporters: Vec<&'static ExporterInfo>What can be written of the part (Command::Export).
inspectors: Vec<&'static InspectorInfo>What can be asked about it (Command::Inspect), or picked in it
to ask about (the tool pick:<inspector>).
examples: Vec<&'static str>The names of the example programs Command::LoadExample loads.
workspace_examples: Vec<&'static str>The names of the examples of several files
Command::LoadWorkspaceExample loads.
panels: BTreeMap<String, Value>What each panel shows of the program, by its key (see
crate::registry::Panel).
details: BTreeMap<String, String>What the part’s structure says beside its items, by their names,
from what the panels show (see crate::registry::Panel::details):
how free a placed part is.
keys: &'static [AppKey]The keys of what every front end offers besides the operations
(see crate::keys).
Trait Implementations§
Source§impl Clone for ProgramState
impl Clone for ProgramState
Source§fn clone(&self) -> ProgramState
fn clone(&self) -> ProgramState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more