Enum flo_canvas::PathAttribute[][src]

pub enum PathAttribute {
    Stroke(f32, Color),
    StrokePixels(f32, Color),
    Fill(Color),
    FillTexture(TextureId, (f32, f32), (f32, f32), Option<Transform2D>),
    FillGradient(GradientId, (f32, f32), (f32, f32), Option<Transform2D>),
}
Expand description

Attributes used to render a bezier path

Variants

Stroke

Path is drawn as a stroke with the specified width and colour

Tuple Fields of Stroke

0: f321: Color
StrokePixels

Path is drawn as a stroke with the specified pixel width and colour

Tuple Fields of StrokePixels

0: f321: Color
Fill

Path is filled with the specified colour

Tuple Fields of Fill

0: Color
FillTexture

Path is filled with the specified texture

Tuple Fields of FillTexture

0: TextureId1: (f32, f32)2: (f32, f32)3: Option<Transform2D>
FillGradient

Path is filled with the specified gradient

Tuple Fields of FillGradient

0: GradientId1: (f32, f32)2: (f32, f32)3: Option<Transform2D>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.