Trait rin::prelude::WindowExt [−][src]
pub trait WindowExt {
Show methods
pub fn make_current(&mut self);
pub fn swap_buffers(&mut self);
pub fn update(&mut self);
pub fn fps(&self) -> f64;
pub fn frames(&self) -> u64;
pub fn set_swap_interval(&mut self, frames: u32);
pub fn event_stream<'a>(&mut self) -> Stream<'a, Event>;
pub fn curr_frame_duration(&self) -> Duration;
pub fn time_elapsed_ns(&self) -> u64;
pub fn size(
&self
) -> Matrix<i32, U2, U1, <DefaultAllocator as Allocator<i32, U2, U1>>::Buffer>;
pub fn width(&self) -> i32;
pub fn height(&self) -> i32;
pub fn position(&self) -> Point<i32, U2>;
pub fn aspect_ratio(&self) -> f32;
pub fn set_position(&mut self, pos: Point<i32, U2>);
pub fn screen_size(
&self
) -> Matrix<u32, U2, U1, <DefaultAllocator as Allocator<u32, U2, U1>>::Buffer>;
pub fn should_close(&self) -> bool;
pub fn set_should_close(&mut self);
pub fn set_fullscreen(&mut self, fullscreen: bool);
pub fn set_cursor(&mut self, cursor: Cursor);
pub fn set_cursor_mode(&mut self, cursor_mode: CursorMode);
pub fn curr_frame_duration_ns(&self) -> u128 { ... }
pub fn curr_frame_duration_s(&self) -> f64 { ... }
pub fn dpi(&self) -> u32 { ... }
pub fn resolution_factor(&self) -> f32 { ... }
pub fn viewport(&self) -> Rect<i32> { ... }
}Required methods
pub fn make_current(&mut self)[src]
pub fn swap_buffers(&mut self)[src]
pub fn update(&mut self)[src]
pub fn fps(&self) -> f64[src]
pub fn frames(&self) -> u64[src]
pub fn set_swap_interval(&mut self, frames: u32)[src]
pub fn event_stream<'a>(&mut self) -> Stream<'a, Event>[src]
pub fn curr_frame_duration(&self) -> Duration[src]
pub fn time_elapsed_ns(&self) -> u64[src]
pub fn size(
&self
) -> Matrix<i32, U2, U1, <DefaultAllocator as Allocator<i32, U2, U1>>::Buffer>[src]
&self
) -> Matrix<i32, U2, U1, <DefaultAllocator as Allocator<i32, U2, U1>>::Buffer>
pub fn width(&self) -> i32[src]
pub fn height(&self) -> i32[src]
pub fn position(&self) -> Point<i32, U2>[src]
pub fn aspect_ratio(&self) -> f32[src]
pub fn set_position(&mut self, pos: Point<i32, U2>)[src]
pub fn screen_size(
&self
) -> Matrix<u32, U2, U1, <DefaultAllocator as Allocator<u32, U2, U1>>::Buffer>[src]
&self
) -> Matrix<u32, U2, U1, <DefaultAllocator as Allocator<u32, U2, U1>>::Buffer>
pub fn should_close(&self) -> bool[src]
pub fn set_should_close(&mut self)[src]
pub fn set_fullscreen(&mut self, fullscreen: bool)[src]
pub fn set_cursor(&mut self, cursor: Cursor)[src]
pub fn set_cursor_mode(&mut self, cursor_mode: CursorMode)[src]
Provided methods
pub fn curr_frame_duration_ns(&self) -> u128[src]
pub fn curr_frame_duration_s(&self) -> f64[src]
pub fn dpi(&self) -> u32[src]
pub fn resolution_factor(&self) -> f32[src]
pub fn viewport(&self) -> Rect<i32>[src]
Implementors
impl WindowExt for Window[src]
impl WindowExt for Window[src]pub fn make_current(&mut self)[src]
pub fn swap_buffers(&mut self)[src]
pub fn update(&mut self)[src]
pub fn fps(&self) -> f64[src]
pub fn frames(&self) -> u64[src]
pub fn event_stream<'a>(&mut self) -> Stream<'a, Event>[src]
pub fn set_swap_interval(&mut self, frames: u32)[src]
pub fn curr_frame_duration(&self) -> Duration[src]
pub fn time_elapsed_ns(&self) -> u64[src]
pub fn size(
&self
) -> Matrix<i32, U2, U1, <DefaultAllocator as Allocator<i32, U2, U1>>::Buffer>[src]
&self
) -> Matrix<i32, U2, U1, <DefaultAllocator as Allocator<i32, U2, U1>>::Buffer>
pub fn width(&self) -> i32[src]
pub fn height(&self) -> i32[src]
pub fn aspect_ratio(&self) -> f32[src]
pub fn set_position(&mut self, pos: Point<i32, U2>)[src]
pub fn position(&self) -> Point<i32, U2>[src]
pub fn dpi(&self) -> u32[src]
pub fn resolution_factor(&self) -> f32[src]
pub fn screen_size(
&self
) -> Matrix<u32, U2, U1, <DefaultAllocator as Allocator<u32, U2, U1>>::Buffer>[src]
&self
) -> Matrix<u32, U2, U1, <DefaultAllocator as Allocator<u32, U2, U1>>::Buffer>