Struct nannou::state::window::Window
[−]
[src]
pub struct Window { pub id: Option<Id>, }
State of the window in focus.
Fields
id: Option<Id>
ID of the window currently in focus.
Methods
impl Window
[src]
pub fn new() -> Self
[src]
Initialise the window state.
pub fn id(&self) -> Id
[src]
Expects that there will be a window::Id
(the common case) and **panic!**s otherwise.
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
impl Debug for Window
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more