#[repr(C)]pub enum SubpixelType {
None = 0,
Rgb = 1,
Bgr = 2,
VRgb = 3,
VBgr = 4,
}Expand description
Subpixel rendering layout for font smoothing.
Variants§
None = 0
No subpixel rendering (grayscale anti-aliasing only).
Rgb = 1
Horizontal RGB subpixel layout (most common for LCD monitors).
Bgr = 2
Horizontal BGR subpixel layout.
VRgb = 3
Vertical RGB subpixel layout.
VBgr = 4
Vertical BGR subpixel layout.
Trait Implementations§
Source§impl Clone for SubpixelType
impl Clone for SubpixelType
Source§fn clone(&self) -> SubpixelType
fn clone(&self) -> SubpixelType
Returns a duplicate 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 SubpixelType
impl Debug for SubpixelType
Source§impl Default for SubpixelType
impl Default for SubpixelType
Source§fn default() -> SubpixelType
fn default() -> SubpixelType
Returns the “default value” for a type. Read more
Source§impl PartialEq for SubpixelType
impl PartialEq for SubpixelType
impl Copy for SubpixelType
impl Eq for SubpixelType
impl StructuralPartialEq for SubpixelType
Auto Trait Implementations§
impl Freeze for SubpixelType
impl RefUnwindSafe for SubpixelType
impl Send for SubpixelType
impl Sync for SubpixelType
impl Unpin for SubpixelType
impl UnsafeUnpin for SubpixelType
impl UnwindSafe for SubpixelType
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