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
QBlitterPaintEnginePrivate Class Reference
+ Inheritance diagram for QBlitterPaintEnginePrivate:
+ Collaboration diagram for QBlitterPaintEnginePrivate:

Public Member Functions

 QBlitterPaintEnginePrivate (QBlittablePlatformPixmap *p)
 
void lock ()
 
void unlock ()
 
void fillRect (const QRectF &rect, const QColor &color, bool alpha)
 
void clipAndDrawPixmap (const QRectF &clip, const QRectF &target, const QPixmap &pm, const QRectF &sr, bool opacity)
 
void updateCompleteState (QPainterState *s)
 
void updatePenState (QPainterState *s)
 
void updateBrushState (QPainterState *s)
 
void updateOpacityState (QPainterState *s)
 
void updateCompositionModeState (QPainterState *s)
 
void updateRenderHintsState (QPainterState *s)
 
void updateTransformState (QPainterState *s)
 
void updateClipState (QPainterState *s)
 
- Public Member Functions inherited from QRasterPaintEnginePrivate
 QRasterPaintEnginePrivate ()
 
void rasterizeLine_dashed (QLineF line, qreal width, int *dashIndex, qreal *dashOffset, bool *inDash)
 
void rasterize (QT_FT_Outline *outline, ProcessSpans callback, QSpanData *spanData, QRasterBuffer *rasterBuffer)
 
void rasterize (QT_FT_Outline *outline, ProcessSpans callback, void *userData, QRasterBuffer *rasterBuffer)
 
void updateMatrixData (QSpanData *spanData, const QBrush &brush, const QTransform &brushMatrix)
 
void updateClipping ()
 
void systemStateChanged () override
 
void drawImage (const QPointF &pt, const QImage &img, SrcOverBlendFunc func, const QRect &clip, int alpha, const QRect &sr=QRect())
 
void blitImage (const QPointF &pt, const QImage &img, const QRect &clip, const QRect &sr=QRect())
 
QTransform brushMatrix () const
 
bool isUnclipped_normalized (const QRect &rect) const
 Returns true if the rectangle is completely within the current clip state of the paint engine.
 
bool isUnclipped (const QRect &rect, int penWidth) const
 
bool isUnclipped (const QRectF &rect, int penWidth) const
 
ProcessSpans getPenFunc (const QRectF &rect, const QSpanData *data) const
 
ProcessSpans getBrushFunc (const QRect &rect, const QSpanData *data) const
 
ProcessSpans getBrushFunc (const QRectF &rect, const QSpanData *data) const
 
const QClipDataclip () const
 
void initializeRasterizer (QSpanData *data)
 
void recalculateFastImages ()
 
bool canUseFastImageBlending (QPainter::CompositionMode mode, const QImage &image) const
 
bool canUseImageBlitting (QPainter::CompositionMode mode, const QImage &image, const QPointF &pt, const QRectF &sr) const
 
- Public Member Functions inherited from QPaintEngineExPrivate
 QPaintEngineExPrivate ()
 
 ~QPaintEngineExPrivate ()
 
void replayClipOperations ()
 
bool hasClipOperations () const
 
- 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)
 
void drawBoxTextItem (const QPointF &p, const QTextItemInt &ti)
 
virtual QPaintEngineaggregateEngine ()
 
virtual Qt::HANDLE nativeHandle ()
 

Public Attributes

QBlittablePlatformPixmappmData
 
CapabilitiesToStateMask caps
 
uint hasXForm
 
- Public Attributes inherited from QRasterPaintEnginePrivate
QPaintDevicedevice
 
QScopedPointer< QOutlineMapperoutlineMapper
 
QScopedPointer< QRasterBufferrasterBuffer
 
QRect deviceRect
 
QRect deviceRectUnclipped
 
QStroker basicStroker
 
QScopedPointer< QDashStrokerdashStroker
 
QScopedPointer< QT_FT_RastergrayRaster
 
QDataBuffer< QLineFcachedLines
 
QSpanData image_filler
 
QSpanData image_filler_xform
 
QSpanData solid_color_filler
 
QFontEngine::GlyphFormat glyphCacheFormat
 
QScopedPointer< QClipDatabaseClip
 
int deviceDepth
 
uint mono_surface: 1
 
uint outlinemapper_xform_dirty: 1
 
QScopedPointer< QRasterizerrasterizer
 
- Public Attributes inherited from QPaintEngineExPrivate
QStroker stroker
 
QDashStroker dasher
 
StrokeHandlerstrokeHandler
 
QStrokerOpsactiveStroker
 
QPen strokerPen
 
QRect exDeviceRect
 
- 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 214 of file qpaintengine_blitter.cpp.

Constructor & Destructor Documentation

◆ QBlitterPaintEnginePrivate()

QBlitterPaintEnginePrivate::QBlitterPaintEnginePrivate ( QBlittablePlatformPixmap * p)
inline

Definition at line 218 of file qpaintengine_blitter.cpp.

Member Function Documentation

◆ clipAndDrawPixmap()

void QBlitterPaintEnginePrivate::clipAndDrawPixmap ( const QRectF & clip,
const QRectF & target,
const QPixmap & pm,
const QRectF & sr,
bool opacity )

Definition at line 372 of file qpaintengine_blitter.cpp.

References QBlittablePlatformPixmap::blittable(), QRectF::bottom(), QRasterPaintEnginePrivate::clip(), QBlittable::drawPixmap(), QBlittable::drawPixmapOpacity(), QRectF::isEmpty(), QRectF::left(), pmData, QRectF::right(), QRectF::size(), QRectF::top(), and QBlittablePlatformPixmap::unmarkRasterOverlay().

+ Here is the call graph for this function:

◆ fillRect()

void QBlitterPaintEnginePrivate::fillRect ( const QRectF & rect,
const QColor & color,
bool alpha )

◆ lock()

void QBlitterPaintEnginePrivate::lock ( )
inline

Definition at line 247 of file qpaintengine_blitter.cpp.

References QBlittablePlatformPixmap::blittable(), QBlittablePlatformPixmap::buffer(), QBlittable::isLocked(), pmData, QRasterBuffer::prepare(), and QRasterPaintEnginePrivate::rasterBuffer.

+ Here is the call graph for this function:

◆ unlock()

void QBlitterPaintEnginePrivate::unlock ( )
inline

Definition at line 253 of file qpaintengine_blitter.cpp.

References QBlittablePlatformPixmap::blittable(), pmData, and QBlittable::unlock().

Referenced by fillRect().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateBrushState()

void QBlitterPaintEnginePrivate::updateBrushState ( QPainterState * s)

Definition at line 275 of file qpaintengine_blitter.cpp.

References QColor::alpha(), caps, qbrush_color(), qbrush_style(), Qt::SolidPattern, STATE_BRUSH_ALPHA, STATE_BRUSH_PATTERN, and CapabilitiesToStateMask::updateState().

Referenced by updateCompleteState().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateClipState()

void QBlitterPaintEnginePrivate::updateClipState ( QPainterState * s)

Definition at line 318 of file qpaintengine_blitter.cpp.

References caps, QRasterPaintEnginePrivate::clip(), QClipData::hasRectClip, QClipData::hasRegionClip, STATE_CLIP_COMPLEX, and CapabilitiesToStateMask::updateState().

Referenced by updateCompleteState().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateCompleteState()

void QBlitterPaintEnginePrivate::updateCompleteState ( QPainterState * s)

Definition at line 259 of file qpaintengine_blitter.cpp.

References updateBrushState(), updateClipState(), updateCompositionModeState(), updateOpacityState(), updatePenState(), updateRenderHintsState(), and updateTransformState().

+ Here is the call graph for this function:

◆ updateCompositionModeState()

void QBlitterPaintEnginePrivate::updateCompositionModeState ( QPainterState * s)

Definition at line 290 of file qpaintengine_blitter.cpp.

References caps, QPainter::CompositionMode_Source, QPainter::CompositionMode_SourceOver, STATE_BLENDING_COMPLEX, and CapabilitiesToStateMask::updateState().

Referenced by updateCompleteState().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateOpacityState()

void QBlitterPaintEnginePrivate::updateOpacityState ( QPainterState * s)

Definition at line 284 of file qpaintengine_blitter.cpp.

References caps, STATE_ALPHA, and CapabilitiesToStateMask::updateState().

Referenced by updateCompleteState().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updatePenState()

void QBlitterPaintEnginePrivate::updatePenState ( QPainterState * s)

Definition at line 270 of file qpaintengine_blitter.cpp.

References caps, Qt::NoPen, qpen_style(), STATE_PEN_ENABLED, and CapabilitiesToStateMask::updateState().

Referenced by updateCompleteState().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateRenderHintsState()

void QBlitterPaintEnginePrivate::updateRenderHintsState ( QPainterState * s)

Definition at line 298 of file qpaintengine_blitter.cpp.

References QPainter::Antialiasing, caps, STATE_ANTIALIASING, and CapabilitiesToStateMask::updateState().

Referenced by updateCompleteState().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateTransformState()

void QBlitterPaintEnginePrivate::updateTransformState ( QPainterState * s)

Definition at line 304 of file qpaintengine_blitter.cpp.

References caps, hasXForm, STATE_XFORM_COMPLEX, STATE_XFORM_SCALE, QTransform::TxScale, QTransform::TxTranslate, and CapabilitiesToStateMask::updateState().

Referenced by updateCompleteState().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ caps

◆ hasXForm

uint QBlitterPaintEnginePrivate::hasXForm

Definition at line 243 of file qpaintengine_blitter.cpp.

Referenced by fillRect(), and updateTransformState().

◆ pmData

QBlittablePlatformPixmap* QBlitterPaintEnginePrivate::pmData

Definition at line 241 of file qpaintengine_blitter.cpp.

Referenced by clipAndDrawPixmap(), fillRect(), lock(), and unlock().


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