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
CGdiPrinterDriver Class Referencefinal

#include <cgdi_printer_driver.h>

Inheritance diagram for CGdiPrinterDriver:
Collaboration diagram for CGdiPrinterDriver:

Public Member Functions

 CGdiPrinterDriver (HDC hDC)
 ~CGdiPrinterDriver () override
Public Member Functions inherited from RenderDeviceDriverIface
virtual ~RenderDeviceDriverIface ()
virtual bool GetDIBits (RetainPtr< CFX_DIBitmap > bitmap, int left, int top) const
virtual RetainPtr< const CFX_DIBitmapGetBackDrop () const
virtual bool ContinueDIBits (CFX_AggImageRenderer *handle, PauseIndicatorIface *pPause)
virtual int GetDriverType () const

Private Member Functions

int GetDeviceCaps (int caps_id) const override
bool SetDIBits (RetainPtr< const CFX_DIBBase > bitmap, uint32_t color, const FX_RECT &src_rect, int left, int top, BlendMode blend_type) override
bool StretchDIBits (RetainPtr< const CFX_DIBBase > bitmap, uint32_t color, int dest_left, int dest_top, int dest_width, int dest_height, const FX_RECT *pClipRect, const FXDIB_ResampleOptions &options, BlendMode blend_type) override
StartResult StartDIBits (RetainPtr< const CFX_DIBBase > bitmap, float alpha, uint32_t color, const CFX_Matrix &matrix, const FXDIB_ResampleOptions &options, BlendMode blend_type) override
bool DrawDeviceText (pdfium::span< const TextCharPos > pCharPos, CFX_Font *pFont, const CFX_Matrix &mtObject2Device, float font_size, uint32_t color, const CFX_TextRenderOptions &options) override

Additional Inherited Members

Public Types inherited from RenderDeviceDriverIface
enum class  Result { kFailure , kSuccess }
Protected Member Functions inherited from CGdiDeviceDriver
 CGdiDeviceDriver (HDC hDC, DeviceType device_type)
 ~CGdiDeviceDriver () override
DeviceType GetDeviceType () const override
void SaveState () override
void RestoreState (bool bKeepSaved) override
void SetBaseClip (const FX_RECT &rect) override
bool SetClip_PathFill (const CFX_Path &path, const CFX_Matrix *pObject2Device, const CFX_FillRenderOptions &fill_options) override
bool SetClip_PathStroke (const CFX_Path &path, const CFX_Matrix *pObject2Device, const CFX_GraphStateData *pGraphState) override
bool DrawPath (const CFX_Path &path, const CFX_Matrix *pObject2Device, const CFX_GraphStateData *pGraphState, uint32_t fill_color, uint32_t stroke_color, const CFX_FillRenderOptions &fill_options) override
bool FillRect (const FX_RECT &rect, uint32_t fill_color) override
bool DrawCosmeticLine (const CFX_PointF &ptMoveTo, const CFX_PointF &ptLineTo, uint32_t color) override
FX_RECT GetClipBox () const override
bool MultiplyAlpha (float alpha) override
bool MultiplyAlphaMask (RetainPtr< const CFX_DIBitmap > mask) override
void DrawLine (float x1, float y1, float x2, float y2)
bool GDI_SetDIBits (RetainPtr< const CFX_DIBBase > source, const FX_RECT &src_rect, int left, int top)
bool GDI_StretchDIBits (RetainPtr< const CFX_DIBBase > source, int dest_left, int dest_top, int dest_width, int dest_height, const FXDIB_ResampleOptions &options)
bool GDI_StretchBitMask (RetainPtr< const CFX_DIBBase > source, int dest_left, int dest_top, int dest_width, int dest_height, uint32_t bitmap_color)
Protected Attributes inherited from CGdiDeviceDriver
const HDC m_hDC
bool m_bMetafileDCType
int m_Width
int m_Height
int m_nBitsPerPixel
const DeviceType m_DeviceType
int m_RenderCaps
std::optional< FX_RECTm_BaseClipBox

Detailed Description

Definition at line 16 of file cgdi_printer_driver.h.

Constructor & Destructor Documentation

◆ CGdiPrinterDriver()

CGdiPrinterDriver::CGdiPrinterDriver ( HDC hDC)
explicit

Definition at line 29 of file cgdi_printer_driver.cpp.

References CGdiPrinterDriver().

Referenced by CGdiPrinterDriver().

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

◆ ~CGdiPrinterDriver()

CGdiPrinterDriver::~CGdiPrinterDriver ( )
overridedefault

Member Function Documentation

◆ DrawDeviceText()

bool CGdiPrinterDriver::DrawDeviceText ( pdfium::span< const TextCharPos > pCharPos,
CFX_Font * pFont,
const CFX_Matrix & mtObject2Device,
float font_size,
uint32_t color,
const CFX_TextRenderOptions & options )
overrideprivatevirtual

Reimplemented from RenderDeviceDriverIface.

Definition at line 169 of file cgdi_printer_driver.cpp.

◆ GetDeviceCaps()

int CGdiPrinterDriver::GetDeviceCaps ( int caps_id) const
overrideprivatevirtual

Reimplemented from CGdiDeviceDriver.

Definition at line 36 of file cgdi_printer_driver.cpp.

References CGdiDeviceDriver::GetDeviceCaps().

Here is the call graph for this function:

◆ SetDIBits()

bool CGdiPrinterDriver::SetDIBits ( RetainPtr< const CFX_DIBBase > bitmap,
uint32_t color,
const FX_RECT & src_rect,
int left,
int top,
BlendMode blend_type )
overrideprivatevirtual

Implements RenderDeviceDriverIface.

Definition at line 44 of file cgdi_printer_driver.cpp.

References FX_RECT::FX_RECT(), FXDIB_ResampleOptions::FXDIB_ResampleOptions(), CGdiDeviceDriver::GDI_SetDIBits(), FX_RECT::Height(), kNormal, FX_RECT::left, StretchDIBits(), FX_RECT::top, and FX_RECT::Width().

Here is the call graph for this function:

◆ StartDIBits()

RenderDeviceDriverIface::StartResult CGdiPrinterDriver::StartDIBits ( RetainPtr< const CFX_DIBBase > bitmap,
float alpha,
uint32_t color,
const CFX_Matrix & matrix,
const FXDIB_ResampleOptions & options,
BlendMode blend_type )
overrideprivatevirtual

◆ StretchDIBits()

bool CGdiPrinterDriver::StretchDIBits ( RetainPtr< const CFX_DIBBase > bitmap,
uint32_t color,
int dest_left,
int dest_top,
int dest_width,
int dest_height,
const FX_RECT * pClipRect,
const FXDIB_ResampleOptions & options,
BlendMode blend_type )
overrideprivatevirtual

Implements RenderDeviceDriverIface.

Definition at line 69 of file cgdi_printer_driver.cpp.

References CGdiDeviceDriver::GDI_StretchBitMask(), and CGdiDeviceDriver::GDI_StretchDIBits().

Referenced by SetDIBits(), and StartDIBits().

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

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