Qt 4.8
|
Public Types | |
enum | AdvancedBlending { QT_VG_BLEND_OVERLAY_KHR = 0x2010, QT_VG_BLEND_HARDLIGHT_KHR = 0x2011, QT_VG_BLEND_SOFTLIGHT_SVG_KHR = 0x2012, QT_VG_BLEND_SOFTLIGHT_KHR = 0x2013, QT_VG_BLEND_COLORDODGE_KHR = 0x2014, QT_VG_BLEND_COLORBURN_KHR = 0x2015, QT_VG_BLEND_DIFFERENCE_KHR = 0x2016, QT_VG_BLEND_SUBTRACT_KHR = 0x2017, QT_VG_BLEND_INVERT_KHR = 0x2018, QT_VG_BLEND_EXCLUSION_KHR = 0x2019, QT_VG_BLEND_LINEARDODGE_KHR = 0x201a, QT_VG_BLEND_LINEARBURN_KHR = 0x201b, QT_VG_BLEND_VIVIDLIGHT_KHR = 0x201c, QT_VG_BLEND_LINEARLIGHT_KHR = 0x201d, QT_VG_BLEND_PINLIGHT_KHR = 0x201e, QT_VG_BLEND_HARDMIX_KHR = 0x201f, QT_VG_BLEND_CLEAR_KHR = 0x2020, QT_VG_BLEND_DST_KHR = 0x2021, QT_VG_BLEND_SRC_OUT_KHR = 0x2022, QT_VG_BLEND_DST_OUT_KHR = 0x2023, QT_VG_BLEND_SRC_ATOP_KHR = 0x2024, QT_VG_BLEND_DST_ATOP_KHR = 0x2025, QT_VG_BLEND_XOR_KHR = 0x2026 } |
Public Functions | |
void | clearModes () |
void | destroy () |
void | draw (VGPath path, const QPen &pen, const QBrush &brush, VGint rule=VG_EVEN_ODD) |
void | ensureBrush (const QBrush &brush) |
void | ensureMask (QVGPaintEngine *engine, int width, int height) |
void | ensurePathTransform () |
void | ensurePen (const QPen &pen) |
void | fill (VGPath path, const QBrush &brush, VGint rule=VG_EVEN_ODD) |
void | init () |
void | initObjects () |
void | modifyMask (QVGPaintEngine *engine, VGMaskOperation op, const QRegion ®ion) |
void | modifyMask (QVGPaintEngine *engine, VGMaskOperation op, const QRect &rect) |
bool | needsBrushEmulation () const |
bool | needsEmulation (const QBrush &brush) const |
bool | needsEmulation () const |
bool | needsPenEmulation () const |
VGPath | painterPathToVGPath (const QPainterPath &path) |
QVGPaintEnginePrivate (QVGPaintEngine *q_ptr) | |
VGPath | roundedRectPath (const QRectF &rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode) |
void | setBlendMode (VGBlendMode mode) |
VGPaintType | setBrush (VGPaint paint, const QBrush &brush, VGMatrixMode mode, VGPaintType prevPaintType) |
void | setBrushTransform (const QBrush &brush, VGMatrixMode mode) |
void | setFillRule (VGint mode) |
void | setImageMode (VGImageMode mode) |
void | setImageOptions () |
void | setImageQuality (VGImageQuality mode) |
void | setPenParams (const QPen &pen) |
void | setRenderingQuality (VGRenderingQuality mode) |
void | setTransform (VGMatrixMode mode, const QTransform &transform) |
void | setupColorRamp (const QGradient *grad, VGPaint paint) |
void | stroke (VGPath path, const QPen &pen) |
void | systemStateChanged () |
void | updateTransform (QPaintDevice *pdev) |
VGPath | vectorPathToVGPath (const QVectorPath &path) |
~QVGPaintEnginePrivate () | |
Public Functions inherited from QPaintEngineExPrivate | |
bool | hasClipOperations () const |
QPaintEngineExPrivate () | |
void | replayClipOperations () |
~QPaintEngineExPrivate () | |
Public Functions inherited from QPaintEnginePrivate | |
void | drawBoxTextItem (const QPointF &p, const QTextItemInt &ti) |
QPaintEnginePrivate () | |
void | setSystemTransform (const QTransform &xform) |
void | setSystemViewport (const QRegion ®ion) |
void | transformSystemClip () |
virtual | ~QPaintEnginePrivate () |
Properties | |
QVGPaintEngine * | q |
Definition at line 100 of file qpaintengine_vg.cpp.
Definition at line 107 of file qpaintengine_vg.cpp.
QVGPaintEnginePrivate::QVGPaintEnginePrivate | ( | QVGPaintEngine * | q_ptr | ) |
Definition at line 366 of file qpaintengine_vg.cpp.
QVGPaintEnginePrivate::~QVGPaintEnginePrivate | ( | ) |
Definition at line 427 of file qpaintengine_vg.cpp.
void QVGPaintEnginePrivate::clearModes | ( | ) |
Definition at line 357 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::endNativePainting(), and init().
void QVGPaintEnginePrivate::destroy | ( | ) |
void QVGPaintEnginePrivate::draw | ( | VGPath | path, |
const QPen & | pen, | ||
const QBrush & | brush, | ||
VGint | rule = VG_EVEN_ODD |
||
) |
Definition at line 1499 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::createState().
|
inline |
Definition at line 268 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::beginNativePainting(), QVGPaintEngine::drawCachedGlyphs(), QVGCompositionHelper::fillBackground(), and qt_vg_drawVGImageStencil().
void QVGPaintEnginePrivate::ensureMask | ( | QVGPaintEngine * | engine, |
int | width, | ||
int | height | ||
) |
Definition at line 2177 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::clip().
|
inline |
Definition at line 243 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::beginNativePainting().
|
inline |
Definition at line 256 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::beginNativePainting().
void QVGPaintEnginePrivate::fill | ( | VGPath | path, |
const QBrush & | brush, | ||
VGint | rule = VG_EVEN_ODD |
||
) |
Definition at line 1526 of file qpaintengine_vg.cpp.
void QVGPaintEnginePrivate::init | ( | ) |
Definition at line 371 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEnginePrivate().
void QVGPaintEnginePrivate::initObjects | ( | ) |
Definition at line 432 of file qpaintengine_vg.cpp.
void QVGPaintEnginePrivate::modifyMask | ( | QVGPaintEngine * | engine, |
VGMaskOperation | op, | ||
const QRegion & | region | ||
) |
Definition at line 2196 of file qpaintengine_vg.cpp.
Referenced by ensureMask().
void QVGPaintEnginePrivate::modifyMask | ( | QVGPaintEngine * | engine, |
VGMaskOperation | op, | ||
const QRect & | rect | ||
) |
Definition at line 2219 of file qpaintengine_vg.cpp.
|
inline |
Definition at line 297 of file qpaintengine_vg.cpp.
|
inline |
Definition at line 281 of file qpaintengine_vg.cpp.
|
inline |
Definition at line 287 of file qpaintengine_vg.cpp.
|
inline |
Definition at line 292 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::drawTextItem().
VGPath QVGPaintEnginePrivate::painterPathToVGPath | ( | const QPainterPath & | path | ) |
Definition at line 780 of file qpaintengine_vg.cpp.
Referenced by QVGFontEngineCleaner::fontEngineDestroyed().
VGPath QVGPaintEnginePrivate::roundedRectPath | ( | const QRectF & | rect, |
qreal | xRadius, | ||
qreal | yRadius, | ||
Qt::SizeMode | mode | ||
) |
Definition at line 945 of file qpaintengine_vg.cpp.
|
inline |
Definition at line 341 of file qpaintengine_vg.cpp.
Referenced by QVGCompositionHelper::startCompositing().
VGPaintType QVGPaintEnginePrivate::setBrush | ( | VGPaint | paint, |
const QBrush & | brush, | ||
VGMatrixMode | mode, | ||
VGPaintType | prevPaintType | ||
) |
Definition at line 1178 of file qpaintengine_vg.cpp.
Referenced by toVGImageWithOpacitySubRect().
void QVGPaintEnginePrivate::setBrushTransform | ( | const QBrush & | brush, |
VGMatrixMode | mode | ||
) |
Definition at line 1381 of file qpaintengine_vg.cpp.
Referenced by setBrush(), and setPenParams().
|
inline |
Definition at line 349 of file qpaintengine_vg.cpp.
Referenced by QVGCompositionHelper::fillBackground().
|
inline |
Definition at line 316 of file qpaintengine_vg.cpp.
Referenced by QVGCompositionHelper::blitWindow(), QVGPaintEngine::drawCachedGlyphs(), QVGCompositionHelper::drawCursorPixmap(), QVGPaintEngine::drawPixmapFragments(), and qt_vg_drawVGImageStencil().
void QVGPaintEnginePrivate::setImageOptions | ( | ) |
Definition at line 3107 of file qpaintengine_vg.cpp.
Referenced by drawImageTiled(), and drawVGImage().
|
inline |
Definition at line 333 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::drawCachedGlyphs(), and drawImageTiled().
void QVGPaintEnginePrivate::setPenParams | ( | const QPen & | pen | ) |
Definition at line 1338 of file qpaintengine_vg.cpp.
|
inline |
Definition at line 324 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::drawCachedGlyphs(), and drawImageTiled().
void QVGPaintEnginePrivate::setTransform | ( | VGMatrixMode | mode, |
const QTransform & | transform | ||
) |
Definition at line 535 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::beginNativePainting(), QVGCompositionHelper::blitWindow(), destroy(), QVGPaintEngine::drawCachedGlyphs(), QVGCompositionHelper::drawCursorPixmap(), drawImageTiled(), QVGPaintEngine::drawPixmapFragments(), drawVGImage(), QVGCompositionHelper::fillBackground(), and qt_vg_drawVGImageStencil().
void QVGPaintEnginePrivate::setupColorRamp | ( | const QGradient * | grad, |
VGPaint | paint | ||
) |
Definition at line 1425 of file qpaintengine_vg.cpp.
Referenced by setBrush().
void QVGPaintEnginePrivate::stroke | ( | VGPath | path, |
const QPen & | pen | ||
) |
Definition at line 1517 of file qpaintengine_vg.cpp.
|
virtual |
void QVGPaintEnginePrivate::updateTransform | ( | QPaintDevice * | pdev | ) |
Definition at line 556 of file qpaintengine_vg.cpp.
VGPath QVGPaintEnginePrivate::vectorPathToVGPath | ( | const QVectorPath & | path | ) |
Definition at line 596 of file qpaintengine_vg.cpp.
VGBlendMode QVGPaintEnginePrivate::blendMode |
Definition at line 225 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::canVgWritePixels().
QScopedPointer<QPixmapFilter> QVGPaintEnginePrivate::blurFilter |
Definition at line 239 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::pixmapFilter().
QPointF QVGPaintEnginePrivate::brushOrigin |
Definition at line 182 of file qpaintengine_vg.cpp.
Referenced by init(), and setBrushTransform().
VGPaint QVGPaintEnginePrivate::brushPaint |
Definition at line 166 of file qpaintengine_vg.cpp.
Referenced by destroy(), QVGPaintEngine::endNativePainting(), init(), and initObjects().
QTransform QVGPaintEnginePrivate::brushTransform |
Definition at line 211 of file qpaintengine_vg.cpp.
Referenced by setBrushTransform().
VGPaintType QVGPaintEnginePrivate::brushType |
Definition at line 180 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::endNativePainting(), and init().
QColor QVGPaintEnginePrivate::clearColor |
Definition at line 222 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::endNativePainting(), QVGCompositionHelper::fillBackground(), QVGPaintEngine::fillRegion(), and QVGPaintEngine::restoreState().
VGfloat QVGPaintEnginePrivate::clearOpacity |
Definition at line 223 of file qpaintengine_vg.cpp.
Referenced by QVGCompositionHelper::fillBackground(), QVGPaintEngine::fillRegion(), and init().
QScopedPointer<QPixmapFilter> QVGPaintEnginePrivate::colorizeFilter |
Definition at line 237 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::pixmapFilter().
QScopedPointer<QPixmapFilter> QVGPaintEnginePrivate::convolutionFilter |
Definition at line 236 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::pixmapFilter().
QBrush QVGPaintEnginePrivate::currentBrush |
Definition at line 171 of file qpaintengine_vg.cpp.
QPen QVGPaintEnginePrivate::currentPen |
Definition at line 170 of file qpaintengine_vg.cpp.
QPaintEngine::DirtyFlags QVGPaintEnginePrivate::dirty |
Definition at line 220 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::createState(), QVGPaintEngine::endNativePainting(), init(), and QVGPaintEngine::setState().
QScopedPointer<QPixmapFilter> QVGPaintEnginePrivate::dropShadowFilter |
Definition at line 238 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::pixmapFilter().
VGPaint QVGPaintEnginePrivate::fillPaint |
Definition at line 168 of file qpaintengine_vg.cpp.
Referenced by QVGCompositionHelper::blitWindow(), QVGPaintEngine::drawPixmapFragments(), QVGPaintEngine::endNativePainting(), init(), and initObjects().
VGint QVGPaintEnginePrivate::fillRule |
Definition at line 184 of file qpaintengine_vg.cpp.
Referenced by init(), and QVGPaintEngine::restoreState().
bool QVGPaintEnginePrivate::forceBrushChange |
Definition at line 174 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::endNativePainting(), and init().
bool QVGPaintEnginePrivate::forcePenChange |
Definition at line 173 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::endNativePainting(), and init().
bool QVGPaintEnginePrivate::hasAdvancedBlending |
Definition at line 234 of file qpaintengine_vg.cpp.
Referenced by init(), and initObjects().
bool QVGPaintEnginePrivate::hasExtendedRadialGradientBrush |
Definition at line 177 of file qpaintengine_vg.cpp.
Referenced by init().
bool QVGPaintEnginePrivate::hasExtendedRadialGradientPen |
Definition at line 176 of file qpaintengine_vg.cpp.
Referenced by init().
VGImageMode QVGPaintEnginePrivate::imageMode |
Definition at line 214 of file qpaintengine_vg.cpp.
VGImageQuality QVGPaintEnginePrivate::imageQuality |
Definition at line 227 of file qpaintengine_vg.cpp.
Referenced by drawImageTiled().
QTransform QVGPaintEnginePrivate::imageTransform |
Definition at line 200 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::beginNativePainting(), QVGPaintEngine::canVgWritePixels(), QVGPaintEngine::drawImage(), drawImageTiled(), QVGPaintEngine::drawPixmapFragments(), drawVGImage(), qt_vg_drawVGImageStencil(), and updateTransform().
VGPath QVGPaintEnginePrivate::linePath |
Definition at line 191 of file qpaintengine_vg.cpp.
Referenced by destroy(), init(), and initObjects().
bool QVGPaintEnginePrivate::maskIsSet |
Definition at line 204 of file qpaintengine_vg.cpp.
Referenced by init(), and QVGPaintEngine::restoreState().
QRect QVGPaintEnginePrivate::maskRect |
Definition at line 208 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::restoreState().
bool QVGPaintEnginePrivate::maskValid |
Definition at line 203 of file qpaintengine_vg.cpp.
Referenced by init(), and QVGPaintEngine::restoreState().
VGMatrixMode QVGPaintEnginePrivate::matrixMode |
Definition at line 213 of file qpaintengine_vg.cpp.
Referenced by initObjects(), setBrushTransform(), and setTransform().
VGint QVGPaintEnginePrivate::maxScissorRects |
Definition at line 163 of file qpaintengine_vg.cpp.
Referenced by init(), initObjects(), and QVGCompositionHelper::setScissor().
qreal QVGPaintEnginePrivate::opacity |
Definition at line 186 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::canVgWritePixels(), QVGPaintEngine::drawImage(), drawImageTiled(), QVGPaintEngine::drawPixmap(), QVGPaintEngine::drawPixmapFragments(), init(), setBrush(), and setupColorRamp().
VGPaint QVGPaintEnginePrivate::opacityPaint |
Definition at line 167 of file qpaintengine_vg.cpp.
Referenced by QVGCompositionHelper::blitWindow(), destroy(), QVGPaintEngine::drawPixmapFragments(), init(), and initObjects().
qreal QVGPaintEnginePrivate::paintOpacity |
Definition at line 187 of file qpaintengine_vg.cpp.
Referenced by QVGCompositionHelper::blitWindow(), QVGPaintEngine::drawPixmapFragments(), init(), and initObjects().
QTransform QVGPaintEnginePrivate::pathTransform |
Definition at line 199 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::beginNativePainting(), QVGPaintEngine::drawCachedGlyphs(), and updateTransform().
bool QVGPaintEnginePrivate::pathTransformSet |
Definition at line 201 of file qpaintengine_vg.cpp.
Referenced by QVGCompositionHelper::fillBackground(), init(), and updateTransform().
VGPaint QVGPaintEnginePrivate::penPaint |
Definition at line 165 of file qpaintengine_vg.cpp.
Referenced by destroy(), QVGPaintEngine::endNativePainting(), init(), and initObjects().
qreal QVGPaintEnginePrivate::penScale |
Definition at line 197 of file qpaintengine_vg.cpp.
Referenced by init(), setPenParams(), and updateTransform().
QTransform QVGPaintEnginePrivate::penTransform |
Definition at line 210 of file qpaintengine_vg.cpp.
Referenced by setBrushTransform().
VGPaintType QVGPaintEnginePrivate::penType |
Definition at line 179 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::endNativePainting(), and init().
|
private |
Definition at line 313 of file qpaintengine_vg.cpp.
bool QVGPaintEnginePrivate::rawVG |
Definition at line 206 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::beginNativePainting(), QVGPaintEngine::endNativePainting(), init(), and setBrushTransform().
VGPath QVGPaintEnginePrivate::rectPath |
Definition at line 190 of file qpaintengine_vg.cpp.
Referenced by destroy(), fillBackgroundRect(), init(), and initObjects().
VGRenderingQuality QVGPaintEnginePrivate::renderingQuality |
Definition at line 226 of file qpaintengine_vg.cpp.
Referenced by drawImageTiled().
VGPath QVGPaintEnginePrivate::roundRectPath |
Definition at line 192 of file qpaintengine_vg.cpp.
Referenced by destroy(), init(), and roundedRectPath().
bool QVGPaintEnginePrivate::scissorActive |
Definition at line 217 of file qpaintengine_vg.cpp.
Referenced by QVGCompositionHelper::clearScissor(), init(), and QVGCompositionHelper::setScissor().
bool QVGPaintEnginePrivate::scissorDirty |
Definition at line 218 of file qpaintengine_vg.cpp.
Referenced by QVGCompositionHelper::clearScissor(), QVGPaintEngine::endNativePainting(), init(), QVGPaintEngine::restoreState(), and QVGCompositionHelper::setScissor().
bool QVGPaintEnginePrivate::scissorMask |
Definition at line 205 of file qpaintengine_vg.cpp.
Referenced by init(), and QVGPaintEngine::restoreState().
QRegion QVGPaintEnginePrivate::scissorRegion |
Definition at line 216 of file qpaintengine_vg.cpp.
Referenced by QVGCompositionHelper::setScissor().
bool QVGPaintEnginePrivate::simpleTransform |
Definition at line 196 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::drawImage(), QVGPaintEngine::drawPixmap(), QVGPaintEngine::drawPixmapFragments(), QVGPaintEngine::drawTextItem(), init(), painterPathToVGPath(), updateTransform(), and vectorPathToVGPath().
QTransform QVGPaintEnginePrivate::transform |
Definition at line 195 of file qpaintengine_vg.cpp.
Referenced by QVGPaintEngine::drawCachedGlyphs(), and setBrushTransform().