]> git.lyx.org Git - features.git/blobdiff - src/font.h
make doc++ able to generate the source documentation for lyx
[features.git] / src / font.h
index 89f04fa99d85e30cd93447afe037bc2e50de05e5..98f0013f52498f0ae6822c0e69ef69e4f0aad2da 100644 (file)
@@ -24,58 +24,58 @@ class LyXFont;
 
 //namespace lyx {
 //namespace font {
-
+///
 struct lyxfont {
-
+       ///
        static
        int maxAscent(LyXFont const & f);
-
+       ///
        static
        int maxDescent(LyXFont const & f);
-
+       ///
        static
        int ascent(char c, LyXFont const & f);
-
+       ///
        static
        int descent(char c, LyXFont const & f);
-
+       ///
        static
        int lbearing(char c, LyXFont const & f);
-
+       ///
        static
        int rbearing(char c, LyXFont const & f);
-
+       ///
        static
        int width(char c, LyXFont const & f) {
                return width(&c, 1, f);
        }
-
+       ///
        static
        int width(char const * s, int n, LyXFont const & f);
-
+       ///
        static
        int width(string const & s, LyXFont const & f) {
                if (s.empty()) return 0;
                return width(s.c_str(), s.length(), f);
        }
-
+       ///
        static
        int width(char const * s, LyXFont const & f) {
                return width(s, strlen(s), f);
        }
-
+       ///
        static
        int signedWidth(string const & s, LyXFont const & f);
-
+       ///
        static
        int XTextWidth(LyXFont const & f, char * str, int count);
-
+       ///
        static
        int width(XChar2b const * s, int n, LyXFont const & f);
-
+       ///
        static
        int XTextWidth16(LyXFont const & f, XChar2b * str, int count);
-
+       ///
        static
        void XSetFont(Display * display, GC gc, LyXFont const & f);
 };