pub struct JointsPanel { /* private fields */ }Expand description
The joints panel: see the module docs.
Trait Implementations§
Source§impl Panel for JointsPanel
impl Panel for JointsPanel
Source§fn details(&self, state: &JointsState) -> BTreeMap<String, String>
fn details(&self, state: &JointsState) -> BTreeMap<String, String>
How free each placed part is: fixed, or how many ways it moves.
Source§fn after_edit(&self, ctx: &mut EditorContext<'_>)
fn after_edit(&self, ctx: &mut EditorContext<'_>)
How free the placed parts of what is shown are, kept for the panel to show.
Source§const KEY: &'static str = "joints"
const KEY: &'static str = "joints"
The panel’s key: what its state is under in
crate::editor::ProgramState::panels, and what its commands name.Source§type State = JointsState
type State = JointsState
What it shows.
Source§type Command = JointsCommand
type Command = JointsCommand
What it is sent.
Source§fn state(&self, _: &Program, part: &Reader<'_>) -> JointsState
fn state(&self, _: &Program, part: &Reader<'_>) -> JointsState
What it shows of
program, the part part reads being what the
program built as far as it runs.Source§fn command(
&self,
ctx: &mut EditorContext<'_>,
command: JointsCommand,
) -> GeopResult<Changed>
fn command( &self, ctx: &mut EditorContext<'_>, command: JointsCommand, ) -> GeopResult<Changed>
Does
command, saying what it changed.Auto Trait Implementations§
impl !Freeze for JointsPanel
impl !RefUnwindSafe for JointsPanel
impl !Send for JointsPanel
impl !Sync for JointsPanel
impl !UnwindSafe for JointsPanel
impl Unpin for JointsPanel
impl UnsafeUnpin for JointsPanel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<P> ErasedPanel for Pwhere
P: Panel,
impl<P> ErasedPanel for Pwhere
P: Panel,
fn key(&self) -> &'static str
Source§fn state(
&self,
program: &Program,
part: &Reader<'_>,
) -> Result<(Value, BTreeMap<String, String>), GeopError>
fn state( &self, program: &Program, part: &Reader<'_>, ) -> Result<(Value, BTreeMap<String, String>), GeopError>
What it shows of
program (see Panel::state), and what the
structure says beside its items from it (see Panel::details).