pub struct TextLine {
pub story: TextStory,
pub paragraph: usize,
pub start: u32,
pub end: u32,
pub top: Length,
pub height: Length,
pub baseline: Length,
pub clusters: Vec<TextCluster>,
pub left: Length,
pub ends: LineTextEnd,
pub hyphen: Option<EndHyphen>,
pub turn: Option<LineTurn>,
}Expand description
A line of a page’s text map: its story and paragraph, its range of the paragraph’s text, its line box and its clusters.
Fields§
§story: TextStoryThe story that it belongs to.
paragraph: usizeThe index of its paragraph among the paragraphs of its story’s text.
start: u32The first byte of the paragraph’s text that it shows.
end: u32The byte after the last that it shows.
top: LengthThe top of its line box on the page: of the line, not of its glyphs, so that the boxes of consecutive lines meet.
height: LengthThe height of its line box.
baseline: LengthThe offset of its baseline from its top.
clusters: Vec<TextCluster>Its clusters in visual order, from the left, each with its range of the paragraph’s text.
left: LengthThe left edge of its text on the page: its first cluster’s left edge, or for a line without a cluster, such as the line of an empty paragraph, where the line starts after its indent and alignment.
ends: LineTextEndHow it ends.
hyphen: Option<EndHyphen>The hyphen that it draws at its end where a word breaks, at an automatic hyphenation point or a soft hyphen, which the text does not hold.
turn: Option<LineTurn>For a line of a frame that turned onto the page, such as a line of a table cell with a turned text direction, how the frame lies on the page. Its top, left edge and cluster edges are then places of the frame.
Trait Implementations§
impl Eq for TextLine
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.