From 8f0e68285b4eadd1780280d7e36b00ff80c20f67 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 22 Dec 2007 23:30:28 +0000 Subject: (svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type. --- src/core/geometry_type.hpp | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/core/geometry_type.hpp (limited to 'src/core') diff --git a/src/core/geometry_type.hpp b/src/core/geometry_type.hpp new file mode 100644 index 000000000..f2759ef4d --- /dev/null +++ b/src/core/geometry_type.hpp @@ -0,0 +1,37 @@ +/* $Id$ */ + +/** @file geometry_type.hpp All geometry types in OpenTTD. */ + +#ifndef GEOMETRY_TYPE_HPP +#define GEOMETRY_TYPE_HPP + +struct Point { + int x; + int y; +}; + +struct Dimension { + int width; + int height; +}; + +struct Rect { + int left; + int top; + int right; + int bottom; +}; + +struct PointDimension { + int x; + int y; + int width; + int height; +}; + +struct Pair { + int a; + int b; +}; + +#endif /* GEOMETRY_TYPE_HPP */ -- cgit v1.2.3-54-g00ecf