pub struct Layout {
pub scale: u32,
pub offset_x: f32,
pub offset_y: f32,
}Expand description
Where the console goes in a window: integer scale and the top-left
pixel offset that centres it. Everything around it is letterbox.
Fields§
§scale: u32Pixels per logical pixel; never 0.
offset_x: f32Left edge of the console in window pixels (negative if it overflows).
offset_y: f32Top edge of the console in window pixels (negative if it overflows).
Trait Implementations§
impl Copy for Layout
impl StructuralPartialEq for Layout
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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