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: 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
Implementations
impl RoadEditor
[src]
impl RoadEditor
[src]pub fn new_state(
ctx: &mut EventCtx<'_>,
app: &mut App,
l: LaneID
) -> Box<dyn State<App>>
[src]
ctx: &mut EventCtx<'_>,
app: &mut App,
l: LaneID
) -> Box<dyn State<App>>
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]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
select_new_lane_offset: Option<isize>,
f: F
) -> Transition<App>
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]
impl State<App> for RoadEditor
[src]fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, _: &App)
[src]
pub fn draw_baselayer(&self) -> DrawBaselayer
pub fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
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> 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>,