pub struct Callout { /* private fields */ }Expand description
A text label and leader, with explicitly authored label dimensions.
Implementations§
Source§impl Callout
impl Callout
Sourcepub fn new(text: impl Into<String>, target: Point, bounds: Rect) -> Self
pub fn new(text: impl Into<String>, target: Point, bounds: Rect) -> Self
Captures a target and opposite-corner label bounds; validation is deferred.
Sourcepub fn leader_width(self, width: f64) -> Self
pub fn leader_width(self, width: f64) -> Self
Replaces the positive logical leader width.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Callout
impl Freeze for Callout
impl Move 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