Type Alias zng_unit::DipCornerRadius

source ·
pub type DipCornerRadius = CornerRadius2D<Dip, Dip>;
Expand description

Corner-radius in device independent pixels.

Aliased Type§

struct DipCornerRadius {
    pub top_left: Size2D<Dip, Dip>,
    pub top_right: Size2D<Dip, Dip>,
    pub bottom_right: Size2D<Dip, Dip>,
    pub bottom_left: Size2D<Dip, Dip>,
}

Fields§

§top_left: Size2D<Dip, Dip>

Top-left corner radius.

§top_right: Size2D<Dip, Dip>

Top-right corner radius.

§bottom_right: Size2D<Dip, Dip>

Bottom-right corner radius.

§bottom_left: Size2D<Dip, Dip>

Bottom-left corner radius.

Trait Implementations§

source§

impl DipToPx for DipCornerRadius

source§

type AsPx = CornerRadius2D<Px, Px>

Self equivalent in Px units.
source§

fn to_px(self, scale_factor: Factor) -> Self::AsPx

Multiply the Dip self by the scale.