pub struct WindowResized {
pub window: Entity,
pub width: u32,
pub height: u32,
}Expand description
An event for signaling a window resize.
Fields§
§window: Entity§width: u32§height: u32Trait Implementations§
Source§impl Clone for WindowResized
impl Clone for WindowResized
Source§fn clone(&self) -> WindowResized
fn clone(&self) -> WindowResized
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WindowResized
Source§impl Debug for WindowResized
impl Debug for WindowResized
Source§impl Default for WindowResized
impl Default for WindowResized
Source§fn default() -> WindowResized
fn default() -> WindowResized
Returns the “default value” for a type. Read more
impl Eq for WindowResized
Source§impl Hash for WindowResized
impl Hash for WindowResized
Source§impl Ord for WindowResized
impl Ord for WindowResized
Source§fn cmp(&self, other: &WindowResized) -> Ordering
fn cmp(&self, other: &WindowResized) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for WindowResized
impl PartialEq for WindowResized
Source§impl PartialOrd for WindowResized
impl PartialOrd for WindowResized
impl StructuralPartialEq for WindowResized
Auto Trait Implementations§
impl Freeze for WindowResized
impl RefUnwindSafe for WindowResized
impl Send for WindowResized
impl Sync for WindowResized
impl Unpin for WindowResized
impl UnsafeUnpin for WindowResized
impl UnwindSafe for WindowResized
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more