| 12 | /// Represents a text element with styling attributes. |
| 13 | #[derive(Debug, Clone)] |
| 14 | pub struct Text { |
| 15 | /// The text content. |
| 16 | pub text: String, |
| 17 | /// The color of the text. |
| 18 | pub color: Color, |
| 19 | /// The font size. |
| 20 | pub font_size: u16, |
| 21 | /// The spacing between letters. |
| 22 | pub letter_spacing: u16, |
| 23 | /// The line height. |
| 24 | pub line_height: u16, |
| 25 | /// The font asset, if specified via `.font()`. |
| 26 | pub font_asset: Option<&'static crate::renderer::FontAsset>, |
| 27 | } |
| 28 | |
| 29 | /// Defines individual corner radii for an element. |
| 30 | #[derive(Debug, Clone)] |
no outgoing calls
no test coverage detected