pub struct TextFragment {
pub bounds: Rect,
pub text: String,
pub baseline_y: f32,
pub style: InlineTextStyle,
pub font_family: AtomId,
pub item_index: usize,
}Expand description
A visual fragment of an inline text run positioned on a specific line box.
Fields§
§bounds: RectBounding rectangle in container coordinate space (x, y, width, height).
text: StringSubstring of the originating inline item positioned on this line.
baseline_y: f32Baseline vertical offset from the container top.
style: InlineTextStyleTypographic style applied to this fragment.
font_family: AtomIdRequested font family atom used for glyph advances and paint selection.
item_index: usizeOriginating inline item index in the IFC stream.
Trait Implementations§
Source§impl Clone for TextFragment
impl Clone for TextFragment
Source§impl Debug for TextFragment
impl Debug for TextFragment
Source§impl PartialEq for TextFragment
impl PartialEq for TextFragment
impl StructuralPartialEq for TextFragment
Auto Trait Implementations§
impl Forget for TextFragment
impl Freeze for TextFragment
impl Move for TextFragment
impl RefUnwindSafe for TextFragment
impl Send for TextFragment
impl Sync for TextFragment
impl Unpin for TextFragment
impl UnsafeUnpin for TextFragment
impl UnwindSafe for TextFragment
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