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());
43 return D2D1::SizeU(UINT32(qsize.
width()),
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
constexpr qreal x() const noexcept
Returns the x coordinate of this point.
constexpr qreal y() const noexcept
Returns the y coordinate of this point.
\inmodule QtCore\reentrant
constexpr qreal y() const noexcept
Returns the y-coordinate of the rectangle's top edge.
constexpr qreal height() const noexcept
Returns the height of the rectangle.
constexpr qreal width() const noexcept
Returns the width of the rectangle.
constexpr qreal x() const noexcept
Returns the x-coordinate of the rectangle's left edge.
\inmodule QtCore\reentrant
constexpr int height() const noexcept
Returns the height of the rectangle.
constexpr int x() const noexcept
Returns the x-coordinate of the rectangle's left edge.
constexpr int width() const noexcept
Returns the width of the rectangle.
constexpr int y() const noexcept
Returns the y-coordinate of the rectangle's top edge.
constexpr qreal width() const noexcept
Returns the width.
constexpr qreal height() const noexcept
Returns the height.
constexpr int height() const noexcept
Returns the height.
constexpr int width() const noexcept
Returns the width.
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)