Struct rin::scene::transformation::Viewport[][src]

pub struct Viewport { /* fields omitted */ }

Implementations

impl Viewport[src]

pub fn new(viewport: Rect<i32>) -> Viewport[src]

pub fn rect(&self) -> &Rect<i32>[src]

pub fn has_changed(&self) -> bool[src]

Methods from Deref<Target = Rect<i32>>

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

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

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

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

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

pub fn max_pos(&self) -> Point<T, U2>[src]

pub fn min_pos(&self) -> Point<T, U2>[src]

pub fn overlaps(&self, other: &Rect<T>) -> bool[src]

pub fn intersection(&self, other: &Rect<T>) -> Rect<T>[src]

pub fn size(
    &self
) -> Matrix<T, U2, U1, <DefaultAllocator as Allocator<T, U2, U1>>::Buffer>
[src]

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

pub fn top_left(&self) -> Point<T, U2>[src]

pub fn top_right(&self) -> Point<T, U2>[src]

pub fn bottom_left(&self) -> Point<T, U2>[src]

pub fn bottom_right(&self) -> Point<T, U2>[src]

pub fn center(&self) -> Point<T, U2> where
    i32: SubsetOf<T>, 
[src]

Trait Implementations

impl Debug for Viewport[src]

impl Deref for Viewport[src]

type Target = Rect<i32>

The resulting type after dereferencing.

impl DerefMut for Viewport[src]

impl<'de> Deserialize<'de> for Viewport[src]

impl Serialize for Viewport[src]

Auto Trait Implementations

impl RefUnwindSafe for Viewport

impl Send for Viewport

impl Sync for Viewport

impl Unpin for Viewport

impl UnwindSafe for Viewport

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<U, T> AsUniform<dyn Deref<Target = [i32; 4]> + 'static> for U where
    T: AsUniform<dyn AsRef<[i32; 4]> + 'static>,
    U: Deref<Target = T>, 
[src]

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

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

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

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

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

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

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

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]