Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QWin32PrintEnginePrivate Class Reference

#include <qprintengine_win_p.h>

Inheritance diagram for QWin32PrintEnginePrivate:
Collaboration diagram for QWin32PrintEnginePrivate:

Public Member Functions

 QWin32PrintEnginePrivate ()
 ~QWin32PrintEnginePrivate ()
void initialize ()
void initHDC ()
void release ()
void doReinit ()
bool resetDC ()
void strokePath (const QPainterPath &path, const QColor &color)
void fillPath (const QPainterPath &path, const QColor &color)
void composeGdiPath (const QPainterPath &path)
void fillPath_dev (const QPainterPath &path, const QColor &color)
void strokePath_dev (const QPainterPath &path, const QColor &color, qreal width)
void setPageSize (const QPageSize &pageSize)
void updatePageLayout ()
void updateMetrics ()
void debugMetrics () const
Public Member Functions inherited from QAlphaPaintEnginePrivate
 QAlphaPaintEnginePrivate ()
 ~QAlphaPaintEnginePrivate ()
void addAlphaRect (const QRectF &rect)
void addDirtyRect (const QRectF &rect)
bool canSeeTroughBackground (bool somethingInRectHasAlpha, const QRectF &rect) const
QRectF addPenWidth (const QPainterPath &path)
void drawAlphaImage (const QRectF &rect)
QRect toRect (const QRectF &rect) const
bool fullyContained (const QRectF &rect) const
void resetState (QPainter *p)
Public Member Functions inherited from QPaintEnginePrivate
 QPaintEnginePrivate ()
virtual ~QPaintEnginePrivate ()
void updateSystemClip ()
void setSystemTransform (const QTransform &xform)
void setSystemViewport (const QRegion &region)
void setSystemTransformAndViewport (const QTransform &xform, const QRegion &region)
virtual void systemStateChanged ()
void drawBoxTextItem (const QPointF &p, const QTextItemInt &ti)
virtual QPaintEngineaggregateEngine ()
virtual Qt::HANDLE nativeHandle ()

Static Public Member Functions

static void initializeDevMode (DEVMODE *)
Static Public Member Functions inherited from QPaintEnginePrivate
static QPaintEnginePrivateget (QPaintEngine *paintEngine)

Public Attributes

HANDLE hPrinter = nullptr
HGLOBAL globalDevMode = nullptr
DEVMODE * devMode = nullptr
PRINTER_INFO_2 * pInfo = nullptr
HGLOBAL hMem = nullptr
HDC hdc = nullptr
bool ownsDevMode = false
QPrinter::PrinterMode mode = QPrinter::ScreenResolution
QPrintDevice m_printDevice
QString docName
QString m_creator
QString fileName
QPrinter::PrinterState state = QPrinter::Idle
int resolution = 0
QPageLayout m_pageLayout
QRect m_paintRectPixels
QSize m_paintSizeMM
qreal stretch_x = 1
qreal stretch_y = 1
int origin_x = 0
int origin_y = 0
int dpi_x = 96
int dpi_y = 96
int dpi_display = 96
int num_copies = 1
uint printToFile: 1
uint reinit: 1
uint complex_xform: 1
uint has_pen: 1
uint has_brush: 1
uint has_custom_paper_size: 1
uint embed_fonts: 1
uint txop = 0
QColor brush_color
QPen pen
QColor pen_color
QSizeF paper_size
QTransform painterMatrix
QTransform matrix
Public Attributes inherited from QAlphaPaintEnginePrivate
int m_pass
QPicturem_pic
QPaintEnginem_picengine
QPainterm_picpainter
QPaintEngine::PaintEngineFeatures m_savedcaps
QPaintDevicem_pdev
QRegion m_alphargn
QRegion m_cliprgn
QRegion m_cachedDirtyRgn
int m_numberOfCachedRects
QList< QRectm_dirtyRects
bool m_hasalpha
bool m_alphaPen
bool m_alphaBrush
bool m_alphaOpacity
bool m_advancedPen
bool m_advancedBrush
bool m_complexTransform
bool m_emulateProjectiveTransforms
bool m_continueCall
QTransform m_transform
QPen m_pen
Public Attributes inherited from QPaintEnginePrivate
QPaintDevicepdev
QPaintEngineq_ptr
QRegion baseSystemClip
QRegion systemClip
QRect systemRect
QRegion systemViewport
QTransform systemTransform
QPaintDevicecurrentClipDevice
uint hasSystemTransform: 1
uint hasSystemViewport: 1

Detailed Description

Definition at line 82 of file qprintengine_win_p.h.

Constructor & Destructor Documentation

◆ QWin32PrintEnginePrivate()

QWin32PrintEnginePrivate::QWin32PrintEnginePrivate ( )
inline

Definition at line 86 of file qprintengine_win_p.h.

◆ ~QWin32PrintEnginePrivate()

QWin32PrintEnginePrivate::~QWin32PrintEnginePrivate ( )

Definition at line 826 of file qprintengine_win.cpp.

References release().

Here is the call graph for this function:

Member Function Documentation

◆ composeGdiPath()

void QWin32PrintEnginePrivate::composeGdiPath ( const QPainterPath & path)

Definition at line 645 of file qprintengine_win.cpp.

◆ debugMetrics()

void QWin32PrintEnginePrivate::debugMetrics ( ) const

Definition at line 1718 of file qprintengine_win.cpp.

References dpi_x, dpi_y, origin_x, origin_y, and resolution.

◆ doReinit()

void QWin32PrintEnginePrivate::doReinit ( )

Definition at line 987 of file qprintengine_win.cpp.

References resetDC().

Here is the call graph for this function:

◆ fillPath()

void QWin32PrintEnginePrivate::fillPath ( const QPainterPath & path,
const QColor & color )

Definition at line 734 of file qprintengine_win.cpp.

◆ fillPath_dev()

void QWin32PrintEnginePrivate::fillPath_dev ( const QPainterPath & path,
const QColor & color )

Definition at line 693 of file qprintengine_win.cpp.

◆ initHDC()

void QWin32PrintEnginePrivate::initHDC ( )

Definition at line 928 of file qprintengine_win.cpp.

References dpi_display, dpi_y, resolution, and updateMetrics().

Referenced by initialize().

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

◆ initialize()

void QWin32PrintEnginePrivate::initialize ( )

Definition at line 831 of file qprintengine_win.cpp.

References initHDC(), ownsDevMode, release(), and updatePageLayout().

Here is the call graph for this function:

◆ initializeDevMode()

void QWin32PrintEnginePrivate::initializeDevMode ( DEVMODE * devMode)
static

Definition at line 921 of file qprintengine_win.cpp.

◆ release()

void QWin32PrintEnginePrivate::release ( )

Definition at line 962 of file qprintengine_win.cpp.

References ownsDevMode.

Referenced by ~QWin32PrintEnginePrivate(), and initialize().

Here is the caller graph for this function:

◆ resetDC()

bool QWin32PrintEnginePrivate::resetDC ( )

Definition at line 997 of file qprintengine_win.cpp.

Referenced by doReinit().

Here is the caller graph for this function:

◆ setPageSize()

void QWin32PrintEnginePrivate::setPageSize ( const QPageSize & pageSize)

Definition at line 1620 of file qprintengine_win.cpp.

References updateMetrics().

Here is the call graph for this function:

◆ strokePath()

void QWin32PrintEnginePrivate::strokePath ( const QPainterPath & path,
const QColor & color )

Definition at line 739 of file qprintengine_win.cpp.

◆ strokePath_dev()

void QWin32PrintEnginePrivate::strokePath_dev ( const QPainterPath & path,
const QColor & color,
qreal width )

Definition at line 707 of file qprintengine_win.cpp.

◆ updateMetrics()

void QWin32PrintEnginePrivate::updateMetrics ( )

Definition at line 1696 of file qprintengine_win.cpp.

Referenced by initHDC(), setPageSize(), and updatePageLayout().

Here is the caller graph for this function:

◆ updatePageLayout()

void QWin32PrintEnginePrivate::updatePageLayout ( )

Definition at line 1653 of file qprintengine_win.cpp.

References updateMetrics().

Referenced by initialize().

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

Member Data Documentation

◆ brush_color

QColor QWin32PrintEnginePrivate::brush_color

Definition at line 186 of file qprintengine_win_p.h.

◆ complex_xform

uint QWin32PrintEnginePrivate::complex_xform

Definition at line 178 of file qprintengine_win_p.h.

◆ devMode

DEVMODE* QWin32PrintEnginePrivate::devMode = nullptr

Definition at line 135 of file qprintengine_win_p.h.

◆ docName

QString QWin32PrintEnginePrivate::docName

Definition at line 150 of file qprintengine_win_p.h.

◆ dpi_display

int QWin32PrintEnginePrivate::dpi_display = 96

Definition at line 172 of file qprintengine_win_p.h.

Referenced by initHDC().

◆ dpi_x

int QWin32PrintEnginePrivate::dpi_x = 96

Definition at line 170 of file qprintengine_win_p.h.

Referenced by debugMetrics().

◆ dpi_y

int QWin32PrintEnginePrivate::dpi_y = 96

Definition at line 171 of file qprintengine_win_p.h.

Referenced by debugMetrics(), and initHDC().

◆ embed_fonts

uint QWin32PrintEnginePrivate::embed_fonts

Definition at line 182 of file qprintengine_win_p.h.

◆ fileName

QString QWin32PrintEnginePrivate::fileName

Definition at line 152 of file qprintengine_win_p.h.

◆ globalDevMode

HGLOBAL QWin32PrintEnginePrivate::globalDevMode = nullptr

Definition at line 134 of file qprintengine_win_p.h.

◆ has_brush

uint QWin32PrintEnginePrivate::has_brush

Definition at line 180 of file qprintengine_win_p.h.

◆ has_custom_paper_size

uint QWin32PrintEnginePrivate::has_custom_paper_size

Definition at line 181 of file qprintengine_win_p.h.

◆ has_pen

uint QWin32PrintEnginePrivate::has_pen

Definition at line 179 of file qprintengine_win_p.h.

◆ hdc

HDC QWin32PrintEnginePrivate::hdc = nullptr

Definition at line 139 of file qprintengine_win_p.h.

◆ hMem

HGLOBAL QWin32PrintEnginePrivate::hMem = nullptr

Definition at line 137 of file qprintengine_win_p.h.

◆ hPrinter

HANDLE QWin32PrintEnginePrivate::hPrinter = nullptr

Definition at line 132 of file qprintengine_win_p.h.

◆ m_creator

QString QWin32PrintEnginePrivate::m_creator

Definition at line 151 of file qprintengine_win_p.h.

◆ m_pageLayout

QPageLayout QWin32PrintEnginePrivate::m_pageLayout
Initial value:
\inmodule QtCore
Definition qmargins.h:303
\inmodule QtGui
Definition qpagesize.h:22

Definition at line 158 of file qprintengine_win_p.h.

◆ m_paintRectPixels

QRect QWin32PrintEnginePrivate::m_paintRectPixels

Definition at line 161 of file qprintengine_win_p.h.

◆ m_paintSizeMM

QSize QWin32PrintEnginePrivate::m_paintSizeMM

Definition at line 162 of file qprintengine_win_p.h.

◆ m_printDevice

QPrintDevice QWin32PrintEnginePrivate::m_printDevice

Definition at line 147 of file qprintengine_win_p.h.

◆ matrix

QTransform QWin32PrintEnginePrivate::matrix

Definition at line 192 of file qprintengine_win_p.h.

◆ mode

QPrinter::PrinterMode QWin32PrintEnginePrivate::mode = QPrinter::ScreenResolution

Definition at line 144 of file qprintengine_win_p.h.

◆ num_copies

int QWin32PrintEnginePrivate::num_copies = 1

Definition at line 173 of file qprintengine_win_p.h.

◆ origin_x

int QWin32PrintEnginePrivate::origin_x = 0

Definition at line 167 of file qprintengine_win_p.h.

Referenced by debugMetrics().

◆ origin_y

int QWin32PrintEnginePrivate::origin_y = 0

Definition at line 168 of file qprintengine_win_p.h.

Referenced by debugMetrics().

◆ ownsDevMode

bool QWin32PrintEnginePrivate::ownsDevMode = false

Definition at line 142 of file qprintengine_win_p.h.

Referenced by initialize(), and release().

◆ painterMatrix

QTransform QWin32PrintEnginePrivate::painterMatrix

Definition at line 191 of file qprintengine_win_p.h.

◆ paper_size

QSizeF QWin32PrintEnginePrivate::paper_size

Definition at line 189 of file qprintengine_win_p.h.

◆ pen

QPen QWin32PrintEnginePrivate::pen

Definition at line 187 of file qprintengine_win_p.h.

◆ pen_color

QColor QWin32PrintEnginePrivate::pen_color

Definition at line 188 of file qprintengine_win_p.h.

◆ pInfo

PRINTER_INFO_2* QWin32PrintEnginePrivate::pInfo = nullptr

Definition at line 136 of file qprintengine_win_p.h.

◆ printToFile

uint QWin32PrintEnginePrivate::printToFile

Definition at line 175 of file qprintengine_win_p.h.

◆ reinit

uint QWin32PrintEnginePrivate::reinit

Definition at line 176 of file qprintengine_win_p.h.

◆ resolution

int QWin32PrintEnginePrivate::resolution = 0

Definition at line 155 of file qprintengine_win_p.h.

Referenced by debugMetrics(), and initHDC().

◆ state

QPrinter::PrinterState QWin32PrintEnginePrivate::state = QPrinter::Idle

Definition at line 154 of file qprintengine_win_p.h.

◆ stretch_x

qreal QWin32PrintEnginePrivate::stretch_x = 1

Definition at line 165 of file qprintengine_win_p.h.

◆ stretch_y

qreal QWin32PrintEnginePrivate::stretch_y = 1

Definition at line 166 of file qprintengine_win_p.h.

◆ txop

uint QWin32PrintEnginePrivate::txop = 0

Definition at line 184 of file qprintengine_win_p.h.


The documentation for this class was generated from the following files: