[][src]Struct wasm_game_lib::graphics::canvas::LineStyle

pub struct LineStyle {
    pub color: Color,
    pub size: f64,
    pub cap: LineCap,
    pub join: LineJoin,
}

A struct containing every line option.

Fields

color: Color

The color of the line

size: f64

The width of the line in pixels

cap: LineCap

The lineCap mode

join: LineJoin

The lineJoin mode

Implementations

impl LineStyle[src]

pub fn apply_on_canvas(&self, canvas: &mut Canvas)[src]

Apply these properties on a canvas

Trait Implementations

impl Default for LineStyle[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.