Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QCoreGraphicsPaintEnginePrivate Class Reference

#include <qpaintengine_mac_p.h>

Inheritance diagram for QCoreGraphicsPaintEnginePrivate:
Collaboration diagram for QCoreGraphicsPaintEnginePrivate:

Public Types

enum  { CosmeticNone , CosmeticTransformPath , CosmeticSetPenWidth }
enum  { CGStroke =0x01 , CGEOFill =0x02 , CGFill =0x04 }

Public Member Functions

 QCoreGraphicsPaintEnginePrivate ()
void drawPath (uchar ops, CGMutablePathRef path=nullptr)
void setClip (const QRegion *rgn=nullptr)
void resetClip ()
void setFillBrush (const QPointF &origin=QPoint())
void setStrokePen (const QPen &pen)
void saveGraphicsState ()
void restoreGraphicsState ()
float penOffset ()
QPointF devicePixelSize (CGContextRef context)
float adjustPenWidth (float penWidth)
void setTransform (const QTransform *matrix=nullptr)
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

struct { 
   QPen   pen 
   QBrush   brush 
   uint   clipEnabled: 1 
   QRegion   clip 
   QTransform   transform 
current
CGAffineTransform orig_xform
CGContextRef hd
CGShadingRef shading
int stackCount
bool complexXForm
bool disabledSmoothFonts
enum QCoreGraphicsPaintEnginePrivate:: { ... }  cosmeticPen
QPointF pixelSize
float cosmeticPenSize
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 99 of file qpaintengine_mac_p.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
CosmeticNone 
CosmeticTransformPath 
CosmeticSetPenWidth 

Definition at line 125 of file qpaintengine_mac_p.h.

◆ anonymous enum

anonymous enum
Enumerator
CGStroke 
CGEOFill 
CGFill 

Definition at line 132 of file qpaintengine_mac_p.h.

Constructor & Destructor Documentation

◆ QCoreGraphicsPaintEnginePrivate()

QCoreGraphicsPaintEnginePrivate::QCoreGraphicsPaintEnginePrivate ( )
inline

Definition at line 103 of file qpaintengine_mac_p.h.

Member Function Documentation

◆ adjustPenWidth()

float QCoreGraphicsPaintEnginePrivate::adjustPenWidth ( float penWidth)

Definition at line 1047 of file qpaintengine_mac.mm.

Referenced by setStrokePen().

Here is the caller graph for this function:

◆ devicePixelSize()

QPointF QCoreGraphicsPaintEnginePrivate::devicePixelSize ( CGContextRef context)

Definition at line 1036 of file qpaintengine_mac.mm.

◆ drawPath()

void QCoreGraphicsPaintEnginePrivate::drawPath ( uchar ops,
CGMutablePathRef path = nullptr )

Definition at line 1290 of file qpaintengine_mac.mm.

References CGEOFill, CGFill, CGStroke, CosmeticNone, cosmeticPenSize, CosmeticTransformPath, hd, restoreGraphicsState(), and saveGraphicsState().

Here is the call graph for this function:

◆ penOffset()

float QCoreGraphicsPaintEnginePrivate::penOffset ( )

◆ resetClip()

void QCoreGraphicsPaintEnginePrivate::resetClip ( )

Definition at line 143 of file qpaintengine_mac.mm.

References hd, restoreGraphicsState(), saveGraphicsState(), and stackCount.

Referenced by setClip().

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

◆ restoreGraphicsState()

void QCoreGraphicsPaintEnginePrivate::restoreGraphicsState ( )
inline

Definition at line 162 of file qpaintengine_mac_p.h.

References hd, and stackCount.

Referenced by drawPath(), and resetClip().

Here is the caller graph for this function:

◆ saveGraphicsState()

void QCoreGraphicsPaintEnginePrivate::saveGraphicsState ( )
inline

Definition at line 156 of file qpaintengine_mac_p.h.

References hd, and stackCount.

Referenced by drawPath(), and resetClip().

Here is the caller graph for this function:

◆ setClip()

void QCoreGraphicsPaintEnginePrivate::setClip ( const QRegion * rgn = nullptr)

Definition at line 1244 of file qpaintengine_mac.mm.

References hd, and resetClip().

Here is the call graph for this function:

◆ setFillBrush()

void QCoreGraphicsPaintEnginePrivate::setFillBrush ( const QPointF & origin = QPoint())

Definition at line 1149 of file qpaintengine_mac.mm.

References QMacPattern::as_mask, hd, QMacPattern::height(), qt_mac_dispose_pattern(), qt_mac_draw_pattern(), and QMacPattern::width().

Here is the call graph for this function:

◆ setStrokePen()

void QCoreGraphicsPaintEnginePrivate::setStrokePen ( const QPen & pen)

Definition at line 1063 of file qpaintengine_mac.mm.

References adjustPenWidth(), and hd.

Here is the call graph for this function:

◆ setTransform()

void QCoreGraphicsPaintEnginePrivate::setTransform ( const QTransform * matrix = nullptr)
inline

Definition at line 143 of file qpaintengine_mac_p.h.

References hd.

Member Data Documentation

◆ brush

QBrush QCoreGraphicsPaintEnginePrivate::brush

Definition at line 110 of file qpaintengine_mac_p.h.

◆ clip

QRegion QCoreGraphicsPaintEnginePrivate::clip

Definition at line 112 of file qpaintengine_mac_p.h.

◆ clipEnabled

uint QCoreGraphicsPaintEnginePrivate::clipEnabled

Definition at line 111 of file qpaintengine_mac_p.h.

◆ complexXForm

bool QCoreGraphicsPaintEnginePrivate::complexXForm

Definition at line 123 of file qpaintengine_mac_p.h.

◆ []

enum { ... } QCoreGraphicsPaintEnginePrivate::cosmeticPen

◆ cosmeticPenSize

float QCoreGraphicsPaintEnginePrivate::cosmeticPenSize

Definition at line 129 of file qpaintengine_mac_p.h.

Referenced by drawPath().

◆ [struct]

struct { ... } QCoreGraphicsPaintEnginePrivate::current

◆ disabledSmoothFonts

bool QCoreGraphicsPaintEnginePrivate::disabledSmoothFonts

Definition at line 124 of file qpaintengine_mac_p.h.

◆ hd

CGContextRef QCoreGraphicsPaintEnginePrivate::hd

◆ orig_xform

CGAffineTransform QCoreGraphicsPaintEnginePrivate::orig_xform

Definition at line 117 of file qpaintengine_mac_p.h.

◆ pen

QPen QCoreGraphicsPaintEnginePrivate::pen

Definition at line 109 of file qpaintengine_mac_p.h.

◆ pixelSize

QPointF QCoreGraphicsPaintEnginePrivate::pixelSize

Definition at line 128 of file qpaintengine_mac_p.h.

◆ shading

CGShadingRef QCoreGraphicsPaintEnginePrivate::shading

Definition at line 121 of file qpaintengine_mac_p.h.

◆ stackCount

int QCoreGraphicsPaintEnginePrivate::stackCount

Definition at line 122 of file qpaintengine_mac_p.h.

Referenced by resetClip(), restoreGraphicsState(), and saveGraphicsState().

◆ transform

QTransform QCoreGraphicsPaintEnginePrivate::transform

Definition at line 113 of file qpaintengine_mac_p.h.


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