Struct three_d::frame::FrameInput [−][src]
pub struct FrameInput {
pub events: Vec<Event>,
pub elapsed_time: f64,
pub accumulated_time: f64,
pub viewport: Viewport,
pub window_width: usize,
pub window_height: usize,
pub device_pixel_ratio: f64,
pub first_frame: bool,
}Expand description
Input from the window to the rendering (and whatever else needs it) each frame.
Fields
events: Vec<Event>Expand description
A list of events which has occurred since last frame.
elapsed_time: f64Expand description
Milliseconds since last frame.
accumulated_time: f64Expand description
Milliseconds accumulated time since start.
viewport: ViewportExpand description
Viewport of the window in physical pixels (the size of the screen).
window_width: usizeExpand description
Width of the window in logical pixels.
window_height: usizeExpand description
Height of the window in logical pixels.
device_pixel_ratio: f64Expand description
Number of physical pixels for each logical pixel.
first_frame: boolExpand description
Whether or not this is the first frame.
Trait Implementations
impl Clone for FrameInput[src]
impl Clone for FrameInput[src]fn clone(&self) -> FrameInput[src]
fn clone(&self) -> FrameInput[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for FrameInput
impl Send for FrameInput
impl Sync for FrameInput
impl Unpin for FrameInput
impl UnwindSafe for FrameInput
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more