* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author André Pönitz
+ * \author André Pönitz
*
* Full author contact details are available in file CREDITS.
*/
void operator+=(Dimension const & dim);
/// set to empty box
void clear() { wid = asc = des = 0; }
+ /// check if box is empty
+ bool empty() const { return wid == 0 && asc == 0 && wid == 0; }
/// get height
int height() const { return asc + des; }
/// get ascent
return a.wid != b.wid || a.asc != b.asc || a.des != b.des ;
}
+class Point {
+public:
+ Point()
+ : x_(0), y_(0)
+ {}
+
+ Point(int x, int y);
+
+ int x_, y_;
+};
} // namespace lyx