Qt 4.8
|
#include "qplatformdefs.h"
#include "private/qpixmap_x11_p.h"
#include "qapplication.h"
#include "qdebug.h"
#include "qfont.h"
#include "qwidget.h"
#include "qbitmap.h"
#include "qpixmapcache.h"
#include "qtextcodec.h"
#include "qcoreevent.h"
#include "qiodevice.h"
#include <qmath.h>
#include "qpainter_p.h"
#include <qtextlayout.h>
#include <qvarlengtharray.h>
#include <private/qfont_p.h>
#include <private/qtextengine_p.h>
#include <private/qpaintengine_x11_p.h>
#include <private/qfontengine_x11_p.h>
#include <private/qwidget_p.h>
#include <private/qpainterpath_p.h>
#include "qpen.h"
#include "qcolor.h"
#include "qcolormap.h"
#include <private/qpaintengine_p.h>
#include "qpaintengine_x11_p.h"
#include <private/qt_x11_p.h>
#include <private/qnumeric_p.h>
#include <limits.h>
#include <private/qtessellator_p.h>
#include <private/qstylehelper_p.h>
Go to the source code of this file.
Classes | |
class | QXRenderTessellator |
Macros | |
#define | DITHER_SIZE 16 |
#define | X11 qt_x11Data |
Functions | |
static bool | clipLine (QLineF *line, const QRect &rect) |
static QLine | clipStraightLine (const QRect &clip, const QLine &l) |
static bool | complexPictOp (int op) |
static Picture | getPatternFill (int screen, const QBrush &b) |
static QPainterPath | path_for_glyphs (const QVarLengthArray< glyph_t > &glyphs, const QVarLengthArray< QFixedPoint > &positions, const QFontEngineFT *ft) |
static int | qpainterOpToXrender (QPainter::CompositionMode mode) |
static QPaintEngine::PaintEngineFeatures | qt_decide_features () |
void | qt_draw_tile (QPaintEngine *, qreal, qreal, qreal, qreal, const QPixmap &, qreal, qreal) |
Q_GUI_EXPORT void * | qt_getClipRects (const QRegion &r, int &num) |
static QPixmap | qt_patternForAlpha (uchar alpha, int screen) |
QPixmap | qt_pixmapForBrush (int brushStyle, bool invert) |
static void | qt_render_bitmap (Display *dpy, int scrn, Picture src, Picture dst, int sx, int sy, int x, int y, int sw, int sh, const QPen &pen) |
QPixmap | qt_toX11Pixmap (const QPixmap &pixmap) |
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) |
Q_GUI_EXPORT GC | qt_x11_get_brush_gc (QPainter *p) |
Returns the X11 specific brush GC for the painter p. More... | |
Q_GUI_EXPORT GC | qt_x11_get_pen_gc (QPainter *p) |
Returns the X11 specific pen GC for the painter p. More... | |
Drawable | qt_x11Handle (const QPaintDevice *pd) |
Returns the X11 Drawable of the paint device. More... | |
const QX11Info * | qt_x11Info (const QPaintDevice *pd) |
static void | qt_XRenderCompositeTrapezoids (Display *dpy, int op, Picture src, Picture dst, _Xconst XRenderPictFormat *maskFormat, int xSrc, int ySrc, const XTrapezoid *traps, int size) |
static void | setCapStyle (int cap_style, GC gc) |
static void | x11ClearClipRegion (Display *dpy, GC gc, GC gc2, Picture picture) |
static void | x11SetClipRegion (Display *dpy, GC gc, GC gc2, Picture picture, const QRegion &r) |
Variables | |
static const qreal | aliasedCoordinateDelta = 0.5 - 0.015625 |
static const uchar | base_dither_matrix [DITHER_SIZE][DITHER_SIZE] |
static const int | compositionModeToRenderOp [QPainter::CompositionMode_Xor+1] |
#define DITHER_SIZE 16 |
Definition at line 211 of file qpaintengine_x11.cpp.
Referenced by qt_patternForAlpha().
#define X11 qt_x11Data |
Definition at line 124 of file qpaintengine_x11.cpp.
Referenced by getPatternFill(), qt_decide_features(), and qt_render_bitmap().
Definition at line 604 of file qpaintengine_x11.cpp.
Referenced by QCosmeticStroker::calculateLastPoint(), and QX11PaintEngine::drawLines().
Definition at line 749 of file qpaintengine_x11.cpp.
Referenced by QX11PaintEngine::drawRects().
|
inlinestatic |
Definition at line 148 of file qpaintengine_x11.cpp.
Referenced by QX11PaintEngine::drawRects().
Definition at line 303 of file qpaintengine_x11.cpp.
Referenced by QX11PaintEnginePrivate::fillPolygon_dev().
|
static |
Definition at line 2315 of file qpaintengine_x11.cpp.
Referenced by QX11PaintEngine::drawFreetype().
|
inlinestatic |
Definition at line 142 of file qpaintengine_x11.cpp.
Referenced by QX11PaintEngine::updateState().
|
static |
Definition at line 433 of file qpaintengine_x11.cpp.
void qt_draw_tile | ( | QPaintEngine * | , |
qreal | , | ||
qreal | , | ||
qreal | , | ||
qreal | , | ||
const QPixmap & | , | ||
qreal | , | ||
qreal | |||
) |
Definition at line 600 of file qpaintengine.cpp.
Referenced by QX11PaintEngine::drawTiledPixmap(), QPaintEngine::drawTiledPixmap(), and QX11PaintEngine::handle().
Q_GUI_EXPORT void* qt_getClipRects | ( | const QRegion & | r, |
int & | num | ||
) |
Definition at line 156 of file qpaintengine_x11.cpp.
Referenced by QX11PaintEngine::drawPixmap(), QX11GLWindowSurface::flush(), QX11WindowSurface::flush(), QRasterWindowSurface::flush(), QRegion::operator!=(), QX11GLWindowSurface::paintDevice(), QX11WindowSurface::setGeometry(), and x11SetClipRegion().
Definition at line 231 of file qpaintengine_x11.cpp.
Referenced by QX11PaintEngine::updateBrush().
QPixmap qt_pixmapForBrush | ( | int | brushStyle, |
bool | invert | ||
) |
Definition at line 99 of file qbrush.cpp.
Referenced by getPatternFill(), and QX11PaintEngine::updateBrush().
|
static |
Definition at line 366 of file qpaintengine_x11.cpp.
Referenced by QX11PaintEngine::drawPixmap(), and QX11PaintEngine::drawTiledPixmap().
Definition at line 93 of file qpixmap_x11.cpp.
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 1833 of file qpaintengine_x11.cpp.
Referenced by QX11PaintEngine::drawImage(), and QRasterWindowSurface::flush().
Q_GUI_EXPORT GC 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 115 of file qpaintengine_x11.cpp.
Q_GUI_EXPORT GC 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 100 of file qpaintengine_x11.cpp.
Drawable qt_x11Handle | ( | const QPaintDevice * | pd | ) |
Returns the X11 Drawable of the paint device.
0 is returned if it can't be obtained.
Definition at line 61 of file qpaintdevice_x11.cpp.
Referenced by QX11PaintEngine::begin().
|
related |
Referenced by QX11PaintEngine::begin().
|
static |
Definition at line 1538 of file qpaintengine_x11.cpp.
Referenced by QX11PaintEnginePrivate::fillPolygon_dev().
|
inlinestatic |
Definition at line 944 of file qpaintengine_x11.cpp.
Referenced by QX11PaintEngine::drawPoints(), and QPen::swap().
Definition at line 186 of file qpaintengine_x11.cpp.
Referenced by QX11PaintEngine::updateBrush(), QX11PaintEngine::updateClipRegion_dev(), and QX11PaintEngine::updatePen().
|
inlinestatic |
Definition at line 161 of file qpaintengine_x11.cpp.
Referenced by QX11PaintEngine::updateBrush(), QX11PaintEngine::updateClipRegion_dev(), and QX11PaintEngine::updatePen().
|
static |
Definition at line 92 of file qpaintengine_x11.cpp.
Referenced by QX11PaintEngine::drawFreetype(), QX11PaintEngine::drawLines(), QX11PaintEngine::drawXLFD(), QX11PaintEnginePrivate::fillPath(), QX11PaintEnginePrivate::fillPolygon_translated(), and QX11PaintEnginePrivate::strokePolygon_dev().
|
static |
Definition at line 212 of file qpaintengine_x11.cpp.
Referenced by qt_patternForAlpha().
|
static |
Definition at line 127 of file qpaintengine_x11.cpp.
Referenced by qpainterOpToXrender().