Struct nannou::state::window::Window
[−]
[src]
pub struct Window { pub id: Option<Id>, pub width: f64, pub height: f64, pub hidpi_factor: f64, }
State of the window in focus.
Fields
id: Option<Id>
ID of the window currently in focus.
width: f64
The width of the focused window agnostic of DPI.
This is equal to the pixel width divided by the hidpi_factor.
height: f64
The height of the focused window agnostic of DPI.
This is equal to the pixel height divided by the hidpi_factor.
hidpi_factor: f64
The high "dots-per-inch" multiplier that describes the density of the screens pixels.
Methods
impl Window
[src]
fn new() -> Self
[src]
Initialise the window state.
fn size(&self) -> Vector2<f64>
[src]
Return the width
and height
as a Vector2
.
Trait Implementations
impl Copy for Window
[src]
impl Clone for Window
[src]
fn clone(&self) -> Window
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more