pub enum TextRenderingMode {
Fill,
Stroke,
FillStroke,
Invisible,
FillClip,
StrokeClip,
FillStrokeClip,
Clip,
}
Expand description
How to render text.
Variants§
Fill
Just fill the text.
Stroke
Just stroke the text.
FillStroke
First fill and then stroke the text.
Invisible
Don’t fill and don’t stroke the text.
FillClip
Fill the text, then apply the text outlines to the current clipping path.
StrokeClip
Stroke the text, then apply the text outlines to the current clipping path.
FillStrokeClip
First fill, then stroke the text and finally apply the text outlines to the current clipping path.
Clip
Apply the text outlines to the current clipping path.
Trait Implementations§
source§impl Clone for TextRenderingMode
impl Clone for TextRenderingMode
source§fn clone(&self) -> TextRenderingMode
fn clone(&self) -> TextRenderingMode
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TextRenderingMode
impl Debug for TextRenderingMode
source§impl Hash for TextRenderingMode
impl Hash for TextRenderingMode
source§impl PartialEq for TextRenderingMode
impl PartialEq for TextRenderingMode
impl Copy for TextRenderingMode
impl Eq for TextRenderingMode
impl StructuralPartialEq for TextRenderingMode
Auto Trait Implementations§
impl Freeze for TextRenderingMode
impl RefUnwindSafe for TextRenderingMode
impl Send for TextRenderingMode
impl Sync for TextRenderingMode
impl Unpin for TextRenderingMode
impl UnwindSafe for TextRenderingMode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)