Trait rin_window::window::WindowExt[][src]

pub trait WindowExt {
Show methods fn make_current(&mut self);
fn swap_buffers(&mut self);
fn update(&mut self);
fn fps(&self) -> f64;
fn frames(&self) -> u64;
fn set_swap_interval(&mut self, frames: u32);
fn event_stream<'a>(&mut self) -> Stream<'a, Event>;
fn curr_frame_duration(&self) -> Duration;
fn time_elapsed_ns(&self) -> u64;
fn size(&self) -> Vec2<i32>;
fn width(&self) -> i32;
fn height(&self) -> i32;
fn position(&self) -> Pnt2<i32>;
fn aspect_ratio(&self) -> f32;
fn set_position(&mut self, pos: Pnt2<i32>);
fn screen_size(&self) -> Vec2<u32>;
fn should_close(&self) -> bool;
fn set_should_close(&mut self);
fn set_fullscreen(&mut self, fullscreen: bool);
fn set_cursor(&mut self, cursor: Cursor);
fn set_cursor_mode(&mut self, cursor_mode: CursorMode); fn curr_frame_duration_ns(&self) -> u128 { ... }
fn curr_frame_duration_s(&self) -> f64 { ... }
fn dpi(&self) -> u32 { ... }
fn resolution_factor(&self) -> f32 { ... }
fn viewport(&self) -> Rect<i32> { ... }
}

Required methods

fn make_current(&mut self)[src]

fn swap_buffers(&mut self)[src]

fn update(&mut self)[src]

fn fps(&self) -> f64[src]

fn frames(&self) -> u64[src]

fn set_swap_interval(&mut self, frames: u32)[src]

fn event_stream<'a>(&mut self) -> Stream<'a, Event>[src]

fn curr_frame_duration(&self) -> Duration[src]

fn time_elapsed_ns(&self) -> u64[src]

fn size(&self) -> Vec2<i32>[src]

fn width(&self) -> i32[src]

fn height(&self) -> i32[src]

fn position(&self) -> Pnt2<i32>[src]

fn aspect_ratio(&self) -> f32[src]

fn set_position(&mut self, pos: Pnt2<i32>)[src]

fn screen_size(&self) -> Vec2<u32>[src]

fn should_close(&self) -> bool[src]

fn set_should_close(&mut self)[src]

fn set_fullscreen(&mut self, fullscreen: bool)[src]

fn set_cursor(&mut self, cursor: Cursor)[src]

fn set_cursor_mode(&mut self, cursor_mode: CursorMode)[src]

Loading content...

Provided methods

fn curr_frame_duration_ns(&self) -> u128[src]

fn curr_frame_duration_s(&self) -> f64[src]

fn dpi(&self) -> u32[src]

fn resolution_factor(&self) -> f32[src]

fn viewport(&self) -> Rect<i32>[src]

Loading content...

Implementors

impl WindowExt for Window[src]

Loading content...