Enum gdk::VisualType
source · [−]#[non_exhaustive]
pub enum VisualType {
StaticGray,
Grayscale,
StaticColor,
PseudoColor,
TrueColor,
DirectColor,
// some variants omitted
}
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
sourceimpl Clone for VisualType
impl Clone for VisualType
sourcefn clone(&self) -> VisualType
fn clone(&self) -> VisualType
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for VisualType
impl Debug for VisualType
sourceimpl Display for VisualType
impl Display for VisualType
sourceimpl<'a> FromValue<'a> for VisualType
impl<'a> FromValue<'a> for VisualType
type Checker = GenericValueTypeChecker<VisualType>
type Checker = GenericValueTypeChecker<VisualType>
sourceunsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value
. Read moresourceimpl Hash for VisualType
impl Hash for VisualType
sourceimpl Ord for VisualType
impl Ord for VisualType
sourcefn cmp(&self, other: &VisualType) -> Ordering
fn cmp(&self, other: &VisualType) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialEq<VisualType> for VisualType
impl PartialEq<VisualType> for VisualType
sourcefn eq(&self, other: &VisualType) -> bool
fn eq(&self, other: &VisualType) -> bool
sourceimpl PartialOrd<VisualType> for VisualType
impl PartialOrd<VisualType> for VisualType
sourcefn partial_cmp(&self, other: &VisualType) -> Option<Ordering>
fn partial_cmp(&self, other: &VisualType) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl StaticType for VisualType
impl StaticType for VisualType
sourcefn static_type() -> Type
fn static_type() -> Type
Self
.sourceimpl ToValue for VisualType
impl ToValue for VisualType
sourceimpl ValueType for VisualType
impl ValueType for VisualType
type Type = VisualType
type Type = VisualType
Type
from. Read moreimpl Copy for VisualType
impl Eq for VisualType
impl StructuralEq for VisualType
impl StructuralPartialEq for VisualType
Auto Trait Implementations
impl RefUnwindSafe for VisualType
impl Send for VisualType
impl Sync for VisualType
impl Unpin for VisualType
impl UnwindSafe for VisualType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
sourceimpl<T> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.