![]() |
Qt 4.8
|
#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 "qwidget.h"#include "qapplication.h"#include "qstyle.h"#include "qthread.h"#include "qvarlengtharray.h"#include "qstatictext.h"#include "qglyphrun.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/qwidget_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/qstylehelper_p.h>#include <private/qrawfont_p.h>Go to the source code of this file.
Classes | |
| struct | QPaintDeviceRedirection |
Macros | |
| #define | QGradient_StretchToDevice 0x10000000 |
| #define | QPaintEngine_OpaqueBackground 0x40000000 |
Typedefs | |
| typedef QList< QPaintDeviceRedirection > | QPaintDeviceRedirectionList |
Functions | |
| static bool | check_gradient (const QBrush &brush) |
| static QGradient::CoordinateMode | coordinateMode (const QBrush &brush) |
| static void | drawTextItemDecoration (QPainter *painter, const QPointF &pos, const QFontEngine *fe, QTextCharFormat::UnderlineStyle underlineStyle, QTextItem::RenderFlags flags, qreal width, const QTextCharFormat &charFormat) |
| static QPixmap | generateWavyPixmap (qreal maxRadius, const QPen &pen) |
| static bool | is_brush_transparent (const QBrush &brush) |
| static bool | is_pen_transparent (const QPen &pen) |
| static uint | line_emulation (uint emulation) |
| static bool | needsResolving (const QBrush &brush) |
| bool | qHasPixmapTexture (const QBrush &) |
| static void | qt_cleanup_painter_state (QPainterPrivate *d) |
| Q_GUI_EXPORT void | qt_draw_decoration_for_glyphs (QPainter *painter, const glyph_t *glyphArray, const QFixedPoint *positions, int glyphCount, QFontEngine *fontEngine, const QFont &font, const QTextCharFormat &charFormat) |
| void | qt_draw_helper (QPainterPrivate *p, const QPainterPath &path, QPainterPrivate::DrawOperation operation) |
| 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) |
| 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) |
| Q_GUI_EXPORT bool | qt_isExtendedRadialGradient (const QBrush &brush) |
| void | qt_painter_removePaintDevice (QPaintDevice *dev) |
| static bool | qt_painter_thread_test (int devType, const char *what, bool extraCondition=false) |
| QPixmap | qt_pixmapForBrush (int style, bool invert) |
| Q_AUTOTEST_EXPORT QPainterPath | qt_regionToPath (const QRegion ®ion) |
| static QPointF | roundInDeviceCoordinates (const QPointF &p, const QTransform &m) |
| static QBrush | stretchGradientToUserSpace (const QBrush &brush, const QRectF &boundingRect) |
| #define QGradient_StretchToDevice 0x10000000 |
Definition at line 82 of file qpainter.cpp.
Referenced by QPainterPrivate::draw_helper(), line_emulation(), and QPainterPrivate::updateEmulationSpecifier().
| #define QPaintEngine_OpaqueBackground 0x40000000 |
Definition at line 83 of file qpainter.cpp.
Referenced by QPainterPrivate::draw_helper(), line_emulation(), and QPainterPrivate::updateEmulationSpecifier().
Definition at line 8262 of file qpainter.cpp.
|
inlinestatic |
Definition at line 120 of file qpainter.cpp.
|
inlinestatic |
Definition at line 106 of file qpainter.cpp.
Referenced by check_gradient(), QPainterPrivate::drawStretchedGradient(), QGradient::spread(), and QPainterPrivate::updateEmulationSpecifier().
|
static |
Definition at line 6738 of file qpainter.cpp.
Referenced by QPainterPrivate::drawGlyphs(), QPainter::drawTextItem(), and qt_draw_decoration_for_glyphs().
Definition at line 6687 of file qpainter.cpp.
Referenced by drawTextItemDecoration().
|
inlinestatic |
Definition at line 127 of file qpainter.cpp.
Referenced by is_pen_transparent(), and QPainterPrivate::updateEmulationSpecifier().
|
inlinestatic |
Definition at line 136 of file qpainter.cpp.
Referenced by QPainterPrivate::updateEmulationSpecifier().
Definition at line 143 of file qpainter.cpp.
Referenced by QPainter::drawLines(), and QPainter::drawPolyline().
|
inlinestatic |
Definition at line 7339 of file qpainter.cpp.
Referenced by QPaintEngineState::brushNeedsResolving(), QPaintEngineState::penNeedsResolving(), and QOpenGLPaintEnginePrivate::setGLBrush().
| bool qHasPixmapTexture | ( | const QBrush & | ) |
Definition at line 223 of file qbrush.cpp.
Referenced by check_gradient(), is_brush_transparent(), and QPainterPrivate::updateEmulationSpecifier().
|
inlinestatic |
Definition at line 1714 of file qpainter.cpp.
Referenced by QPainter::begin(), and QPainter::end().
| Q_GUI_EXPORT void qt_draw_decoration_for_glyphs | ( | QPainter * | painter, |
| const glyph_t * | glyphArray, | ||
| const QFixedPoint * | positions, | ||
| int | glyphCount, | ||
| QFontEngine * | fontEngine, | ||
| const QFont & | font, | ||
| const QTextCharFormat & | charFormat | ||
| ) |
Definition at line 6820 of file qpainter.cpp.
Referenced by QDeclarativeTextLayout::draw(), QPainter::drawStaticText(), and QDeclarativeTextLayout::prepare().
| void qt_draw_helper | ( | QPainterPrivate * | p, |
| const QPainterPath & | path, | ||
| QPainterPrivate::DrawOperation | operation | ||
| ) |
Definition at line 9937 of file qpainter.cpp.
Referenced by QVGPaintEngine::fill(), and QOpenGLPaintEngine::fill().
| 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 8458 of file qpainter.cpp.
Referenced by QPainter::boundingRect(), QPainter::drawText(), QPicture::exec(), QPainterReplayer::process(), and qt_format_text().
| 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 8448 of file qpainter.cpp.
Referenced by QFontMetrics::boundingRect(), and QFontMetricsF::boundingRect().
| Q_GUI_EXPORT bool qt_isExtendedRadialGradient | ( | const QBrush & | brush | ) |
Definition at line 881 of file qbrush.cpp.
Referenced by QPainterPrivate::updateEmulationSpecifier(), and QPainterPrivate::updateInvMatrix().
| void qt_painter_removePaintDevice | ( | QPaintDevice * | dev | ) |
Definition at line 8419 of file qpainter.cpp.
Referenced by QPaintDevice::~QPaintDevice().
|
static |
Definition at line 156 of file qpainter.cpp.
Referenced by QPainter::drawPixmap(), QPainter::drawTextItem(), and QPainter::drawTiledPixmap().
| QPixmap qt_pixmapForBrush | ( | int | style, |
| bool | invert | ||
| ) |
Definition at line 99 of file qbrush.cpp.
| Q_AUTOTEST_EXPORT QPainterPath qt_regionToPath | ( | const QRegion & | region | ) |
Definition at line 1160 of file qregion.cpp.
Referenced by QPainter::clipPath(), and QPainter::clipRegion().
|
inlinestatic |
Definition at line 5518 of file qpainter.cpp.
Referenced by QPainter::drawImage(), QPainter::drawPixmap(), and QPainter::drawTiledPixmap().
|
inlinestatic |
Definition at line 531 of file qpainter.cpp.
Referenced by QPainterPrivate::drawStretchedGradient().