pub enum StrokeMarkerAnchor2d {
BaseAtEndpoint,
TipAtEndpoint,
}Expand description
Placement of a logical-pixel arrow relative to its mathematical path endpoint.
Variants§
BaseAtEndpoint
Put the marker base at the endpoint and extend its tip outward.
TipAtEndpoint
Put the marker tip exactly at the endpoint and shorten the shaft inward.
Supported on undashed two-point paths only. Both shaft ends use butt boundaries. Each inward length is bounded to one quarter of the projected segment’s larger absolute X/Y span, preserving a non-inverted shaft even with two markers. Marker width stays in logical pixels. World-width shaft boundaries are perpendicular to the projected tangent, keeping their projected perpendicular thickness without shear into the arrowhead.
Trait Implementations§
Source§impl Clone for StrokeMarkerAnchor2d
impl Clone for StrokeMarkerAnchor2d
impl Copy for StrokeMarkerAnchor2d
Source§impl Debug for StrokeMarkerAnchor2d
impl Debug for StrokeMarkerAnchor2d
impl Eq for StrokeMarkerAnchor2d
Source§impl PartialEq for StrokeMarkerAnchor2d
impl PartialEq for StrokeMarkerAnchor2d
impl StructuralPartialEq for StrokeMarkerAnchor2d
Auto Trait Implementations§
impl Freeze for StrokeMarkerAnchor2d
impl RefUnwindSafe for StrokeMarkerAnchor2d
impl Send for StrokeMarkerAnchor2d
impl Sync for StrokeMarkerAnchor2d
impl Unpin for StrokeMarkerAnchor2d
impl UnsafeUnpin for StrokeMarkerAnchor2d
impl UnwindSafe for StrokeMarkerAnchor2d
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.