Trait i_slint_core::lengths::PointLengths

source ·
pub trait PointLengths {
    type LengthType;

    // Required methods
    fn x_length(&self) -> Self::LengthType;
    fn y_length(&self) -> Self::LengthType;
}

Required Associated Types§

Required Methods§

source

fn x_length(&self) -> Self::LengthType

source

fn y_length(&self) -> Self::LengthType

Implementations on Foreign Types§

source§

impl<T: Copy, U> PointLengths for Point2D<T, U>

source§

type LengthType = Length<T, U>

source§

fn x_length(&self) -> Self::LengthType

source§

fn y_length(&self) -> Self::LengthType

source§

impl<T: Copy, U> PointLengths for Vector2D<T, U>

source§

type LengthType = Length<T, U>

source§

fn x_length(&self) -> Self::LengthType

source§

fn y_length(&self) -> Self::LengthType

Implementors§