Cairo-Chart/src/FontStyle.vala

28 lines
656 B
Vala
Raw Normal View History

2017-08-28 14:47:31 +03:00
namespace Gtk.CairoChart {
public enum FontOrient {
HORIZONTAL = 0,
VERTICAL
}
public struct FontStyle {
string family;
Cairo.FontSlant slant;
Cairo.FontWeight weight;
FontOrient orientation;
double size;
public FontStyle (string family = "Sans",
Cairo.FontSlant slant = Cairo.FontSlant.NORMAL,
Cairo.FontWeight weight = Cairo.FontWeight.NORMAL,
2017-12-15 17:15:15 +03:00
double size = 10,
FontOrient orientation = FontOrient.HORIZONTAL) {
2017-08-28 14:47:31 +03:00
this.family = family;
this.slant = slant;
this.weight = weight;
this.size = size;
2017-12-15 17:15:15 +03:00
this.orientation = orientation;
2017-08-28 14:47:31 +03:00
}
}
}