[−][src]Struct rubidium::WinVertical
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.)
Methods
impl WinVertical
[src]
pub const fn new() -> Self
[src]
#[must_use]pub const fn win0_bottom(self) -> u32
[src]
#[must_use]pub const fn with_win0_bottom(self, u: u32) -> Self
[src]
pub fn set_win0_bottom(&mut self, u: u32)
[src]
#[must_use]pub const fn win0_top(self) -> u32
[src]
#[must_use]pub const fn with_win0_top(self, u: u32) -> Self
[src]
pub fn set_win0_top(&mut self, u: u32)
[src]
#[must_use]pub const fn win1_bottom(self) -> u32
[src]
#[must_use]pub const fn with_win1_bottom(self, u: u32) -> Self
[src]
pub fn set_win1_bottom(&mut self, u: u32)
[src]
#[must_use]pub const fn win1_top(self) -> u32
[src]
#[must_use]pub const fn with_win1_top(self, u: u32) -> Self
[src]
pub fn set_win1_top(&mut self, u: u32)
[src]
Trait Implementations
impl Clone for WinVertical
[src]
fn clone(&self) -> WinVertical
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for WinVertical
[src]
impl Debug for WinVertical
[src]
impl Default for WinVertical
[src]
fn default() -> WinVertical
[src]
impl Eq for WinVertical
[src]
impl PartialEq<WinVertical> for WinVertical
[src]
fn eq(&self, other: &WinVertical) -> bool
[src]
fn ne(&self, other: &WinVertical) -> bool
[src]
impl StructuralEq for WinVertical
[src]
impl StructuralPartialEq for WinVertical
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,