From f3e06ef9c784d83c766d2386a439bcf3f162235c Mon Sep 17 00:00:00 2001 From: Martin Read Date: Thu, 22 Mar 2012 19:12:05 +0000 Subject: [PATCH] New class representing lines --- include/libmormegil/Line.hh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 include/libmormegil/Line.hh diff --git a/include/libmormegil/Line.hh b/include/libmormegil/Line.hh new file mode 100644 index 0000000..ab9d714 --- /dev/null +++ b/include/libmormegil/Line.hh @@ -0,0 +1,32 @@ +// libmormegil/Line.hh +// +// In jurisdictions where this file would be adjuged to contain copyrightable +// material, it is copyright 2012 Martin Read, and released to the public +// under the terms of the Creative Commons Public Domain Dedication (cc-0). +// It is provided without any warranty, express or implied. + +#ifndef libmormegil_Line_hh +#define libmormegil_Line_hh + +#ifndef libmormegil_Coord_hh +#include +#endif + +namespace libmormegil +{ + template struct basic_line + { + typedef basic_line& ref; + typedef const basic_line& const_ref; + typedef basic_coord punkt; + typedef basic_coord& punktref; + typedef const basic_coord& const_punktref; + basic_coord topleft; + basic_coord botright; + }; + typedef basic_line Line; + typedef basic_line Line64; +} +#endif // libmormegil_Line_hh + +// vim:ts=8:sts=4:sw=4:expandtab:fo=croq -- 2.11.0