| 81 | /// Represents a custom element with a background color, corner radii, and associated data. |
| 82 | #[derive(Debug, Clone)] |
| 83 | pub struct Custom<CustomElementData> { |
| 84 | /// The background color of the custom element. |
| 85 | pub background_color: Color, |
| 86 | /// The corner radii for rounded edges. |
| 87 | pub corner_radii: CornerRadii, |
| 88 | /// The custom element data. |
| 89 | pub data: CustomElementData, |
| 90 | } |
| 91 | |
| 92 | impl CornerRadii { |
| 93 | pub fn clamp_to_size(&mut self, width: f32, height: f32) { |
no outgoing calls
no test coverage detected