KnownColor
struct · ferroui-base · v0.5.0
struct KnownColor
A named color, identified by its ARGB value.
Several names share a value (AQUA/CYAN, FUCHSIA/MAGENTA); those constants
compare equal.
Members
NONEALICE_BLUEANTIQUE_WHITEAQUAAQUAMARINEAZUREBEIGEBISQUEBLACKBLANCHED_ALMONDBLUEBLUE_VIOLETBROWNBURLY_WOODCADET_BLUECHARTREUSECHOCOLATECORALCORNFLOWER_BLUECORNSILKCRIMSONCYANDARK_BLUEDARK_CYANDARK_GOLDENRODDARK_GRAYDARK_GREENDARK_KHAKIDARK_MAGENTADARK_OLIVE_GREENDARK_ORANGEDARK_ORCHIDDARK_REDDARK_SALMONDARK_SEA_GREENDARK_SLATE_BLUEDARK_SLATE_GRAYDARK_TURQUOISEDARK_VIOLETDEEP_PINKDEEP_SKY_BLUEDIM_GRAYDODGER_BLUEFIREBRICKFLORAL_WHITEFOREST_GREENFUCHSIAGAINSBOROGHOST_WHITEGOLDGOLDENRODGRAYGREENGREEN_YELLOWHONEYDEWHOT_PINKINDIAN_REDINDIGOIVORYKHAKILAVENDERLAVENDER_BLUSHLAWN_GREENLEMON_CHIFFONLIGHT_BLUELIGHT_CORALLIGHT_CYANLIGHT_GOLDENROD_YELLOWLIGHT_GREENLIGHT_GRAYLIGHT_PINKLIGHT_SALMONLIGHT_SEA_GREENLIGHT_SKY_BLUELIGHT_SLATE_GRAYLIGHT_STEEL_BLUELIGHT_YELLOWLIMELIME_GREENLINENMAGENTAMAROONMEDIUM_AQUAMARINEMEDIUM_BLUEMEDIUM_ORCHIDMEDIUM_PURPLEMEDIUM_SEA_GREENMEDIUM_SLATE_BLUEMEDIUM_SPRING_GREENMEDIUM_TURQUOISEMEDIUM_VIOLET_REDMIDNIGHT_BLUEMINT_CREAMMISTY_ROSEMOCCASINNAVAJO_WHITENAVYOLD_LACEOLIVEOLIVE_DRABORANGEORANGE_REDORCHIDPALE_GOLDENRODPALE_GREENPALE_TURQUOISEPALE_VIOLET_REDPAPAYA_WHIPPEACH_PUFFPERUPINKPLUMPOWDER_BLUEPURPLEREDROSY_BROWNROYAL_BLUESADDLE_BROWNSALMONSANDY_BROWNSEA_GREENSEA_SHELLSIENNASILVERSKY_BLUESLATE_BLUESLATE_GRAYSNOWSPRING_GREENSTEEL_BLUETANTEALTHISTLETOMATOTRANSPARENTTURQUOISEVIOLETWHEATWHITEWHITE_SMOKEYELLOWYELLOW_GREENvalueto_colorto_brush
NONE
const NONE: KnownColor
ALICE_BLUE
const ALICE_BLUE: KnownColor
ANTIQUE_WHITE
const ANTIQUE_WHITE: KnownColor
AQUA
const AQUA: KnownColor
AQUAMARINE
const AQUAMARINE: KnownColor
AZURE
const AZURE: KnownColor
BEIGE
const BEIGE: KnownColor
BISQUE
const BISQUE: KnownColor
BLACK
const BLACK: KnownColor
BLANCHED_ALMOND
const BLANCHED_ALMOND: KnownColor
BLUE
const BLUE: KnownColor
BLUE_VIOLET
const BLUE_VIOLET: KnownColor
BROWN
const BROWN: KnownColor
BURLY_WOOD
const BURLY_WOOD: KnownColor
CADET_BLUE
const CADET_BLUE: KnownColor
CHARTREUSE
const CHARTREUSE: KnownColor
CHOCOLATE
const CHOCOLATE: KnownColor
CORAL
const CORAL: KnownColor
CORNFLOWER_BLUE
const CORNFLOWER_BLUE: KnownColor
CORNSILK
const CORNSILK: KnownColor
CRIMSON
const CRIMSON: KnownColor
CYAN
const CYAN: KnownColor
DARK_BLUE
const DARK_BLUE: KnownColor
DARK_CYAN
const DARK_CYAN: KnownColor
DARK_GOLDENROD
const DARK_GOLDENROD: KnownColor
DARK_GRAY
const DARK_GRAY: KnownColor
DARK_GREEN
const DARK_GREEN: KnownColor
DARK_KHAKI
const DARK_KHAKI: KnownColor
DARK_MAGENTA
const DARK_MAGENTA: KnownColor
DARK_OLIVE_GREEN
const DARK_OLIVE_GREEN: KnownColor
DARK_ORANGE
const DARK_ORANGE: KnownColor
DARK_ORCHID
const DARK_ORCHID: KnownColor
DARK_RED
const DARK_RED: KnownColor
DARK_SALMON
const DARK_SALMON: KnownColor
DARK_SEA_GREEN
const DARK_SEA_GREEN: KnownColor
DARK_SLATE_BLUE
const DARK_SLATE_BLUE: KnownColor
DARK_SLATE_GRAY
const DARK_SLATE_GRAY: KnownColor
DARK_TURQUOISE
const DARK_TURQUOISE: KnownColor
DARK_VIOLET
const DARK_VIOLET: KnownColor
DEEP_PINK
const DEEP_PINK: KnownColor
DEEP_SKY_BLUE
const DEEP_SKY_BLUE: KnownColor
DIM_GRAY
const DIM_GRAY: KnownColor
DODGER_BLUE
const DODGER_BLUE: KnownColor
FIREBRICK
const FIREBRICK: KnownColor
FLORAL_WHITE
const FLORAL_WHITE: KnownColor
FOREST_GREEN
const FOREST_GREEN: KnownColor
FUCHSIA
const FUCHSIA: KnownColor
GAINSBORO
const GAINSBORO: KnownColor
GHOST_WHITE
const GHOST_WHITE: KnownColor
GOLD
const GOLD: KnownColor
GOLDENROD
const GOLDENROD: KnownColor
GRAY
const GRAY: KnownColor
GREEN
const GREEN: KnownColor
GREEN_YELLOW
const GREEN_YELLOW: KnownColor
HONEYDEW
const HONEYDEW: KnownColor
HOT_PINK
const HOT_PINK: KnownColor
INDIAN_RED
const INDIAN_RED: KnownColor
INDIGO
const INDIGO: KnownColor
IVORY
const IVORY: KnownColor
KHAKI
const KHAKI: KnownColor
LAVENDER
const LAVENDER: KnownColor
LAVENDER_BLUSH
const LAVENDER_BLUSH: KnownColor
LAWN_GREEN
const LAWN_GREEN: KnownColor
LEMON_CHIFFON
const LEMON_CHIFFON: KnownColor
LIGHT_BLUE
const LIGHT_BLUE: KnownColor
LIGHT_CORAL
const LIGHT_CORAL: KnownColor
LIGHT_CYAN
const LIGHT_CYAN: KnownColor
LIGHT_GOLDENROD_YELLOW
const LIGHT_GOLDENROD_YELLOW: KnownColor
LIGHT_GREEN
const LIGHT_GREEN: KnownColor
LIGHT_GRAY
const LIGHT_GRAY: KnownColor
LIGHT_PINK
const LIGHT_PINK: KnownColor
LIGHT_SALMON
const LIGHT_SALMON: KnownColor
LIGHT_SEA_GREEN
const LIGHT_SEA_GREEN: KnownColor
LIGHT_SKY_BLUE
const LIGHT_SKY_BLUE: KnownColor
LIGHT_SLATE_GRAY
const LIGHT_SLATE_GRAY: KnownColor
LIGHT_STEEL_BLUE
const LIGHT_STEEL_BLUE: KnownColor
LIGHT_YELLOW
const LIGHT_YELLOW: KnownColor
LIME
const LIME: KnownColor
LIME_GREEN
const LIME_GREEN: KnownColor
LINEN
const LINEN: KnownColor
MAGENTA
const MAGENTA: KnownColor
MAROON
const MAROON: KnownColor
MEDIUM_AQUAMARINE
const MEDIUM_AQUAMARINE: KnownColor
MEDIUM_BLUE
const MEDIUM_BLUE: KnownColor
MEDIUM_ORCHID
const MEDIUM_ORCHID: KnownColor
MEDIUM_PURPLE
const MEDIUM_PURPLE: KnownColor
MEDIUM_SEA_GREEN
const MEDIUM_SEA_GREEN: KnownColor
MEDIUM_SLATE_BLUE
const MEDIUM_SLATE_BLUE: KnownColor
MEDIUM_SPRING_GREEN
const MEDIUM_SPRING_GREEN: KnownColor
MEDIUM_TURQUOISE
const MEDIUM_TURQUOISE: KnownColor
MEDIUM_VIOLET_RED
const MEDIUM_VIOLET_RED: KnownColor
MIDNIGHT_BLUE
const MIDNIGHT_BLUE: KnownColor
MINT_CREAM
const MINT_CREAM: KnownColor
MISTY_ROSE
const MISTY_ROSE: KnownColor
MOCCASIN
const MOCCASIN: KnownColor
NAVAJO_WHITE
const NAVAJO_WHITE: KnownColor
NAVY
const NAVY: KnownColor
OLD_LACE
const OLD_LACE: KnownColor
OLIVE
const OLIVE: KnownColor
OLIVE_DRAB
const OLIVE_DRAB: KnownColor
ORANGE
const ORANGE: KnownColor
ORANGE_RED
const ORANGE_RED: KnownColor
ORCHID
const ORCHID: KnownColor
PALE_GOLDENROD
const PALE_GOLDENROD: KnownColor
PALE_GREEN
const PALE_GREEN: KnownColor
PALE_TURQUOISE
const PALE_TURQUOISE: KnownColor
PALE_VIOLET_RED
const PALE_VIOLET_RED: KnownColor
PAPAYA_WHIP
const PAPAYA_WHIP: KnownColor
PEACH_PUFF
const PEACH_PUFF: KnownColor
PERU
const PERU: KnownColor
PINK
const PINK: KnownColor
PLUM
const PLUM: KnownColor
POWDER_BLUE
const POWDER_BLUE: KnownColor
PURPLE
const PURPLE: KnownColor
RED
const RED: KnownColor
ROSY_BROWN
const ROSY_BROWN: KnownColor
ROYAL_BLUE
const ROYAL_BLUE: KnownColor
SADDLE_BROWN
const SADDLE_BROWN: KnownColor
SALMON
const SALMON: KnownColor
SANDY_BROWN
const SANDY_BROWN: KnownColor
SEA_GREEN
const SEA_GREEN: KnownColor
SEA_SHELL
const SEA_SHELL: KnownColor
SIENNA
const SIENNA: KnownColor
SILVER
const SILVER: KnownColor
SKY_BLUE
const SKY_BLUE: KnownColor
SLATE_BLUE
const SLATE_BLUE: KnownColor
SLATE_GRAY
const SLATE_GRAY: KnownColor
SNOW
const SNOW: KnownColor
SPRING_GREEN
const SPRING_GREEN: KnownColor
STEEL_BLUE
const STEEL_BLUE: KnownColor
TAN
const TAN: KnownColor
TEAL
const TEAL: KnownColor
THISTLE
const THISTLE: KnownColor
TOMATO
const TOMATO: KnownColor
TRANSPARENT
const TRANSPARENT: KnownColor
TURQUOISE
const TURQUOISE: KnownColor
VIOLET
const VIOLET: KnownColor
WHEAT
const WHEAT: KnownColor
WHITE
const WHITE: KnownColor
WHITE_SMOKE
const WHITE_SMOKE: KnownColor
YELLOW
const YELLOW: KnownColor
YELLOW_GREEN
const YELLOW_GREEN: KnownColor
value
const fn value(self: Self) -> u32
Gets the ARGB value of the known color.
to_color
const fn to_color(self: Self) -> Color
Converts the known color to a Color.
to_brush
fn to_brush(self: Self) -> Rc<ImmutableSolidColorBrush>
Converts the known color to a solid color brush.
Brushes created from known colors are cached and reused for efficiency.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeResourceKeyObjectPropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugStructuralPartialEqPartialEqEqHashDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.