Struct cosmic_text::LayoutRun
source · pub struct LayoutRun<'a> {
pub line_i: usize,
pub text: &'a str,
pub rtl: bool,
pub glyphs: &'a [LayoutGlyph],
pub line_y: i32,
}
Expand description
A line of visible text for rendering
Fields§
§line_i: usize
The index of the original text line
text: &'a str
The original text line
rtl: bool
True if the original paragraph direction is RTL
glyphs: &'a [LayoutGlyph]
The array of layout glyphs to draw
line_y: i32
Y offset of line