Support image slice/scale-9 for CanvasImage.

This commit is contained in:
Thomas Geymayer
2013-02-24 17:57:19 +01:00
parent 06bfa4f1a1
commit 5441db9b18
3 changed files with 294 additions and 32 deletions
+5
View File
@@ -99,6 +99,11 @@ class SGRect
T t() const { return _min.y(); }
T b() const { return _max.y(); }
T& l() { return _min.x(); }
T& r() { return _max.x(); }
T& t() { return _min.y(); }
T& b() { return _max.y(); }
void setLeft(T l) { _min.x() = l; }
void setRight(T r) { _max.x() = r; }
void setTop(T t) { _min.y() = t; }