pub struct TextLine {
pub text: String,
pub start: u32,
pub end: u32,
pub x: Points,
pub y: Points,
pub width: Points,
pub height: Points,
pub ascender: Points,
pub descender: Points,
pub cap_height: Points,
pub x_height: Points,
}Expand description
One line of laid-out text (onTextLayout), in the content box (y
down, points).
Fields§
§text: StringIts characters.
start: u32Start offset in the text (UTF-16 units, inclusive).
end: u32End offset (UTF-16 units, exclusive).
x: PointsLeft edge.
y: PointsTop edge.
width: PointsTypographic width.
height: PointsHeight (ascender + descender + leading).
ascender: PointsAbove the baseline.
descender: PointsBelow the baseline.
cap_height: PointsHeight of capitals.
x_height: PointsHeight of lowercase letters.
Trait Implementations§
impl StructuralPartialEq for TextLine
Auto Trait Implementations§
impl Forget for TextLine
impl Freeze for TextLine
impl Move for TextLine
impl RefUnwindSafe for TextLine
impl Send for TextLinewhere
RawVecInner: Send,
impl Sync for TextLinewhere
RawVecInner: Sync,
impl Unpin for TextLine
impl UnsafeUnpin for TextLine
impl UnwindSafe for TextLinewhere
RawVecInner: UnwindSafe,
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