pub enum Color {
Rgb {
r: c_ushort,
g: c_ushort,
b: c_ushort,
},
Monochrome(c_ushort),
PixelID(c_ulong),
}
Expand description
A color that can be used in an X11 setting.
Variants§
Rgb
A color consisting of the amount of red, green, and blue.
Monochrome(c_ushort)
A monochrome color consisting of only one value.
PixelID(c_ulong)
Refers to the actual pixel ID in the color map.
Implementations§
Trait Implementations§
impl Copy for Color
impl Eq for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
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
Mutably borrows from an owned value. Read more