Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QAlphaPaintEnginePrivate Class Reference

#include <qpaintengine_alpha_p.h>

+ Inheritance diagram for QAlphaPaintEnginePrivate:
+ Collaboration diagram for QAlphaPaintEnginePrivate:

Public Member Functions

 QAlphaPaintEnginePrivate ()
 
 ~QAlphaPaintEnginePrivate ()
 
void addAlphaRect (const QRectF &rect)
 
void addDirtyRect (const QRectF &rect)
 
bool canSeeTroughBackground (bool somethingInRectHasAlpha, const QRectF &rect) const
 
QRectF addPenWidth (const QPainterPath &path)
 
void drawAlphaImage (const QRectF &rect)
 
QRect toRect (const QRectF &rect) const
 
bool fullyContained (const QRectF &rect) const
 
void resetState (QPainter *p)
 
- Public Member Functions inherited from QPaintEnginePrivate
 QPaintEnginePrivate ()
 
virtual ~QPaintEnginePrivate ()
 
void updateSystemClip ()
 
void setSystemTransform (const QTransform &xform)
 
void setSystemViewport (const QRegion &region)
 
void setSystemTransformAndViewport (const QTransform &xform, const QRegion &region)
 
virtual void systemStateChanged ()
 
void drawBoxTextItem (const QPointF &p, const QTextItemInt &ti)
 
virtual QPaintEngineaggregateEngine ()
 
virtual Qt::HANDLE nativeHandle ()
 

Public Attributes

int m_pass
 
QPicturem_pic
 
QPaintEnginem_picengine
 
QPainterm_picpainter
 
QPaintEngine::PaintEngineFeatures m_savedcaps
 
QPaintDevicem_pdev
 
QRegion m_alphargn
 
QRegion m_cliprgn
 
QRegion m_cachedDirtyRgn
 
int m_numberOfCachedRects
 
QList< QRectm_dirtyRects
 
bool m_hasalpha
 
bool m_alphaPen
 
bool m_alphaBrush
 
bool m_alphaOpacity
 
bool m_advancedPen
 
bool m_advancedBrush
 
bool m_complexTransform
 
bool m_emulateProjectiveTransforms
 
bool m_continueCall
 
QTransform m_transform
 
QPen m_pen
 
- Public Attributes inherited from QPaintEnginePrivate
QPaintDevicepdev
 
QPaintEngineq_ptr
 
QRegion baseSystemClip
 
QRegion systemClip
 
QRect systemRect
 
QRegion systemViewport
 
QTransform systemTransform
 
QPaintDevicecurrentClipDevice
 
uint hasSystemTransform: 1
 
uint hasSystemViewport: 1
 

Additional Inherited Members

- Static Public Member Functions inherited from QPaintEnginePrivate
static QPaintEnginePrivateget (QPaintEngine *paintEngine)
 

Detailed Description

Definition at line 55 of file qpaintengine_alpha_p.h.

Constructor & Destructor Documentation

◆ QAlphaPaintEnginePrivate()

QAlphaPaintEnginePrivate::QAlphaPaintEnginePrivate ( )

Definition at line 349 of file qpaintengine_alpha.cpp.

◆ ~QAlphaPaintEnginePrivate()

QAlphaPaintEnginePrivate::~QAlphaPaintEnginePrivate ( )

Definition at line 366 of file qpaintengine_alpha.cpp.

References m_pic, and m_picpainter.

Member Function Documentation

◆ addAlphaRect()

void QAlphaPaintEnginePrivate::addAlphaRect ( const QRectF & rect)

Definition at line 396 of file qpaintengine_alpha.cpp.

References m_alphargn, and rect.

◆ addDirtyRect()

void QAlphaPaintEnginePrivate::addDirtyRect ( const QRectF & rect)
inline

Definition at line 90 of file qpaintengine_alpha_p.h.

References QList< T >::append(), m_dirtyRects, and rect.

+ Here is the call graph for this function:

◆ addPenWidth()

QRectF QAlphaPaintEnginePrivate::addPenWidth ( const QPainterPath & path)

Definition at line 372 of file qpaintengine_alpha.cpp.

References QPen::capStyle(), QPainterPath::controlPointRect(), QPainterPathStroker::createStroke(), QPen::isCosmetic(), QPen::joinStyle(), m_pen, m_transform, Qt::NoPen, QPainterPathStroker::setCapStyle(), QPainterPathStroker::setJoinStyle(), QPainterPathStroker::setWidth(), QPen::style(), and QPen::widthF().

+ Here is the call graph for this function:

◆ canSeeTroughBackground()

bool QAlphaPaintEnginePrivate::canSeeTroughBackground ( bool somethingInRectHasAlpha,
const QRectF & rect ) const

Definition at line 401 of file qpaintengine_alpha.cpp.

References QList< T >::constData(), QRegion::intersects(), m_cachedDirtyRgn, m_dirtyRects, m_numberOfCachedRects, rect, QRegion::setRects(), and QList< T >::size().

+ Here is the call graph for this function:

◆ drawAlphaImage()

void QAlphaPaintEnginePrivate::drawAlphaImage ( const QRectF & rect)

Definition at line 413 of file qpaintengine_alpha.cpp.

References QImage::Format_RGB32, QPaintDevice::logicalDpiX(), QPaintDevice::logicalDpiY(), m_pdev, m_pic, qMax(), rect, QTransform::scale(), and tileSize.

+ Here is the call graph for this function:

◆ fullyContained()

bool QAlphaPaintEnginePrivate::fullyContained ( const QRectF & rect) const

Definition at line 460 of file qpaintengine_alpha.cpp.

References QRegion::intersected(), m_cliprgn, and rect.

+ Here is the call graph for this function:

◆ resetState()

void QAlphaPaintEnginePrivate::resetState ( QPainter * p)

Definition at line 466 of file qpaintengine_alpha.cpp.

References Qt::NoClip.

◆ toRect()

QRect QAlphaPaintEnginePrivate::toRect ( const QRectF & rect) const

Member Data Documentation

◆ m_advancedBrush

bool QAlphaPaintEnginePrivate::m_advancedBrush

Definition at line 81 of file qpaintengine_alpha_p.h.

◆ m_advancedPen

bool QAlphaPaintEnginePrivate::m_advancedPen

Definition at line 80 of file qpaintengine_alpha_p.h.

◆ m_alphaBrush

bool QAlphaPaintEnginePrivate::m_alphaBrush

Definition at line 78 of file qpaintengine_alpha_p.h.

◆ m_alphaOpacity

bool QAlphaPaintEnginePrivate::m_alphaOpacity

Definition at line 79 of file qpaintengine_alpha_p.h.

◆ m_alphaPen

bool QAlphaPaintEnginePrivate::m_alphaPen

Definition at line 77 of file qpaintengine_alpha_p.h.

◆ m_alphargn

QRegion QAlphaPaintEnginePrivate::m_alphargn

Definition at line 70 of file qpaintengine_alpha_p.h.

Referenced by addAlphaRect().

◆ m_cachedDirtyRgn

QRegion QAlphaPaintEnginePrivate::m_cachedDirtyRgn
mutable

Definition at line 72 of file qpaintengine_alpha_p.h.

Referenced by canSeeTroughBackground().

◆ m_cliprgn

QRegion QAlphaPaintEnginePrivate::m_cliprgn

Definition at line 71 of file qpaintengine_alpha_p.h.

Referenced by fullyContained().

◆ m_complexTransform

bool QAlphaPaintEnginePrivate::m_complexTransform

Definition at line 82 of file qpaintengine_alpha_p.h.

◆ m_continueCall

bool QAlphaPaintEnginePrivate::m_continueCall

Definition at line 84 of file qpaintengine_alpha_p.h.

◆ m_dirtyRects

QList<QRect> QAlphaPaintEnginePrivate::m_dirtyRects

Definition at line 74 of file qpaintengine_alpha_p.h.

Referenced by addDirtyRect(), and canSeeTroughBackground().

◆ m_emulateProjectiveTransforms

bool QAlphaPaintEnginePrivate::m_emulateProjectiveTransforms

Definition at line 83 of file qpaintengine_alpha_p.h.

◆ m_hasalpha

bool QAlphaPaintEnginePrivate::m_hasalpha

Definition at line 76 of file qpaintengine_alpha_p.h.

◆ m_numberOfCachedRects

int QAlphaPaintEnginePrivate::m_numberOfCachedRects
mutable

Definition at line 73 of file qpaintengine_alpha_p.h.

Referenced by canSeeTroughBackground().

◆ m_pass

int QAlphaPaintEnginePrivate::m_pass

Definition at line 62 of file qpaintengine_alpha_p.h.

◆ m_pdev

QPaintDevice* QAlphaPaintEnginePrivate::m_pdev

Definition at line 68 of file qpaintengine_alpha_p.h.

Referenced by drawAlphaImage().

◆ m_pen

QPen QAlphaPaintEnginePrivate::m_pen

Definition at line 87 of file qpaintengine_alpha_p.h.

Referenced by addPenWidth().

◆ m_pic

QPicture* QAlphaPaintEnginePrivate::m_pic

Definition at line 63 of file qpaintengine_alpha_p.h.

Referenced by ~QAlphaPaintEnginePrivate(), and drawAlphaImage().

◆ m_picengine

QPaintEngine* QAlphaPaintEnginePrivate::m_picengine

Definition at line 64 of file qpaintengine_alpha_p.h.

◆ m_picpainter

QPainter* QAlphaPaintEnginePrivate::m_picpainter

Definition at line 65 of file qpaintengine_alpha_p.h.

Referenced by ~QAlphaPaintEnginePrivate().

◆ m_savedcaps

QPaintEngine::PaintEngineFeatures QAlphaPaintEnginePrivate::m_savedcaps

Definition at line 67 of file qpaintengine_alpha_p.h.

◆ m_transform

QTransform QAlphaPaintEnginePrivate::m_transform

Definition at line 86 of file qpaintengine_alpha_p.h.

Referenced by addPenWidth().


The documentation for this class was generated from the following files: