Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qbrush.cpp File Reference

(512d35198b726413c151533c8291c6b4b52f0a1d)

#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  QBasicBrushData
struct  QTexturedBrushData
struct  QGradientBrushData
class  QNullBrushData

Functions

const ucharqt_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 QBrushDatanullBrushInstance ()
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)
QDataStreamoperator<< (QDataStream &s, const QBrush &b)
QDataStreamoperator>> (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 &center, qreal radius, const QPointF &focalPoint)

Function Documentation

◆ deleteData()

void deleteData ( QBrushData * d)
static

Definition at line 220 of file qbrush.cpp.

Referenced by QBrushDataPointerDeleter::operator()().

Here is the caller graph for this function:

◆ nullBrushInstance()

QBrushData * nullBrushInstance ( )
static

Definition at line 357 of file qbrush.cpp.

◆ ok() [1/2]

bool ok ( const QGradientStops & stops)
inlinestatic

Definition at line 1687 of file qbrush.cpp.

◆ ok() [2/2]

bool ok ( QGradientStop stop)
inlinestatic

Definition at line 1682 of file qbrush.cpp.

◆ operator<<() [1/2]

QDataStream & operator<< ( QDataStream & s,
const QBrush & b )
related

Definition at line 1100 of file qbrush.cpp.

◆ operator<<() [2/2]

QDebug operator<< ( QDebug dbg,
const QBrush & b )

Definition at line 1055 of file qbrush.cpp.

◆ operator>>()

QDataStream & operator>> ( QDataStream & s,
QBrush & b )
related

Definition at line 1176 of file qbrush.cpp.

◆ qbrush_check_type()

bool qbrush_check_type ( Qt::BrushStyle style)
static

Definition at line 362 of file qbrush.cpp.

◆ qHasPixmapTexture()

Q_GUI_EXPORT bool qHasPixmapTexture ( const QBrush & brush)

Definition at line 207 of file qbrush.cpp.

◆ qt_cleanup_brush_pattern_image_cache()

void qt_cleanup_brush_pattern_image_cache ( )
static

Definition at line 142 of file qbrush.cpp.

Referenced by QBrushPatternImageCache::init().

Here is the caller graph for this function:

◆ qt_imageForBrush()

Q_GUI_EXPORT QImage qt_imageForBrush ( int brushStyle,
bool invert )

Definition at line 147 of file qbrush.cpp.

◆ qt_isExtendedRadialGradient()

bool qt_isExtendedRadialGradient ( const QBrush & brush)

Definition at line 876 of file qbrush.cpp.

◆ qt_patternForBrush()

const uchar * qt_patternForBrush ( int brushStyle,
bool invert )

Definition at line 33 of file qbrush.cpp.

◆ qt_pixmapForBrush()

QPixmap qt_pixmapForBrush ( int brushStyle,
bool invert )

Definition at line 81 of file qbrush.cpp.

◆ qt_radial_gradient_adapt_focal_point()

QPointF qt_radial_gradient_adapt_focal_point ( const QPointF & center,
qreal radius,
const QPointF & focalPoint )
static

Definition at line 2101 of file qbrush.cpp.

◆ use_same_brushdata()

constexpr bool use_same_brushdata ( Qt::BrushStyle lhs,
Qt::BrushStyle rhs )
inlinestaticconstexpr

Definition at line 575 of file qbrush.cpp.