[][src]Struct rubidium::WinHorizontal

#[repr(transparent)]pub struct WinHorizontal(_);

Defines the horizontal bounds of Window 0 and 1.

The right side is exclusive, the left side is inclusive.

If the right side is greater than 240, or if the left side is greater than the right side, then the right side counts as being 240.

Methods

impl WinHorizontal[src]

pub const fn new() -> Self[src]

#[must_use]pub const fn win0_right(self) -> u32[src]

#[must_use]pub const fn with_win0_right(self, u: u32) -> Self[src]

pub fn set_win0_right(&mut self, u: u32)[src]

#[must_use]pub const fn win0_left(self) -> u32[src]

#[must_use]pub const fn with_win0_left(self, u: u32) -> Self[src]

pub fn set_win0_left(&mut self, u: u32)[src]

#[must_use]pub const fn win1_right(self) -> u32[src]

#[must_use]pub const fn with_win1_right(self, u: u32) -> Self[src]

pub fn set_win1_right(&mut self, u: u32)[src]

#[must_use]pub const fn win1_left(self) -> u32[src]

#[must_use]pub const fn with_win1_left(self, u: u32) -> Self[src]

pub fn set_win1_left(&mut self, u: u32)[src]

Trait Implementations

impl Clone for WinHorizontal[src]

impl Copy for WinHorizontal[src]

impl Debug for WinHorizontal[src]

impl Default for WinHorizontal[src]

impl Eq for WinHorizontal[src]

impl PartialEq<WinHorizontal> for WinHorizontal[src]

impl StructuralEq for WinHorizontal[src]

impl StructuralPartialEq for WinHorizontal[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.