![]() |
Qt 6.x
The Qt SDK
|
#include <QtCore/qrandom.h>
#include <private/qpixmapcache_p.h>
#include <private/qpaintengine_p.h>
#include <private/qpainterpath_p.h>
#include <private/qdrawhelper_p.h>
#include <private/qfontengineglyphcache_p.h>
#include "qpaintengine_x11_p.h"
#include "qpolygonclipper_p.h"
#include "qtessellator_p.h"
#include "qpixmap_x11_p.h"
#include "qcolormap_x11_p.h"
#include "qt_x11_p.h"
#include "qxcbexport.h"
#include "qxcbnativepainting.h"
Go to the source code of this file.
Classes | |
class | QX11PaintEnginePrivate |
struct | QX11PaintEnginePrivate::qt_float_point |
struct | HexString< T > |
struct | QConcatenable< HexString< T > > |
Macros | |
#define | X11 qt_x11Data |
#define | DITHER_SIZE 16 |
Variables | |
static const qreal | aliasedCoordinateDelta = 0.5 - 0.015625 |
static const uchar | base_dither_matrix [DITHER_SIZE][DITHER_SIZE] |
#define DITHER_SIZE 16 |
Definition at line 397 of file qpaintengine_x11.cpp.
#define X11 qt_x11Data |
Definition at line 283 of file qpaintengine_x11.cpp.
Definition at line 728 of file qpaintengine_x11.cpp.
References Bottom, Left, line, p1, p2, rect, Right, and Top.
Referenced by QX11PaintEngine::drawLines(), QX11PaintEngine::drawLines(), and QGeoMapPolylineGeometry::updateSourcePoints().
Definition at line 875 of file qpaintengine_x11.cpp.
References QRect::bottom(), QRect::left(), QLine::p1(), QLine::p2(), Q_ASSERT, qBound(), QRect::right(), QRect::top(), QPoint::x(), and QPoint::y().
Referenced by QX11PaintEngine::drawRects().
|
static |
Definition at line 574 of file qpaintengine_x11.cpp.
References QPaintEngine::AlphaBlend, QPaintEngine::Antialiasing, QPaintEngine::LinearGradientFill, QPaintEngine::MaskedBrush, QPaintEngine::PainterPaths, QPaintEngine::PatternBrush, QPaintEngine::PorterDuff, QPaintEngine::PrimitiveTransform, QPaintEngine::RasterOpModes, and X11.
void qt_draw_tile | ( | QPaintEngine * | gc, |
qreal | x, | ||
qreal | y, | ||
qreal | w, | ||
qreal | h, | ||
const QPixmap & | pixmap, | ||
qreal | xOffset, | ||
qreal | yOffset | ||
) |
Definition at line 517 of file qpaintengine.cpp.
References QPaintEngine::drawPixmap(), and pixmap.
Referenced by QPaintEngine::drawTiledPixmap(), and QX11PaintEngine::drawTiledPixmap().
Definition at line 417 of file qpaintengine_x11.cpp.
References base_dither_matrix, DITHER_SIZE, QPixmapCache::find(), QImage::Format_ARGB32, QBitmap::fromImage(), QPixmapCache::insert(), qt_x11SetScreen(), and screen.
Referenced by QX11PaintEngine::updateBrush().
QPixmap qt_pixmapForBrush | ( | int | brushStyle, |
bool | invert | ||
) |
Definition at line 80 of file qbrush.cpp.
Referenced by QX11PaintEngine::updateBrush().
Definition at line 62 of file qpixmap_x11.cpp.
References data_ptr(), pixmap, qt_toX11Pixmap(), and QPlatformPixmap::X11Class.
Referenced by QX11PaintEngine::drawPixmap(), and QX11PaintEngine::updateBrush().
Q_GUI_EXPORT void qt_x11_drawImage | ( | const QRect & | rect, |
const QPoint & | pos, | ||
const QImage & | image, | ||
Drawable | hd, | ||
GC | gc, | ||
Display * | dpy, | ||
Visual * | visual, | ||
int | depth | ||
) |
Definition at line 1960 of file qpaintengine_x11.cpp.
References QSysInfo::BigEndian, QImage::bits(), QSysInfo::ByteOrder, QImage::bytesPerLine(), QXcbX11Info::display(), QImage::Format_RGB32, i, QSysInfo::LittleEndian, pos, Q_ASSERT, and rect.
Referenced by QX11PaintEngine::drawImage().
GC Q_XCB_EXPORT qt_x11_get_brush_gc | ( | QPainter * | p | ) |
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.
References QX11PaintEnginePrivate::dpy, QX11PaintEnginePrivate::gc, QX11PaintEnginePrivate::gc_brush, QX11PaintEnginePrivate::has_clipping, QX11PaintEnginePrivate::hd, QX11PaintEnginePrivate::opacity, QX11PaintEnginePrivate::render_hints, QX11PaintEnginePrivate::scrn, QTransform::TxNone, QX11PaintEnginePrivate::txop, QX11PaintEnginePrivate::xform_scale, and QX11PaintEnginePrivate::xinfo.
GC Q_XCB_EXPORT qt_x11_get_pen_gc | ( | QPainter * | p | ) |
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.
Q_XCB_EXPORT Drawable qt_x11Handle | ( | const QPaintDevice * | pd | ) |
Definition at line 219 of file qpaintengine_x11.cpp.
References QPaintDevice::devType(), QInternal::Pixmap, and qt_x11PixmapHandle().
Referenced by QX11PaintEngine::begin().
|
static |
Definition at line 234 of file qpaintengine_x11.cpp.
References QPaintDevice::devType(), QInternal::Pixmap, and qt_x11Info().
Referenced by QX11PaintEngine::begin(), QX11PaintEngine::drawPixmap(), QX11PaintEngine::drawTiledPixmap(), and qt_x11Info().
Definition at line 1070 of file qpaintengine_x11.cpp.
References QXcbX11Info::display().
Referenced by QX11PaintEngine::drawPoints(), and QX11PaintEngine::drawPoints().
|
inlinestatic |
Definition at line 372 of file qpaintengine_x11.cpp.
References attrs, Q_UNUSED, and XNone.
Referenced by QX11PaintEngine::updateBrush(), QX11PaintEngine::updateClipRegion_dev(), and QX11PaintEngine::updatePen().
|
inlinestatic |
Definition at line 345 of file qpaintengine_x11.cpp.
References QList< T >::data(), Q_UNUSED, qt_region_to_xrectangles(), and QList< T >::size().
Referenced by QX11PaintEngine::updateBrush(), QX11PaintEngine::updateClipRegion_dev(), and QX11PaintEngine::updatePen().
|
static |
Definition at line 249 of file qpaintengine_x11.cpp.
Referenced by QX11PaintEngine::drawLines(), QX11PaintEngine::drawLines(), QX11PaintEnginePrivate::fillPath(), QX11PaintEnginePrivate::fillPolygon_translated(), and QX11PaintEnginePrivate::strokePolygon_dev().
|
static |
Definition at line 398 of file qpaintengine_x11.cpp.
Referenced by qt_patternForAlpha().