22#include <../kotext/KoTextZoomHandler.h>
30KoPen::KoPen( const TQColor& _color, double _pointWidth, TQt::PenStyle _style)
34 setPointWidth(_pointWidth);
38KoPen::KoPen( const TQColor& _color)
50 return color() == p.color() && style() == p.style() && m_pointWidth == p. pointWidth();
55 return color() != p.color() || style() != p.style() || m_pointWidth != p. pointWidth();
66 pen.setWidth(zoomHandler->zoomItY(m_pointWidth));
double pointWidth() const KoPen width in points.
bool operator==(const KoPen &p) const Compare pens if they are equal.
void setPointWidth(double width) Set the pen width in points.
TQPen zoomedPen(KoZoomHandler *zoomHandler) Returns a zoomed TQPen.
bool operator!=(const KoPen &p) const Compare pens if they differ.
This class handles the zooming and DPI stuff (conversions between pt values and pixels).
|