mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
30 lines
386 B
C
30 lines
386 B
C
|
#ifndef TEXTPAINTER_H
|
||
|
#define TEXTPAINTER_H
|
||
|
|
||
|
#include <vector>
|
||
|
|
||
|
class TextPainter {
|
||
|
public:
|
||
|
///
|
||
|
TextPainter(int xmax, int ymax);
|
||
|
///
|
||
|
void draw(int x, int y, char const * str);
|
||
|
|
||
|
private:
|
||
|
///
|
||
|
typedef std::vector<char> data_type;
|
||
|
///
|
||
|
char at(int x, int y) const;
|
||
|
///
|
||
|
char & at(int x, int y);
|
||
|
|
||
|
///
|
||
|
data_type data_;
|
||
|
///
|
||
|
int xmax_;
|
||
|
///
|
||
|
int ymax_;
|
||
|
};
|
||
|
|
||
|
#endif
|