#ifndef METRICSINFO_H
#define METRICSINFO_H
-#include "Font.h"
-#include "support/docstring.h"
+#include "ColorCode.h"
+#include "FontInfo.h"
+
+#include "support/strfwd.h"
+#include "support/types.h"
+
#include <string>
class BufferView;
///
MetricsBase();
///
- MetricsBase(BufferView * bv, Font const & font, int textwidth);
+ MetricsBase(BufferView * bv, FontInfo const & font, int textwidth);
/// the current view
BufferView * bv;
/// current font
- Font font;
+ FontInfo font;
/// current math style (display/text/script/..)
Styles style;
/// name of current font - mathed specific
///
MetricsInfo();
///
- MetricsInfo(BufferView * bv, Font const & font, int textwidth);
+ MetricsInfo(BufferView * bv, FontInfo const & font, int textwidth);
///
MetricsBase base;
bool erased_;
///
bool full_repaint;
+ ///
+ ColorCode background_color;
};
class TextMetricsInfo {};
// temporarily change some aspect of a font
-class FontChanger : public Changer<Font> {
+class FontChanger : public Changer<FontInfo> {
public:
///
- FontChanger(Font & orig, docstring const & font);
+ FontChanger(FontInfo & orig, docstring const & font);
FontChanger(MetricsBase & mb, char const * const font);
///
~FontChanger();
// temporarily change the shape of a font
-class ShapeChanger : public Changer<Font, Font::FONT_SHAPE> {
+class ShapeChanger : public Changer<FontInfo, FontShape> {
public:
///
- ShapeChanger(Font & font, Font::FONT_SHAPE shape);
+ ShapeChanger(FontInfo & font, FontShape shape);
///
~ShapeChanger();
};
// temporarily change the used color
-class ColorChanger : public Changer<Font, std::string> {
+class ColorChanger : public Changer<FontInfo, std::string> {
public:
///
- ColorChanger(Font & font, std::string const & color);
+ ColorChanger(FontInfo & font, std::string const & color);
///
~ColorChanger();
};