#ifndef COLOR_HANDLER_H
#define COLOR_HANDLER_H
-
#include "frontends/Painter.h"
#include <map>
// This is only included to provide stuff for the non-public sections
#include <X11/Xlib.h>
-class EnumLColor;
+class LColor_color;
class LyXFont;
+namespace lyx {
+namespace frontend {
+
/**
* This is a factory class that can produce GCs with a specific
* color. It will cache GCs for performance.
///
~LyXColorHandler();
///
- unsigned long colorPixel(EnumLColor c);
+ unsigned long colorPixel(LColor_color c);
///
- GC getGCForeground(EnumLColor c);
+ GC getGCForeground(LColor_color c);
///
GC getGCLinepars(Painter::line_style,
- Painter::line_width, EnumLColor c);
+ Painter::line_width, LColor_color c);
/// update the cache after a color definition change
- void updateColor(EnumLColor c);
+ void updateColor(LColor_color c);
private:
///
///
std::vector<GC> colorGCcache;
///
- GC getGCForeground(string const & s);
+ GC getGCForeground(std::string const & s);
///
typedef std::map<int, GC> LineGCCache;
///
///
extern boost::scoped_ptr<LyXColorHandler> lyxColorHandler;
+} // namespace frontend
+} // namespace lyx
+
#endif