Enum cogl::SubpixelOrder [−][src]
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)
the layout of subpixel components for the device is unknown.
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.
the device has horizontally arranged components in the order red-green-blue from left to right.
the device has horizontally arranged components in the order blue-green-red from left to right.
the device has vertically arranged components in the order red-green-blue from top to bottom.
the device has vertically arranged components in the order blue-green-red from top to bottom.
Trait Implementations
impl Clone for SubpixelOrder
[src]
fn clone(&self) -> SubpixelOrder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SubpixelOrder
[src]
impl Debug for SubpixelOrder
[src]
impl Display for SubpixelOrder
[src]
impl Eq for SubpixelOrder
[src]
impl Hash for SubpixelOrder
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for SubpixelOrder
[src]
fn cmp(&self, other: &SubpixelOrder) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<SubpixelOrder> for SubpixelOrder
[src]
fn eq(&self, other: &SubpixelOrder) -> bool
[src]
fn ne(&self, other: &SubpixelOrder) -> bool
[src]
impl PartialOrd<SubpixelOrder> for SubpixelOrder
[src]
fn partial_cmp(&self, other: &SubpixelOrder) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for SubpixelOrder
[src]
impl StructuralPartialEq for SubpixelOrder
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,