[][src]Struct rubidium::WinVertical

#[repr(transparent)]pub struct 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]

#[must_use]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]

#[must_use]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]

#[must_use]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]

#[must_use]pub fn set_win1_top(&mut self, u: u32)[src]

Trait Implementations

impl Clone for WinVertical[src]

impl Copy for WinVertical[src]

impl Debug for WinVertical[src]

impl Default for WinVertical[src]

impl Eq for WinVertical[src]

impl PartialEq<WinVertical> for WinVertical[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.