Struct solstice::viewport::Viewport[][src]

pub struct Viewport<T> { /* fields omitted */ }

Implementations

impl<T> Viewport<T> where
    T: Copy
[src]

pub fn new(x: T, y: T, width: T, height: T) -> Self[src]

pub fn x(&self) -> T[src]

pub fn y(&self) -> T[src]

pub fn width(&self) -> T[src]

pub fn height(&self) -> T[src]

pub fn position(&self) -> (T, T)[src]

pub fn dimensions(&self) -> (T, T)[src]

Trait Implementations

impl<T: Clone> Clone for Viewport<T>[src]

impl<T: Copy> Copy for Viewport<T>[src]

impl<T: Debug> Debug for Viewport<T>[src]

impl<T: Default> Default for Viewport<T>[src]

impl<T: Eq> Eq for Viewport<T>[src]

impl<A> From<Viewport<A>> for Quad<(A, A)> where
    A: Copy + Add<Output = A>, 
[src]

impl<T: Hash> Hash for Viewport<T>[src]

impl<T: PartialEq> PartialEq<Viewport<T>> for Viewport<T>[src]

impl<T> StructuralEq for Viewport<T>[src]

impl<T> StructuralPartialEq for Viewport<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Viewport<T> where
    T: RefUnwindSafe

impl<T> Send for Viewport<T> where
    T: Send

impl<T> Sync for Viewport<T> where
    T: Sync

impl<T> Unpin for Viewport<T> where
    T: Unpin

impl<T> UnwindSafe for Viewport<T> where
    T: UnwindSafe

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.