#[repr(u32)]
pub enum StyleColor {
Show 53 variants Text = 0, TextDisabled = 1, WindowBg = 2, ChildBg = 3, PopupBg = 4, Border = 5, BorderShadow = 6, FrameBg = 7, FrameBgHovered = 8, FrameBgActive = 9, TitleBg = 10, TitleBgActive = 11, TitleBgCollapsed = 12, MenuBarBg = 13, ScrollbarBg = 14, ScrollbarGrab = 15, ScrollbarGrabHovered = 16, ScrollbarGrabActive = 17, CheckMark = 18, SliderGrab = 19, SliderGrabActive = 20, Button = 21, ButtonHovered = 22, ButtonActive = 23, Header = 24, HeaderHovered = 25, HeaderActive = 26, Separator = 27, SeparatorHovered = 28, SeparatorActive = 29, ResizeGrip = 30, ResizeGripHovered = 31, ResizeGripActive = 32, Tab = 33, TabHovered = 34, TabActive = 35, TabUnfocused = 36, TabUnfocusedActive = 37, PlotLines = 38, PlotLinesHovered = 39, PlotHistogram = 40, PlotHistogramHovered = 41, TableHeaderBg = 42, TableBorderStrong = 43, TableBorderLight = 44, TableRowBg = 45, TableRowBgAlt = 46, TextSelectedBg = 47, DragDropTarget = 48, NavHighlight = 49, NavWindowingHighlight = 50, NavWindowingDimBg = 51, ModalWindowDimBg = 52,
}
Expand description

A color identifier for styling

Variants§

§

Text = 0

§

TextDisabled = 1

§

WindowBg = 2

Background of normal windows

§

ChildBg = 3

Background of child windows

§

PopupBg = 4

Background of popups, menus, tooltips windows

§

Border = 5

§

BorderShadow = 6

§

FrameBg = 7

Background of checkbox, radio button, plot, slider, text input

§

FrameBgHovered = 8

§

FrameBgActive = 9

§

TitleBg = 10

§

TitleBgActive = 11

§

TitleBgCollapsed = 12

§

MenuBarBg = 13

§

ScrollbarBg = 14

§

ScrollbarGrab = 15

§

ScrollbarGrabHovered = 16

§

ScrollbarGrabActive = 17

§

CheckMark = 18

§

SliderGrab = 19

§

SliderGrabActive = 20

§

Button = 21

§

ButtonHovered = 22

§

ButtonActive = 23

§

Header = 24

§

HeaderHovered = 25

§

HeaderActive = 26

§

Separator = 27

§

SeparatorHovered = 28

§

SeparatorActive = 29

§

ResizeGrip = 30

§

ResizeGripHovered = 31

§

ResizeGripActive = 32

§

Tab = 33

§

TabHovered = 34

§

TabActive = 35

§

TabUnfocused = 36

§

TabUnfocusedActive = 37

§

PlotLines = 38

§

PlotLinesHovered = 39

§

PlotHistogram = 40

§

PlotHistogramHovered = 41

§

TableHeaderBg = 42

§

TableBorderStrong = 43

§

TableBorderLight = 44

§

TableRowBg = 45

§

TableRowBgAlt = 46

§

TextSelectedBg = 47

§

DragDropTarget = 48

§

NavHighlight = 49

Gamepad/keyboard: current highlighted item

§

NavWindowingHighlight = 50

Highlight window when using CTRL+TAB

§

NavWindowingDimBg = 51

Darken/colorize entire screen behind the CTRL+TAB window list, when active

§

ModalWindowDimBg = 52

Darken/colorize entire screen behind a modal window, when one is active

Implementations§

source§

impl StyleColor

source

pub const VARIANTS: [StyleColor; 53] = _

All possible StyleColor variants

source

pub const COUNT: usize = 53usize

Total count of StyleColor variants

Trait Implementations§

source§

impl Clone for StyleColor

source§

fn clone(&self) -> StyleColor

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StyleColor

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for StyleColor

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Index<StyleColor> for Style

§

type Output = [f32; 4]

The returned type after indexing.
source§

fn index(&self, index: StyleColor) -> &[f32; 4]

Performs the indexing (container[index]) operation. Read more
source§

impl IndexMut<StyleColor> for Style

source§

fn index_mut(&mut self, index: StyleColor) -> &mut [f32; 4]

Performs the mutable indexing (container[index]) operation. Read more
source§

impl PartialEq for StyleColor

source§

fn eq(&self, other: &StyleColor) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for StyleColor

source§

impl Eq for StyleColor

source§

impl StructuralPartialEq for StyleColor

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.