]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Painter.h
Extracted from r14281
[lyx.git] / src / frontends / Painter.h
index 4dfc02331cbe3a1eae840874b8e02320e62cc4a2..9680acb2e2d10205f227767029b88e9e6a0904f5 100644 (file)
@@ -15,6 +15,8 @@
 
 #include "LColor.h"
 
+#include "support/types.h"
+
 #include <string>
 
 
@@ -24,8 +26,8 @@ namespace lyx {
 namespace graphics {
        class Image;
 }
-}
 
+namespace frontend {
 
 /**
  * Painter - A painter class to encapsulate all graphics parameters and operations
@@ -110,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,
@@ -152,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
@@ -180,4 +182,7 @@ protected:
        virtual void buttonFrame(int x, int y, int w, int h);
 };
 
+} // namespace frontend
+} // namespace lyx
+
 #endif // PAINTER_H