pub struct PullArrow {
pub size: f32,
pub stroke: f32,
pub rotation: f32,
pub arc: [f32; 4],
pub start_angle: f32,
pub sweep_angle: f32,
pub points: [f32; 6],
pub arrow_rotation: f32,
}Expand description
The arrow’s drawing on its canvas at a distance fraction: arc and head, with the rotations Compose applies about the canvas center.
Fields§
§size: f32The canvas’s side, in whole pixels.
stroke: f32The stroke width.
rotation: f32Degrees the whole drawing turns. Compose passes a fraction of a turn here as is, so this stays near zero; the value keeps that parity.
arc: [f32; 4]The arc’s bounds as left, top, width, height.
start_angle: f32Where the arc starts, in degrees clockwise from three o’clock.
sweep_angle: f32How far the arc sweeps, in degrees.
points: [f32; 6]The arrow head’s open triangle as x, y pairs.
arrow_rotation: f32Degrees the head turns further about the center.
Trait Implementations§
impl Copy for PullArrow
impl StructuralPartialEq for PullArrow
Auto Trait Implementations§
impl Freeze for PullArrow
impl RefUnwindSafe for PullArrow
impl Send for PullArrow
impl Sync for PullArrow
impl Unpin for PullArrow
impl UnsafeUnpin for PullArrow
impl UnwindSafe for PullArrow
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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