pub struct PixelsInit<'a> { /* private fields */ }Expand description
An initialization argument passed to the application.
Implementations§
Source§impl PixelsInit<'_>
impl PixelsInit<'_>
Sourcepub fn set_render_window_size(&mut self, width: u32, height: u32)
pub fn set_render_window_size(&mut self, width: u32, height: u32)
Set the internal render window size.
Sourcepub fn set_updates_per_second(&mut self, updates_per_second: f32)
pub fn set_updates_per_second(&mut self, updates_per_second: f32)
Set update framerate in updates per second count.
§Panics
Panics if updates_per_second is less or equal to 0.
Auto Trait Implementations§
impl<'a> Freeze for PixelsInit<'a>
impl<'a> RefUnwindSafe for PixelsInit<'a>
impl<'a> Send for PixelsInit<'a>
impl<'a> Sync for PixelsInit<'a>
impl<'a> Unpin for PixelsInit<'a>
impl<'a> !UnwindSafe for PixelsInit<'a>
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