![]() |
Qt 6.x
The Qt SDK
|
#include <QGuiApplication>
#include <private/qdrawhelper_p.h>
#include <private/qimage_p.h>
#include <private/qimagepixmapcleanuphooks_p.h>
#include "qxcbnativepainting.h"
#include "qpixmap_x11_p.h"
#include "qcolormap_x11_p.h"
#include "qpaintengine_x11_p.h"
Go to the source code of this file.
Classes | |
struct | QXImageWrapper |
struct | QX11AlphaDetector |
Macros | |
#define | GET_PIXEL |
#define | GET_PIXEL_DITHER_TC |
#define | GET_PIXEL_DITHER_TC_OPT(red_shift, green_shift, blue_shift, red_mask, green_mask, blue_mask, rbits, gbits, bbits) |
#define | CYCLE(body) |
Functions | |
QT_BEGIN_NAMESPACE Q_ALWAYS_INLINE uint | PREMUL (uint x) |
QPixmap | qt_toX11Pixmap (const QImage &image) |
QPixmap | qt_toX11Pixmap (const QPixmap &pixmap) |
static void | qSafeXDestroyImage (XImage *x) |
Drawable | qt_x11Handle (const QPixmap &pixmap) |
static int | highest_bit (uint v) |
static uint | n_bits (uint v) |
static void | cleanup_scale_tables () |
static void | build_scale_table (uint **table, uint nBits) |
int | qt_x11SetDefaultScreen (int screen) |
void | qt_x11SetScreen (QPixmap &pixmap, int screen) |
Variables | |
static uint * | red_scale_table = nullptr |
static uint * | green_scale_table = nullptr |
static uint * | blue_scale_table = nullptr |
static int | defaultScreen = -1 |
QBasicAtomicInt | qt_pixmap_serial = Q_BASIC_ATOMIC_INITIALIZER(0) |
int Q_GUI_EXPORT | qt_x11_preferred_pixmap_depth = 0 |
#define CYCLE | ( | body | ) |
#define GET_PIXEL |
#define GET_PIXEL_DITHER_TC |
#define GET_PIXEL_DITHER_TC_OPT | ( | red_shift, | |
green_shift, | |||
blue_shift, | |||
red_mask, | |||
green_mask, | |||
blue_mask, | |||
rbits, | |||
gbits, | |||
bbits | |||
) |
Definition at line 264 of file qpixmap_x11.cpp.
References cleanup_scale_tables(), i, qAddPostRoutine(), and qWarning.
|
static |
Definition at line 253 of file qpixmap_x11.cpp.
References blue_scale_table, green_scale_table, and red_scale_table.
Referenced by build_scale_table().
|
static |
Definition at line 229 of file qpixmap_x11.cpp.
References i.
Referenced by QX11PlatformPixmap::fromImage().
Definition at line 239 of file qpixmap_x11.cpp.
References i.
Referenced by QX11PlatformPixmap::fromImage().
QT_BEGIN_NAMESPACE Q_ALWAYS_INLINE uint PREMUL | ( | uint | x | ) |
Definition at line 29 of file qpixmap_x11.cpp.
Referenced by QX11PlatformPixmap::fill().
|
inlinestatic |
Definition at line 76 of file qpixmap_x11.cpp.
Referenced by QX11PlatformPixmap::fromImage(), QX11PlatformPixmap::toImage(), and QX11PlatformPixmap::transformed().
Definition at line 50 of file qpixmap_x11.cpp.
References Qt::AutoColor, QPlatformPixmap::BitmapType, QX11PlatformPixmap::fromImage(), and QPlatformPixmap::PixmapType.
Referenced by qt_toX11Pixmap().
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().
Definition at line 210 of file qpixmap_x11.cpp.
References pixmap, QPlatformPixmap::X11Class, and XNone.
int qt_x11SetDefaultScreen | ( | int | screen | ) |
Definition at line 287 of file qpixmap_x11.cpp.
References defaultScreen, and screen.
Referenced by QX11PaintEngine::begin(), QX11PaintEngine::drawPixmap(), and QX11PaintEngine::drawTiledPixmap().
Definition at line 294 of file qpixmap_x11.cpp.
Referenced by QX11PaintEngine::drawPixmap(), QX11PaintEngine::drawTiledPixmap(), qt_patternForAlpha(), and QX11PaintEngine::updateBrush().
Definition at line 251 of file qpixmap_x11.cpp.
Referenced by cleanup_scale_tables().
|
static |
Definition at line 285 of file qpixmap_x11.cpp.
Referenced by QAndroidPlatformIntegration::QAndroidPlatformIntegration(), QOffscreenIntegration::defaultConfiguration(), QX11PlatformPixmap::fromImage(), qt_x11SetDefaultScreen(), and QX11PlatformPixmap::resize().
Definition at line 250 of file qpixmap_x11.cpp.
Referenced by cleanup_scale_tables().
QBasicAtomicInt qt_pixmap_serial = Q_BASIC_ATOMIC_INITIALIZER(0) |
Definition at line 331 of file qpixmap_x11.cpp.
Referenced by QX11PlatformPixmap::copy(), QX11PlatformPixmap::fromImage(), QX11PlatformPixmap::resize(), and QX11PlatformPixmap::transformed().
int Q_GUI_EXPORT qt_x11_preferred_pixmap_depth = 0 |
Definition at line 332 of file qpixmap_x11.cpp.
Referenced by QX11PlatformPixmap::fromImage(), and QX11PlatformPixmap::resize().
Definition at line 249 of file qpixmap_x11.cpp.
Referenced by cleanup_scale_tables().