Merge branch 'master' into advanced-text
This commit is contained in:
commit
d1dc62ebcd
7 changed files with 21 additions and 38 deletions
|
|
@ -59,9 +59,10 @@ impl<'a> Default for Stroke<'a> {
|
|||
}
|
||||
|
||||
/// The shape used at the end of open subpaths when they are stroked.
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
#[derive(Debug, Clone, Copy, Default)]
|
||||
pub enum LineCap {
|
||||
/// The stroke for each sub-path does not extend beyond its two endpoints.
|
||||
#[default]
|
||||
Butt,
|
||||
/// At the end of each sub-path, the shape representing the stroke will be
|
||||
/// extended by a square.
|
||||
|
|
@ -71,17 +72,12 @@ pub enum LineCap {
|
|||
Round,
|
||||
}
|
||||
|
||||
impl Default for LineCap {
|
||||
fn default() -> LineCap {
|
||||
LineCap::Butt
|
||||
}
|
||||
}
|
||||
|
||||
/// The shape used at the corners of paths or basic shapes when they are
|
||||
/// stroked.
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
#[derive(Debug, Clone, Copy, Default)]
|
||||
pub enum LineJoin {
|
||||
/// A sharp corner.
|
||||
#[default]
|
||||
Miter,
|
||||
/// A round corner.
|
||||
Round,
|
||||
|
|
@ -89,12 +85,6 @@ pub enum LineJoin {
|
|||
Bevel,
|
||||
}
|
||||
|
||||
impl Default for LineJoin {
|
||||
fn default() -> LineJoin {
|
||||
LineJoin::Miter
|
||||
}
|
||||
}
|
||||
|
||||
/// The dash pattern used when stroking the line.
|
||||
#[derive(Debug, Clone, Copy, Default)]
|
||||
pub struct LineDash<'a> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue