#include "qpen.h"
#include "qpen_p.h"
#include "qdatastream.h"
#include "qvariant.h"
#include "qbrush.h"
#include <qdebug.h>
Go to the source code of this file.
◆ QPenData
◆ operator<<() [1/2]
Definition at line 936 of file qpen.cpp.
Referenced by QPen::data_ptr(), and QPen::operator!=().
955 if (
sizeof(
qreal) ==
sizeof(double)) {
963 for (
int i = 0; i < pattern.
size(); ++i)
964 s <<
double(pattern.
at(i));
Qt::PenStyle style() const
Returns the pen style.
QColor color() const
Returns the color of this pen's brush.
QVector< qreal > dashPattern() const
Returns the dash pattern of this pen.
Qt::PenJoinStyle joinStyle() const
Returns the pen's join style.
QBrush brush() const
Returns the brush used to fill strokes generated with this pen.
const T & at(int i) const
Returns the item at index position i in the vector.
int version() const
Returns the version number of the data serialization format.
int width() const
Returns the pen width with integer precision.
qreal miterLimit() const
Returns the miter limit of the pen.
qreal widthF() const
Returns the pen width with floating point precision.
qreal dashOffset() const
Returns the dash offset for the pen.
Qt::PenCapStyle capStyle() const
Returns the pen's cap style.
int size() const
Returns the number of items in the vector.
◆ operator<<() [2/2]
Definition at line 1045 of file qpen.cpp.
1047 #ifndef Q_BROKEN_DEBUG_STREAM 1048 const char *PEN_STYLES[] = {
1065 qWarning(
"This compiler doesn't support streaming QPen to QDebug");
Qt::PenStyle style() const
Returns the pen style.
QDebug & nospace()
Clears the stream's internal flag that records whether the last character was a space and returns a r...
QVector< qreal > dashPattern() const
Returns the dash pattern of this pen.
Qt::PenJoinStyle joinStyle() const
Returns the pen's join style.
Q_CORE_EXPORT void qWarning(const char *,...)
QBrush brush() const
Returns the brush used to fill strokes generated with this pen.
int width() const
Returns the pen width with integer precision.
qreal miterLimit() const
Returns the miter limit of the pen.
qreal dashOffset() const
Returns the dash offset for the pen.
Qt::PenCapStyle capStyle() const
Returns the pen's cap style.
QDebug & space()
Writes a space character to the debug stream and returns a reference to the stream.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
◆ operator>>()
Definition at line 985 of file qpen.cpp.
Referenced by QPen::operator!=().
992 double miterLimit = 2;
994 double dashOffset = 0;
995 bool cosmetic =
false;
1013 if (
sizeof(
qreal) ==
sizeof(double)) {
1019 for (
quint32 i = 0; i < numDashes; ++i) {
1021 dashPattern << dash;
The QColor class provides colors based on RGB, HSV or CMYK values.
void detach()
Detaches from shared pen data to make sure that this pen is the only one referring the data...
Qt::PenJoinStyle joinStyle
int version() const
Returns the version number of the data serialization format.
The QBrush class defines the fill pattern of shapes drawn by QPainter.
QVector< qreal > dashPattern
◆ Q_GLOBAL_STATIC_WITH_ARGS()
◆ nullPenInstance
◆ qpen_default_cap
◆ qpen_default_join