pub struct Callout;Expand description
Callout preset constructors.
Implementations§
Source§impl Callout
impl Callout
Sourcepub fn label_box(
rect: Rect,
fill: Color,
stroke: Option<VectorStroke>,
radius: f32,
) -> Vector
pub fn label_box( rect: Rect, fill: Color, stroke: Option<VectorStroke>, radius: f32, ) -> Vector
Filled rounded-rect label box. Optional stroke gives it an outlined “card” feel.
Sourcepub fn badge(center: Vec2, radius: f32, fill: Color) -> Vector
pub fn badge(center: Vec2, radius: f32, fill: Color) -> Vector
Filled circle for numbered step markers, badges, dots.
Sourcepub fn caption_pill(rect: Rect, fill: Color) -> Vector
pub fn caption_pill(rect: Rect, fill: Color) -> Vector
Wide rounded-rect caption pill. Convenience over
label_box for the common single-line caption use case (radius
is half the rect’s height).
Sourcepub fn arrow_to(from: Vec2, to: Vec2, width: f32, color: Color) -> Graphics
pub fn arrow_to(from: Vec2, to: Vec2, width: f32, color: Color) -> Graphics
Arrow from from to to (M-VEC.10 / AUT-62). Returns a
stroked Graphics — arrows are
multi-segment and don’t fit the single-Vector shape that
other callouts use. Caller adds it to the stage like any
other Graphics node.
Arrowhead size auto-scales to ~18% of the stem length.
Auto Trait Implementations§
impl Freeze for Callout
impl RefUnwindSafe for Callout
impl Send for Callout
impl Sync for Callout
impl Unpin for Callout
impl UnsafeUnpin for Callout
impl UnwindSafe for Callout
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
Mutably borrows from an owned value. Read more
§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>
Converts
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>
Converts
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