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
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)
 
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 i.

◆ decideCoordAdjust()

void QX11PaintEnginePrivate::decideCoordAdjust ( )
inline

Definition at line 118 of file qpaintengine_x11.cpp.

◆ decidePathFallback()

void QX11PaintEnginePrivate::decidePathFallback ( )
inline

Definition at line 111 of file qpaintengine_x11.cpp.

References QPainter::Antialiasing.

◆ fillPath()

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

Definition at line 1875 of file qpaintengine_x11.cpp.

References QPainterPath::addRect(), adjust_coords, aliasedCoordinateDelta, QPainter::Antialiasing, fillPolygon_dev(), i, j, matrix, Qt::OddEvenFill, QPaintEngine::OddEvenMode, polygonClipper, qRound(), render_hints, rx(), ry(), QPaintEngine::WindingMode, and X11.

+ Here is the call graph for this function:

◆ fillPolygon_dev()

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

◆ 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, 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.

◆ isCosmeticPen()

bool QX11PaintEnginePrivate::isCosmeticPen ( ) const
inline

Definition at line 123 of file qpaintengine_x11.cpp.

◆ resetAdaptedOrigin()

void QX11PaintEnginePrivate::resetAdaptedOrigin ( )

Definition at line 539 of file qpaintengine_x11.cpp.

References gc().

Referenced by fillPolygon_dev().

+ Here is the call graph for this function:
+ 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 gc().

Referenced by fillPolygon_dev().

+ Here is the call graph for this function:
+ 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, 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 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(), QPaintEngine::DirtyTransform, QPainter::hasClipping(), Qt::NoClip, painter, Qt::ReplaceClip, and QPainterPath::toFillPolygon().

+ 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.

◆ adapted_pen_origin

uint QX11PaintEnginePrivate::adapted_pen_origin

Definition at line 157 of file qpaintengine_x11.cpp.

◆ adjust_coords

uint QX11PaintEnginePrivate::adjust_coords

Definition at line 154 of file qpaintengine_x11.cpp.

Referenced by 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().

◆ crgn

QRegion QX11PaintEnginePrivate::crgn

Definition at line 145 of file qpaintengine_x11.cpp.

◆ dpy

Display* QX11PaintEnginePrivate::dpy

Definition at line 127 of file qpaintengine_x11.cpp.

Referenced by fillPolygon_dev(), and strokePolygon_dev().

◆ gc

GC QX11PaintEnginePrivate::gc

Definition at line 140 of file qpaintengine_x11.cpp.

Referenced by fillPolygon_dev(), and strokePolygon_dev().

◆ gc_brush

GC QX11PaintEnginePrivate::gc_brush

Definition at line 141 of file qpaintengine_x11.cpp.

Referenced by fillPolygon_dev().

◆ has_alpha_brush

uint QX11PaintEnginePrivate::has_alpha_brush

Definition at line 164 of file qpaintengine_x11.cpp.

Referenced by fillPolygon_dev().

◆ has_alpha_pen

uint QX11PaintEnginePrivate::has_alpha_pen

Definition at line 163 of file qpaintengine_x11.cpp.

Referenced by 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.

◆ has_complex_xform

uint QX11PaintEnginePrivate::has_complex_xform

Definition at line 149 of file qpaintengine_x11.cpp.

◆ has_custom_pen

uint QX11PaintEnginePrivate::has_custom_pen

Definition at line 152 of file qpaintengine_x11.cpp.

◆ 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

Definition at line 130 of file qpaintengine_x11.cpp.

Referenced by fillPolygon_dev(), and strokePolygon_dev().

◆ 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.

◆ 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

Definition at line 177 of file qpaintengine_x11.cpp.

Referenced by fillPath(), fillPolygon_dev(), and strokePolygon_dev().

◆ render_hints

uint QX11PaintEnginePrivate::render_hints

Definition at line 166 of file qpaintengine_x11.cpp.

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

◆ scrn

int QX11PaintEnginePrivate::scrn

Definition at line 128 of file qpaintengine_x11.cpp.

Referenced by fillPolygon_dev().

◆ txop

QTransform::TransformationType QX11PaintEnginePrivate::txop

Definition at line 170 of file qpaintengine_x11.cpp.

◆ use_path_fallback

uint QX11PaintEnginePrivate::use_path_fallback

Definition at line 153 of file qpaintengine_x11.cpp.

◆ 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.

◆ xinfo

const QXcbX11Info* QX11PaintEnginePrivate::xinfo

Definition at line 168 of file qpaintengine_x11.cpp.

◆ 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: