Cairo-Chart/src/Label.vala

47 lines
827 B
Vala
Raw Normal View History

2018-01-08 23:33:13 +03:00
namespace CairoChart {
/**
2018-01-24 11:38:42 +03:00
* ``Cursors`` values style.
2018-01-08 23:33:13 +03:00
*/
public class LabelStyle {
2018-01-08 23:33:13 +03:00
/**
* Background color.
2018-01-08 23:33:13 +03:00
*/
public Color bg_color;
2018-01-08 23:33:13 +03:00
/**
* Frame line style.
*/
public LineStyle frame_style;
2018-01-08 23:33:13 +03:00
/**
* Font style.
*/
public Font font;
/**
* Constructs a new ``LabelStyle``.
* @param font font style.
* @param bg_color background color.
* @param frame_style frame line style.
2018-01-08 23:33:13 +03:00
*/
public LabelStyle (
Color bg_color = Color(1, 1, 1, 1),
LineStyle frame_style = LineStyle(Color(0, 0, 0, 0.1)),
Font font = new Font()
) {
this.bg_color = bg_color;
this.frame_style = frame_style;
this.font = font;
}
2018-01-08 23:33:13 +03:00
/**
* Gets a copy of the ``LabelStyle``.
2018-01-08 23:33:13 +03:00
*/
public virtual LabelStyle copy () {
return new LabelStyle(bg_color, frame_style, font);
}
2018-01-08 23:33:13 +03:00
}
}