pub struct TextHighlightRequest {
pub look: TextBackground,
pub steps: Vec<(Range<usize>, f32)>,
}Expand description
A box over the run being said that slides from run to run, drawn over the background boxes and run backgrounds and under the glyphs.
Fields§
§look: TextBackgroundIts color, padding, radius and border; its extent is not read.
steps: Vec<(Range<usize>, f32)>Byte ranges of the text with their progress in [0, 1], in the order their runs started,
the first at 1, at most MAX_HIGHLIGHT_STEPS. The box starts as the first range’s first
line fragment (its clusters’ advances, white space at its ends excluded, by its largest
em box) and moves toward each next one’s by that one’s progress; the last range’s other
fragments are drawn whole.
Trait Implementations§
Source§impl Clone for TextHighlightRequest
impl Clone for TextHighlightRequest
Source§impl Debug for TextHighlightRequest
impl Debug for TextHighlightRequest
Source§impl PartialEq for TextHighlightRequest
impl PartialEq for TextHighlightRequest
impl StructuralPartialEq for TextHighlightRequest
Auto Trait Implementations§
impl Forget for TextHighlightRequest
impl Freeze for TextHighlightRequest
impl Move for TextHighlightRequest
impl RefUnwindSafe for TextHighlightRequest
impl Send for TextHighlightRequestwhere
RawVecInner: Send,
impl Sync for TextHighlightRequestwhere
RawVecInner: Sync,
impl Unpin for TextHighlightRequest
impl UnsafeUnpin for TextHighlightRequestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<f32>: UnsafeUnpin,
PhantomData<(Range<usize>, f32)>: UnsafeUnpin,
impl UnwindSafe for TextHighlightRequestwhere
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