#ifndef METRICSINFO_H
#define METRICSINFO_H
-
#include "lyxfont.h"
#include "LString.h"
class Painter;
+class BufferView;
/// Standard Sizes (mode styles)
///
MetricsBase();
- ///
+ /// the current view
+ BufferView * bv;
+ /// current font
LyXFont font;
- ///
+ /// current math style (display/text/script/..)
Styles style;
- ///
+ /// name of current font
string fontname;
/// if this is set...
bool restrictwidth;
///
MetricsBase base;
- ///
- bool fullredraw;
};
//
struct PainterInfo {
///
- PainterInfo(Painter & pain);
+ explicit PainterInfo(BufferView * bv);
///
void draw(int x, int y, char c);
MetricsBase base;
///
Painter & pain;
+ /// width of current item
+ int width;
};