pub struct Reference {
pub label: String,
pub accepts: Vec<String>,
pub value: Vec<Picked>,
pub multiple: bool,
pub required: bool,
pub armed: bool,
pub preview: Preview,
}Expand description
Elements of the part a step builds on, picked in the viewport: any
element of one of the kinds accepts (see
geop_core_program::element::Kind::NAME). One element, or — multiple — any
number, a pick adding or taking out one. Which of them the step can use
is the operation’s to say, in what it holds (Picked::tone).
The editor does all of the editing (see crate::step_editor): arming it
for picks, removing and clearing elements. An operation only ever gets
what it holds now, as super::Value::Elements.
Fields§
§label: String§accepts: Vec<String>§value: Vec<Picked>§multiple: bool§required: boolWhether the step needs it to hold something before it can be built; one that is not is only ever picked for when asked to.
armed: boolWhether a click in the viewport picks for it now.
preview: PreviewWhat an editor draws of what a click would pick for it, while the pointer is over it.