3 * \file CaretGeometry.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Jean-Marc Lasgouttes
9 * Full author contact details are available in file CREDITS.
12 #ifndef CARETGEOMETRY_H
13 #define CARETGEOMETRY_H
15 #include "Dimension.h"
25 * CaretGeometry - Data for painting the caret
27 struct CaretGeometry {
29 int height() const { return bottom - top; }
31 int width() const { return right - left; }
34 typedef std::vector<Point> Shape;
36 typedef std::list<Shape> Shapes;
49 } // namespace frontend
52 #endif // CARETGEOMETRY_H