KRenderingPaintServerSolid.cpp [plain text]
#include "config.h"
#if SVG_SUPPORT
#include "KRenderingPaintServerSolid.h"
#include "TextStream.h"
#include "KCanvasTreeDebug.h"
namespace WebCore {
class KRenderingPaintServerSolid::Private
{
public:
Private() { }
~Private() { }
Color color;
};
KRenderingPaintServerSolid::KRenderingPaintServerSolid() : KRenderingPaintServer(), d(new Private())
{
}
KRenderingPaintServerSolid::~KRenderingPaintServerSolid()
{
delete d;
}
Color KRenderingPaintServerSolid::color() const
{
return d->color;
}
void KRenderingPaintServerSolid::setColor(const Color &color)
{
d->color = color;
}
KCPaintServerType KRenderingPaintServerSolid::type() const
{
return PS_SOLID;
}
TextStream &KRenderingPaintServerSolid::externalRepresentation(TextStream &ts) const
{
ts << "[type=SOLID]"
<< " [color="<< color() << "]";
return ts;
}
TextStream& operator<<(TextStream& ts, const KRenderingPaintServer& ps)
{
return ps.externalRepresentation(ts);
}
}
#endif // SVG_SUPPORT