]> git.lyx.org Git - lyx.git/blobdiff - src/dimension.h
update FSF address
[lyx.git] / src / dimension.h
index f6ab891cc99760e46fb312021482f799fa0046cb..4e803682d3d97f6663840544cdbaceeae73f52f8 100644 (file)
 #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) {}
@@ -46,7 +48,7 @@ public:
 public:
        /// these are intentionally public as things like
        ///
-       ///   dim.asc += 20; 
+       ///   dim.asc += 20;
        ///
        /// are used all over the place and "hiding" those behind
        ///
@@ -61,4 +63,13 @@ public:
        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