Trait game::layer::Layer [−][src]
pub trait Layer { fn name(&self) -> Option<&'static str>; fn event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App
) -> Option<LayerOutcome>; fn draw(&self, g: &mut GfxCtx<'_>, app: &App); fn draw_minimap(&self, g: &mut GfxCtx<'_>); }
Required methods
fn name(&self) -> Option<&'static str>
[src]
fn event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App
) -> Option<LayerOutcome>
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_minimap(&self, g: &mut GfxCtx<'_>)
[src]
Implementations
impl dyn Layer
[src]
impl dyn Layer
[src]fn simple_event(
ctx: &mut EventCtx<'_>,
panel: &mut Panel
) -> Option<LayerOutcome>
[src]
ctx: &mut EventCtx<'_>,
panel: &mut Panel
) -> Option<LayerOutcome>
Implementors
impl Layer for ElevationContours
[src]
impl Layer for ElevationContours
[src]impl Layer for SteepStreets
[src]
impl Layer for SteepStreets
[src]impl Layer for ShowFavorites
[src]
impl Layer for ShowFavorites
[src]impl Layer for BikeActivity
[src]
impl Layer for BikeActivity
[src]impl Layer for CongestionCaps
[src]
impl Layer for CongestionCaps
[src]impl Layer for Efficiency
[src]
impl Layer for Efficiency
[src]impl Layer for PopulationMap
[src]
impl Layer for PopulationMap
[src]impl Layer for ProblemMap
[src]
impl Layer for ProblemMap
[src]impl Layer for Backpressure
[src]
impl Layer for Backpressure
[src]impl Layer for CompareThroughput
[src]
impl Layer for CompareThroughput
[src]impl Layer for Throughput
[src]
impl Layer for Throughput
[src]impl Layer for TrafficJams
[src]
impl Layer for TrafficJams
[src]