Struct game::edit::traffic_signals::TrafficSignalEditor [−][src]
pub struct TrafficSignalEditor {}Show fields
side_panel: Panel, top_panel: Panel, mode: GameplayMode, members: BTreeSet<IntersectionID>, current_stage: usize, movements: Vec<DrawMovement>, movement_selected: Option<(MovementID, Option<TurnPriority>)>, draw_current: Drawable, tooltip: Option<Text>, command_stack: Vec<BundleEdits>, redo_stack: Vec<BundleEdits>, original: BundleEdits, warn_changed: bool, fade_irrelevant: Drawable,
Fields
side_panel: Panel
top_panel: Panel
mode: GameplayMode
members: BTreeSet<IntersectionID>
current_stage: usize
movements: Vec<DrawMovement>
movement_selected: Option<(MovementID, Option<TurnPriority>)>
draw_current: Drawable
tooltip: Option<Text>
command_stack: Vec<BundleEdits>
redo_stack: Vec<BundleEdits>
original: BundleEdits
warn_changed: bool
fade_irrelevant: Drawable
Implementations
impl TrafficSignalEditor
[src]
impl TrafficSignalEditor
[src]pub fn new_state(
ctx: &mut EventCtx<'_>,
app: &mut App,
members: BTreeSet<IntersectionID>,
mode: GameplayMode
) -> Box<dyn State<App>>
[src]
ctx: &mut EventCtx<'_>,
app: &mut App,
members: BTreeSet<IntersectionID>,
mode: GameplayMode
) -> Box<dyn State<App>>
fn change_stage(&mut self, ctx: &mut EventCtx<'_>, app: &App, idx: usize)
[src]
fn add_new_edit<F: Fn(&mut ControlTrafficSignal)>(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
idx: usize,
fxn: F
)
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
idx: usize,
fxn: F
)
fn recalc_draw_current(&mut self, ctx: &mut EventCtx<'_>, app: &App)
[src]
fn validate_all_members(&self, app: &App) -> Result<()>
[src]
Trait Implementations
impl State<App> for TrafficSignalEditor
[src]
impl State<App> for TrafficSignalEditor
[src]Auto Trait Implementations
impl !RefUnwindSafe for TrafficSignalEditor
impl !Send for TrafficSignalEditor
impl !Sync for TrafficSignalEditor
impl Unpin for TrafficSignalEditor
impl !UnwindSafe for TrafficSignalEditor
Blanket Implementations
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,