Struct raui_core::layout::CoordsMapping [−][src]
pub struct CoordsMapping { /* fields omitted */ }
Implementations
impl CoordsMapping
[src]
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 Clone for CoordsMapping
[src]fn clone(&self) -> CoordsMapping
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for CoordsMapping
[src]
impl Default for CoordsMapping
[src]impl<'de> Deserialize<'de> for CoordsMapping
[src]
impl<'de> Deserialize<'de> for CoordsMapping
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<CoordsMapping> for CoordsMapping
[src]
impl PartialEq<CoordsMapping> for CoordsMapping
[src]fn eq(&self, other: &CoordsMapping) -> bool
[src]
fn ne(&self, other: &CoordsMapping) -> bool
[src]
impl Serialize for CoordsMapping
[src]
impl Serialize for CoordsMapping
[src]impl StructuralPartialEq for CoordsMapping
[src]
impl StructuralPartialEq for CoordsMapping
[src]Auto Trait Implementations
impl RefUnwindSafe for CoordsMapping
impl RefUnwindSafe for CoordsMapping
impl Send for CoordsMapping
impl Send for CoordsMapping
impl Sync for CoordsMapping
impl Sync for CoordsMapping
impl Unpin for CoordsMapping
impl Unpin for CoordsMapping
impl UnwindSafe for CoordsMapping
impl UnwindSafe for CoordsMapping
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]