pub struct MotionPanel { /* private fields */ }Expand description
The motion panel: see the module docs.
Trait Implementations§
Source§impl Default for MotionPanel
impl Default for MotionPanel
Source§fn default() -> MotionPanel
fn default() -> MotionPanel
Returns the “default value” for a type. Read more
Source§impl Panel for MotionPanel
impl Panel for MotionPanel
Source§const KEY: &'static str = "motion"
const KEY: &'static str = "motion"
The panel’s key: what its state is under in
crate::editor::ProgramState::panels, and what its commands name.Source§type State = MotionState
type State = MotionState
What it shows.
Source§type Command = MotionCommand
type Command = MotionCommand
What it is sent.
Source§fn state(&self, _: &Program, part: &Reader<'_>) -> MotionState
fn state(&self, _: &Program, part: &Reader<'_>) -> MotionState
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: MotionCommand,
) -> GeopResult<Changed>
fn command( &self, ctx: &mut EditorContext<'_>, command: MotionCommand, ) -> GeopResult<Changed>
Does
command, saying what it changed.Source§fn details(&self, state: &Self::State) -> BTreeMap<String, String>
fn details(&self, state: &Self::State) -> BTreeMap<String, String>
What the part’s structure says beside its items, by their names,
from what the panel shows (
state): how free a placed part is.
Nothing, unless it says otherwise.Source§fn after_edit(&self, _ctx: &mut EditorContext<'_>)
fn after_edit(&self, _ctx: &mut EditorContext<'_>)
Told once an edit — after a command changed the program or the step
being edited, once it has run again and settled — never for every
move of the pointer: where a question about the whole of what was
built is asked. Nothing, unless it says otherwise.
Auto Trait Implementations§
impl !Freeze for MotionPanel
impl !RefUnwindSafe for MotionPanel
impl !Sync for MotionPanel
impl Send for MotionPanel
impl Unpin for MotionPanel
impl UnsafeUnpin for MotionPanel
impl UnwindSafe for MotionPanel
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).