pub struct WindowDefinition {
pub id: u8,
pub x: u16,
pub y: u16,
pub width: u16,
pub height: u16,
}Expand description
Window definition specifies the on-screen rectangle for rendering.
Fields§
§id: u8Window ID
x: u16Horizontal position (x coordinate)
y: u16Vertical position (y coordinate)
width: u16Window width
height: u16Window height
Trait Implementations§
Source§impl Clone for WindowDefinition
impl Clone for WindowDefinition
Source§fn clone(&self) -> WindowDefinition
fn clone(&self) -> WindowDefinition
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 WindowDefinition
Source§impl Debug for WindowDefinition
impl Debug for WindowDefinition
Source§impl Default for WindowDefinition
impl Default for WindowDefinition
Source§fn default() -> WindowDefinition
fn default() -> WindowDefinition
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WindowDefinition
impl RefUnwindSafe for WindowDefinition
impl Send for WindowDefinition
impl Sync for WindowDefinition
impl Unpin for WindowDefinition
impl UnsafeUnpin for WindowDefinition
impl UnwindSafe for WindowDefinition
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