Trait map_gui::render::Renderable [−][src]
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]
Provided methods
fn get_zorder(&self) -> isize
[src]
fn contains_pt(&self, pt: Pt2D, map: &Map) -> bool
[src]
Implementors
impl Renderable for DrawArea
[src]
impl Renderable for DrawArea
[src]impl Renderable for DrawBike
[src]
impl Renderable for DrawBike
[src]fn get_id(&self) -> ID
[src]
fn draw(&self, g: &mut GfxCtx<'_>, _: &dyn AppLike, _: &DrawOptions)
[src]
fn get_outline(&self, _: &Map) -> Polygon
[src]
fn contains_pt(&self, pt: Pt2D, _: &Map) -> bool
[src]
fn get_zorder(&self) -> isize
[src]
impl Renderable for DrawBuilding
[src]
impl Renderable for DrawBuilding
[src]fn get_id(&self) -> ID
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &dyn AppLike, opts: &DrawOptions)
[src]
fn get_zorder(&self) -> isize
[src]
fn get_outline(&self, map: &Map) -> Polygon
[src]
fn contains_pt(&self, pt: Pt2D, map: &Map) -> bool
[src]
impl Renderable for DrawBusStop
[src]
impl Renderable for DrawBusStop
[src]fn get_id(&self) -> ID
[src]
fn draw(&self, g: &mut GfxCtx<'_>, _: &dyn AppLike, _: &DrawOptions)
[src]
fn get_outline(&self, _: &Map) -> Polygon
[src]
fn contains_pt(&self, pt: Pt2D, _: &Map) -> bool
[src]
fn get_zorder(&self) -> isize
[src]
impl Renderable for DrawCar
[src]
impl Renderable for DrawCar
[src]fn get_id(&self) -> ID
[src]
fn draw(&self, g: &mut GfxCtx<'_>, _: &dyn AppLike, _: &DrawOptions)
[src]
fn get_outline(&self, _: &Map) -> Polygon
[src]
fn contains_pt(&self, pt: Pt2D, _: &Map) -> bool
[src]
fn get_zorder(&self) -> isize
[src]
impl Renderable for DrawIntersection
[src]
impl Renderable for DrawIntersection
[src]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]
fn contains_pt(&self, pt: Pt2D, map: &Map) -> bool
[src]
fn get_zorder(&self) -> isize
[src]
impl Renderable for DrawLane
[src]
impl Renderable for DrawLane
[src]fn get_id(&self) -> ID
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &dyn AppLike, _: &DrawOptions)
[src]
fn get_outline(&self, map: &Map) -> Polygon
[src]
fn contains_pt(&self, pt: Pt2D, _: &Map) -> bool
[src]
fn get_zorder(&self) -> isize
[src]
impl Renderable for DrawParkingLot
[src]
impl Renderable for DrawParkingLot
[src]fn get_id(&self) -> ID
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &dyn AppLike, _: &DrawOptions)
[src]
fn get_zorder(&self) -> isize
[src]
fn get_outline(&self, map: &Map) -> Polygon
[src]
fn contains_pt(&self, pt: Pt2D, map: &Map) -> bool
[src]
impl Renderable for DrawPedCrowd
[src]
impl Renderable for DrawPedCrowd
[src]fn get_id(&self) -> ID
[src]
fn draw(&self, g: &mut GfxCtx<'_>, _: &dyn AppLike, _: &DrawOptions)
[src]
fn get_outline(&self, _: &Map) -> Polygon
[src]
fn get_zorder(&self) -> isize
[src]
impl Renderable for DrawPedestrian
[src]
impl Renderable for DrawPedestrian
[src]fn get_id(&self) -> ID
[src]
fn draw(&self, g: &mut GfxCtx<'_>, _: &dyn AppLike, _: &DrawOptions)
[src]
fn get_outline(&self, _: &Map) -> Polygon
[src]
fn contains_pt(&self, pt: Pt2D, _: &Map) -> bool
[src]
fn get_zorder(&self) -> isize
[src]
impl Renderable for DrawRoad
[src]
impl Renderable for DrawRoad
[src]