aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/size.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libsample/size.h')
-rw-r--r--tests/libsample/size.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/libsample/size.h b/tests/libsample/size.h
index 6154245f7..3915bf502 100644
--- a/tests/libsample/size.h
+++ b/tests/libsample/size.h
@@ -182,5 +182,17 @@ inline const Size operator/(const Size& s, double div)
return Size(s.m_width / div, s.m_height / div);
}
+typedef double real;
+class LIBSAMPLE_API SizeF
+{
+public:
+ SizeF(real width, real height) : m_width(width), m_height(height) {}
+ real width() { return m_width; }
+ real height() { return m_height; }
+private:
+ real m_width;
+ real m_height;
+};
+
#endif // SIZE_H