pub struct FrameInputGenerator { /* private fields */ }Expand description
Use this to generate FrameInput for a new frame with a custom winit window. FrameInput is automatically generated if using the default Window.
Implementations§
Source§impl FrameInputGenerator
impl FrameInputGenerator
Sourcepub fn from_winit_window(window: &Window) -> Self
Available on crate feature window only.
pub fn from_winit_window(window: &Window) -> Self
window only.Creates a new frame input generator from a winit window.
Sourcepub fn generate(&mut self, context: &Context) -> FrameInput
Available on crate feature window only.
pub fn generate(&mut self, context: &Context) -> FrameInput
window only.Generates FrameInput for a new frame. This should be called each frame and the generated data should only be used for one frame.
Sourcepub fn handle_winit_window_event(&mut self, event: &WindowEvent<'_>)
Available on crate feature window only.
pub fn handle_winit_window_event(&mut self, event: &WindowEvent<'_>)
window only.Handle the WindowEvent generated by a winit event loop.
Auto Trait Implementations§
impl Freeze for FrameInputGenerator
impl RefUnwindSafe for FrameInputGenerator
impl Send for FrameInputGenerator
impl Sync for FrameInputGenerator
impl Unpin for FrameInputGenerator
impl UnwindSafe for FrameInputGenerator
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