Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QX11PaintEnginePrivate Class Reference
+ Inheritance diagram for QX11PaintEnginePrivate:
+ Collaboration diagram for QX11PaintEnginePrivate:

Classes

struct  qt_float_point
 

Public Types

enum  GCMode { PenGC , BrushGC }
 

Public Member Functions

 QX11PaintEnginePrivate ()
 
void init ()
 
void fillPolygon_translated (const QPointF *points, int pointCount, GCMode gcMode, QPaintEngine::PolygonDrawMode mode)
 
void fillPolygon_dev (const QPointF *points, int pointCount, GCMode gcMode, QPaintEngine::PolygonDrawMode mode)
 
void fillPath (const QPainterPath &path, GCMode gcmode, bool transform)
 
void strokePolygon_dev (const QPointF *points, int pointCount, bool close)
 
void strokePolygon_translated (const QPointF *points, int pointCount, bool close)
 
void setupAdaptedOrigin (const QPoint &p)
 
void resetAdaptedOrigin ()
 
void decidePathFallback ()
 
void decideCoordAdjust ()
 
void clipPolygon_dev (const QPolygonF &poly, QPolygonF *clipped_poly)
 
void systemStateChanged () override
 
bool isCosmeticPen () 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)
 
virtual void systemStateChanged ()
 
void drawBoxTextItem (const QPointF &p, const QTextItemInt &ti)
 
virtual QPaintEngineaggregateEngine ()
 
virtual Qt::HANDLE nativeHandle ()
 

Public Attributes

Displaydpy
 
int scrn
 
int pdev_depth
 
unsigned long hd
 
QPixmap brush_pm
 
unsigned long picture
 
GC gc
 
GC gc_brush
 
QPen cpen
 
QBrush cbrush
 
QRegion crgn
 
QTransform matrix
 
qreal opacity
 
uint has_complex_xform: 1
 
uint has_scaling_xform: 1
 
uint has_non_scaling_xform: 1
 
uint has_custom_pen: 1
 
uint use_path_fallback: 1
 
uint adjust_coords: 1
 
uint has_clipping: 1
 
uint adapted_brush_origin: 1
 
uint adapted_pen_origin: 1
 
uint has_pen: 1
 
uint has_brush: 1
 
uint has_texture: 1
 
uint has_alpha_texture: 1
 
uint has_pattern: 1
 
uint has_alpha_pen: 1
 
uint has_alpha_brush: 1
 
uint use_sysclip: 1
 
uint render_hints
 
const QXcbX11Infoxinfo
 
QPointF bg_origin
 
QTransform::TransformationType txop
 
qreal xform_scale
 
QPolygonClipper< qt_float_point, qt_float_point, float > polygonClipper
 
int xlibMaxLinePoints
 
- 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 75 of file qpaintengine_x11.cpp.

Member Enumeration Documentation

◆ GCMode

Enumerator
PenGC 
BrushGC 

Definition at line 96 of file qpaintengine_x11.cpp.

Constructor & Destructor Documentation

◆ QX11PaintEnginePrivate()

QX11PaintEnginePrivate::QX11PaintEnginePrivate ( )
inline

Definition at line 79 of file qpaintengine_x11.cpp.

Member Function Documentation

◆ clipPolygon_dev()

void QX11PaintEnginePrivate::clipPolygon_dev ( const QPolygonF poly,
QPolygonF clipped_poly 
)

Definition at line 547 of file qpaintengine_x11.cpp.

References QList< T >::data(), i, polygonClipper, QList< T >::resize(), and QList< T >::size().

Referenced by systemStateChanged().

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

◆ decideCoordAdjust()

void QX11PaintEnginePrivate::decideCoordAdjust ( )
inline

Definition at line 118 of file qpaintengine_x11.cpp.

References adjust_coords.

◆ decidePathFallback()

void QX11PaintEnginePrivate::decidePathFallback ( )
inline

◆ fillPath()

void QX11PaintEnginePrivate::fillPath ( const QPainterPath path,
QX11PaintEnginePrivate::GCMode  gc_mode,
bool  transform 
)

◆ fillPolygon_dev()

◆ fillPolygon_translated()

void QX11PaintEnginePrivate::fillPolygon_translated ( const QPointF points,
int  pointCount,
QX11PaintEnginePrivate::GCMode  gcMode,
QPaintEngine::PolygonDrawMode  mode 
)

Definition at line 1641 of file qpaintengine_x11.cpp.

References adjust_coords, aliasedCoordinateDelta, QPainter::Antialiasing, QVarLengthArray< T, Prealloc >::data(), fillPolygon_dev(), i, qRound(), render_hints, and X11.

+ Here is the call graph for this function:

◆ init()

void QX11PaintEnginePrivate::init ( )

Definition at line 517 of file qpaintengine_x11.cpp.

References dpy, hd, scrn, and xinfo.

◆ isCosmeticPen()

bool QX11PaintEnginePrivate::isCosmeticPen ( ) const
inline

Definition at line 123 of file qpaintengine_x11.cpp.

References cpen, and QPen::isCosmetic().

+ Here is the call graph for this function:

◆ resetAdaptedOrigin()

void QX11PaintEnginePrivate::resetAdaptedOrigin ( )

Definition at line 539 of file qpaintengine_x11.cpp.

References adapted_brush_origin, adapted_pen_origin, dpy, gc, and gc_brush.

Referenced by fillPolygon_dev().

+ Here is the caller graph for this function:

◆ setupAdaptedOrigin()

void QX11PaintEnginePrivate::setupAdaptedOrigin ( const QPoint p)

Definition at line 531 of file qpaintengine_x11.cpp.

References adapted_brush_origin, adapted_pen_origin, dpy, gc, and gc_brush.

Referenced by fillPolygon_dev().

+ Here is the caller graph for this function:

◆ strokePolygon_dev()

void QX11PaintEnginePrivate::strokePolygon_dev ( const QPointF points,
int  pointCount,
bool  close 
)

Definition at line 1818 of file qpaintengine_x11.cpp.

References aliasedCoordinateDelta, QVarLengthArray< T, Prealloc >::data(), dpy, gc, hd, i, polygonClipper, qMin(), qRound(), and xlibMaxLinePoints.

Referenced by strokePolygon_translated().

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

◆ strokePolygon_translated()

void QX11PaintEnginePrivate::strokePolygon_translated ( const QPointF points,
int  pointCount,
bool  close 
)

Definition at line 1809 of file qpaintengine_x11.cpp.

References QVarLengthArray< T, Prealloc >::data(), i, and strokePolygon_dev().

+ Here is the call graph for this function:

◆ systemStateChanged()

void QX11PaintEnginePrivate::systemStateChanged ( )
overridevirtual

Reimplemented from QPaintEnginePrivate.

Definition at line 558 of file qpaintengine_x11.cpp.

References QPainter::clipPath(), clipPolygon_dev(), QPaintEngine::DirtyTransform, QPainter::hasClipping(), Qt::NoClip, painter, Qt::ReplaceClip, QPainterPath::toFillPolygon(), and QPolygonF::toPolygon().

+ Here is the call graph for this function:

Member Data Documentation

◆ adapted_brush_origin

uint QX11PaintEnginePrivate::adapted_brush_origin

Definition at line 156 of file qpaintengine_x11.cpp.

Referenced by resetAdaptedOrigin(), and setupAdaptedOrigin().

◆ adapted_pen_origin

uint QX11PaintEnginePrivate::adapted_pen_origin

Definition at line 157 of file qpaintengine_x11.cpp.

Referenced by resetAdaptedOrigin(), and setupAdaptedOrigin().

◆ adjust_coords

uint QX11PaintEnginePrivate::adjust_coords

Definition at line 154 of file qpaintengine_x11.cpp.

Referenced by decideCoordAdjust(), fillPath(), and fillPolygon_translated().

◆ bg_origin

QPointF QX11PaintEnginePrivate::bg_origin

Definition at line 169 of file qpaintengine_x11.cpp.

Referenced by fillPolygon_dev().

◆ brush_pm

QPixmap QX11PaintEnginePrivate::brush_pm

Definition at line 131 of file qpaintengine_x11.cpp.

◆ cbrush

QBrush QX11PaintEnginePrivate::cbrush

Definition at line 144 of file qpaintengine_x11.cpp.

Referenced by fillPolygon_dev().

◆ cpen

QPen QX11PaintEnginePrivate::cpen

Definition at line 143 of file qpaintengine_x11.cpp.

Referenced by fillPolygon_dev(), and isCosmeticPen().

◆ crgn

QRegion QX11PaintEnginePrivate::crgn

Definition at line 145 of file qpaintengine_x11.cpp.

◆ dpy

Display* QX11PaintEnginePrivate::dpy

◆ gc

GC QX11PaintEnginePrivate::gc

◆ gc_brush

GC QX11PaintEnginePrivate::gc_brush

◆ has_alpha_brush

uint QX11PaintEnginePrivate::has_alpha_brush

Definition at line 164 of file qpaintengine_x11.cpp.

Referenced by decidePathFallback(), and fillPolygon_dev().

◆ has_alpha_pen

uint QX11PaintEnginePrivate::has_alpha_pen

Definition at line 163 of file qpaintengine_x11.cpp.

Referenced by decidePathFallback(), and fillPolygon_dev().

◆ has_alpha_texture

uint QX11PaintEnginePrivate::has_alpha_texture

Definition at line 161 of file qpaintengine_x11.cpp.

◆ has_brush

uint QX11PaintEnginePrivate::has_brush

Definition at line 159 of file qpaintengine_x11.cpp.

◆ has_clipping

uint QX11PaintEnginePrivate::has_clipping

Definition at line 155 of file qpaintengine_x11.cpp.

Referenced by qt_x11_get_brush_gc().

◆ has_complex_xform

uint QX11PaintEnginePrivate::has_complex_xform

Definition at line 149 of file qpaintengine_x11.cpp.

Referenced by decidePathFallback().

◆ has_custom_pen

uint QX11PaintEnginePrivate::has_custom_pen

Definition at line 152 of file qpaintengine_x11.cpp.

Referenced by decidePathFallback().

◆ has_non_scaling_xform

uint QX11PaintEnginePrivate::has_non_scaling_xform

Definition at line 151 of file qpaintengine_x11.cpp.

◆ has_pattern

uint QX11PaintEnginePrivate::has_pattern

Definition at line 162 of file qpaintengine_x11.cpp.

Referenced by fillPolygon_dev().

◆ has_pen

uint QX11PaintEnginePrivate::has_pen

Definition at line 158 of file qpaintengine_x11.cpp.

◆ has_scaling_xform

uint QX11PaintEnginePrivate::has_scaling_xform

Definition at line 150 of file qpaintengine_x11.cpp.

◆ has_texture

uint QX11PaintEnginePrivate::has_texture

Definition at line 160 of file qpaintengine_x11.cpp.

Referenced by fillPolygon_dev().

◆ hd

unsigned long QX11PaintEnginePrivate::hd

◆ matrix

QTransform QX11PaintEnginePrivate::matrix

Definition at line 146 of file qpaintengine_x11.cpp.

Referenced by fillPath().

◆ opacity

qreal QX11PaintEnginePrivate::opacity

Definition at line 147 of file qpaintengine_x11.cpp.

Referenced by qt_x11_get_brush_gc().

◆ pdev_depth

int QX11PaintEnginePrivate::pdev_depth

Definition at line 129 of file qpaintengine_x11.cpp.

◆ picture

unsigned long QX11PaintEnginePrivate::picture

Definition at line 138 of file qpaintengine_x11.cpp.

◆ polygonClipper

QPolygonClipper<qt_float_point, qt_float_point, float> QX11PaintEnginePrivate::polygonClipper

◆ render_hints

uint QX11PaintEnginePrivate::render_hints

◆ scrn

int QX11PaintEnginePrivate::scrn

Definition at line 128 of file qpaintengine_x11.cpp.

Referenced by fillPolygon_dev(), init(), and qt_x11_get_brush_gc().

◆ txop

QTransform::TransformationType QX11PaintEnginePrivate::txop

Definition at line 170 of file qpaintengine_x11.cpp.

Referenced by qt_x11_get_brush_gc().

◆ use_path_fallback

uint QX11PaintEnginePrivate::use_path_fallback

Definition at line 153 of file qpaintengine_x11.cpp.

Referenced by decidePathFallback().

◆ use_sysclip

uint QX11PaintEnginePrivate::use_sysclip

Definition at line 165 of file qpaintengine_x11.cpp.

◆ xform_scale

qreal QX11PaintEnginePrivate::xform_scale

Definition at line 171 of file qpaintengine_x11.cpp.

Referenced by qt_x11_get_brush_gc().

◆ xinfo

const QXcbX11Info* QX11PaintEnginePrivate::xinfo

Definition at line 168 of file qpaintengine_x11.cpp.

Referenced by init(), and qt_x11_get_brush_gc().

◆ xlibMaxLinePoints

int QX11PaintEnginePrivate::xlibMaxLinePoints

Definition at line 179 of file qpaintengine_x11.cpp.

Referenced by strokePolygon_dev().


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