Module shape_def

Module shape_def 

Source
Expand description

Defines the Shape enum and its variants, used for describing the geometric form of UI components.

This module provides a flexible way to define very basic components’ shape, including crate::surface::surface and crate::fluid_glass::fluid_glass.

Enums§

ResolvedShape
Resolved representation of a shape for rendering.
RoundedCorner
Corner definition: capsule or manual radius with per-corner G2.
Shape
Shape definitions for UI components.

Constants§

CAPSULE_G2_K_VALUE
Capsule shapes use a constant g2_k_value to maintain circular ends.