Cairo-Chart/src/LineStyle.vala

25 lines
665 B
Vala
Raw Normal View History

2017-08-28 14:47:31 +03:00
namespace Gtk.CairoChart {
public struct LineStyle {
double width;
Cairo.LineJoin line_join;
Cairo.LineCap line_cap;
double[]? dashes;
double dash_offset;
Color color;
public LineStyle (Color color = Color(),
double width = 1,
2017-08-28 14:47:31 +03:00
double[]? dashes = null, double dash_offset = 0,
Cairo.LineJoin line_join = Cairo.LineJoin.MITER,
Cairo.LineCap line_cap = Cairo.LineCap.ROUND
) {
2017-08-28 14:47:31 +03:00
this.width = width;
this.line_join = line_join;
this.line_cap = line_cap;
this.dashes = dashes;
this.dash_offset = dash_offset;
this.color = color;
}
}
}