OK In progress...

This commit is contained in:
Kolan Sh 2018-01-21 18:56:27 +03:00
parent ee52791eca
commit bd4e6089c9
3 changed files with 13 additions and 21 deletions

View File

@ -303,11 +303,8 @@ namespace CairoChart {
if (evarea.height < 0) evarea.height = 0;
}
protected virtual void rot_axes_titles () {
foreach (var s in series) {
//s.axis_y.title.font = new Font();//s.axis_y.title.font.copy();
foreach (var s in series)
s.axis_y.title.font.orient = Gtk.Orientation.VERTICAL;
s.axis_y.title.font.size = 50;
}
}
protected virtual void eval_plarea () {

View File

@ -9,27 +9,27 @@ namespace CairoChart {
/**
* A font family name, encoded in UTF-8.
*/
public string family;
public string family { get; set; }
/**
* The new font size, in user space units.
*/
public double size;
public double size { get; set; }
/**
* The slant for the font.
*/
public Cairo.FontSlant slant;
public Cairo.FontSlant slant { get; set; }
/**
* The weight for the font.
*/
public Cairo.FontWeight weight;
public Cairo.FontWeight weight { get; set; }
/**
* Font/Text orientation.
*/
public Gtk.Orientation orient;
public Gtk.Orientation orient { get; set; }
/**
* Constructs a new ``Font``.

View File

@ -19,7 +19,7 @@ namespace CairoChart {
}
set {
_text = value;
//_ext = null;// TODO: check necessity
_ext = null;
}
}
@ -32,11 +32,10 @@ namespace CairoChart {
}
set {
_font = value;
// TODO: check necessity
//_font.notify.connect((s, p) => {
// _ext = null;
//});
//_ext = null;// TODO: check necessity
_font.notify.connect((s, p) => {
_ext = null;
});
_ext = null;
}
}
@ -185,10 +184,6 @@ namespace CairoChart {
this.text = text;
this.font = font;
this.color = color;
// TODO: check necessity
//_font.notify.connect((s, p) => {
// _ext = null;
//});
}
/**
@ -197,8 +192,8 @@ namespace CairoChart {
public virtual Text copy () {
var text = new Text (chart);
text.chart = this.chart;
text._text = this._text;
text._font = this._font;
text.text = this.text;
text.font = this.font;
text._ext = this._ext;
text.color = this.color;
return text;