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

(fc00dca1c388ee04401d2e391f74b38d42c177df)

#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 219 of file qbrush.cpp.

Referenced by QBrushDataPointerDeleter::operator()().

Here is the caller graph for this function:

◆ nullBrushInstance()

QBrushData * nullBrushInstance ( )
static

Definition at line 356 of file qbrush.cpp.

◆ ok() [1/2]

bool ok ( const QGradientStops & stops)
inlinestatic

Definition at line 1686 of file qbrush.cpp.

◆ ok() [2/2]

bool ok ( QGradientStop stop)
inlinestatic

Definition at line 1681 of file qbrush.cpp.

◆ operator<<() [1/2]

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

Definition at line 1099 of file qbrush.cpp.

◆ operator<<() [2/2]

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

Definition at line 1054 of file qbrush.cpp.

◆ operator>>()

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

Definition at line 1175 of file qbrush.cpp.

◆ qbrush_check_type()

bool qbrush_check_type ( Qt::BrushStyle style)
static

Definition at line 361 of file qbrush.cpp.

◆ qHasPixmapTexture()

Q_GUI_EXPORT bool qHasPixmapTexture ( const QBrush & brush)

Definition at line 206 of file qbrush.cpp.

◆ qt_cleanup_brush_pattern_image_cache()

void qt_cleanup_brush_pattern_image_cache ( )
static

Definition at line 141 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 146 of file qbrush.cpp.

◆ qt_isExtendedRadialGradient()

bool qt_isExtendedRadialGradient ( const QBrush & brush)

Definition at line 875 of file qbrush.cpp.

◆ qt_patternForBrush()

const uchar * qt_patternForBrush ( int brushStyle,
bool invert )

Definition at line 32 of file qbrush.cpp.

◆ qt_pixmapForBrush()

QPixmap qt_pixmapForBrush ( int brushStyle,
bool invert )

Definition at line 80 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 2100 of file qbrush.cpp.

◆ use_same_brushdata()

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

Definition at line 574 of file qbrush.cpp.