4#ifndef QWINDOWSNATIVEIMAGE_H
5#define QWINDOWSNATIVEIMAGE_H
18#include <QtCore/QtGlobal>
19#include <QtCore/qt_windows.h>
20#include <QtGui/QImage>
21#include <QtCore/private/qglobal_p.h>
25class Q_GUI_EXPORT QWindowsNativeImage
27 Q_DISABLE_COPY_MOVE(QWindowsNativeImage)
29 QWindowsNativeImage(
int width,
int height,
30 QImage::Format format);
32 ~QWindowsNativeImage();
34 inline int width()
const {
return m_image.width(); }
35 inline int height()
const {
return m_image.height(); }
37 QImage &image() {
return m_image; }
38 const QImage &image()
const {
return m_image; }
40 HDC hdc()
const {
return m_hdc; }
42 static QImage::Format systemFormat();
49 HBITMAP m_null_bitmap = 0;
Standard Windows font engine.
void addGlyphsToPath(glyph_t *glyphs, QFixedPoint *positions, int nglyphs, QPainterPath *path, QTextItem::RenderFlags flags) override
void addOutlineToPath(qreal x, qreal y, const QGlyphLayout &glyphs, QPainterPath *path, QTextItem::RenderFlags flags) override
FaceId faceId() const override
QImage alphaMapForGlyph(glyph_t, const QTransform &xform) override
void initFontInfo(const QFontDef &request, int dpi)
void initializeHeightMetrics() const override
QFixed emSquareSize() const override
glyph_metrics_t alphaMapBoundingBox(glyph_t glyph, const QFixedPoint &, const QTransform &matrix, GlyphFormat) override
qreal minLeftBearing() const override
bool hasUnreliableGlyphOutline() const override
QFontEngine * cloneWithSize(qreal pixelSize) const override
void getGlyphBearings(glyph_t glyph, qreal *leftBearing=nullptr, qreal *rightBearing=nullptr) override
QImage alphaRGBMapForGlyph(glyph_t t, const QFixedPoint &subPixelPosition, const QTransform &xform) override
bool supportsTransformation(const QTransform &transform) const override
qreal minRightBearing() const override
Qt::HANDLE handle() const override
void getUnscaledGlyph(glyph_t glyph, QPainterPath *path, glyph_metrics_t *metrics) override
Properties properties() const override
int synthesized() const override
static bool addGlyphToPath(glyph_t glyph, const QFixedPoint &position, HDC hdc, QPainterPath *path, bool ttf, glyph_metrics_t *metric=nullptr, qreal scale=1.0, qreal stretch=1.0)
static const int char_table_entries
#define SPI_SETFONTSMOOTHINGCONTRAST
#define MAKE_LITTLE_ENDIAN_TAG(ch1, ch2, ch3, ch4)
static double qt_fixed_to_double(const FIXED &p)
static QPointF qt_to_qpointf(const POINTFX &pt, qreal scale, qreal stretch)
static const ushort char_table[]
#define SPI_GETFONTSMOOTHINGCONTRAST