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
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 98 of file qpaintengine_mac_p.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
CosmeticNone 
CosmeticTransformPath 
CosmeticSetPenWidth 

Definition at line 124 of file qpaintengine_mac_p.h.

◆ anonymous enum

anonymous enum
Enumerator
CGStroke 
CGEOFill 
CGFill 

Definition at line 131 of file qpaintengine_mac_p.h.

Constructor & Destructor Documentation

◆ QCoreGraphicsPaintEnginePrivate()

QCoreGraphicsPaintEnginePrivate::QCoreGraphicsPaintEnginePrivate ( )
inline

Definition at line 102 of file qpaintengine_mac_p.h.

Member Function Documentation

◆ adjustPenWidth()

float QCoreGraphicsPaintEnginePrivate::adjustPenWidth ( float penWidth)

Definition at line 1053 of file qpaintengine_mac.mm.

References QPainter::Antialiasing, complexXForm, and ret.

Referenced by setStrokePen().

+ Here is the caller graph for this function:

◆ devicePixelSize()

QPointF QCoreGraphicsPaintEnginePrivate::devicePixelSize ( CGContextRef context)

Definition at line 1042 of file qpaintengine_mac.mm.

References current, p1, p2, and qAbs().

+ Here is the call graph for this function:

◆ drawPath()

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

◆ penOffset()

float QCoreGraphicsPaintEnginePrivate::penOffset ( )

◆ resetClip()

void QCoreGraphicsPaintEnginePrivate::resetClip ( )

Definition at line 142 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 161 of file qpaintengine_mac_p.h.

References hd, Q_ASSERT, and stackCount.

Referenced by drawPath(), and resetClip().

+ Here is the caller graph for this function:

◆ saveGraphicsState()

void QCoreGraphicsPaintEnginePrivate::saveGraphicsState ( )
inline

Definition at line 155 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 1250 of file qpaintengine_mac.mm.

References hd, orig_xform, qt_mac_clip_cg(), and resetClip().

+ Here is the call graph for this function:

◆ setFillBrush()

◆ setStrokePen()

void QCoreGraphicsPaintEnginePrivate::setStrokePen ( const QPen & pen)

Definition at line 1069 of file qpaintengine_mac.mm.

References adjustPenWidth(), QList< T >::append(), Qt::BevelJoin, QPen::capStyle(), cgColorForQColor(), QPen::color(), Qt::CustomDashLine, Qt::DashDotDotLine, Qt::DashDotLine, Qt::DashLine, QPen::dashOffset(), QPen::dashPattern(), Qt::DotLine, hd, i, QPen::joinStyle(), pen, Qt::RoundCap, Qt::RoundJoin, Qt::SquareCap, QPen::style(), and QPen::widthF().

+ Here is the call graph for this function:

◆ setTransform()

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

Definition at line 142 of file qpaintengine_mac_p.h.

References hd, orig_xform, qt_mac_convert_transform_to_cg(), and xform.

Referenced by drawPath().

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

Member Data Documentation

◆ brush

QBrush QCoreGraphicsPaintEnginePrivate::brush

Definition at line 109 of file qpaintengine_mac_p.h.

◆ clip

QRegion QCoreGraphicsPaintEnginePrivate::clip

Definition at line 111 of file qpaintengine_mac_p.h.

◆ clipEnabled

uint QCoreGraphicsPaintEnginePrivate::clipEnabled

Definition at line 110 of file qpaintengine_mac_p.h.

◆ complexXForm

bool QCoreGraphicsPaintEnginePrivate::complexXForm

Definition at line 122 of file qpaintengine_mac_p.h.

Referenced by adjustPenWidth().

◆ []

enum { ... } QCoreGraphicsPaintEnginePrivate::cosmeticPen

Referenced by drawPath().

◆ cosmeticPenSize

float QCoreGraphicsPaintEnginePrivate::cosmeticPenSize

Definition at line 128 of file qpaintengine_mac_p.h.

Referenced by drawPath().

◆ [struct]

struct { ... } QCoreGraphicsPaintEnginePrivate::current

◆ disabledSmoothFonts

bool QCoreGraphicsPaintEnginePrivate::disabledSmoothFonts

Definition at line 123 of file qpaintengine_mac_p.h.

◆ hd

CGContextRef QCoreGraphicsPaintEnginePrivate::hd

◆ orig_xform

CGAffineTransform QCoreGraphicsPaintEnginePrivate::orig_xform

Definition at line 116 of file qpaintengine_mac_p.h.

Referenced by setClip(), and setTransform().

◆ pen

QPen QCoreGraphicsPaintEnginePrivate::pen

Definition at line 108 of file qpaintengine_mac_p.h.

Referenced by setStrokePen().

◆ pixelSize

QPointF QCoreGraphicsPaintEnginePrivate::pixelSize

Definition at line 127 of file qpaintengine_mac_p.h.

Referenced by drawPath().

◆ shading

CGShadingRef QCoreGraphicsPaintEnginePrivate::shading

Definition at line 120 of file qpaintengine_mac_p.h.

Referenced by drawPath(), and setFillBrush().

◆ stackCount

int QCoreGraphicsPaintEnginePrivate::stackCount

Definition at line 121 of file qpaintengine_mac_p.h.

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

◆ transform

QTransform QCoreGraphicsPaintEnginePrivate::transform

Definition at line 112 of file qpaintengine_mac_p.h.


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