# geometry_type.hpp

Go to the documentation of this file.

    00001 /* $Id: geometry_type.hpp 12936 2008-05-04 08:38:21Z rubidium $ */
    00002
    00005 #ifndef GEOMETRY_TYPE_HPP
    00006 #define GEOMETRY_TYPE_HPP
    00007
    00008 #if defined(__AMIGA__)
    00009   /* AmigaOS already has a Point declared */
    00010   #define Point OTTD_Point
    00011 #endif /* __AMIGA__ */
    00012
    00013 #if defined(__APPLE__)
    00014   /* Mac OS X already has both Rect and Point declared */
    00015   #define Rect OTTD_Rect
    00016   #define Point OTTD_Point
    00017 #endif /* __APPLE__ */
    00018
    00019
    00021 struct Point {
    00022   int x;
    00023   int y;
    00024 };
    00025
    00027 struct Dimension {
    00028   int width;
    00029   int height;
    00030 };
    00031
    00033 struct Rect {
    00034   int left;
    00035   int top;
    00036   int right;
    00037   int bottom;
    00038 };
    00039
    00044 struct PointDimension {
    00045   int x;
    00046   int y;
    00047   int width;
    00048   int height;
    00049 };
    00050
    00052 struct Pair {
    00053   int a;
    00054   int b;
    00055 };
    00056
    00057 #endif /* GEOMETRY_TYPE_HPP */