#[repr(u8)]pub enum SystemColor {
Show 42 variants
Accentcolor = 0,
Accentcolortext = 1,
Activetext = 2,
Linktext = 3,
Visitedtext = 4,
Buttonborder = 5,
Buttonface = 6,
Buttontext = 7,
Canvas = 8,
Canvastext = 9,
Field = 10,
Fieldtext = 11,
Graytext = 12,
Highlight = 13,
Highlighttext = 14,
Mark = 15,
Marktext = 16,
Selecteditem = 17,
Selecteditemtext = 18,
Activeborder = 19,
Inactiveborder = 20,
Threeddarkshadow = 21,
Threedhighlight = 22,
Threedlightshadow = 23,
Threedshadow = 24,
Windowframe = 25,
Buttonhighlight = 26,
Buttonshadow = 27,
Threedface = 28,
Activecaption = 29,
Appworkspace = 30,
Background = 31,
Inactivecaption = 32,
Infobackground = 33,
Menu = 34,
Scrollbar = 35,
Window = 36,
Captiontext = 37,
Infotext = 38,
Menutext = 39,
Windowtext = 40,
Inactivecaptiontext = 41,
}Expand description
System colors. A bunch of these are ad-hoc, others come from Windows:
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getsyscolor
Others are HTML/CSS specific. Spec is:
https://drafts.csswg.org/css-color/#css-system-colors https://drafts.csswg.org/css-color/#deprecated-system-colors
Variants§
Accentcolor = 0
Accentcolortext = 1
Activetext = 2
Linktext = 3
Visitedtext = 4
Buttonborder = 5
Buttonface = 6
Buttontext = 7
Canvas = 8
Canvastext = 9
Field = 10
Fieldtext = 11
Graytext = 12
Highlight = 13
Highlighttext = 14
Mark = 15
Marktext = 16
Selecteditem = 17
Selecteditemtext = 18
Activeborder = 19
Inactiveborder = 20
Threeddarkshadow = 21
Threedhighlight = 22
Threedlightshadow = 23
Threedshadow = 24
Windowframe = 25
Buttonhighlight = 26
Buttonshadow = 27
Threedface = 28
Activecaption = 29
Appworkspace = 30
Background = 31
Inactivecaption = 32
Infobackground = 33
Menu = 34
Scrollbar = 35
Window = 36
Captiontext = 37
Infotext = 38
Menutext = 39
Windowtext = 40
Inactivecaptiontext = 41
Implementations§
Source§impl SystemColor
impl SystemColor
Sourcepub fn parse<'i, 't>(input: &mut Parser<'i, 't>) -> Result<Self, ParseError<'i>>
pub fn parse<'i, 't>(input: &mut Parser<'i, 't>) -> Result<Self, ParseError<'i>>
Parse this keyword.
Sourcepub fn from_ident(ident: &str) -> Result<Self, ()>
pub fn from_ident(ident: &str) -> Result<Self, ()>
Parse this keyword from a string slice.
Trait Implementations§
Source§impl Clone for SystemColor
impl Clone for SystemColor
Source§fn clone(&self) -> SystemColor
fn clone(&self) -> SystemColor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SystemColor
impl Debug for SystemColor
Source§impl MallocSizeOf for SystemColor
impl MallocSizeOf for SystemColor
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Source§impl Parse for SystemColor
impl Parse for SystemColor
Source§fn parse<'i, 't>(
_: &ParserContext<'_>,
input: &mut Parser<'i, 't>,
) -> Result<Self, ParseError<'i>>
fn parse<'i, 't>( _: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>
Parse a value of this type. Read more
Source§impl PartialEq for SystemColor
impl PartialEq for SystemColor
Source§impl ToCss for SystemColor
impl ToCss for SystemColor
Source§fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Resultwhere
W: Write,
fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Resultwhere
W: Write,
Serialize
self in CSS syntax, writing to dest.Source§fn to_css_string(&self) -> String
fn to_css_string(&self) -> String
Serialize
self in CSS syntax and return a string. Read moreSource§fn to_css_cssstring(&self) -> String
fn to_css_cssstring(&self) -> String
Serialize
self in CSS syntax and return a CssString. Read moreSource§impl ToShmem for SystemColor
impl ToShmem for SystemColor
impl Copy for SystemColor
impl StructuralPartialEq for SystemColor
Auto Trait Implementations§
impl Freeze for SystemColor
impl RefUnwindSafe for SystemColor
impl Send for SystemColor
impl Sync for SystemColor
impl Unpin for SystemColor
impl UnsafeUnpin for SystemColor
impl UnwindSafe for SystemColor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert