4#ifndef QWINDOWSDIRECT2DBITMAP_H
5#define QWINDOWSDIRECT2DBITMAP_H
7#include <QtCore/qnamespace.h>
8#include <QtCore/qrect.h>
9#include <QtCore/qscopedpointer.h>
11struct ID2D1DeviceContext;
16class QWindowsDirect2DDeviceContext;
32 bool resize(
int width,
int height);
33 bool fromImage(
const QImage &image, Qt::ImageConversionFlags flags);
35 ID2D1Bitmap1*
bitmap()
const;
38 void fill(
const QColor &color);
39 QImage
toImage(
const QRect &rect = QRect());
44 QScopedPointer<QWindowsDirect2DBitmapPrivate> d_ptr;
\inmodule QtCore\reentrant
Backing store for windows.
void resize(const QSize &size, const QRegion &staticContents) override
void beginPaint(const QRegion &) override
This function is called before painting onto the surface begins, with the region in which the paintin...
void endPaint() override
This function is called after painting onto the surface has ended.
void flush(QWindow *targetWindow, const QRegion ®ion, const QPoint &offset) override
Flushes the given region from the specified window.
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
~QWindowsDirect2DBackingStore()
QImage toImage() const override
Implemented in subclasses to return the content of the backingstore as a QImage.
QWindowsDirect2DDeviceContext * deviceContext() const
~QWindowsDirect2DBitmap()
void fill(const QColor &color)
ID2D1Bitmap1 * bitmap() const
QWindowsDirect2DBitmap(ID2D1Bitmap1 *bitmap, ID2D1DeviceContext *dc)
bool resize(int width, int height)
bool fromImage(const QImage &image, Qt::ImageConversionFlags flags)
QImage toImage(const QRect &rect=QRect())
ID2D1Factory1 * d2dFactory() const
~QWindowsDirect2DContext()
ID3D11Device * d3dDevice() const
ID2D1Device * d2dDevice() const
IDXGIFactory2 * dxgiFactory() const
IDWriteGdiInterop * dwriteGdiInterop() const
ID3D11DeviceContext * d3dDeviceContext() const
IDWriteFactory * dwriteFactory() const
static QWindowsDirect2DContext * instance()
static QWindowsDirect2DIntegration * create(const QStringList ¶mList)
QWindowsWindow * createPlatformWindowHelper(QWindow *window, const QWindowsWindowData &) const override
QPlatformNativeInterface * nativeInterface() const override
QWindowsDirect2DContext * direct2DContext() const
QPlatformPixmap * createPlatformPixmap(QPlatformPixmap::PixelType type) const override
Factory function for QPlatformPixmap.
virtual ~QWindowsDirect2DIntegration()
QPlatformBackingStore * createPlatformBackingStore(QWindow *window) const override
Factory function for QPlatformBackingStore.
static QWindowsDirect2DIntegration * instance()
QPaintEngine * paintEngine() const override
~QWindowsDirect2DPaintDevice()
int devType() const override
int metric(PaintDeviceMetric metric) const override
~QWindowsDirect2DPaintEngineSuspender()
QWindowsDirect2DPaintEngineSuspender(QWindowsDirect2DPaintEngine *engine)
void penChanged() override
void fillRect(const QRectF &rect, const QBrush &brush) override
Type type() const override
Reimplement this function to return the paint engine \l{Type}.
void stroke(ID2D1Geometry *geometry, const QPen &pen)
void opacityChanged() override
void renderHintsChanged() override
void fill(ID2D1Geometry *geometry, const QBrush &brush)
@ TranslucentTopLevelWindow
void brushOriginChanged() override
void compositionModeChanged() override
void drawRects(const QRect *rects, int rectCount) override
This is an overloaded member function, provided for convenience. It differs from the above function o...
void transformChanged() override
void draw(const QVectorPath &path) override
void drawEllipse(const QRectF &r) override
Reimplement this function to draw the largest ellipse that can be contained within rectangle rect.
void clipEnabledChanged() override
void drawTextItem(const QPointF &p, const QTextItem &textItem) override
This function draws the text item textItem at position p.
void brushChanged() override
void setState(QPainterState *s) override
void stroke(const QVectorPath &path, const QPen &pen) override
void drawStaticTextItem(QStaticTextItem *staticTextItem) override
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 fill(const QVectorPath &path, const QBrush &brush) override
void clip(const QVectorPath &path, Qt::ClipOperation op) override
bool end() override
Reimplement this function to finish painting on the current paint device.
void drawImage(const QRectF &rectangle, const QImage &image, 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 re...
bool begin(QPaintDevice *pdev) override
Reimplement this function to initialise your paint engine when painting is to start on the paint devi...
Combined button and popup list for selecting options.
static QWindowsDirect2DPlatformPixmap * platformPixmap(QPixmap *p)
static QWindowsDirect2DWindow * nativeWindow(QWindow *window)
static QWindowsDirect2DBitmap * bitmap(QPixmap *p)