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: usizeThe index of the original text line
text: &'a strThe original text line
rtl: boolTrue if the original paragraph direction is RTL
glyphs: &'a [LayoutGlyph]The array of layout glyphs to draw
line_y: i32Y offset of line