[][src]Struct gauge_sys::ffi::GaugeDrawData

#[repr(C)]pub struct GaugeDrawData {
    pub mx: f64,
    pub my: f64,
    pub t: f64,
    pub dt: f64,
    pub window_width: u32,
    pub window_height: u32,
    pub framebuffer_width: u32,
    pub framebuffer_height: u32,
}

Frame data from the Gauge API on PreDraw and PostDraw events

Fields

mx: f64

Mouse X coordinate

my: f64

Mouse Y coordinate

t: f64

Simulator time (seconds)

dt: f64

Time since last draw in seconds

window_width: u32

Width of the window in pixels

window_height: u32

Height of the window in pixels

framebuffer_width: u32

Width of the framebuffer in pixels

framebuffer_height: u32

Height of the framebuffer in pixels

Trait Implementations

impl Clone for GaugeDrawData[src]

impl Copy for GaugeDrawData[src]

impl Debug for GaugeDrawData[src]

Auto Trait Implementations

impl RefUnwindSafe for GaugeDrawData

impl Send for GaugeDrawData

impl Sync for GaugeDrawData

impl Unpin for GaugeDrawData

impl UnwindSafe for GaugeDrawData

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.