Struct limn_core::window::Window
[−]
[src]
pub struct Window { pub window: GlWindow, }
A simple wrapper around a glutin::GlWindow
.
Fields
window: GlWindow
Methods
impl Window
[src]
pub fn new(window_builder: WindowBuilder, events_loop: &EventsLoop) -> Self
[src]
pub fn gl(&self) -> Rc<Gl>
[src]
pub fn swap_buffers(&self)
[src]
pub fn hidpi_factor(&self) -> f32
[src]
pub fn resize(&mut self, width: u32, height: u32)
[src]
pub fn size_px(&self) -> DeviceUintSize
[src]
Get the size of the client area of the window in actual pixels. This is the size of the framebuffer
pub fn size_dp(&self) -> Size
[src]
Get the size of the client area of the window in density independent pixels.