In progress...

This commit is contained in:
Kolan Sh 2018-01-18 17:14:54 +03:00
parent b4bc90c45d
commit d3209aec5b
1 changed files with 9 additions and 6 deletions

View File

@ -1,12 +1,12 @@
namespace CairoChart { namespace CairoChart {
/** /**
* Cairo/GTK+ Chart. * Cairo/GTK+ ``Chart``.
*/ */
public class Chart { public class Chart {
/** /**
* Chart Position. * ``Chart`` Position.
*/ */
public Cairo.Rectangle area = Cairo.Rectangle(); public Cairo.Rectangle area = Cairo.Rectangle();
@ -44,7 +44,7 @@ namespace CairoChart {
public Color border_color = Color(0, 0, 0, 0.3); public Color border_color = Color(0, 0, 0, 0.3);
/** /**
* Chart Title. * ``Chart`` Title.
*/ */
public Text title = new Text("Cairo Chart"); public Text title = new Text("Cairo Chart");
@ -54,7 +54,7 @@ namespace CairoChart {
public Legend legend = new Legend(); public Legend legend = new Legend();
/** /**
* Chart Series. * ``Chart`` Series.
*/ */
public Series[] series = {}; public Series[] series = {};
@ -84,7 +84,7 @@ namespace CairoChart {
public Line.Style selection_style = Line.Style (); public Line.Style selection_style = Line.Style ();
/** /**
* Chart cursors. * ``Chart`` cursors.
*/ */
public Cursors cursors { get; protected set; default = new Cursors (); } public Cursors cursors { get; protected set; default = new Cursors (); }
@ -108,10 +108,13 @@ namespace CairoChart {
public double title_indent = 4; public double title_indent = 4;
/** /**
* Constructs a new Chart. * Constructs a new ``Chart``.
*/ */
public Chart () { } public Chart () { }
/**
* Gets a copy of the ``Chart``.
*/
public Chart copy () { public Chart copy () {
var chart = new Chart (); var chart = new Chart ();
chart.bg_color = this.bg_color; chart.bg_color = this.bg_color;