Struct nannou::ui::input::RenderArgs[]

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

Render arguments

Fields

Extrapolated time in seconds, used to do smooth animation.

The width of rendered area in points.

The height of rendered area in points.

The width of rendered area in pixels.

The height of rendered area in pixels.

Methods

impl RenderArgs

Returns viewport information filling entire render area.

Trait Implementations

impl Serialize for RenderArgs

Serialize this value into the given Serde serializer. Read more

impl Clone for RenderArgs

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for RenderArgs

Formats the value using the given formatter. Read more

impl From<RenderArgs> for Loop

Performs the conversion.

impl From<RenderArgs> for Event

Performs the conversion.

impl<'de> Deserialize<'de> for RenderArgs

Deserialize this value from the given Serde deserializer. Read more

impl Copy for RenderArgs

impl PartialEq<RenderArgs> for RenderArgs

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for RenderArgs

impl Sync for RenderArgs