]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Painter.h
Extracted from r14281
[lyx.git] / src / frontends / Painter.h
index 1fb8a74a965046d5d23e27614da2d5b70b83e76c..9680acb2e2d10205f227767029b88e9e6a0904f5 100644 (file)
 #ifndef PAINTER_H
 #define PAINTER_H
 
+#include "LColor.h"
+
+#include "support/types.h"
+
 #include <string>
 
 
-class LColor_color;
 class LyXFont;
 
 namespace lyx {
 namespace graphics {
        class Image;
 }
-}
 
+namespace frontend {
 
 /**
  * Painter - A painter class to encapsulate all graphics parameters and operations
@@ -109,7 +112,7 @@ public:
                int w, int h,
                LColor_color) = 0;
 
-       /// draw a filled (irregular) polygon
+       /// draw a filled (irregular) polygon (UNUSED, could be removed)
        virtual void fillPolygon(
                int const * xp,
                int const * yp,
@@ -151,7 +154,7 @@ public:
 
        /// draw a char at position x, y (y is the baseline)
        virtual void text(int x, int y,
-               char c, LyXFont const & f) = 0;
+                         lyx::char_type c, LyXFont const & f) = 0;
 
        /**
         * Draw a string and enclose it inside a rectangle. If
@@ -179,4 +182,7 @@ protected:
        virtual void buttonFrame(int x, int y, int w, int h);
 };
 
+} // namespace frontend
+} // namespace lyx
+
 #endif // PAINTER_H