src/Types.hh
changeset 393 5dd4d782cf3a
parent 370 39e59dd36b6e
child 410 41fd46cffc52
--- a/src/Types.hh	Tue Jan 13 21:36:43 2009 +0200
+++ b/src/Types.hh	Tue Jan 13 23:15:47 2009 +0200
@@ -30,6 +30,17 @@
 typedef VectorType<PixelDimension> PixelCoordinate;
 
 /**
+ * A rectangular area of pixels
+ */
+struct PixelArea {
+    PixelDimension left, top, right, bottom;
+
+    PixelArea (PixelDimension left, PixelDimension top, PixelDimension right, PixelDimension bottom) :
+        left(left), top(top), right(right), bottom(bottom)
+    { }
+};
+
+/**
  * A time interval, measured in real milliseconds
  */
 typedef signed long TimeMS;