X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Ftextpainter.h;h=3ae9ab3f5e09882c0b1071aa4b68e9ef3c669112;hb=12ac7f339e14c4f76a24f45a21c0697303099145;hp=d5e86fbf8dd7b475bf31e0ffccdf3b6bdc97793a;hpb=99cb25781ac599f3aeefb5b391b95ed26b74405f;p=lyx.git diff --git a/src/mathed/textpainter.h b/src/mathed/textpainter.h index d5e86fbf8d..3ae9ab3f5e 100644 --- a/src/mathed/textpainter.h +++ b/src/mathed/textpainter.h @@ -1,7 +1,20 @@ +// -*- C++ -*- +/** + * \file textpainter.h + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. + * + * \author André Pönitz + * + * Full author contact details are available in file CREDITS. + */ + #ifndef TEXTPAINTER_H #define TEXTPAINTER_H + #include +#include class TextPainter { public: @@ -9,6 +22,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, int offset = 0) 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 +41,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