Trait mallumo::WinitWindow
[−]
[src]
pub trait WinitWindow { fn get_inner_size(&self) -> Option<(u32, u32)>; fn hidpi_factor(&self) -> f32; }
Types that have access to a glutin::Window
and can provide the necessary dimensions and hidpi
factor for converting glutin::Event
s to conrod::event::Input
, as well as set the mouse
cursor.
This allows users to pass either glium::Display
, glium::glutin::Window
or glutin::Window
to the conrod::backend::glutin::convert
function defined below.
Required Methods
fn get_inner_size(&self) -> Option<(u32, u32)>
Return the inner size of the window.
fn hidpi_factor(&self) -> f32
Return the window's DPI factor so that we can convert from pixel values to scalar values.