In progress...

This commit is contained in:
Kolan Sh 2018-01-20 13:46:22 +03:00
parent 2390bfdf8d
commit 21c39c46a0
1 changed files with 72 additions and 0 deletions

72
src/Rect.vala Normal file
View File

@ -0,0 +1,72 @@
namespace CairoChart {
/**
*
*/
[Compact]
public class Rect {
/**
*
*/
public double x0 = 0;
/**
*
*/
public double x1 = 1;
/**
*
*/
public double y0 = 0;
/**
*
*/
public double y1 = 1;
/**
*
*/
public double width {
get {
return x1 - x0;
}
protected set {
width = value;
x1 = x0 + width;
}
}
/**
*
*/
public double height {
get {
return y1 - y0;
}
protected set {
width = value;
y1 = y0 + height;
}
}
/**
*
*/
Rect () { }
/**
*
*/
Rect.with_abs () {
}
/**
*
*/
Rect.with_rel () {
}
}
}