pub struct TextHighlight {
pub color: Rgba,
pub padding: TextInsets,
pub radius: f32,
pub border: Option<TextBoxBorder>,
pub transition: MediaTime,
pub easing: Easing,
pub gap: HighlightGap,
}Expand description
A box over the timed run being said, sliding from run to run, drawn over the background boxes and under the glyphs. The run is the timed run that started last; before the first starts there is none.
Fields§
§color: RgbaBox color.
padding: TextInsetsSpace between the run and the box edge, as a background’s padding.
radius: f32Every corner’s radius, as a background’s radius.
border: Option<TextBoxBorder>A line inside the box’s edge, as a background’s border.
transition: MediaTimeHow long the box takes to slide to the next run once it starts, at most
MAX_HIGHLIGHT_TRANSITION; 0 jumps. A change during a slide starts where the box is.
easing: EasingThe slide’s timing curve.
gap: HighlightGapWhat the box does between a run’s end and the next run’s start.
Trait Implementations§
Source§impl Clone for TextHighlight
impl Clone for TextHighlight
Source§impl Debug for TextHighlight
impl Debug for TextHighlight
Source§impl<'de> Deserialize<'de> for TextHighlight
impl<'de> Deserialize<'de> for TextHighlight
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TextHighlight
impl PartialEq for TextHighlight
Source§impl Serialize for TextHighlight
impl Serialize for TextHighlight
impl StructuralPartialEq for TextHighlight
Auto Trait Implementations§
impl Forget for TextHighlight
impl Freeze for TextHighlight
impl Move for TextHighlight
impl RefUnwindSafe for TextHighlight
impl Send for TextHighlightwhere
RawVecInner: Send,
impl Sync for TextHighlightwhere
RawVecInner: Sync,
impl Unpin for TextHighlight
impl UnsafeUnpin for TextHighlightwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<f32>: UnsafeUnpin,
PhantomData<EasingPoint>: UnsafeUnpin,
impl UnwindSafe for TextHighlightwhere
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