![]() |
Qt 6.x
The Qt SDK
|
#include "qbrush.h"#include "qpixmap.h"#include "qbitmap.h"#include "qpixmapcache.h"#include <qpa/qplatformpixmap.h>#include "qdatastream.h"#include "qvariant.h"#include "qline.h"#include "qdebug.h"#include <QtCore/qjsondocument.h>#include <QtCore/qjsonarray.h>#include <QtCore/qcoreapplication.h>#include "private/qhexstring_p.h"#include <QtCore/qnumeric.h>#include <QtCore/qfile.h>#include <QtCore/qmutex.h>#include <QtCore/private/qoffsetstringarray_p.h>#include "webgradients.cpp"#include "moc_qbrush.cpp"
Include dependency graph for qbrush.cpp:Go to the source code of this file.
Classes | |
| class | QBrushPatternImageCache |
| struct | QTexturedBrushData |
| struct | QGradientBrushData |
| class | QNullBrushData |
Functions | |
| const uchar * | qt_patternForBrush (int brushStyle, bool invert) |
| Q_GUI_EXPORT QPixmap | qt_pixmapForBrush (int brushStyle, bool invert) |
| static void | qt_cleanup_brush_pattern_image_cache () |
| Q_GUI_EXPORT QImage | qt_imageForBrush (int brushStyle, bool invert) |
| bool Q_GUI_EXPORT | qHasPixmapTexture (const QBrush &brush) |
| static void | deleteData (QBrushData *d) |
| static QBrushData * | nullBrushInstance () |
| static bool | qbrush_check_type (Qt::BrushStyle style) |
| static constexpr bool | use_same_brushdata (Qt::BrushStyle lhs, Qt::BrushStyle rhs) |
| Q_GUI_EXPORT bool | qt_isExtendedRadialGradient (const QBrush &brush) |
| QDebug | operator<< (QDebug dbg, const QBrush &b) |
| QDataStream & | operator<< (QDataStream &s, const QBrush &b) |
| QDataStream & | operator>> (QDataStream &s, QBrush &b) |
| static bool | ok (QGradientStop stop) |
| static bool | ok (const QGradientStops &stops) |
| static QPointF | qt_radial_gradient_adapt_focal_point (const QPointF ¢er, qreal radius, const QPointF &focalPoint) |
|
static |
Definition at line 215 of file qbrush.cpp.
References Qt::ConicalGradientPattern, d, Qt::LinearGradientPattern, Qt::RadialGradientPattern, and Qt::TexturePattern.
Referenced by QBrushDataPointerDeleter::operator()().
Here is the caller graph for this function:
|
static |
Definition at line 337 of file qbrush.cpp.
Referenced by QBrush::QBrush(), and QBrush::QBrush().
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 1585 of file qbrush.cpp.
References ok, and Q_UNLIKELY.
|
inlinestatic |
Definition at line 1580 of file qbrush.cpp.
|
related |
Definition at line 998 of file qbrush.cpp.
Definition at line 953 of file qbrush.cpp.
References qOffsetStringArray().
Here is the call graph for this function:
|
related |
Definition at line 1074 of file qbrush.cpp.
|
static |
Definition at line 342 of file qbrush.cpp.
References Qt::ConicalGradientPattern, Qt::LinearGradientPattern, qWarning, Qt::RadialGradientPattern, and Qt::TexturePattern.
Referenced by QBrush::QBrush(), and QBrush::setStyle().
Here is the caller graph for this function:| bool Q_GUI_EXPORT qHasPixmapTexture | ( | const QBrush & | brush | ) |
Definition at line 202 of file qbrush.cpp.
References QImage::Format_MonoLSB, QBitmap::fromData(), QPixmapCache::insert(), and qt_patternForBrush().
Referenced by QTextHtmlParserNode::applyForegroundImage(), QQC2::QWindowsStyle::drawControl(), QEmulationPaintEngine::fill(), is_brush_transparent(), needsEmulation(), QOpenGL2PaintEngineExPrivate::setBrush(), QSpanData::setup(), QOpenGL2PaintEngineExPrivate::updateBrushUniforms(), and QPainterPrivate::updateEmulationSpecifier().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 141 of file qbrush.cpp.
Referenced by QBrushPatternImageCache::init().
Here is the caller graph for this function:| Q_GUI_EXPORT QImage qt_imageForBrush | ( | int | brushStyle, |
| bool | invert | ||
| ) |
Definition at line 146 of file qbrush.cpp.
Referenced by QSvgPaintEngine::savePatternMask(), QSpanData::setup(), QWindowsDirect2DPaintEnginePrivate::to_d2d_brush(), and QOpenGL2PaintEngineExPrivate::updateBrushTexture().
Here is the caller graph for this function:| Q_GUI_EXPORT bool qt_isExtendedRadialGradient | ( | const QBrush & | brush | ) |
Definition at line 801 of file qbrush.cpp.
References QRadialGradient::center(), QRadialGradient::focalPoint(), QRadialGradient::focalRadius(), qFuzzyIsNull(), Qt::RadialGradientPattern, QRadialGradient::radius(), QPointF::x(), and QPointF::y().
Referenced by QBrush::isOpaque(), removeTransparencyFromBrush(), and QPainterPrivate::updateEmulationSpecifier().
Here is the call graph for this function:
Here is the caller graph for this function:| const uchar * qt_patternForBrush | ( | int | brushStyle, |
| bool | invert | ||
| ) |
Definition at line 32 of file qbrush.cpp.
References Qt::Dense1Pattern, Qt::LinearGradientPattern, Q_ASSERT, and Qt::SolidPattern.
Referenced by QBrushPatternImageCache::init(), and qHasPixmapTexture().
Here is the caller graph for this function:| Q_GUI_EXPORT QPixmap qt_pixmapForBrush | ( | int | brushStyle, |
| bool | invert | ||
| ) |
Definition at line 80 of file qbrush.cpp.
Referenced by QX11PaintEngine::updateBrush().
Here is the caller graph for this function:
|
static |
Definition at line 1999 of file qbrush.cpp.
References QString::length(), and line.
Referenced by QRadialGradient::QRadialGradient().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestaticconstexpr |
Definition at line 542 of file qbrush.cpp.
References Qt::ConicalGradientPattern, Qt::DiagCrossPattern, Qt::LinearGradientPattern, and Qt::NoBrush.