pub struct SoftInit<'a> { /* private fields */ }
Expand description
An initialization argument passed to the application.
Implementations§
Source§impl SoftInit<'_>
impl SoftInit<'_>
Sourcepub fn set_scale(&mut self, scale: u32)
pub fn set_scale(&mut self, scale: u32)
Set internal render scale.
If case of 0
scale
value automatic scaling is used.
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
.
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_border_color(&mut self, color: u32)
pub fn set_border_color(&mut self, color: u32)
Set the color of the border to be rendered.
Auto Trait Implementations§
impl<'a> Freeze for SoftInit<'a>
impl<'a> RefUnwindSafe for SoftInit<'a>
impl<'a> Send for SoftInit<'a>
impl<'a> Sync for SoftInit<'a>
impl<'a> Unpin for SoftInit<'a>
impl<'a> !UnwindSafe for SoftInit<'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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.