[−][src]Struct rubidium::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]
fn clone(&self) -> WinHorizontal
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for WinHorizontal
[src]
impl Debug for WinHorizontal
[src]
impl Default for WinHorizontal
[src]
fn default() -> WinHorizontal
[src]
impl Eq for WinHorizontal
[src]
impl PartialEq<WinHorizontal> for WinHorizontal
[src]
fn eq(&self, other: &WinHorizontal) -> bool
[src]
fn ne(&self, other: &WinHorizontal) -> bool
[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]
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>,