Trait MiniquadEventHandlerExt

Source
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§

Source

fn init(self) -> Self

Returns the event handler initialized.

Source

fn interpolation(&self) -> bool

Whether it interpolates the scaled pixels.

Source

fn set_interpolation(&mut self, interpolate: bool)

Set whether to interpolate the scaled pixels.

Source

fn maintain_aspect_ratio(&self) -> bool

Whether the aspect ratio is maintained on window resize.

Source

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§

Source§

impl MiniquadEventHandlerExt for MiniquadPixels

Available on crate feature alloc only.