#[repr(u32)]pub enum UiColor {
Show 23 variants
None = 0,
Primary = 1,
Background = 2,
Common = 3,
Complement = 4,
Text = 5,
Max = 6,
ExtraSlot01 = 7,
ExtraSlot02 = 8,
ExtraSlot03 = 9,
ExtraSlot04 = 10,
ExtraSlot05 = 11,
ExtraSlot06 = 12,
ExtraSlot07 = 13,
ExtraSlot08 = 14,
ExtraSlot09 = 15,
ExtraSlot10 = 16,
ExtraSlot11 = 17,
ExtraSlot12 = 18,
ExtraSlot13 = 19,
ExtraSlot14 = 20,
ExtraSlot15 = 21,
ExtraSlot16 = 22,
}
Expand description
Theme color categories to pair with Ui::set_theme_color.
The total lenght is [u32,u32]
where the fist u32 is the enum and the second is the ExtraSlot value
native C function should convert this to UiColorT
https://stereokit.net/Pages/StereoKit/UIColor.html
Variants§
None = 0
he default category, used to indicate that no category has been selected.
Primary = 1
This is the main accent color used by window headers, separators, etc.
Background = 2
This is a background sort of color that should generally be dark. Used by window bodies and backgrounds of certain elements.
Common = 3
A normal UI element color, for elements like buttons and sliders.
Complement = 4
Not really used anywhere at the moment, maybe for the Ui::panel.
Text = 5
Text color! This should generally be really bright, and at the very least contrast-ey.
Max = 6
A maximum enum value to allow for iterating through enum values.
ExtraSlot01 = 7
All the extra color slots
ExtraSlot02 = 8
ExtraSlot03 = 9
ExtraSlot04 = 10
ExtraSlot05 = 11
ExtraSlot06 = 12
ExtraSlot07 = 13
ExtraSlot08 = 14
ExtraSlot09 = 15
ExtraSlot10 = 16
ExtraSlot11 = 17
ExtraSlot12 = 18
ExtraSlot13 = 19
ExtraSlot14 = 20
ExtraSlot15 = 21
ExtraSlot16 = 22
Trait Implementations§
impl Copy for UiColor
impl Eq for UiColor
impl StructuralPartialEq for UiColor
Auto Trait Implementations§
impl Freeze for UiColor
impl RefUnwindSafe for UiColor
impl Send for UiColor
impl Sync for UiColor
impl Unpin for UiColor
impl UnwindSafe for UiColor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.