pub struct Highlight;Expand description
Highlight preset constructors.
All constructors return Vectors — pure data — so the caller
is free to apply transforms, opacity, or render-time decoration
before adding to the stage.
Implementations§
Source§impl Highlight
impl Highlight
Sourcepub fn outline(shape: VectorShape, color: Color, width: f32) -> Vector
pub fn outline(shape: VectorShape, color: Color, width: f32) -> Vector
Outline-ring highlight: a stroke-only outline with no fill. The classic “glowing border” effect for buttons / form fields.
Sourcepub fn filled(shape: VectorShape, color: Color, alpha: f32) -> Vector
pub fn filled(shape: VectorShape, color: Color, alpha: f32) -> Vector
Filled highlight: a translucent fill of the shape so the
underlying content shows through. alpha is the multiplied
opacity (clamped to [0, 1]); color’s own alpha is honored
as well.
Sourcepub fn pill(rect: Rect, color: Color, alpha: f32) -> Vector
pub fn pill(rect: Rect, color: Color, alpha: f32) -> Vector
“Pill” highlight — a rounded-rect filled overlay over a
horizontal label. Convenience over filled for the common
menu-item / chip use case.
Sourcepub fn glow(shape: VectorShape, color: Color, width: f32) -> Vector
pub fn glow(shape: VectorShape, color: Color, width: f32) -> Vector
Cheap soft-glow approximation: a stroke that’s wider than a regular outline, with a low-alpha color. Not a true Gaussian glow — that’s deferred to AUT-49 (M-DYN.7 feathered-edge mask) once feathering ships. Documented as preliminary.
Auto Trait Implementations§
impl Freeze for Highlight
impl RefUnwindSafe for Highlight
impl Send for Highlight
impl Sync for Highlight
impl Unpin for Highlight
impl UnsafeUnpin for Highlight
impl UnwindSafe for Highlight
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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