Enum rich_sdl2_rust::ttf::font::RenderMode
source · #[non_exhaustive]pub enum RenderMode {
Solid {
foreground: Rgba,
},
Shaded {
foreground: Rgba,
background: Rgba,
},
Blended {
foreground: Rgba,
},
}
Expand description
A render mode for the font glyphs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Solid
A quick and dirty mode.
Shaded
A slow and nice, but with a solid box mode.
Blended
A too slow, but ultra nice over others.
Trait Implementations§
source§impl Clone for RenderMode
impl Clone for RenderMode
source§fn clone(&self) -> RenderMode
fn clone(&self) -> RenderMode
Returns a copy of the value. Read more
1.0.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 RenderMode
impl Debug for RenderMode
source§impl PartialEq for RenderMode
impl PartialEq for RenderMode
source§fn eq(&self, other: &RenderMode) -> bool
fn eq(&self, other: &RenderMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RenderMode
impl Eq for RenderMode
impl StructuralPartialEq for RenderMode
Auto Trait Implementations§
impl RefUnwindSafe for RenderMode
impl Send for RenderMode
impl Sync for RenderMode
impl Unpin for RenderMode
impl UnwindSafe for RenderMode
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