pub struct Arrowhead { /* private fields */ }Expand description
Arrowhead / arrowtail vertex generator.
Generates arrow marker polygons. Path ID 0 = tail, path ID 1 = head. The arrow shape is defined by four parameters (d1-d4) for each end.
Port of C++ agg::arrowhead.
Implementations§
Source§impl Arrowhead
impl Arrowhead
Sourcepub fn head(&mut self, d1: f64, d2: f64, d3: f64, d4: f64)
pub fn head(&mut self, d1: f64, d2: f64, d3: f64, d4: f64)
Set head arrow dimensions and enable head.
Sourcepub fn enable_head(&mut self)
pub fn enable_head(&mut self)
Enable head arrow (uses current dimensions).
Sourcepub fn tail(&mut self, d1: f64, d2: f64, d3: f64, d4: f64)
pub fn tail(&mut self, d1: f64, d2: f64, d3: f64, d4: f64)
Set tail arrow dimensions and enable tail.
Sourcepub fn enable_tail(&mut self)
pub fn enable_tail(&mut self)
Enable tail arrow (uses current dimensions).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Arrowhead
impl RefUnwindSafe for Arrowhead
impl Send for Arrowhead
impl Sync for Arrowhead
impl Unpin for Arrowhead
impl UnwindSafe for Arrowhead
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