Struct rin::window::Window [−][src]
pub struct Window { /* fields omitted */ }
Implementations
impl Window
[src]
impl Window
[src]pub fn new(w: u32, h: u32, title: &str) -> Result<Window, Error>
[src]
pub fn glfw_window_mut(&mut self) -> &mut Window
[src]
pub fn glfw_window(&self) -> &Window
[src]
pub fn set_adaptative_swap_interval(&mut self)
[src]
pub fn window_mode(&self) -> WindowMode<'_>
[src]
pub fn set_monitor(
&mut self,
mode: WindowMode<'_>,
xpos: i32,
ypos: i32,
width: u32,
height: u32,
refresh_rate: Option<u32>
)
[src]
&mut self,
mode: WindowMode<'_>,
xpos: i32,
ypos: i32,
width: u32,
height: u32,
refresh_rate: Option<u32>
)
Trait Implementations
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>
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]
pub fn curr_frame_duration_ns(&self) -> u128
[src]
pub fn curr_frame_duration_s(&self) -> f64
[src]
pub fn viewport(&self) -> Rect<i32>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Window
impl !Send for Window
impl !Sync for Window
impl Unpin for Window
impl !UnwindSafe for Window
Blanket Implementations
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]