pub type DrawingArrow<'a> = Drawing<'a, Arrow>;
Expand description
The drawing context for a line.
Aliased Type§
struct DrawingArrow<'a> { /* private fields */ }
Implementations§
source§impl<'a> DrawingArrow<'a>
impl<'a> DrawingArrow<'a>
sourcepub fn points(self, start: Point2, end: Point2) -> Self
pub fn points(self, start: Point2, end: Point2) -> Self
Specify the start and end points of the arrow.
sourcepub fn head_length(self, length: f32) -> Self
pub fn head_length(self, length: f32) -> Self
The length of the arrow head.
By default, this is equal to weight * 4.0
.
This value will be clamped to the length of the line itself.
sourcepub fn head_width(self, width: f32) -> Self
pub fn head_width(self, width: f32) -> Self
The width of the arrow head.
By default, this is equal to weight * 2.0
.