Struct dev_menu::Menu [−][src]
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]
R: Resources,
F: Factory<R>,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,