10 #ifndef GEOMETRY_TYPE_HPP
11 #define GEOMETRY_TYPE_HPP
13 #if defined(__APPLE__)
15 # define Rect OTTD_Rect
16 # define Point OTTD_Point
31 Dimension(uint w = 0, uint h = 0) : width(w), height(h) {};
33 bool operator< (
const Dimension &other)
const
35 int x = (*this).width - other.width;
36 if (x != 0)
return x < 0;
37 return (*this).height < other.height;
40 bool operator== (
const Dimension &other)
const
42 return (*this).width == other.width && (*this).height == other.height;