# HG changeset patch # User rubidium # Date 1209890301 0 # Node ID 1ac587da1d581b526cbcfecf1c86a27f547430fa # Parent 30574351a0adeedba4db93e7dc1c14308d2621d4 (svn r12936) -Doc: a few structs in geometry_type.hpp. Patch by Alberth. diff -r 30574351a0ad -r 1ac587da1d58 src/core/geometry_type.hpp --- a/src/core/geometry_type.hpp Fri May 02 08:15:36 2008 +0000 +++ b/src/core/geometry_type.hpp Sun May 04 08:38:21 2008 +0000 @@ -17,16 +17,19 @@ #endif /* __APPLE__ */ +/** Coordinates of a point in 2D */ struct Point { int x; int y; }; +/** Dimensions (a width and height) of a rectangle in 2D */ struct Dimension { int width; int height; }; +/** Specification of a rectangle with absolute coordinates of all edges */ struct Rect { int left; int top; @@ -34,6 +37,10 @@ int bottom; }; +/** + * Specification of a rectangle with an absolute top-left coordinate and a + * (relative) width/height + */ struct PointDimension { int x; int y; @@ -41,6 +48,7 @@ int height; }; +/** A pair of two integers */ struct Pair { int a; int b;