45 #include <QtGui/qcolor.h> 46 #include <QtGui/qbrush.h> 59 #ifndef QT_NO_DATASTREAM 77 #ifdef Q_COMPILER_RVALUE_REFS 79 {
qSwap(
d, other.d);
return *
this; }
89 qreal dashOffset()
const;
90 void setDashOffset(
qreal doffset);
92 qreal miterLimit()
const;
93 void setMiterLimit(
qreal limit);
96 void setWidthF(
qreal width);
99 void setWidth(
int width);
102 void setColor(
const QColor &color);
105 void setBrush(
const QBrush &brush);
107 bool isSolid()
const;
115 bool isCosmetic()
const;
116 void setCosmetic(
bool cosmetic);
137 #ifndef QT_NO_DEBUG_STREAM The QVariant class acts like a union for the most common Qt data types.
The QDebug class provides an output stream for debugging information.
The QColor class provides colors based on RGB, HSV or CMYK values.
#define QT_END_NAMESPACE
This macro expands to.
void swap(QPen &other)
Swaps pen other with this pen.
Q_GUI_EXPORT QDataStream & operator<<(QDataStream &, const QPen &)
The QPen class defines how a QPainter should draw lines and outlines of shapes.
Q_DECLARE_TYPEINFO(QPen, Q_MOVABLE_TYPE)
#define Q_DECLARE_SHARED(TYPE)
#define QT_BEGIN_NAMESPACE
This macro expands to.
void qSwap(T &value1, T &value2)
bool operator!=(const QPen &p) const
Returns true if the pen is different from the given pen; otherwise false.
The QBrush class defines the fill pattern of shapes drawn by QPainter.
static void setCapStyle(int cap_style, GC gc)
The QDataStream class provides serialization of binary data to a QIODevice.
QDataStream & operator<<(QDataStream &out, const QUrl &url)
Writes url url to the stream out and returns a reference to the stream.
Q_GUI_EXPORT QDataStream & operator>>(QDataStream &, QPen &)
bool operator==(QBool b1, bool b2)
QDataStream & operator>>(QDataStream &in, QUrl &url)
Reads a url into url from the stream in and returns a reference to the stream.