[−][src]Struct graphics::line::Line
A colored line with a default border radius
Fields
color: Color
The line color
radius: Radius
The line radius
shape: Shape
The line shape
Methods
impl Line
[src]
impl Line
pub fn new(color: Color, radius: Radius) -> Line | [src] |
Creates a new line
pub fn new_round(color: Color, radius: Radius) -> Line | [src] |
Creates a new line
pub fn color(self, value: Color) -> Self | [src] |
Sets color.
pub fn radius(self, value: Radius) -> Self | [src] |
Sets radius.
pub fn width(self, value: Width) -> Self | [src] |
Sets width.
pub fn shape(self, value: Shape) -> Self | [src] |
Sets shape.
pub fn draw<L: Into<Line>, G>( | [src] |
Draws line using default method.
pub fn draw_tri<L: Into<Line>, G>( | [src] |
Draws line using triangulation.
pub fn draw_arrow<L: Into<Line>, G>( | [src] |
Draws an arrow
Head size is the sides of the triangle between the arrow hooks and the line
Trait Implementations
impl Colored for Line
[src]
impl Colored for Line
fn mul_rgba( | [src] |
fn hue_rad(self, angle: ColorComponent) -> Self | [src] |
fn tint(self, f: ColorComponent) -> Self | [src] |
Mixes the current color with white. Read more
fn shade(self, f: ColorComponent) -> Self | [src] |
Mixes the current color with black. Read more
fn hue_deg(self, angle: ColorComponent) -> Self | [src] |
Rotates hue by degrees.
impl Copy for Line
[src]
impl Copy for Line
impl Clone for Line
[src]
impl Clone for Line
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |