[go: up one dir, main page]

Type Alias i_slint_core::graphics::Rect

source ·
pub type Rect = Rect<Coord>;
Expand description

2D Rectangle

Aliased Type§

struct Rect {
    pub origin: Point2D<f32, UnknownUnit>,
    pub size: Size2D<f32, UnknownUnit>,
}

Fields§

§origin: Point2D<f32, UnknownUnit>§size: Size2D<f32, UnknownUnit>

Trait Implementations§

source§

impl<T: Copy, U> RectLengths for Rect<T, U>

§

type LengthType = Length<T, U>

§

type SizeType = Size2D<T, U>

source§

fn size_length(&self) -> Self::SizeType

source§

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

source§

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