Struct raui_core::layout::CoordsMapping[][src]

pub struct CoordsMapping { /* fields omitted */ }

Implementations

impl CoordsMapping[src]

pub fn new(real_area: Rect) -> Self[src]

pub fn new_scaling(real_area: Rect, scaling: CoordsMappingScaling) -> Self[src]

pub fn scale(&self) -> Scalar[src]

pub fn offset(&self) -> Vec2[src]

pub fn virtual_area(&self) -> Rect[src]

pub fn virtual_to_real_vec2(&self, coord: Vec2) -> Vec2[src]

pub fn real_to_virtual_vec2(&self, coord: Vec2) -> Vec2[src]

pub fn virtual_to_real_rect(&self, area: Rect) -> Rect[src]

pub fn real_to_virtual_rect(&self, area: Rect) -> Rect[src]

Trait Implementations

impl Clone for CoordsMapping[src]

impl Debug for CoordsMapping[src]

impl Default for CoordsMapping[src]

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

impl PartialEq<CoordsMapping> for CoordsMapping[src]

impl Serialize for CoordsMapping[src]

impl StructuralPartialEq for CoordsMapping[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Serialize for T where
    T: Serialize + ?Sized
[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.