pub struct XformInput { /* private fields */ }
Trait Implementations§
Source§impl<GameLogic> AsMut<XformInput> for Kernel<GameLogic>where
GameLogic: IGameLogic<EventInput = <XformInput as IUi>::EventInputFiltered, EventRender = <Renderer as IRenderer>::EventRender>,
<GameLogic as IGameLogic>::RenderObj: Into<Vec<<GameLogic as IGameLogic>::EventRender>>,
impl<GameLogic> AsMut<XformInput> for Kernel<GameLogic>where
GameLogic: IGameLogic<EventInput = <XformInput as IUi>::EventInputFiltered, EventRender = <Renderer as IRenderer>::EventRender>,
<GameLogic as IGameLogic>::RenderObj: Into<Vec<<GameLogic as IGameLogic>::EventRender>>,
Source§fn as_mut(&mut self) -> &mut XformInput
fn as_mut(&mut self) -> &mut XformInput
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl Default for XformInput
impl Default for XformInput
Source§impl<GameLogic> IKernel<WinGlutin, XformInput, GameLogic, Renderer> for Kernel<GameLogic>where
GameLogic: IGameLogic<EventInput = <XformInput as IUi>::EventInputFiltered, EventRender = <Renderer as IRenderer>::EventRender>,
<GameLogic as IGameLogic>::RenderObj: Into<Vec<<GameLogic as IGameLogic>::EventRender>>,
use default implementation for run method
impl<GameLogic> IKernel<WinGlutin, XformInput, GameLogic, Renderer> for Kernel<GameLogic>where
GameLogic: IGameLogic<EventInput = <XformInput as IUi>::EventInputFiltered, EventRender = <Renderer as IRenderer>::EventRender>,
<GameLogic as IGameLogic>::RenderObj: Into<Vec<<GameLogic as IGameLogic>::EventRender>>,
use default implementation for run method
Source§impl IUi for XformInput
impl IUi for XformInput
type EventInput = Event
type EventInputFiltered = InputFiltered
fn new() -> Self
fn process_input_events( &mut self, e: &[Self::EventInput], win_offset: (i32, i32), win_size: (u32, u32), ) -> Vec<InputFiltered>
Auto Trait Implementations§
impl Freeze for XformInput
impl RefUnwindSafe for XformInput
impl Send for XformInput
impl Sync for XformInput
impl Unpin for XformInput
impl UnwindSafe for XformInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more