#[non_exhaustive]
pub enum SubpixelOrder {
Unknown,
None,
HorizontalRgb,
HorizontalBgr,
VerticalRgb,
VerticalBgr,
}
Expand description
SubPixel order for some displays.
Some output devices (such as LCD panels) display colors by making each pixel consist of smaller “subpixels” that each have a particular color. By using knowledge of the layout of this subpixel components, it is possible to create image content with higher resolution than the pixel grid.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Unknown
the layout of subpixel components for the device is unknown.
None
the device displays colors without geometrically-separated subpixel components, or the positioning or colors of the components do not match any of the values in the enumeration.
HorizontalRgb
the device has horizontally arranged components in the order red-green-blue from left to right.
HorizontalBgr
the device has horizontally arranged components in the order blue-green-red from left to right.
VerticalRgb
the device has vertically arranged components in the order red-green-blue from top to bottom.
VerticalBgr
the device has vertically arranged components in the order blue-green-red from top to bottom.
Trait Implementations
sourceimpl Clone for SubpixelOrder
impl Clone for SubpixelOrder
sourcefn clone(&self) -> SubpixelOrder
fn clone(&self) -> SubpixelOrder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SubpixelOrder
impl Debug for SubpixelOrder
sourceimpl Default for SubpixelOrder
impl Default for SubpixelOrder
sourceimpl Display for SubpixelOrder
impl Display for SubpixelOrder
sourceimpl Hash for SubpixelOrder
impl Hash for SubpixelOrder
sourceimpl Ord for SubpixelOrder
impl Ord for SubpixelOrder
sourceimpl PartialEq<SubpixelOrder> for SubpixelOrder
impl PartialEq<SubpixelOrder> for SubpixelOrder
sourceimpl PartialOrd<SubpixelOrder> for SubpixelOrder
impl PartialOrd<SubpixelOrder> for SubpixelOrder
sourcefn partial_cmp(&self, other: &SubpixelOrder) -> Option<Ordering>
fn partial_cmp(&self, other: &SubpixelOrder) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for SubpixelOrder
impl Eq for SubpixelOrder
impl StructuralEq for SubpixelOrder
impl StructuralPartialEq for SubpixelOrder
Auto Trait Implementations
impl RefUnwindSafe for SubpixelOrder
impl Send for SubpixelOrder
impl Sync for SubpixelOrder
impl Unpin for SubpixelOrder
impl UnwindSafe for SubpixelOrder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
fn clamped(self, min: T, max: T) -> T
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.