pub struct ResolvedBorderSpec {
pub color: Rgba,
pub corner_radius: f32,
pub corner_radius_lg: f32,
pub line_width: f32,
pub opacity: f32,
pub shadow_enabled: bool,
pub padding_horizontal: f32,
pub padding_vertical: f32,
}Expand description
A resolved (non-optional) border specification produced after theme resolution.
Unlike DefaultsBorderSpec and WidgetBorderSpec, all fields are
required (non-optional) because resolution has already filled in all defaults.
Phase 93-01 (G1): no Default derive. ResolvedBorderSpec must be
constructed from a fully populated unresolved source; any “zero”
instance is a placeholder sentinel built manually (see
resolve::validate_helpers::resolved_border_spec_sentinel).
Fields§
§color: RgbaBorder color.
corner_radius: f32Corner radius in logical pixels.
corner_radius_lg: f32Large corner radius in logical pixels (defaults only).
line_width: f32Border stroke width in logical pixels.
opacity: f32Border alpha multiplier 0.0-1.0 (defaults only).
shadow_enabled: boolWhether the bordered element has a drop shadow.
padding_horizontal: f32Horizontal padding inside the border in logical pixels.
padding_vertical: f32Vertical padding inside the border in logical pixels.
Trait Implementations§
Source§impl Clone for ResolvedBorderSpec
impl Clone for ResolvedBorderSpec
Source§fn clone(&self) -> ResolvedBorderSpec
fn clone(&self) -> ResolvedBorderSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more