pub struct ShapedRun {Show 17 fields
pub font_face_id: FontFaceId,
pub size_px: f32,
pub glyphs: Vec<ShapedGlyph>,
pub advance_width: f32,
pub text_range: Range<usize>,
pub underline_style: UnderlineStyle,
pub overline: bool,
pub strikeout: bool,
pub is_link: bool,
pub foreground_color: Option<[f32; 4]>,
pub underline_color: Option<[f32; 4]>,
pub background_color: Option<[f32; 4]>,
pub anchor_href: Option<String>,
pub tooltip: Option<String>,
pub vertical_alignment: VerticalAlignment,
pub image_name: Option<String>,
pub image_height: f32,
}Fields§
§font_face_id: FontFaceId§size_px: f32§glyphs: Vec<ShapedGlyph>§advance_width: f32§text_range: Range<usize>§underline_style: UnderlineStyleDecoration flags from the source fragment’s TextFormat.
overline: bool§strikeout: bool§is_link: bool§foreground_color: Option<[f32; 4]>Text foreground color (RGBA). None means default (black).
underline_color: Option<[f32; 4]>Underline color (RGBA). None means use foreground_color.
background_color: Option<[f32; 4]>Text-level background highlight color (RGBA). None means transparent.
anchor_href: Option<String>Hyperlink destination URL.
tooltip: Option<String>Tooltip text.
vertical_alignment: VerticalAlignmentVertical alignment (normal, superscript, subscript).
image_name: Option<String>If Some, this run represents an inline image placeholder.
image_height: f32Image height in pixels (used for line height expansion).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShapedRun
impl RefUnwindSafe for ShapedRun
impl Send for ShapedRun
impl Sync for ShapedRun
impl Unpin for ShapedRun
impl UnsafeUnpin for ShapedRun
impl UnwindSafe for ShapedRun
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more