Struct game::edit::roads::RoadEditor[][src]

pub struct RoadEditor {
    r: RoadID,
    current_lane: Option<LaneID>,
    top_panel: Panel,
    main_panel: Panel,
    highlight_selection: (Option<LaneID>, Drawable),
    hovering_on_lane: Option<LaneID>,
    num_edit_cmds_originally: usize,
    redo_stack: Vec<EditCmd>,
    orig_road_state: EditRoad,
}

Fields

r: RoadIDcurrent_lane: Option<LaneID>top_panel: Panelmain_panel: Panelhighlight_selection: (Option<LaneID>, Drawable)hovering_on_lane: Option<LaneID>num_edit_cmds_originally: usizeredo_stack: Vec<EditCmd>orig_road_state: EditRoad

Implementations

impl RoadEditor[src]

pub fn new_state(
    ctx: &mut EventCtx<'_>,
    app: &mut App,
    l: LaneID
) -> Box<dyn State<App>>
[src]

Always starts focused on a certain lane.

fn modify_current_lane<F: Fn(&mut EditRoad, usize)>(
    &mut self,
    ctx: &mut EventCtx<'_>,
    app: &mut App,
    select_new_lane_offset: Option<isize>,
    f: F
) -> Transition<App>
[src]

fn recalc_all_panels(&mut self, ctx: &mut EventCtx<'_>, app: &App)[src]

fn compress_edits(&self, app: &App) -> Option<MapEdits>[src]

Trait Implementations

impl State<App> for RoadEditor[src]

Auto Trait Implementations

impl !RefUnwindSafe for RoadEditor

impl !Send for RoadEditor

impl !Sync for RoadEditor

impl Unpin for RoadEditor

impl !UnwindSafe for RoadEditor

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,