[][src]Trait map_gui::render::Renderable

pub trait Renderable {
    fn get_id(&self) -> ID;
fn draw(&self, g: &mut GfxCtx<'_>, app: &dyn AppLike, opts: &DrawOptions);
fn get_outline(&self, map: &Map) -> Polygon; fn get_zorder(&self) -> isize { ... }
fn contains_pt(&self, pt: Pt2D, map: &Map) -> bool { ... } }

Required methods

fn get_id(&self) -> ID[src]

fn draw(&self, g: &mut GfxCtx<'_>, app: &dyn AppLike, opts: &DrawOptions)[src]

fn get_outline(&self, map: &Map) -> Polygon[src]

Loading content...

Provided methods

fn get_zorder(&self) -> isize[src]

fn contains_pt(&self, pt: Pt2D, map: &Map) -> bool[src]

Loading content...

Implementors

impl Renderable for DrawArea[src]

impl Renderable for DrawBike[src]

impl Renderable for DrawBuilding[src]

impl Renderable for DrawBusStop[src]

impl Renderable for DrawCar[src]

impl Renderable for DrawIntersection[src]

impl Renderable for DrawLane[src]

impl Renderable for DrawParkingLot[src]

impl Renderable for DrawPedCrowd[src]

impl Renderable for DrawPedestrian[src]

impl Renderable for DrawRoad[src]

Loading content...