#[repr(u32)]pub enum SubpixelLayout {
Unknown = 0,
None = 1,
HorizontalRgb = 2,
HorizontalBgr = 3,
VerticalRgb = 4,
VerticalBgr = 5,
}Expand description
Subpixel geometry of the display panel.
Used by font renderers for sub-pixel anti-aliasing.
Variants§
Unknown = 0
Unknown or no subpixel information
None = 1
No subpixel rendering (e.g., CRT or projector)
HorizontalRgb = 2
Horizontal RGB subpixels (most common LCD)
HorizontalBgr = 3
Horizontal BGR subpixels
VerticalRgb = 4
Vertical RGB subpixels
VerticalBgr = 5
Vertical BGR subpixels
Implementations§
Trait Implementations§
Source§impl Clone for SubpixelLayout
impl Clone for SubpixelLayout
Source§fn clone(&self) -> SubpixelLayout
fn clone(&self) -> SubpixelLayout
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubpixelLayout
impl Debug for SubpixelLayout
Source§impl PartialEq for SubpixelLayout
impl PartialEq for SubpixelLayout
impl Copy for SubpixelLayout
impl Eq for SubpixelLayout
impl StructuralPartialEq for SubpixelLayout
Auto Trait Implementations§
impl Freeze for SubpixelLayout
impl RefUnwindSafe for SubpixelLayout
impl Send for SubpixelLayout
impl Sync for SubpixelLayout
impl Unpin for SubpixelLayout
impl UnwindSafe for SubpixelLayout
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)