]> git.lyx.org Git - lyx.git/blob - src/mathed/textpainter.h
fix for the first item on Martin's list
[lyx.git] / src / mathed / textpainter.h
1 #ifndef TEXTPAINTER_H
2 #define TEXTPAINTER_H
3
4 #include <vector>
5
6 class TextPainter {
7         public:
8                 ///
9                 TextPainter(int xmax, int ymax);
10                 ///
11                 void draw(int x, int y, char const * str);
12
13         private:
14                 ///
15                 typedef std::vector<char> data_type;
16                 ///
17                 char at(int x, int y) const;
18                 ///
19                 char & at(int x, int y);
20
21                 ///
22                 data_type data_;
23                 ///
24                 int xmax_;
25                 ///
26                 int ymax_;
27 };
28
29 #endif