pub trait MiniquadEventHandlerExt: EventHandler {
// Required methods
fn init(self) -> Self;
fn interpolation(&self) -> bool;
fn set_interpolation(&mut self, interpolate: bool);
fn maintain_aspect_ratio(&self) -> bool;
fn set_maintain_aspect_ratio(&mut self, maintain: bool);
}
Available on crate feature
dep_miniquad
only.Expand description
An extension trait for miniquad’s MiniquadEventHandler
.
It allows lazy initialization and other methods.
Required Methods§
Sourcefn interpolation(&self) -> bool
fn interpolation(&self) -> bool
Whether it interpolates the scaled pixels.
Sourcefn set_interpolation(&mut self, interpolate: bool)
fn set_interpolation(&mut self, interpolate: bool)
Set whether to interpolate
the scaled pixels.
Sourcefn maintain_aspect_ratio(&self) -> bool
fn maintain_aspect_ratio(&self) -> bool
Whether the aspect ratio is maintained on window resize.
Sourcefn set_maintain_aspect_ratio(&mut self, maintain: bool)
fn set_maintain_aspect_ratio(&mut self, maintain: bool)
Set whether to maintain
the aspect ratio on window resize.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl MiniquadEventHandlerExt for MiniquadPixels
Available on crate feature
alloc
only.