blob: 5f6abe58167f0447dd6a24d720fc912fb694d218 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
use iced_native::{Color, Font, HorizontalAlignment, Rectangle, VerticalAlignment};
/// A text node to be drawn to a canvas
#[derive(Debug, Clone)]
pub struct TextNode {
/// The contents of the text
pub content: String,
/// The bounds of the text
pub bounds: Rectangle,
/// The color of the text
pub color: Color,
/// The size of the text
pub size: f32,
/// The font of the text
pub font: Font,
/// The horizontal alignment of the text
pub horizontal_alignment: HorizontalAlignment,
/// The vertical alignment of the text
pub vertical_alignment: VerticalAlignment,
}
|