]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/textpainter.h
Geof Piroux's patch for Mathematica support
[lyx.git] / src / mathed / textpainter.h
index d5e86fbf8dd7b475bf31e0ffccdf3b6bdc97793a..702d573cfa807a2f09cc202cb63ad3675dffde71 100644 (file)
@@ -2,6 +2,7 @@
 #define TEXTPAINTER_H
 
 #include <vector>
+#include <iosfwd>
 
 class TextPainter {
        public:
@@ -9,6 +10,16 @@ class TextPainter {
                TextPainter(int xmax, int ymax);
                ///
                void draw(int x, int y, char const * str);
+               ///
+               void draw(int x, int y, char c);
+               ///
+               void show(std::ostream & os) const;
+               ///
+               int textheight() const { return ymax_; }
+               ///
+               void horizontalLine(int x, int y, int len, char c = '-');
+               ///
+               void verticalLine(int x, int y, int len, char c = '|');
 
        private:
                ///
@@ -18,12 +29,12 @@ class TextPainter {
                ///
                char & at(int x, int y);
 
-               ///
-               data_type data_;
-               ///
+               /// xsize of the painter area
                int xmax_;
-               ///
+               /// ysize of the painter area
                int ymax_;
+               /// the image
+               data_type data_;
 };
 
 #endif