1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QPEN_P_H
5#define QPEN_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtGui/qbrush.h>
19
20#include <QtCore/private/qglobal_p.h>
21#include <QtCore/qlist.h>
22#include <QtCore/qnamespace.h>
23#include <QtCore/qshareddata.h>
24
25QT_BEGIN_NAMESPACE
26
27class QPenPrivate : public QSharedData
28{
29public:
30 QPenPrivate(const QBrush &brush, qreal width, Qt::PenStyle, Qt::PenCapStyle,
31 Qt::PenJoinStyle _joinStyle);
32 qreal width;
33 QBrush brush;
34 Qt::PenStyle style;
35 Qt::PenCapStyle capStyle;
36 Qt::PenJoinStyle joinStyle;
37 mutable QList<qreal> dashPattern;
38 qreal dashOffset;
39 qreal miterLimit;
40 uint cosmetic : 1;
41};
42
43QT_END_NAMESPACE
44
45#endif // QPEN_P_H
46

Provided by KDAB

Privacy Policy
Start learning QML with our Intro Training
Find out more

source code of qtbase/src/gui/painting/qpen_p.h