Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qwindowsdirect2dhelpers.h File Reference
#include <QtCore/qrect.h>
#include <QtCore/qsize.h>
#include <QtCore/qpoint.h>
#include <QtGui/qcolor.h>
#include <QtGui/qtransform.h>
#include <d2d1_1helper.h>
+ Include dependency graph for qwindowsdirect2dhelpers.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

QT_BEGIN_NAMESPACE D2D1_RECT_U to_d2d_rect_u (const QRect &qrect)
 
D2D1_RECT_F to_d2d_rect_f (const QRectF &qrect)
 
D2D1_SIZE_U to_d2d_size_u (const QSizeF &qsize)
 
D2D1_SIZE_U to_d2d_size_u (const QSize &qsize)
 
D2D1_POINT_2F to_d2d_point_2f (const QPointF &qpoint)
 
D2D1::ColorF to_d2d_color_f (const QColor &c)
 
D2D1_MATRIX_3X2_F to_d2d_matrix_3x2_f (const QTransform &transform)
 

Function Documentation

◆ to_d2d_color_f()

D2D1::ColorF to_d2d_color_f ( const QColor c)
inline

Definition at line 52 of file qwindowsdirect2dhelpers.h.

Referenced by QWindowsDirect2DBitmap::fill(), qGradientStopsToD2DStops(), and QWindowsDirect2DPaintEnginePrivate::to_d2d_brush().

+ Here is the caller graph for this function:

◆ to_d2d_matrix_3x2_f()

D2D1_MATRIX_3X2_F to_d2d_matrix_3x2_f ( const QTransform transform)
inline

Definition at line 57 of file qwindowsdirect2dhelpers.h.

Referenced by QWindowsDirect2DPaintEnginePrivate::to_d2d_brush(), transformFromLine(), and QWindowsDirect2DPaintEnginePrivate::updateTransform().

+ Here is the caller graph for this function:

◆ to_d2d_point_2f()

D2D1_POINT_2F to_d2d_point_2f ( const QPointF qpoint)
inline

Definition at line 47 of file qwindowsdirect2dhelpers.h.

References QPointF::x(), and QPointF::y().

Referenced by QWindowsDirect2DPaintEngine::drawEllipse(), QWindowsDirect2DPaintEngine::drawEllipse(), QWindowsDirect2DPaintEngine::drawTextItem(), QWindowsDirect2DPaintEnginePrivate::stroke(), and QWindowsDirect2DPaintEnginePrivate::to_d2d_brush().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ to_d2d_rect_f()

D2D1_RECT_F to_d2d_rect_f ( const QRectF qrect)
inline

Definition at line 29 of file qwindowsdirect2dhelpers.h.

References QRectF::height(), QRectF::width(), QRectF::x(), and QRectF::y().

Referenced by QWindowsDirect2DPaintEngine::begin(), QWindowsDirect2DPaintEngine::drawPixmap(), QWindowsDirect2DPaintEngine::drawRects(), QWindowsDirect2DPaintEngine::drawRects(), QWindowsDirect2DPaintEngine::fillRect(), and QWindowsDirect2DWindow::flush().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ to_d2d_rect_u()

QT_BEGIN_NAMESPACE D2D1_RECT_U to_d2d_rect_u ( const QRect qrect)
inline

Definition at line 24 of file qwindowsdirect2dhelpers.h.

References QRect::height(), QRect::width(), QRect::x(), and QRect::y().

Referenced by QWindowsDirect2DPaintEngine::drawPixmap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ to_d2d_size_u() [1/2]

D2D1_SIZE_U to_d2d_size_u ( const QSize qsize)
inline

Definition at line 41 of file qwindowsdirect2dhelpers.h.

References QSize::height(), and QSize::width().

+ Here is the call graph for this function:

◆ to_d2d_size_u() [2/2]

D2D1_SIZE_U to_d2d_size_u ( const QSizeF qsize)
inline

Definition at line 34 of file qwindowsdirect2dhelpers.h.

References QSizeF::height(), qRound(), and QSizeF::width().

+ Here is the call graph for this function: