Struct rin_window::glfw_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>[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]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 event_stream<'a>(&mut self) -> Stream<'a, Event>[src]
fn set_swap_interval(&mut self, frames: u32)[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 aspect_ratio(&self) -> f32[src]
fn set_position(&mut self, pos: Pnt2<i32>)[src]
fn position(&self) -> Pnt2<i32>[src]
fn dpi(&self) -> u32[src]
fn resolution_factor(&self) -> f32[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]
fn curr_frame_duration_ns(&self) -> u128[src]
fn curr_frame_duration_s(&self) -> f64[src]
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]