Type Alias zng_unit::PxCornerRadius

source ·
pub type PxCornerRadius = CornerRadius2D<Px, Px>;
Expand description

Corner-radius in device pixels.

Aliased Type§

struct PxCornerRadius {
    pub top_left: Size2D<Px, Px>,
    pub top_right: Size2D<Px, Px>,
    pub bottom_right: Size2D<Px, Px>,
    pub bottom_left: Size2D<Px, Px>,
}

Fields§

§top_left: Size2D<Px, Px>

Top-left corner radius.

§top_right: Size2D<Px, Px>

Top-right corner radius.

§bottom_right: Size2D<Px, Px>

Bottom-right corner radius.

§bottom_left: Size2D<Px, Px>

Bottom-left corner radius.

Trait Implementations§

source§

impl PxToDip for PxCornerRadius

source§

type AsDip = CornerRadius2D<Dip, Dip>

Self equivalent in Dip units.
source§

fn to_dip(self, scale_factor: Factor) -> Self::AsDip

Divide the Px self by the scale.