Trait 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>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Ingameable for Overhead<'_>

Source§

impl Ingameable for Overitem<'_>

Source§

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