branch | new_graphics |
changeset 410 | 41fd46cffc52 |
parent 393 | 5dd4d782cf3a |
child 411 | 106aaf6eadfe |
--- a/src/Types.hh Wed Jan 21 00:21:42 2009 +0200 +++ b/src/Types.hh Wed Jan 21 01:57:24 2009 +0200 @@ -30,6 +30,19 @@ typedef VectorType<PixelDimension> PixelCoordinate; /** + * Dimensions of something in pixels + */ +struct PixelDimensions { + /** Item width/height */ + PixelDimension width, height; + + /** Simple constructor */ + PixelDimensions (PixelDimension width, PixelDimension height) : + width(width), height(height) + { } +}; + +/** * A rectangular area of pixels */ struct PixelArea {