pub struct Line {
pub color: [f32; 4],
pub radius: f64,
pub shape: Shape,
}
Expand description
A colored line with a default border radius
Fields§
§color: [f32; 4]
The line color
radius: f64
The line radius
shape: Shape
The line shape
Implementations§
Source§impl Line
impl Line
Sourcepub fn draw_from_to<P, G>(
&self,
from: P,
to: P,
draw_state: &DrawState,
transform: [[f64; 3]; 2],
g: &mut G,
)
pub fn draw_from_to<P, G>( &self, from: P, to: P, draw_state: &DrawState, transform: [[f64; 3]; 2], g: &mut G, )
Draws line using default method between points.
Sourcepub fn draw<L, G>(
&self,
line: L,
draw_state: &DrawState,
transform: [[f64; 3]; 2],
g: &mut G,
)
pub fn draw<L, G>( &self, line: L, draw_state: &DrawState, transform: [[f64; 3]; 2], g: &mut G, )
Draws line using default method.
Trait Implementations§
Source§impl Colored for Line
impl Colored for Line
impl Copy for Line
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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