pub struct WindowDimensions {
pub width: i32,
pub height: i32,
}
Expand description
Dimensions of the window.
Fields§
§width: i32
The width of the viewport of the browser window.
height: i32
The height of the viewport of the browser window.
Implementations§
Source§impl WindowDimensions
impl WindowDimensions
Sourcepub fn get_dimensions(window: &Window) -> Self
pub fn get_dimensions(window: &Window) -> Self
Gets the dimensions of the browser window.
Trait Implementations§
Source§impl Clone for WindowDimensions
impl Clone for WindowDimensions
Source§fn clone(&self) -> WindowDimensions
fn clone(&self) -> WindowDimensions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WindowDimensions
impl Debug for WindowDimensions
impl Copy for WindowDimensions
Auto Trait Implementations§
impl Freeze for WindowDimensions
impl RefUnwindSafe for WindowDimensions
impl Send for WindowDimensions
impl Sync for WindowDimensions
impl Unpin for WindowDimensions
impl UnwindSafe for WindowDimensions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, V> IntoOptPropValue<V> for Twhere
T: IntoPropValue<Option<V>>,
impl<T, V> IntoOptPropValue<V> for Twhere
T: IntoPropValue<Option<V>>,
Source§fn into_opt_prop_value(self) -> Option<V>
fn into_opt_prop_value(self) -> Option<V>
Convert
self
to an optional value of a Properties
struct.Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.