Struct dev_menu::Menu[][src]

pub struct Menu<T> { /* fields omitted */ }

An in-game developer menu that responds to keyboard events, and can be drawn using a DebugRenderer instance,

Implementations

impl<T> Menu<T>[src]

pub fn new() -> Menu<T>[src]

Create a new Menu instance

pub fn add_item(&mut self, item: MenuItem<T>)[src]

Add a MenuItem to the menu

pub fn draw<R, F>(&self, settings: &T, debug_renderer: &mut DebugRenderer<R, F>) where
    R: Resources,
    F: Factory<R>, 
[src]

Draw the menu using the current settings object

pub fn event<E: GenericEvent>(&mut self, e: &E, settings: &mut T)[src]

Respond to keyboard events

Auto Trait Implementations

impl<T> !RefUnwindSafe for Menu<T>

impl<T> !Send for Menu<T>

impl<T> !Sync for Menu<T>

impl<T> Unpin for Menu<T>

impl<T> !UnwindSafe for Menu<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.