pub struct WindowSize(pub UVec2);Expand description
The size of the inside of the window, in physical pixels: what the
frame is drawn into, and what the UI’s views
(RenderFrame::ui) cover. A resource
of development builds (feature dev).
App::run sets it before each frame, and
Offscreen::frame to the size of its frames.
App::update alone leaves it as it was: zero,
until a test sets it. With nadir_input::Input::pointer and the
virtual resolution, it maps the pointer to a UI’s units
(nadir_render::UiSpace::new).
Tuple Fields§
§0: UVec2Trait Implementations§
Source§impl Clone for WindowSize
impl Clone for WindowSize
impl Copy for WindowSize
Source§impl Debug for WindowSize
impl Debug for WindowSize
Source§impl Default for WindowSize
impl Default for WindowSize
impl Eq for WindowSize
Source§impl PartialEq for WindowSize
impl PartialEq for WindowSize
impl StructuralPartialEq for WindowSize
Auto Trait Implementations§
impl Forget for WindowSize
impl Freeze for WindowSize
impl Move for WindowSize
impl RefUnwindSafe for WindowSize
impl Send for WindowSize
impl Sync for WindowSize
impl Unpin for WindowSize
impl UnsafeUnpin for WindowSize
impl UnwindSafe for WindowSize
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more