[][src]Struct sdl2_timing::Sdl2Timing

pub struct Sdl2Timing<'a> { /* fields omitted */ }

Methods

impl<'a> Sdl2Timing<'a>[src]

pub fn new_for(
    vs: &'a VideoSubsystem,
    win: &Window
) -> Result<Sdl2Timing<'a>, String>
[src]

pub fn get_us_per_frame(&self) -> u32[src]

pub fn canvas_present_then_clear(
    &mut self,
    canvas: &mut Canvas<Window>,
    color: Color
)
[src]

It should be called at beginning of the main loop with the display canvas as argument and the color, which should be used to clear the canvas.

pub fn sample(&mut self, name: &'a str) -> (u32, u32)[src]

pub fn clear(&mut self)[src]

pub fn us_till_next_frame(&mut self) -> u32[src]

pub fn output(&self)[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Sdl2Timing<'a>

impl<'a> Send for Sdl2Timing<'a>

impl<'a> Sync for Sdl2Timing<'a>

impl<'a> Unpin for Sdl2Timing<'a>

impl<'a> UnwindSafe for Sdl2Timing<'a>

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, 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.