X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Ftextpainter.h;h=702d573cfa807a2f09cc202cb63ad3675dffde71;hb=cd19a0b33bcc87b46c3567928d85a4c724f49db5;hp=d5e86fbf8dd7b475bf31e0ffccdf3b6bdc97793a;hpb=99cb25781ac599f3aeefb5b391b95ed26b74405f;p=lyx.git diff --git a/src/mathed/textpainter.h b/src/mathed/textpainter.h index d5e86fbf8d..702d573cfa 100644 --- a/src/mathed/textpainter.h +++ b/src/mathed/textpainter.h @@ -2,6 +2,7 @@ #define TEXTPAINTER_H #include +#include 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