Struct rin::scene::transformation::Viewport [−][src]
pub struct Viewport { /* fields omitted */ }
Implementations
impl Viewport
[src]
impl Viewport
[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]
&self
) -> Matrix<T, U2, U1, <DefaultAllocator as Allocator<T, U2, U1>>::Buffer>
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]
i32: SubsetOf<T>,
Trait Implementations
impl<'de> Deserialize<'de> for Viewport
[src]
impl<'de> Deserialize<'de> for Viewport
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Viewport, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Viewport, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Serialize for Viewport
[src]
impl Serialize for Viewport
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
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<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<U, T> AsUniform<dyn Deref<Target = [i32; 4]> + 'static> for U where
T: AsUniform<dyn AsRef<[i32; 4]> + 'static>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[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]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,