Struct event_loop::RenderArgs [−] [src]

pub struct RenderArgs {
    pub ext_dt: f64,
    pub width: u32,
    pub height: u32,
    pub draw_width: u32,
    pub draw_height: u32,
}

Render arguments

Fields

ext_dt

Extrapolated time in seconds, used to do smooth animation.

width

The width of rendered area in points.

height

The height of rendered area in points.

draw_width

The width of rendered area in pixels.

draw_height

The height of rendered area in pixels.

Methods

impl RenderArgs

fn viewport(&self) -> Viewport

Returns viewport information filling entire render area.

Trait Implementations

Derived Implementations

impl Debug for RenderArgs

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for RenderArgs

fn eq(&self, __arg_0: &RenderArgs) -> bool

fn ne(&self, __arg_0: &RenderArgs) -> bool

impl Clone for RenderArgs

fn clone(&self) -> RenderArgs

fn clone_from(&mut self, source: &Self)

impl Copy for RenderArgs