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
QX11PaintEngine Class Reference

#include <qpaintengine_x11_p.h>

+ Inheritance diagram for QX11PaintEngine:
+ Collaboration diagram for QX11PaintEngine:

Public Member Functions

 QX11PaintEngine ()
 
 ~QX11PaintEngine ()
 
bool begin (QPaintDevice *pdev) override
 Reimplement this function to initialise your paint engine when painting is to start on the paint device pdev.
 
bool end () override
 Reimplement this function to finish painting on the current paint device.
 
void updateState (const QPaintEngineState &state) override
 Reimplement this function to update the state of a paint engine.
 
void updatePen (const QPen &pen)
 
void updateBrush (const QBrush &brush, const QPointF &pt)
 
void updateRenderHints (QPainter::RenderHints hints)
 
void updateFont (const QFont &font)
 
void updateMatrix (const QTransform &matrix)
 
void updateClipRegion_dev (const QRegion &region, Qt::ClipOperation op)
 
void drawLines (const QLine *lines, int lineCount) override
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.The default implementation converts the first lineCount lines in lines to a QLineF and calls the floating point version of this function.
 
void drawLines (const QLineF *lines, int lineCount) override
 The default implementation splits the list of lines in lines into lineCount separate calls to drawPath() or drawPolygon() depending on the feature set of the paint engine.
 
void drawRects (const QRect *rects, int rectCount) override
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.The default implementation converts the first rectCount rectangles in the buffer rects to a QRectF and calls the floating point version of this function.
 
void drawRects (const QRectF *rects, int rectCount) override
 Draws the first rectCount rectangles in the buffer rects.
 
void drawPoints (const QPoint *points, int pointCount) override
 Draws the first pointCount points in the buffer points.
 
void drawPoints (const QPointF *points, int pointCount) override
 Draws the first pointCount points in the buffer points.
 
void drawEllipse (const QRect &r) override
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.The default implementation of this function calls the floating point version of this function.
 
void drawEllipse (const QRectF &r) override
 Reimplement this function to draw the largest ellipse that can be contained within rectangle rect.
 
virtual void drawPolygon (const QPointF *points, int pointCount, PolygonDrawMode mode) override
 Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode.
 
void drawPolygon (const QPoint *points, int pointCount, PolygonDrawMode mode) override
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode.
 
void drawPixmap (const QRectF &r, const QPixmap &pm, const QRectF &sr) override
 Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r.
 
void drawTiledPixmap (const QRectF &r, const QPixmap &pixmap, const QPointF &s) override
 Reimplement this function to draw the pixmap in the given rect, starting at the given p.
 
void drawPath (const QPainterPath &path) override
 The default implementation ignores the path and does nothing.
 
void drawTextItem (const QPointF &p, const QTextItem &textItem) override
 This function draws the text item textItem at position p.
 
void drawImage (const QRectF &r, const QImage &img, const QRectF &sr, Qt::ImageConversionFlags flags=Qt::AutoColor) override
 Reimplement this function to draw the part of the image specified by the sr rectangle in the given rectangle using the given conversion flags flags, to convert it to a pixmap.
 
virtual Drawable handle () const
 
Type type () const override
 Reimplement this function to return the paint engine \l{Type}.
 
QPainter::RenderHints supportedRenderHints () const
 
- Public Member Functions inherited from QPaintEngine
 QPaintEngine (PaintEngineFeatures features=PaintEngineFeatures())
 Creates a paint engine with the featureset specified by caps.
 
virtual ~QPaintEngine ()
 Destroys the paint engine.
 
bool isActive () const
 Returns true if the paint engine is actively drawing; otherwise returns false.
 
void setActive (bool newState)
 Sets the active state of the paint engine to state.
 
void setPaintDevice (QPaintDevice *device)
 
QPaintDevicepaintDevice () const
 Returns the device that this engine is painting on, if painting is active; otherwise returns \nullptr.
 
void setSystemClip (const QRegion &baseClip)
 
QRegion systemClip () const
 
void setSystemRect (const QRect &rect)
 
QRect systemRect () const
 
virtual QPoint coordinateOffset () const
 
void fix_neg_rect (int *x, int *y, int *w, int *h)
 
bool testDirty (DirtyFlags df)
 
void setDirty (DirtyFlags df)
 
void clearDirty (DirtyFlags df)
 
bool hasFeature (PaintEngineFeatures feature) const
 Returns true if the paint engine supports the specified feature; otherwise returns false.
 
QPainterpainter () const
 Returns the paint engine's painter.
 
void syncState ()
 
bool isExtended () const
 
virtual QPixmap createPixmap (QSize size)
 
virtual QPixmap createPixmapFromImage (QImage image, Qt::ImageConversionFlags flags=Qt::AutoColor)
 

Protected Member Functions

 QX11PaintEngine (QX11PaintEnginePrivate &dptr)
 
- Protected Member Functions inherited from QPaintEngine
 QPaintEngine (QPaintEnginePrivate &data, PaintEngineFeatures devcaps=PaintEngineFeatures())
 

Friends

class QPixmap
 
class QFontEngineBox
 
GC qt_x11_get_pen_gc (QPainter *)
 Returns the X11 specific pen GC for the painter p.
 
GC qt_x11_get_brush_gc (QPainter *)
 Returns the X11 specific brush GC for the painter p.
 

Additional Inherited Members

- Public Types inherited from QPaintEngine
enum  PaintEngineFeature {
  PrimitiveTransform = 0x00000001 , PatternTransform = 0x00000002 , PixmapTransform = 0x00000004 , PatternBrush = 0x00000008 ,
  LinearGradientFill = 0x00000010 , RadialGradientFill = 0x00000020 , ConicalGradientFill = 0x00000040 , AlphaBlend = 0x00000080 ,
  PorterDuff = 0x00000100 , PainterPaths = 0x00000200 , Antialiasing = 0x00000400 , BrushStroke = 0x00000800 ,
  ConstantOpacity = 0x00001000 , MaskedBrush = 0x00002000 , PerspectiveTransform = 0x00004000 , BlendModes = 0x00008000 ,
  ObjectBoundingModeGradients = 0x00010000 , RasterOpModes = 0x00020000 , PaintOutsidePaintEvent = 0x20000000 , AllFeatures = 0xffffffff
}
 This enum is used to describe the features or capabilities that the paint engine has. More...
 
enum  DirtyFlag {
  DirtyPen = 0x0001 , DirtyBrush = 0x0002 , DirtyBrushOrigin = 0x0004 , DirtyFont = 0x0008 ,
  DirtyBackground = 0x0010 , DirtyBackgroundMode = 0x0020 , DirtyTransform = 0x0040 , DirtyClipRegion = 0x0080 ,
  DirtyClipPath = 0x0100 , DirtyHints = 0x0200 , DirtyCompositionMode = 0x0400 , DirtyClipEnabled = 0x0800 ,
  DirtyOpacity = 0x1000 , AllDirty = 0xffff
}
 \value DirtyPen The pen is dirty and needs to be updated. More...
 
enum  PolygonDrawMode { OddEvenMode , WindingMode , ConvexMode , PolylineMode }
 \value OddEvenMode The polygon should be drawn using OddEven fill rule. More...
 
enum  Type {
  X11 , Windows , QuickDraw , CoreGraphics ,
  MacPrinter , QWindowSystem , OpenGL , Picture ,
  SVG , Raster , Direct3D , Pdf ,
  OpenVG , OpenGL2 , PaintBuffer , Blitter ,
  Direct2D , User = 50 , MaxUser = 100
}
 \value X11 \value Windows \value MacPrinter \value CoreGraphics \macos's Quartz2D (CoreGraphics) \value QuickDraw \macos's QuickDraw \value QWindowSystem Qt for Embedded Linux \value OpenGL \value Picture QPicture format \value SVG Scalable Vector Graphics XML format \value Raster \value Direct3D Windows only, Direct3D based engine \value Pdf Portable Document Format \value OpenVG \value User First user type ID \value MaxUser Last user type ID \value OpenGL2 \value PaintBuffer \value Blitter \value Direct2D Windows only, Direct2D based engine More...
 
- Protected Attributes inherited from QPaintEngine
QPaintEngineStatestate
 
PaintEngineFeatures gccaps
 
uint active: 1
 
uint selfDestruct: 1
 
uint extended: 1
 
QScopedPointer< QPaintEnginePrivated_ptr
 

Detailed Description

Definition at line 22 of file qpaintengine_x11_p.h.

Constructor & Destructor Documentation

◆ QX11PaintEngine() [1/2]

QX11PaintEngine::QX11PaintEngine ( )

Definition at line 602 of file qpaintengine_x11.cpp.

References d.

◆ ~QX11PaintEngine()

QX11PaintEngine::~QX11PaintEngine ( )

Definition at line 616 of file qpaintengine_x11.cpp.

References d.

◆ QX11PaintEngine() [2/2]

QX11PaintEngine::QX11PaintEngine ( QX11PaintEnginePrivate & dptr)
protected

Definition at line 609 of file qpaintengine_x11.cpp.

References d.

Member Function Documentation

◆ begin()

bool QX11PaintEngine::begin ( QPaintDevice * pdev)
overridevirtual

Reimplement this function to initialise your paint engine when painting is to start on the paint device pdev.

Return true if the initialization was successful; otherwise return false.

See also
end(), isActive()

Implements QPaintEngine.

Definition at line 624 of file qpaintengine_x11.cpp.

References Qt::black, d, QPaintDevice::devType(), QPaintEngine::DirtyBackground, QPaintEngine::DirtyBrush, QPaintEngine::DirtyClipRegion, QPaintEngine::DirtyPen, QPixmap::handle(), QPaintDevice::height(), QPaintEngine::paintDevice(), QInternal::Pixmap, Q_ASSERT, qt_x11Handle(), qt_x11Info(), qt_x11PictureHandle(), qt_x11Pixmap(), qt_x11SetDefaultScreen(), QPaintEngine::setActive(), QPaintEngine::setDirty(), QPaintEngine::setSystemClip(), QPaintEngine::systemClip(), QTransform::TxNone, updateBrush(), updatePen(), Qt::white, QInternal::Widget, QPaintDevice::width(), and QPaintEngine::X11.

+ Here is the call graph for this function:

◆ drawEllipse() [1/2]

void QX11PaintEngine::drawEllipse ( const QRect & r)
overridevirtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.The default implementation of this function calls the floating point version of this function.

Reimplemented from QPaintEngine.

Definition at line 1589 of file qpaintengine_x11.cpp.

References QPainter::Antialiasing, d, drawPath(), drawRects(), rect, and QTransform::TxRotate.

Referenced by drawEllipse().

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

◆ drawEllipse() [2/2]

void QX11PaintEngine::drawEllipse ( const QRectF & rect)
overridevirtual

Reimplement this function to draw the largest ellipse that can be contained within rectangle rect.

The default implementation calls drawPolygon().

Reimplemented from QPaintEngine.

Definition at line 1580 of file qpaintengine_x11.cpp.

References aligned(), drawEllipse(), QPaintEngine::drawEllipse(), and rect.

+ Here is the call graph for this function:

◆ drawImage()

void QX11PaintEngine::drawImage ( const QRectF & r,
const QImage & pm,
const QRectF & sr,
Qt::ImageConversionFlags flags = Qt::AutoColor )
overridevirtual

Reimplement this function to draw the part of the image specified by the sr rectangle in the given rectangle using the given conversion flags flags, to convert it to a pixmap.

Reimplemented from QPaintEngine.

Definition at line 2020 of file qpaintengine_x11.cpp.

References d, QPaintEngine::drawImage(), QImage::Format_RGB32, qRound(), and qt_x11_drawImage().

+ Here is the call graph for this function:

◆ drawLines() [1/2]

void QX11PaintEngine::drawLines ( const QLine * lines,
int lineCount )
overridevirtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.The default implementation converts the first lineCount lines in lines to a QLineF and calls the floating point version of this function.

Reimplemented from QPaintEngine.

Definition at line 800 of file qpaintengine_x11.cpp.

References aliasedCoordinateDelta, QPainter::Antialiasing, clipLine(), d, drawPath(), i, p1, p2, Q_ASSERT, qRound(), and QTransform::TxNone.

+ Here is the call graph for this function:

◆ drawLines() [2/2]

void QX11PaintEngine::drawLines ( const QLineF * lines,
int lineCount )
overridevirtual

The default implementation splits the list of lines in lines into lineCount separate calls to drawPath() or drawPolygon() depending on the feature set of the paint engine.

Reimplemented from QPaintEngine.

Definition at line 840 of file qpaintengine_x11.cpp.

References aliasedCoordinateDelta, QPainter::Antialiasing, clipLine(), d, drawPath(), i, p1, p2, Q_ASSERT, and qRound().

+ Here is the call graph for this function:

◆ drawPath()

void QX11PaintEngine::drawPath ( const QPainterPath & path)
overridevirtual

The default implementation ignores the path and does nothing.

Reimplemented from QPaintEngine.

Definition at line 1905 of file qpaintengine_x11.cpp.

References QPainter::Antialiasing, QX11PaintEnginePrivate::BrushGC, QPainterPathStroker::createStroke(), Qt::CustomDashLine, d, deviceRect, i, QPainterPath::isEmpty(), QX11PaintEnginePrivate::PenGC, QPainterPathStroker::setCapStyle(), QStrokerOps::setClipRect(), QPainterPathStroker::setDashOffset(), QPainterPathStroker::setDashPattern(), QPainterPath::setFillRule(), QPainterPathStroker::setJoinStyle(), QPainterPathStroker::setWidth(), QPainterPathStrokerPrivate::stroker, QTransform::TxTranslate, Qt::WindingFill, and QPaintEngine::X11.

Referenced by drawEllipse(), drawLines(), drawLines(), drawPoints(), drawPoints(), drawPolygon(), and drawRects().

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

◆ drawPixmap()

void QX11PaintEngine::drawPixmap ( const QRectF & r,
const QPixmap & pm,
const QRectF & sr )
overridevirtual

Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r.

Implements QPaintEngine.

Definition at line 2042 of file qpaintengine_x11.cpp.

References d, QXcbX11Info::display(), QBitmap::fromPixmap(), QXcbColormap::instance(), QXcbColormap::pixel(), QInternal::Pixmap, pixmap, qGray(), qRound(), qt_region_to_xrectangles(), qt_toX11Pixmap(), qt_x11Info(), qt_x11PictureHandle(), qt_x11PixmapHandle(), qt_x11SetDefaultScreen(), qt_x11SetScreen(), screen, QPaintEngine::X11, and XNone.

+ Here is the call graph for this function:

◆ drawPoints() [1/2]

void QX11PaintEngine::drawPoints ( const QPoint * points,
int pointCount )
overridevirtual

Draws the first pointCount points in the buffer points.

The default implementation converts the first pointCount QPoints in points to QPointFs and calls the floating point version of drawPoints.

Reimplemented from QPaintEngine.

Definition at line 1078 of file qpaintengine_x11.cpp.

References QPainter::Antialiasing, d, drawPath(), Qt::FlatCap, i, j, Q_ASSERT, setCapStyle(), Qt::SquareCap, QTransform::TxTranslate, QPoint::x(), and QPaintEngine::X11.

+ Here is the call graph for this function:

◆ drawPoints() [2/2]

void QX11PaintEngine::drawPoints ( const QPointF * points,
int pointCount )
overridevirtual

Draws the first pointCount points in the buffer points.

Reimplemented from QPaintEngine.

Definition at line 1136 of file qpaintengine_x11.cpp.

References QPainter::Antialiasing, d, drawPath(), Qt::FlatCap, i, j, Q_ASSERT, qFloor(), setCapStyle(), Qt::SquareCap, QTransform::TxTranslate, and QPaintEngine::X11.

+ Here is the call graph for this function:

◆ drawPolygon() [1/2]

void QX11PaintEngine::drawPolygon ( const QPoint * points,
int pointCount,
PolygonDrawMode mode )
inlineoverridevirtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode.

Note
At least one of the drawPolygon() functions must be reimplemented.

Reimplemented from QPaintEngine.

Definition at line 54 of file qpaintengine_x11_p.h.

References QPaintEngine::drawPolygon().

+ Here is the call graph for this function:

◆ drawPolygon() [2/2]

void QX11PaintEngine::drawPolygon ( const QPointF * points,
int pointCount,
PolygonDrawMode mode )
overridevirtual

Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode.

Note
At least one of the drawPolygon() functions must be reimplemented.

Reimplemented from QPaintEngine.

Definition at line 1846 of file qpaintengine_x11.cpp.

References QX11PaintEnginePrivate::BrushGC, d, drawPath(), i, Qt::NoBrush, Qt::OddEvenFill, QPaintEngine::OddEvenMode, QPaintEngine::PolylineMode, and Qt::WindingFill.

+ Here is the call graph for this function:

◆ drawRects() [1/2]

void QX11PaintEngine::drawRects ( const QRect * rects,
int rectCount )
overridevirtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.The default implementation converts the first rectCount rectangles in the buffer rects to a QRectF and calls the floating point version of this function.

Reimplemented from QPaintEngine.

Definition at line 951 of file qpaintengine_x11.cpp.

References QPainter::Antialiasing, clipStraightLine(), d, drawPath(), i, QLine::p1(), QLine::p2(), Q_ASSERT, qRound(), QTransform::TxTranslate, and QPaintEngine::X11.

Referenced by drawEllipse().

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

◆ drawRects() [2/2]

void QX11PaintEngine::drawRects ( const QRectF * rects,
int rectCount )
overridevirtual

Draws the first rectCount rectangles in the buffer rects.

The default implementation of this function calls drawPath() or drawPolygon() depending on the feature set of the paint engine.

Reimplemented from QPaintEngine.

Definition at line 894 of file qpaintengine_x11.cpp.

References alignedRect(), d, QPaintEngine::drawRects(), Q_ASSERT, QT_CONFIG, Qt::SolidPattern, and QTransform::TxTranslate.

+ Here is the call graph for this function:

◆ drawTextItem()

void QX11PaintEngine::drawTextItem ( const QPointF & p,
const QTextItem & textItem )
overridevirtual

This function draws the text item textItem at position p.

The default implementation of this function converts the text to a QPainterPath and paints the resulting path.

Reimplemented from QPaintEngine.

Definition at line 2391 of file qpaintengine_x11.cpp.

References QFontEngine::Box, d, QFontEngine::Freetype, Q_ASSERT, and QFontEngine::TestFontEngine.

◆ drawTiledPixmap()

void QX11PaintEngine::drawTiledPixmap ( const QRectF & rect,
const QPixmap & pixmap,
const QPointF & p )
overridevirtual

Reimplement this function to draw the pixmap in the given rect, starting at the given p.

The pixmap will be drawn repeatedly until the rect is filled.

Reimplemented from QPaintEngine.

Definition at line 2244 of file qpaintengine_x11.cpp.

References d, QXcbX11Info::display(), QPixmap::fill(), pixmap, qMin(), qRound(), qt_draw_tile(), qt_x11Info(), qt_x11PictureHandle(), qt_x11PixmapHandle(), qt_x11SetDefaultScreen(), qt_x11SetScreen(), screen, Qt::transparent, QPaintEngine::X11, and XNone.

+ Here is the call graph for this function:

◆ end()

bool QX11PaintEngine::end ( )
overridevirtual

Reimplement this function to finish painting on the current paint device.

Return true if painting was finished successfully; otherwise return false.

See also
begin(), isActive()

Implements QPaintEngine.

Definition at line 695 of file qpaintengine_x11.cpp.

References attrs, d, QPaintEngine::setActive(), QPaintEngine::setSystemClip(), and XNone.

+ Here is the call graph for this function:

◆ handle()

Drawable QX11PaintEngine::handle ( ) const
virtual

Definition at line 2233 of file qpaintengine_x11.cpp.

References d, QPaintEngine::isActive(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ supportedRenderHints()

QPainter::RenderHints QX11PaintEngine::supportedRenderHints ( ) const

Definition at line 1195 of file qpaintengine_x11.cpp.

References QPainter::Antialiasing, and QPaintEngine::X11.

◆ type()

Type QX11PaintEngine::type ( ) const
inlineoverridevirtual

Reimplement this function to return the paint engine \l{Type}.

Implements QPaintEngine.

Definition at line 65 of file qpaintengine_x11_p.h.

References QPaintEngine::X11.

◆ updateBrush()

void QX11PaintEngine::updateBrush ( const QBrush & brush,
const QPointF & pt )

Definition at line 1449 of file qpaintengine_x11.cpp.

References attrs, d, Qt::Dense1Pattern, Qt::DiagCrossPattern, QXcbColormap::instance(), Qt::NoBrush, QXcbColormap::pixel(), QInternal::Pixmap, qGray(), QPixmap, qRound(), qt_patternForAlpha(), qt_pixmapForBrush(), qt_toX11Pixmap(), qt_x11PictureHandle(), qt_x11PixmapHandle(), qt_x11SetScreen(), rgb, QColor::rgba(), QColor::setAlpha(), QPaintEngine::systemClip(), Qt::TexturePattern, Qt::transparent, QPointF::x(), QPaintEngine::X11, x11ClearClipRegion(), x11SetClipRegion(), and QPointF::y().

Referenced by begin(), and updateState().

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

◆ updateClipRegion_dev()

void QX11PaintEngine::updateClipRegion_dev ( const QRegion & region,
Qt::ClipOperation op )

Definition at line 2189 of file qpaintengine_x11.cpp.

References d, Qt::IntersectClip, QRegion::intersected(), Qt::NoClip, Qt::ReplaceClip, QPaintEngine::systemClip(), x11ClearClipRegion(), and x11SetClipRegion().

Referenced by updateState().

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

◆ updateFont()

void QX11PaintEngine::updateFont ( const QFont & font)

Definition at line 2229 of file qpaintengine_x11.cpp.

Referenced by updateState().

+ Here is the caller graph for this function:

◆ updateMatrix()

void QX11PaintEngine::updateMatrix ( const QTransform & matrix)

Definition at line 2172 of file qpaintengine_x11.cpp.

References d, qt_scaleForTransform(), QTransform::TxTranslate, and QTransform::type().

Referenced by updateState().

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

◆ updatePen()

void QX11PaintEngine::updatePen ( const QPen & pen)

Definition at line 1310 of file qpaintengine_x11.cpp.

References QColor::alpha(), Qt::BevelJoin, QPen::capStyle(), QPen::color(), Qt::CustomDashLine, d, Qt::DashDotDotLine, Qt::DashDotLine, Qt::DashLine, dot(), Qt::DotLine, Qt::FlatCap, QXcbColormap::instance(), QPen::joinStyle(), Qt::MiterJoin, Qt::NoPen, QXcbColormap::pixel(), QInternal::Pixmap, qGray(), qRound(), QColor::rgb(), rgb, QColor::rgba(), Qt::RoundCap, Qt::RoundJoin, QColor::setAlpha(), Qt::SolidLine, Qt::SquareCap, QPen::style(), QPaintEngine::systemClip(), Qt::transparent, QPen::widthF(), QPaintEngine::X11, x11ClearClipRegion(), and x11SetClipRegion().

Referenced by begin(), and updateState().

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

◆ updateRenderHints()

void QX11PaintEngine::updateRenderHints ( QPainter::RenderHints hints)

Definition at line 1296 of file qpaintengine_x11.cpp.

References QPainter::Antialiasing, attrs, d, and QPaintEngine::X11.

Referenced by updateState().

+ Here is the caller graph for this function:

◆ updateState()

void QX11PaintEngine::updateState ( const QPaintEngineState & state)
overridevirtual

Reimplement this function to update the state of a paint engine.

When implemented, this function is responsible for checking the paint engine's current state and update the properties that are changed. Use the QPaintEngineState::state() function to find out which properties that must be updated, then use the corresponding \l {GetFunction}{get function} to retrieve the current values for the given properties.

See also
QPaintEngineState

Implements QPaintEngine.

Definition at line 1204 of file qpaintengine_x11.cpp.

References QPaintEngineState::brush(), QPaintEngineState::brushOrigin(), QPaintEngineState::clipOperation(), QPaintEngineState::clipPath(), QPaintEngineState::clipRegion(), QPaintEngineState::compositionMode(), d, QPaintEngine::DirtyBrush, QPaintEngine::DirtyBrushOrigin, QPaintEngine::DirtyClipEnabled, QPaintEngine::DirtyClipPath, QPaintEngine::DirtyClipRegion, QPaintEngine::DirtyCompositionMode, QPaintEngine::DirtyFont, QPaintEngine::DirtyHints, QPaintEngine::DirtyOpacity, QPaintEngine::DirtyPen, QPaintEngine::DirtyTransform, QPainterPath::fillRule(), QPaintEngineState::font(), QPaintEngineState::isClipEnabled(), Qt::NoClip, QPaintEngineState::opacity(), QPaintEngine::painter(), QPaintEngineState::pen(), qt_regionToPath(), QPainter::RasterOp_NotSource, QPainter::RasterOp_NotSourceAndDestination, QPainter::RasterOp_NotSourceAndNotDestination, QPainter::RasterOp_NotSourceOrNotDestination, QPainter::RasterOp_NotSourceXorDestination, QPainter::RasterOp_SourceAndDestination, QPainter::RasterOp_SourceAndNotDestination, QPainter::RasterOp_SourceOrDestination, QPainter::RasterOp_SourceXorDestination, QPaintEngineState::renderHints(), Qt::ReplaceClip, QPaintEngine::state, QPaintEngineState::state(), QPainterPath::toFillPolygon(), QPaintEngineState::transform(), updateBrush(), updateClipRegion_dev(), updateFont(), updateMatrix(), updatePen(), updateRenderHints(), and QPaintEngine::X11.

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ QFontEngineBox

friend class QFontEngineBox
friend

Definition at line 78 of file qpaintengine_x11_p.h.

◆ QPixmap

friend class QPixmap
friend

Definition at line 77 of file qpaintengine_x11_p.h.

Referenced by updateBrush().

◆ qt_x11_get_brush_gc

GC qt_x11_get_brush_gc ( QPainter * )
friend

Returns the X11 specific brush GC for the painter p.

Note that QPainter::begin() must be called before this function returns a valid GC.

Definition at line 273 of file qpaintengine_x11.cpp.

◆ qt_x11_get_pen_gc

GC qt_x11_get_pen_gc ( QPainter * )
friend

Returns the X11 specific pen GC for the painter p.

Note that QPainter::begin() must be called before this function returns a valid GC.

Definition at line 258 of file qpaintengine_x11.cpp.


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