55 #if defined(Q_OS_VXWORKS)
74 struct QBrushDataPointerDeleter;
86 QBrush(
const QPixmap &pixmap);
89 QBrush(
const QBrush &brush);
91 QBrush(
const QGradient &gradient);
94 QBrush &operator=(
const QBrush &brush);
95 #ifdef Q_COMPILER_RVALUE_REFS
96 inline QBrush &operator=(QBrush &&other)
97 {
qSwap(d, other.d);
return *
this; }
99 inline void swap(QBrush &other) {
qSwap(d, other.d); }
101 operator QVariant()
const;
107 void setMatrix(
const QMatrix &mat);
113 void setTexture(
const QPixmap &pixmap);
115 QImage textureImage()
const;
116 void setTextureImage(
const QImage &image);
119 void setColor(
const QColor &color);
122 const QGradient *gradient()
const;
124 bool isOpaque()
const;
130 inline QT3_SUPPORT
operator const QColor&()
const;
131 QT3_SUPPORT QPixmap *
pixmap()
const;
132 inline QT3_SUPPORT
void setPixmap(
const QPixmap &pixmap) { setTexture(pixmap); }
136 #if defined(Q_WS_X11)
137 friend class QX11PaintEngine;
139 friend class QRasterPaintEngine;
140 friend class QRasterPaintEnginePrivate;
141 friend struct QSpanData;
143 friend bool Q_GUI_EXPORT qHasPixmapTexture(
const QBrush& brush);
147 void cleanUp(QBrushData *
x);
150 inline bool isDetached()
const;
165 #ifndef QT_NO_DATASTREAM
170 #ifndef QT_NO_DEBUG_STREAM
189 inline QBrush::operator
const QColor&()
const {
return d->color; }
196 class QGradientPrivate;
219 enum CoordinateMode {
227 ComponentInterpolation
234 inline void setSpread(Spread spread);
239 void setStops(
const QGradientStops &stops);
240 QGradientStops stops()
const;
242 CoordinateMode coordinateMode()
const;
243 void setCoordinateMode(CoordinateMode
mode);
245 InterpolationMode interpolationMode()
const;
246 void setInterpolationMode(InterpolationMode
mode);
262 QGradientStops m_stops;
265 qreal x1, y1, x2,
y2;
268 qreal cx, cy, fx,
fy, cradius;
278 { m_spread = aspread; }
285 QLinearGradient(qreal xStart, qreal yStart, qreal xFinalStop, qreal yFinalStop);
288 void setStart(
const QPointF &start);
292 void setFinalStop(
const QPointF &stop);
308 QRadialGradient(qreal cx, qreal cy, qreal centerRadius, qreal fx, qreal fy, qreal focalRadius);
311 void setCenter(
const QPointF ¢er);
315 void setFocalPoint(
const QPointF &focalPoint);
318 qreal radius()
const;
319 void setRadius(qreal radius);
321 qreal centerRadius()
const;
322 void setCenterRadius(qreal radius);
324 qreal focalRadius()
const;
325 void setFocalRadius(qreal radius);
337 void setCenter(
const QPointF ¢er);
341 void setAngle(qreal angle);
friend class QConicalGradient
friend class QLinearGradient
void setFocalPoint(qreal x, qreal y)
GLXFBConfig Pixmap pixmap
void setColor(const QColor &color)
const QMatrix & matrix() const
friend class QRadialGradient
Q_GUI_EXPORT QDataStream & operator>>(QDataStream &, QBrush &)
GLenum GLsizei GLenum GLenum const GLvoid * image
void setCenter(qreal x, qreal y)
void setFinalStop(qreal x, qreal y)
QScopedPointer< QBrushData, QBrushDataPointerDeleter > DataPtr
bool operator==(const Attribute &cA, const AttributeInstance< type > &cB)
This operator compares the two attributes and NOT their values.
bool operator!=(const QBrush &b) const
Qt::BrushStyle style() const
AttributeInstance< Color > acolor
#define QT_BEGIN_NAMESPACE
void setSpread(Spread spread)
Q_INLINE_TEMPLATE void qSwap(QScopedPointer< T, Cleanup > &p1, QScopedPointer< T, Cleanup > &p2)
Q_DECLARE_TYPEINFO(QBrush, Q_MOVABLE_TYPE)
GLuint GLenum GLenum transform
bool operator!=(const QGradient &other) const
QVector< QGradientStop > QGradientStops
Q_CORE_EXPORT QTextStream & center(QTextStream &s)
const QColor & color() const
QPair< qreal, QColor > QGradientStop
Q_GUI_EXPORT QDataStream & operator<<(QDataStream &, const QBrush &)
QTransform transform() const
void setCenter(qreal x, qreal y)
void setStart(qreal x, qreal y)