7#include <QtGui/qtguiglobal.h>
8#include <QtCore/qlist.h>
9#include <QtCore/qpair.h>
10#include <QtCore/qpoint.h>
11#include <QtCore/qscopedpointer.h>
12#include <QtGui/qcolor.h>
13#include <QtGui/qimage.h>
14#include <QtGui/qpixmap.h>
15#include <QtGui/qtransform.h>
48 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(
QBrush)
63 QImage textureImage()
const;
72 bool isOpaque()
const;
77 using DataPtr = std::unique_ptr<QBrushData, QBrushDataPointerDeleter>;
90 inline bool isDetached()
const;
103#ifndef QT_NO_DATASTREAM
108#ifndef QT_NO_DEBUG_STREAM
129class QGradientPrivate;
163 ComponentInterpolation
184 CloudyKnoxville = 18,
192 SaintPetersburg = 26,
251 EternalConstance = 91,
266 ConfidentCloud = 107,
279 CheerfulCaramel = 122,
293 MillenniumPine = 138,
309 LandingAircraft = 155,
311 SleeplessNight = 157,
318 StrictNovember = 164,
346 inline void setSpread(Spread spread);
355 void setCoordinateMode(CoordinateMode
mode);
357 InterpolationMode interpolationMode()
const;
358 void setInterpolationMode(InterpolationMode
mode);
382 Type m_type = NoGradient;
383 Spread m_spread = PadSpread;
391{ m_spread = aspread; }
406 void setFinalStop(
const QPointF &stop);
427 void setCenter(
const QPointF ¢er);
434 qreal radius()
const;
435 void setRadius(
qreal radius);
437 qreal centerRadius()
const;
438 void setCenterRadius(
qreal radius);
440 qreal focalRadius()
const;
441 void setFocalRadius(
qreal radius);
454 void setCenter(
const QPointF ¢er);
void setColor(const QColor &color)
Sets the brush color to the given color.
bool operator!=(const QBrush &b) const
Returns true if the brush is different from the given brush; otherwise returns false.
const QColor & color() const
Returns the brush color.
std::unique_ptr< QBrushData, QBrushDataPointerDeleter > DataPtr
Qt::BrushStyle style() const
Returns the brush style.
QTransform transform() const
The QColor class provides colors based on RGB, HSV or CMYK values.
void setCenter(qreal x, qreal y)
This is an overloaded member function, provided for convenience. It differs from the above function o...
\inmodule QtCore\reentrant
void setSpread(Spread spread)
Specifies the spread method that should be used for this gradient.
Spread spread() const
Returns the spread method use by this gradient.
Spread
Specifies how the area outside the gradient area should be filled.
Type type() const
Returns the type of gradient.
bool operator!=(const QGradient &other) const
void setStart(qreal x, qreal y)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void setFinalStop(qreal x, qreal y)
This is an overloaded member function, provided for convenience. It differs from the above function o...
The QPainter class performs low-level painting on widgets and other paint devices.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
\inmodule QtCore\reentrant
void setCenter(qreal x, qreal y)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void setFocalPoint(qreal x, qreal y)
This is an overloaded member function, provided for convenience. It differs from the above function o...
The QRasterPaintEngine class enables hardware acceleration of painting operations in Qt for Embedded ...
Combined button and popup list for selecting options.
bool Q_GUI_EXPORT qHasPixmapTexture(const QBrush &brush)
QPair< qreal, QColor > QGradientStop
QList< QGradientStop > QGradientStops
Q_GUI_EXPORT QDataStream & operator<<(QDataStream &, const QBrush &)
Q_GUI_EXPORT QDataStream & operator>>(QDataStream &, QBrush &)
std::pair< T1, T2 > QPair
GLboolean GLboolean GLboolean b
GLint GLint GLint GLint GLint x
[0]
GLuint GLfloat GLfloat GLfloat GLfloat y1
GLuint GLenum GLenum transform
GLfixed GLfixed GLfixed y2
static QGradient::CoordinateMode coordinateMode(const QBrush &brush)
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)
alphaGradient setColorAt(0.0, Qt::transparent)
myFilter setColor(QColor(128, 0, 0))
void operator()(QBrushData *d) const noexcept