pub struct WinVertical(/* private fields */);
Expand description
Defines the vertical bounds of Window 0 and 1.
The bottom side is exclusive, the top side is inclusive.
If the bottom side is greater than 160, or if the top side is greater than the bottom side, then the bottom side counts as being 160.
(Remember that the GBA counts Y coordinates with 0 as the top.)
Implementations§
Source§impl WinVertical
impl WinVertical
pub const fn new() -> Self
pub const fn win0_bottom(self) -> u32
pub const fn with_win0_bottom(self, u: u32) -> Self
pub fn set_win0_bottom(&mut self, u: u32)
pub const fn win0_top(self) -> u32
pub const fn with_win0_top(self, u: u32) -> Self
pub fn set_win0_top(&mut self, u: u32)
pub const fn win1_bottom(self) -> u32
pub const fn with_win1_bottom(self, u: u32) -> Self
pub fn set_win1_bottom(&mut self, u: u32)
pub const fn win1_top(self) -> u32
pub const fn with_win1_top(self, u: u32) -> Self
pub fn set_win1_top(&mut self, u: u32)
Trait Implementations§
Source§impl Clone for WinVertical
impl Clone for WinVertical
Source§fn clone(&self) -> WinVertical
fn clone(&self) -> WinVertical
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 WinVertical
impl Debug for WinVertical
Source§impl Default for WinVertical
impl Default for WinVertical
Source§fn default() -> WinVertical
fn default() -> WinVertical
Returns the “default value” for a type. Read more
Source§impl PartialEq for WinVertical
impl PartialEq for WinVertical
impl Copy for WinVertical
impl Eq for WinVertical
impl StructuralPartialEq for WinVertical
Auto Trait Implementations§
impl Freeze for WinVertical
impl RefUnwindSafe for WinVertical
impl Send for WinVertical
impl Sync for WinVertical
impl Unpin for WinVertical
impl UnwindSafe for WinVertical
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