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) -> Vec2[src]
pub fn offset(&self) -> Vec2[src]
pub fn virtual_area(&self) -> Rect[src]
pub fn virtual_to_real_vec2(&self, coord: Vec2, local_space: bool) -> Vec2[src]
pub fn real_to_virtual_vec2(&self, coord: Vec2, local_space: bool) -> Vec2[src]
pub fn virtual_to_real_rect(&self, area: Rect, local_space: bool) -> Rect[src]
pub fn real_to_virtual_rect(&self, area: Rect, local_space: bool) -> Rect[src]
Trait Implementations
impl Clone for CoordsMapping[src]
impl Clone for CoordsMapping[src]fn clone(&self) -> CoordsMapping[src]
fn clone(&self) -> CoordsMapping[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for CoordsMapping[src]
impl Debug for CoordsMapping[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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<CoordsMapping> for CoordsMapping[src]
impl PartialEq<CoordsMapping> for CoordsMapping[src]fn eq(&self, other: &CoordsMapping) -> bool[src]
fn eq(&self, other: &CoordsMapping) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &CoordsMapping) -> bool[src]
fn ne(&self, other: &CoordsMapping) -> bool[src]This method tests for !=.
impl Serialize for CoordsMapping[src]
impl Serialize for CoordsMapping[src]impl StructuralPartialEq for CoordsMapping[src]
Auto Trait Implementations
impl RefUnwindSafe for CoordsMapping
impl Send for CoordsMapping
impl Sync for CoordsMapping
impl Unpin for CoordsMapping
impl UnwindSafe for CoordsMapping
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,