Trait map_gui::render::Renderable

source ·
pub trait Renderable {
    // Required methods
    fn get_id(&self) -> ID;
    fn draw(&self, g: &mut GfxCtx<'_>, app: &dyn AppLike, opts: &DrawOptions);
    fn get_outline(&self, map: &Map) -> Tessellation;
    fn get_bounds(&self, map: &Map) -> Bounds;
    fn contains_pt(&self, pt: Pt2D, map: &Map) -> bool;

    // Provided method
    fn get_zorder(&self) -> isize { ... }
}

Required Methods§

source

fn get_id(&self) -> ID

source

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

source

fn get_outline(&self, map: &Map) -> Tessellation

source

fn get_bounds(&self, map: &Map) -> Bounds

source

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

Provided Methods§

source

fn get_zorder(&self) -> isize

Implementors§