pub enum TextBrush {
Normal(Brush),
Highlight {
text: Brush,
fill: Brush,
},
}
Expand description
A custom brush for Parley
, enabling using Parley to pass-through
which glyphs are selected/highlighted
Variants§
Trait Implementations§
source§impl PartialEq for TextBrush
impl PartialEq for TextBrush
impl Brush for TextBrush
impl StructuralPartialEq for TextBrush
Auto Trait Implementations§
impl Freeze for TextBrush
impl !RefUnwindSafe for TextBrush
impl Send for TextBrush
impl Sync for TextBrush
impl Unpin for TextBrush
impl !UnwindSafe for TextBrush
Blanket Implementations§
source§impl<T> AsAny for Twhere
T: Any,
impl<T> AsAny for Twhere
T: Any,
source§fn as_dyn_any(&self) -> &(dyn Any + 'static)
fn as_dyn_any(&self) -> &(dyn Any + 'static)
Return self.
source§fn as_mut_dyn_any(&mut self) -> &mut (dyn Any + 'static)
fn as_mut_dyn_any(&mut self) -> &mut (dyn Any + 'static)
Return self.
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