![]() |
Qt 6.x
The Qt SDK
|
#include <memory>#include <qdebug.h>#include <qmath.h>#include <qmutex.h>#include "qbitmap.h"#include "qimage.h"#include "qpaintdevice.h"#include "qpaintengine.h"#include "qpainter.h"#include "qpainter_p.h"#include "qpainterpath.h"#include "qpicture.h"#include "qpixmapcache.h"#include "qpolygon.h"#include "qtextlayout.h"#include "qthread.h"#include "qvarlengtharray.h"#include "qstatictext.h"#include "qglyphrun.h"#include <qpa/qplatformtheme.h>#include <qpa/qplatformintegration.h>#include <private/qfontengine_p.h>#include <private/qpaintengine_p.h>#include <private/qemulationpaintengine_p.h>#include <private/qpainterpath_p.h>#include <private/qtextengine_p.h>#include <private/qpaintengine_raster_p.h>#include <private/qmath_p.h>#include <private/qstatictext_p.h>#include <private/qglyphrun_p.h>#include <private/qhexstring_p.h>#include <private/qguiapplication_p.h>#include <private/qrawfont_p.h>#include <private/qfont_p.h>#include "moc_qpainter.cpp"
Include dependency graph for qpainter.cpp:Go to the source code of this file.
Macros | |
| #define | QGradient_StretchToDevice 0x10000000 |
| #define | QPaintEngine_OpaqueBackground 0x40000000 |
| #define QGradient_StretchToDevice 0x10000000 |
Definition at line 51 of file qpainter.cpp.
| #define QPaintEngine_OpaqueBackground 0x40000000 |
Definition at line 52 of file qpainter.cpp.
|
inlinestatic |
Definition at line 80 of file qpainter.cpp.
References Qt::ConicalGradientPattern, Qt::LinearGradientPattern, QGradient::LogicalMode, and Qt::RadialGradientPattern.
Referenced by QPainterPrivate::drawStretchedGradient(), and QPainterPrivate::updateEmulationSpecifier().
Here is the caller graph for this function:
|
static |
Definition at line 5952 of file qpainter.cpp.
References QTextEngine::addOverline(), QTextEngine::addStrikeOut(), QTextEngine::addUnderline(), QFontEngine::ascent(), QPainter::brush(), QPainter::brushOrigin(), QPen::color(), QFontEngine::descent(), QPainter::drawLine(), QPainter::fillRect(), Qt::FlatCap, generateWavyPixmap(), QPixmap::height(), QColor::isValid(), line, QFontEngine::lineThickness(), Qt::NoBrush, QTextCharFormat::NoUnderline, QTextItem::Overline, painter, QPainter::pen(), QGuiApplicationPrivate::platformTheme(), pos, qCeil(), qFloor(), qMax(), qMin(), QPainter::restore(), QPainter::save(), QPainter::setBrush(), QPainter::setBrushOrigin(), QPen::setCapStyle(), QPen::setColor(), QPainter::setPen(), QPen::setStyle(), QPen::setWidthF(), Qt::SolidLine, QTextCharFormat::SpellCheckUnderline, QPlatformTheme::SpellCheckUnderlineStyle, QTextItem::StrikeOut, QPlatformTheme::themeHint(), QVariant::toInt(), QFixed::toReal(), QPainter::translate(), QLineF::translate(), QTextCharFormat::underlineColor(), QFontEngine::underlinePosition(), QTextCharFormat::WaveUnderline, QPen::widthF(), and QPoint::x().
Referenced by QPainterPrivate::drawTextItem(), and qt_draw_decoration_for_glyphs().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 5900 of file qpainter.cpp.
References QPainter::Antialiasing, QPen::color(), QPainter::drawPath(), QPixmapCache::find(), QPixmapCache::insert(), QColor::name(), pixmap, qCeil(), qFloor(), qMax(), QPen::setCapStyle(), QPainter::setPen(), QPainter::setRenderHint(), QPen::setWidthF(), Qt::SquareCap, QPainter::translate(), Qt::transparent, and QPen::widthF().
Referenced by drawTextItemDecoration().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 95 of file qpainter.cpp.
References Qt::Dense1Pattern, Qt::DiagCrossPattern, qHasPixmapTexture(), and Qt::TexturePattern.
Referenced by is_pen_transparent(), and QPainterPrivate::updateEmulationSpecifier().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 107 of file qpainter.cpp.
References QPen::brush(), is_brush_transparent(), Qt::SolidLine, and QPen::style().
Referenced by QPainterPrivate::updateEmulationSpecifier().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 114 of file qpainter.cpp.
References QPaintEngine::AlphaBlend, QPaintEngine::Antialiasing, QPaintEngine::BrushStroke, QPaintEngine::ConstantOpacity, QPaintEngine::ObjectBoundingModeGradients, QPaintEngine::PrimitiveTransform, QGradient_StretchToDevice, and QPaintEngine_OpaqueBackground.
Referenced by QPainter::drawLines(), QPainter::drawLines(), QPainter::drawPolyline(), and QPainter::drawPolyline().
Here is the caller graph for this function:
|
static |
Definition at line 154 of file qpainter.cpp.
References QGradient::coordinateMode(), QGradient::LogicalMode, qFuzzyCompare(), qHasPixmapTexture(), and Qt::TexturePattern.
Referenced by QPainterPrivate::checkEmulation(), QPainter::fillPath(), QPainter::fillRect(), QPainter::fillRect(), QPainter::strokePath(), and QWindowsDirect2DPaintEnginePrivate::to_d2d_brush().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 6556 of file qpainter.cpp.
References Qt::ConicalGradientPattern, Qt::LinearGradientPattern, QGradient::ObjectBoundingMode, QGradient::ObjectMode, and Qt::RadialGradientPattern.
Referenced by QPaintEngineState::brushNeedsResolving(), and QPaintEngineState::penNeedsResolving().
Here is the caller graph for this function:| bool qHasPixmapTexture | ( | const QBrush & | brush | ) |
Definition at line 84 of file qbrush.cpp.
References QImage::Format_MonoLSB, QBitmap::fromData(), QPixmapCache::insert(), and qt_patternForBrush().
Referenced by is_brush_transparent(), and needsEmulation().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 1673 of file qpainter.cpp.
References d.
Referenced by QPainter::begin(), and QPainter::end().
Here is the caller graph for this function:
|
static |
Definition at line 6050 of file qpainter.cpp.
References QFontEngine::boundingBox(), drawTextItemDecoration(), QTextCharFormat::NoUnderline, QTextItem::Overline, painter, positions, QTextCharFormat::SingleUnderline, QTextItem::StrikeOut, QFixed::toReal(), QTextItem::Underline, QPointF::x(), and glyph_metrics_t::xoff.
Referenced by QPainterPrivate::drawGlyphs(), and QPainter::drawStaticText().
Here is the call graph for this function:
Here is the caller graph for this function:| void qt_draw_helper | ( | QPainterPrivate * | p, |
| const QPainterPath & | path, | ||
| QPainterPrivate::DrawOperation | operation | ||
| ) |
Definition at line 8141 of file qpainter.cpp.
| void qt_format_text | ( | const QFont & | fnt, |
| const QRectF & | _r, | ||
| int | tf, | ||
| const QString & | str, | ||
| QRectF * | brect, | ||
| int | tabstops, | ||
| int * | ta, | ||
| int | tabarraylen, | ||
| QPainter * | painter | ||
| ) |
Definition at line 7066 of file qpainter.cpp.
References painter, qt_format_text(), and str.
Here is the call graph for this function:| void qt_format_text | ( | const QFont & | font, |
| const QRectF & | _r, | ||
| int | tf, | ||
| const QTextOption * | option, | ||
| const QString & | str, | ||
| QRectF * | brect, | ||
| int | tabstops, | ||
| int * | tabarray, | ||
| int | tabarraylen, | ||
| QPainter * | painter | ||
| ) |
Definition at line 7076 of file qpainter.cpp.
Referenced by QFontMetrics::boundingRect(), QFontMetricsF::boundingRect(), QPainter::boundingRect(), QPainter::drawText(), QPainter::drawText(), QPainter::drawText(), and qt_format_text().
Here is the caller graph for this function:| bool qt_isExtendedRadialGradient | ( | const QBrush & | brush | ) |
Definition at line 801 of file qbrush.cpp.
|
static |
Definition at line 127 of file qpainter.cpp.
References QThread::currentThread(), QPlatformIntegration::hasCapability(), QInternal::Image, QInternal::OpenGL, QPaintEngine::OpenGL, QPaintEngine::OpenGL2, QInternal::Picture, QInternal::Pixmap, QGuiApplicationPrivate::platformIntegration(), QInternal::Printer, qApp, qWarning, QPlatformIntegration::ThreadedOpenGL, QPlatformIntegration::ThreadedPixmaps, and QInternal::Widget.
Referenced by QPainter::drawPixmap(), QPainter::drawPixmap(), and QPainter::drawTiledPixmap().
Here is the call graph for this function:
Here is the caller graph for this function:| QPixmap qt_pixmapForBrush | ( | int | style, |
| bool | invert | ||
| ) |
Definition at line 80 of file qbrush.cpp.
| QPainterPath qt_regionToPath | ( | const QRegion & | region | ) |
Definition at line 1007 of file qregion.cpp.
References QRegion::begin(), QRegion::boundingRect(), connect(), QRegion::end(), i, j, rect, and QRegion::rectCount().
Referenced by QPainter::clipPath(), QGraphicsViewPrivate::findItems(), QTransform::map(), QWin32PrintEngine::updateClipPath(), QX11PaintEngine::updateState(), and QWin32PrintEngine::updateState().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 4753 of file qpainter.cpp.
Referenced by QPainter::drawImage(), QPainter::drawImage(), QPainter::drawPixmap(), QPainter::drawPixmap(), and QPainter::drawTiledPixmap().
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 492 of file qpainter.cpp.
References boundingRect(), Qt::ConicalGradientPattern, QRectF::height(), Qt::LinearGradientPattern, QGradient::LogicalMode, QGradient::ObjectMode, Q_ASSERT, QRectF::width(), QRectF::x(), and QRectF::y().
Referenced by QPainterPrivate::drawStretchedGradient().
Here is the call graph for this function:
Here is the caller graph for this function: