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;
42 return (*this).width == other.width && (*this).height == other.height;
bool operator==(const MultiMapIterator< Tmap_iter1, Tlist_iter1, Tkey, Tvalue1, Tcompare > &iter1, const MultiMapIterator< Tmap_iter2, Tlist_iter2, Tkey, Tvalue2, Tcompare > &iter2)
Compare two MultiMap iterators.
Specification of a rectangle with an absolute top-left coordinate and a (relative) width/height...
Coordinates of a point in 2D.
Specification of a rectangle with absolute coordinates of all edges.
Dimensions (a width and height) of a rectangle in 2D.