// -*- C++ -*-
-
/**
- * \file dimension.h
- *
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
+ * \file dimension.h
+ * 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.
+ * Full author contact details are available in file CREDITS.
*/
#ifndef DIMENSION_H
#define DIMENSION_H
+namespace lyx {
+
class LyXFont;
/// Simple wrapper around three ints
-struct Dimension {
+class Dimension {
public:
/// constructor
Dimension() : wid(0), asc(0), des(0) {}
/// get width
int width() const { return wid; }
+ /// add space for a frame
+ //void addFrame(int frame) const;
+ /// add space for bottom part of a frame
+ //void addFrameBottom(int frame) const;
+
public:
/// these are intentionally public as things like
///
- /// dim.asc += 20;
+ /// dim.asc += 20;
///
/// are used all over the place and "hiding" those behind
///
int des;
};
+inline
+bool operator==(Dimension const & a, Dimension const & b)
+{
+ return a.wid == b.wid && a.asc == b.asc && a.des ==b.des ;
+}
+
+
+} // namespace lyx
+
#endif