pub struct SketchColors {
pub movable: u32,
pub locked: u32,
pub geometry: u32,
pub point: u32,
pub construction_point: u32,
pub under_constrained_point: u32,
pub selected: u32,
pub hovered: u32,
pub preview: u32,
pub constraint: u32,
pub conflict: u32,
}Expand description
The sketcher’s overlay palette as plain 0xRRGGBB hex — the ONE place the
default color literals live. RenderSettings stores each of these as an
editable Rgba field (defaults derived from here via [hex]) and hands the
sketch tessellation/overlay builders a live SketchColors view via
RenderSettings::sketch_colors, so the sketch renderer reads its colors from
the display settings just like faces/edges/vertices do — no scattered constants.
The constraint green is a deliberate user directive (2026-08-22): CONSTRAINT
annotations (geometric-constraint glyphs + dimension leaders/labels) read in
green so they stand apart from the blue/white sketch GEOMETRY.
Fields§
§movable: u32Movable geometry / point (blue).
locked: u32Locked geometry / point (near-white).
geometry: u32No-mobility geometry fallback (yellow).
point: u32No-mobility point fallback.
construction_point: u32Construction point (orange).
under_constrained_point: u32Heuristic under-constrained point.
selected: u32Selected entity — amber (the transform-gizmo accent); beats hover.
hovered: u32Hovered entity — light blue (brighter than movable).
preview: u32Draw-tool rubber-band preview (dim, so it reads as tentative).
constraint: u32Constraint annotations — glyphs + dimension leaders/labels (green).
conflict: u32A constraint the solver named as part of a CONFLICT — the red of the status bar’s conflict dot, so the two readouts agree at a glance.
Trait Implementations§
Source§impl Clone for SketchColors
impl Clone for SketchColors
Source§fn clone(&self) -> SketchColors
fn clone(&self) -> SketchColors
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SketchColors
Source§impl Debug for SketchColors
impl Debug for SketchColors
Source§impl Default for SketchColors
impl Default for SketchColors
impl Eq for SketchColors
Source§impl PartialEq for SketchColors
impl PartialEq for SketchColors
impl StructuralPartialEq for SketchColors
Auto Trait Implementations§
impl Freeze for SketchColors
impl RefUnwindSafe for SketchColors
impl Send for SketchColors
impl Sync for SketchColors
impl Unpin for SketchColors
impl UnsafeUnpin for SketchColors
impl UnwindSafe for SketchColors
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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> ⓘ
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 more