Trait veloren_voxygen::ui::Ingameable

source ·
pub trait Ingameable: Widget + Sized {
    // Required method
    fn prim_count(&self) -> usize;

    // Provided methods
    fn set_ingame(self, id: Id, ui: &mut UiCell<'_>) -> Self::Event { ... }
    fn position_ingame(self, pos: Vec3<f32>) -> Ingame<Self> { ... }
}

Required Methods§

source

fn prim_count(&self) -> usize

Provided Methods§

source

fn set_ingame(self, id: Id, ui: &mut UiCell<'_>) -> Self::Event

source

fn position_ingame(self, pos: Vec3<f32>) -> Ingame<Self>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a> Ingameable for Overhead<'a>

source§

impl<'a> Ingameable for Overitem<'a>

source§

impl<P> Ingameable for P
where P: Widget + PrimitiveMarker,