changeset 9077:273458082ec2 draft

(svn r12936) -Doc: a few structs in geometry_type.hpp. Patch by Alberth.
author rubidium <rubidium@openttd.org>
date Sun, 04 May 2008 08:38:21 +0000
parents 80b7a6d19efc
children 282914cc2ae5
files src/core/geometry_type.hpp
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/core/geometry_type.hpp
+++ b/src/core/geometry_type.hpp
@@ -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;