Add a new image size mode (nothing here uses it though). Also add Bounds.Expand

This commit is contained in:
Henrik Rydgard committed 2015-02-01 18:03:31 +01:00
1 parent a72858d15e
commit 5becb9a4be
2 files changed
+4

No files matched your search

+3
View File
@@ -59,6 +59,9 @@ struct Bounds {
Point Center() const {
return Point(centerX(), centerY());
}
Bounds Expand(float amount) const {
return Bounds(x - amount, y - amount, w + amount * 2, h + amount * 2);
}
float x;
float y;
+1
View File
@@ -701,6 +701,7 @@ private:
enum ImageSizeMode {
IS_DEFAULT,
IS_FIXED,
};
class ImageView : public InertView {