#[non_exhaustive]pub enum VisualType {
StaticGray,
Grayscale,
StaticColor,
PseudoColor,
TrueColor,
DirectColor,
}Expand description
A set of values that describe the manner in which the pixel values for a visual are converted into RGB values for display.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
StaticGray
Each pixel value indexes a grayscale value directly.
Grayscale
Each pixel is an index into a color map that maps pixel values into grayscale values. The color map can be changed by an application.
StaticColor
Each pixel value is an index into a predefined, unmodifiable color map that maps pixel values into RGB values.
PseudoColor
Each pixel is an index into a color map that maps pixel values into rgb values. The color map can be changed by an application.
TrueColor
Each pixel value directly contains red, green,
and blue components. Use Visual::red_pixel_details(), etc,
to obtain information about how the components are assembled into
a pixel value.
DirectColor
Each pixel value contains red, green, and blue
components as for TrueColor, but the components are
mapped via a color table into the final output table instead of
being converted directly.
Trait Implementations§
Source§impl Clone for VisualType
impl Clone for VisualType
Source§fn clone(&self) -> VisualType
fn clone(&self) -> VisualType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for VisualType
Source§impl Debug for VisualType
impl Debug for VisualType
Source§impl Display for VisualType
impl Display for VisualType
impl Eq for VisualType
Source§impl From<VisualType> for Value
impl From<VisualType> for Value
Source§fn from(v: VisualType) -> Self
fn from(v: VisualType) -> Self
Source§impl<'a> FromValue<'a> for VisualType
impl<'a> FromValue<'a> for VisualType
Source§type Checker = GenericValueTypeChecker<VisualType>
type Checker = GenericValueTypeChecker<VisualType>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for VisualType
impl HasParamSpec for VisualType
type ParamSpec = ParamSpecEnum
Source§type SetValue = VisualType
type SetValue = VisualType
type BuilderFn = fn(&str, VisualType) -> ParamSpecEnumBuilder<'_, VisualType>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for VisualType
impl Hash for VisualType
Source§impl Ord for VisualType
impl Ord for VisualType
Source§fn cmp(&self, other: &VisualType) -> Ordering
fn cmp(&self, other: &VisualType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for VisualType
impl PartialEq for VisualType
Source§impl PartialOrd for VisualType
impl PartialOrd for VisualType
Source§impl StaticType for VisualType
impl StaticType for VisualType
Source§fn static_type() -> Type
fn static_type() -> Type
Self.impl StructuralPartialEq for VisualType
Source§impl ToValue for VisualType
impl ToValue for VisualType
Source§impl ValueType for VisualType
impl ValueType for VisualType
Source§type Type = VisualType
type Type = VisualType
Type from. Read moreAuto Trait Implementations§
impl Freeze for VisualType
impl RefUnwindSafe for VisualType
impl Send for VisualType
impl Sync for VisualType
impl Unpin for VisualType
impl UnsafeUnpin for VisualType
impl UnwindSafe for VisualType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.