Struct game::edit::stop_signs::StopSignEditor [−][src]
pub struct StopSignEditor { id: IntersectionID, mode: GameplayMode, geom: HashMap<RoadID, (Polygon, Polygon)>, selected_sign: Option<RoadID>, }
Fields
id: IntersectionID
mode: GameplayMode
geom: HashMap<RoadID, (Polygon, Polygon)>
selected_sign: Option<RoadID>
Implementations
impl StopSignEditor
[src]
impl StopSignEditor
[src]pub fn new_state(
ctx: &mut EventCtx<'_>,
app: &mut App,
id: IntersectionID,
mode: GameplayMode
) -> Box<dyn State<App>>
[src]
ctx: &mut EventCtx<'_>,
app: &mut App,
id: IntersectionID,
mode: GameplayMode
) -> Box<dyn State<App>>
Trait Implementations
impl SimpleState<App> for StopSignEditor
[src]
impl SimpleState<App> for StopSignEditor
[src]fn on_click(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
x: &str,
_: &Panel
) -> Transition<App>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
x: &str,
_: &Panel
) -> Transition<App>
fn on_mouseover(&mut self, ctx: &mut EventCtx<'_>, _: &mut App)
[src]
fn other_event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App
) -> Transition<App>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App
) -> Transition<App>
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
pub fn panel_changed(
&mut self,
&mut EventCtx<'_>,
&mut A,
&mut Panel
) -> Option<Transition<A>>
&mut self,
&mut EventCtx<'_>,
&mut A,
&mut Panel
) -> Option<Transition<A>>
pub fn draw_baselayer(&self) -> DrawBaselayer
Auto Trait Implementations
impl RefUnwindSafe for StopSignEditor
impl Send for StopSignEditor
impl Sync for StopSignEditor
impl Unpin for StopSignEditor
impl UnwindSafe for StopSignEditor
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>,