euv_core/font/measurer/
struct.rs1use super::*;
2
3#[derive(Clone, Debug, Default, Getter, New, PartialEq)]
5pub struct TextLine {
6 pub(crate) text: String,
8 #[get(type(copy))]
10 pub(crate) width: f32,
11}
12
13#[derive(Clone, Debug, Default, Getter, New, PartialEq)]
15pub struct TextLayoutResult {
16 pub(crate) lines: Vec<TextLine>,
18 #[get(type(copy))]
20 pub(crate) size: Size,
21 #[get(type(copy))]
23 pub(crate) line_height_px: f32,
24}
25
26#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
28pub struct DeterministicTextMeasurer;