pub struct WindowPosition {
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
}Expand description
Represents a window’s position and dimensions on the screen.
Fields§
§x: i32The x-coordinate of the window’s top-left corner in screen coordinates.
y: i32The y-coordinate of the window’s top-left corner in screen coordinates.
width: i32The width of the window in pixels.
height: i32The height of the window in pixels.
Trait Implementations§
Source§impl Clone for WindowPosition
impl Clone for WindowPosition
Source§fn clone(&self) -> WindowPosition
fn clone(&self) -> WindowPosition
Returns a duplicate 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 WindowPosition
impl Debug for WindowPosition
Source§impl Default for WindowPosition
impl Default for WindowPosition
Source§fn default() -> WindowPosition
fn default() -> WindowPosition
Returns the “default value” for a type. Read more
impl Copy for WindowPosition
Auto Trait Implementations§
impl Freeze for WindowPosition
impl RefUnwindSafe for WindowPosition
impl Send for WindowPosition
impl Sync for WindowPosition
impl Unpin for WindowPosition
impl UnwindSafe for WindowPosition
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