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]

fn draw(&self, g: &mut GfxCtx<'_>, app: &App)[src]

fn draw_minimap(&self, g: &mut GfxCtx<'_>)[src]

Loading content...

Implementations

impl dyn Layer[src]

fn simple_event(
    ctx: &mut EventCtx<'_>,
    panel: &mut Panel
) -> Option<LayerOutcome>
[src]

Implementors

impl Layer for ElevationContours[src]

impl Layer for SteepStreets[src]

impl Layer for ShowFavorites[src]

impl Layer for BikeActivity[src]

impl Layer for Static[src]

impl Layer for Pandemic[src]

impl Layer for Efficiency[src]

impl Layer for Occupancy[src]

impl Layer for PopulationMap[src]

impl Layer for ProblemMap[src]

impl Layer for Backpressure[src]

impl Layer for CompareThroughput[src]

impl Layer for Delay[src]

impl Layer for Throughput[src]

impl Layer for TrafficJams[src]

impl Layer for TransitNetwork[src]

Loading content...