9723
|
1 |
/* $Id$ */
|
|
2 |
|
|
3 |
/** @file geometry_type.hpp All geometry types in OpenTTD. */
|
|
4 |
|
|
5 |
#ifndef GEOMETRY_TYPE_HPP
|
|
6 |
#define GEOMETRY_TYPE_HPP
|
|
7 |
|
|
8 |
#if defined(__AMIGA__)
|
|
9 |
/* AmigaOS already has a Point declared */
|
|
10 |
#define Point OTTD_Point
|
|
11 |
#endif /* __AMIGA__ */
|
|
12 |
|
|
13 |
#if defined(__APPLE__)
|
|
14 |
/* Mac OS X already has both Rect and Point declared */
|
|
15 |
#define Rect OTTD_Rect
|
|
16 |
#define Point OTTD_Point
|
|
17 |
#endif /* __APPLE__ */
|
|
18 |
|
|
19 |
|
|
20 |
struct Point {
|
|
21 |
int x;
|
|
22 |
int y;
|
|
23 |
};
|
|
24 |
|
|
25 |
struct Dimension {
|
|
26 |
int width;
|
|
27 |
int height;
|
|
28 |
};
|
|
29 |
|
|
30 |
struct Rect {
|
|
31 |
int left;
|
|
32 |
int top;
|
|
33 |
int right;
|
|
34 |
int bottom;
|
|
35 |
};
|
|
36 |
|
|
37 |
struct PointDimension {
|
|
38 |
int x;
|
|
39 |
int y;
|
|
40 |
int width;
|
|
41 |
int height;
|
|
42 |
};
|
|
43 |
|
|
44 |
struct Pair {
|
|
45 |
int a;
|
|
46 |
int b;
|
|
47 |
};
|
|
48 |
|
|
49 |
#endif /* GEOMETRY_TYPE_HPP */
|