4#ifndef QWINDOWSDIRECT2DHELPERS_H
5#define QWINDOWSDIRECT2DHELPERS_H
7#include <QtCore/qrect.h>
8#include <QtCore/qsize.h>
9#include <QtCore/qpoint.h>
10#include <QtGui/qcolor.h>
11#include <QtGui/qtransform.h>
16# include <d2d1helper.h>
17# include <d2dbasetypes.h>
20#include <d2d1_1helper.h>
26 return D2D1::RectU(qrect.x(), qrect.y(), qrect.x() + qrect.width(), qrect.y() + qrect.height());
31 return D2D1::RectF(qrect.x(), qrect.y(), qrect.x() + qrect.width(), qrect.y() + qrect.height());
37 return D2D1::SizeU(UINT32(
qRound(qsize.width())),
38 UINT32(
qRound(qsize.height())));
43 return D2D1::SizeU(UINT32(qsize.width()),
44 UINT32(qsize.height()));
49 return D2D1::Point2F(qpoint.x(), qpoint.y());
54 return D2D1::ColorF(
c.redF(),
c.greenF(),
c.blueF(),
c.alphaF());
The QColor class provides colors based on RGB, HSV or CMYK values.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
Combined button and popup list for selecting options.
int qRound(qfloat16 d) noexcept
GLuint GLenum GLenum transform
D2D1::ColorF to_d2d_color_f(const QColor &c)
D2D1_POINT_2F to_d2d_point_2f(const QPointF &qpoint)
D2D1_MATRIX_3X2_F to_d2d_matrix_3x2_f(const QTransform &transform)
QT_BEGIN_NAMESPACE D2D1_RECT_U to_d2d_rect_u(const QRect &qrect)
D2D1_SIZE_U to_d2d_size_u(const QSizeF &qsize)
D2D1_RECT_F to_d2d_rect_f(const QRectF &qrect)