Cairo-Chart/src/Grid.vala

23 lines
407 B
Vala
Raw Normal View History

2018-01-08 23:33:13 +03:00
namespace CairoChart {
2017-08-28 14:47:31 +03:00
public class Grid {
/*public enum GridType {
PRICK_LINE = 0, // default
LINE
}*/
public Color color = Color (0, 0, 0, 0.1);
2018-01-08 23:33:13 +03:00
public Line.Style line_style = Line.Style ();
2017-08-28 18:16:48 +03:00
public Grid copy () {
var grid = new Grid ();
grid.color = this.color;
grid.line_style = this.line_style;
return grid;
}
2017-08-28 14:47:31 +03:00
public Grid () {
line_style.dashes = {2, 3};
}
}
}