In progress...
This commit is contained in:
parent
54b8d430dc
commit
80cc8bfade
|
@ -59,7 +59,7 @@ namespace CairoChart {
|
||||||
public Series[] series = {};
|
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; }
|
public int zoom_1st_idx { get; protected set; default = 0; }
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,64 @@
|
||||||
namespace CairoChart {
|
namespace CairoChart {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Text font.
|
||||||
|
*/
|
||||||
public class Font {
|
public class Font {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ``Font`` orientation.
|
||||||
|
*/
|
||||||
public enum Orientation {
|
public enum Orientation {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Horizontal font/text orientation.
|
||||||
|
*/
|
||||||
HORIZONTAL = 0,
|
HORIZONTAL = 0,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Vertical font/text orientation.
|
||||||
|
*/
|
||||||
VERTICAL
|
VERTICAL
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ``Font`` Style.
|
||||||
|
*/
|
||||||
public struct Style {
|
public struct Style {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A font family name, encoded in UTF-8.
|
||||||
|
*/
|
||||||
string family;
|
string family;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The slant for the font.
|
||||||
|
*/
|
||||||
Cairo.FontSlant slant;
|
Cairo.FontSlant slant;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The weight for the font.
|
||||||
|
*/
|
||||||
Cairo.FontWeight weight;
|
Cairo.FontWeight weight;
|
||||||
|
|
||||||
Orientation orientation;
|
/**
|
||||||
|
* The new font size, in user space units.
|
||||||
|
*/
|
||||||
double size;
|
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",
|
public Style (string family = "Sans",
|
||||||
Cairo.FontSlant slant = Cairo.FontSlant.NORMAL,
|
Cairo.FontSlant slant = Cairo.FontSlant.NORMAL,
|
||||||
Cairo.FontWeight weight = Cairo.FontWeight.NORMAL,
|
Cairo.FontWeight weight = Cairo.FontWeight.NORMAL,
|
||||||
|
@ -27,5 +71,7 @@ namespace CairoChart {
|
||||||
this.orientation = orientation;
|
this.orientation = orientation;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private Font () { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue