geometry_type.hpp

Go to the documentation of this file.
00001 /* $Id: geometry_type.hpp 17248 2009-08-21 20:21:05Z rubidium $ */
00002 
00003 /*
00004  * This file is part of OpenTTD.
00005  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
00006  * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00007  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
00008  */
00009 
00012 #ifndef GEOMETRY_TYPE_HPP
00013 #define GEOMETRY_TYPE_HPP
00014 
00015 #if defined(__AMIGA__)
00016   /* AmigaOS already has a Point declared */
00017   #define Point OTTD_Point
00018 #endif /* __AMIGA__ */
00019 
00020 #if defined(__APPLE__)
00021   /* Mac OS X already has both Rect and Point declared */
00022   #define Rect OTTD_Rect
00023   #define Point OTTD_Point
00024 #endif /* __APPLE__ */
00025 
00026 
00028 struct Point {
00029   int x;
00030   int y;
00031 };
00032 
00034 struct Dimension {
00035   uint width;
00036   uint height;
00037 };
00038 
00040 struct Rect {
00041   int left;
00042   int top;
00043   int right;
00044   int bottom;
00045 };
00046 
00051 struct PointDimension {
00052   int x;
00053   int y;
00054   int width;
00055   int height;
00056 };
00057 
00059 struct Pair {
00060   int a;
00061   int b;
00062 };
00063 
00064 #endif /* GEOMETRY_TYPE_HPP */

Generated on Sat Apr 17 23:24:47 2010 for OpenTTD by  doxygen 1.6.1