In progress...

This commit is contained in:
Kolan Sh 2018-01-19 19:56:10 +03:00
parent 54b8d430dc
commit 80cc8bfade
2 changed files with 48 additions and 2 deletions

View File

@ -59,7 +59,7 @@ namespace CairoChart {
public Series[] series = {};
/**
* index of the 1'st shown series in a zoommed area.
* Index of the 1'st shown series in a zoommed area.
*/
public int zoom_1st_idx { get; protected set; default = 0; }

View File

@ -1,20 +1,64 @@
namespace CairoChart {
/**
* Text font.
*/
public class Font {
/**
* ``Font`` orientation.
*/
public enum Orientation {
/**
* Horizontal font/text orientation.
*/
HORIZONTAL = 0,
/**
* Vertical font/text orientation.
*/
VERTICAL
}
/**
* ``Font`` Style.
*/
public struct Style {
/**
* A font family name, encoded in UTF-8.
*/
string family;
/**
* The slant for the font.
*/
Cairo.FontSlant slant;
/**
* The weight for the font.
*/
Cairo.FontWeight weight;
Orientation orientation;
/**
* The new font size, in user space units.
*/
double size;
/**
* Font/Text orientation.
*/
Orientation orientation;
/**
* Constructs a new ``Style``.
* @param family a font family name, encoded in UTF-8.
* @param slant the slant for the font.
* @param weight the weight for the font.
* @param size the new font size, in user space units.
* @param orientation font/text orientation.
*/
public Style (string family = "Sans",
Cairo.FontSlant slant = Cairo.FontSlant.NORMAL,
Cairo.FontWeight weight = Cairo.FontWeight.NORMAL,
@ -27,5 +71,7 @@ namespace CairoChart {
this.orientation = orientation;
}
}
private Font () { }
}
}