KCanvasTreeDebug.h [plain text]
#include "DeprecatedString.h"
#include "TextStream.h"
#include "DeprecatedValueList.h"
namespace WebCore {
class AffineTransform;
class Color;
class DeprecatedStringList;
class FloatPoint;
class FloatRect;
class FloatSize;
class IntPoint;
class IntRect;
class KCClipData;
class KCPathData;
class Node;
class RenderPath;
class RenderSVGContainer;
void write(TextStream &ts, const RenderSVGContainer &container, int indent = 0);
void write(TextStream &ts, const RenderPath &path, int indent = 0);
void writeRenderResources(TextStream &ts, Node *parent);
TextStream &operator<<(TextStream &ts, const AffineTransform &);
TextStream &operator<<(TextStream &ts, const IntRect &);
TextStream &operator<<(TextStream &ts, const Color &);
TextStream &operator<<(TextStream &ts, const IntPoint &);
TextStream &operator<<(TextStream &ts, const FloatSize &);
TextStream &operator<<(TextStream &ts, const FloatRect &);
TextStream &operator<<(TextStream &ts, const FloatPoint &);
TextStream &operator<<(TextStream &ts, const DeprecatedStringList &l);
template<typename Item>
TextStream &operator<<(TextStream &ts, const DeprecatedValueList<Item*> &l)
{
ts << "[";
typename DeprecatedValueList<Item*>::ConstIterator it = l.begin();
typename DeprecatedValueList<Item*>::ConstIterator it_e = l.end();
while (it != it_e)
{
ts << *(*it);
++it;
if (it != it_e) ts << ", ";
}
ts << "]";
return ts;
}
template<typename Item>
TextStream &operator<<(TextStream &ts, const DeprecatedValueList<Item> &l)
{
ts << "[";
typename DeprecatedValueList<Item>::ConstIterator it = l.begin();
typename DeprecatedValueList<Item>::ConstIterator it_e = l.end();
while (it != it_e)
{
ts << *it;
++it;
if (it != it_e) ts << ", ";
}
ts << "]";
return ts;
}
}