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 (const RetainPtr< CFX_DIBitmap > &pBitmap, int left, int top)
 
virtual RetainPtr< CFX_DIBitmapGetBackDrop ()
 
virtual bool ContinueDIBits (CFX_ImageRenderer *handle, PauseIndicatorIface *pPause)
 
virtual int GetDriverType () const
 
virtual bool DrawShading (const CPDF_ShadingPattern *pPattern, const CFX_Matrix *pMatrix, const FX_RECT &clip_rect, int alpha, bool bAlphaMode)
 

Private Member Functions

int GetDeviceCaps (int caps_id) const override
 
bool SetDIBits (const RetainPtr< const CFX_DIBBase > &pBitmap, 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
 
bool StartDIBits (RetainPtr< const CFX_DIBBase > bitmap, float alpha, uint32_t color, const CFX_Matrix &matrix, const FXDIB_ResampleOptions &options, std::unique_ptr< CFX_ImageRenderer > *handle, 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

- 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, BlendMode blend_type) override
 
bool FillRectWithBlend (const FX_RECT &rect, uint32_t fill_color, BlendMode blend_type) override
 
bool DrawCosmeticLine (const CFX_PointF &ptMoveTo, const CFX_PointF &ptLineTo, uint32_t color, BlendMode blend_type) override
 
bool GetClipBox (FX_RECT *pRect) override
 
bool MultiplyAlpha (float alpha) override
 
bool MultiplyAlphaMask (const RetainPtr< const CFX_DIBBase > &mask) override
 
void DrawLine (float x1, float y1, float x2, float y2)
 
bool GDI_SetDIBits (const 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
 
absl::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 28 of file cgdi_printer_driver.cpp.

References CGdiPrinterDriver(), and kPrinter.

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 163 of file cgdi_printer_driver.cpp.

◆ GetDeviceCaps()

int CGdiPrinterDriver::GetDeviceCaps ( int caps_id) const
overrideprivatevirtual

Reimplemented from CGdiDeviceDriver.

Definition at line 35 of file cgdi_printer_driver.cpp.

References CGdiDeviceDriver::GetDeviceCaps().

+ Here is the call graph for this function:

◆ SetDIBits()

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

Implements RenderDeviceDriverIface.

Definition at line 43 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()

bool CGdiPrinterDriver::StartDIBits ( RetainPtr< const CFX_DIBBase > bitmap,
float alpha,
uint32_t color,
const CFX_Matrix & matrix,
const FXDIB_ResampleOptions & options,
std::unique_ptr< CFX_ImageRenderer > * handle,
BlendMode blend_type )
overrideprivatevirtual

Implements RenderDeviceDriverIface.

Definition at line 124 of file cgdi_printer_driver.cpp.

References FXDIB_ResampleOptions::FXDIB_ResampleOptions(), CFX_Matrix::a, CFX_Matrix::b, FX_RECT::bottom, CFX_Matrix::c, CFX_Matrix::d, CFX_FloatRect::GetOuterRect(), CFX_Matrix::GetUnitRect(), FX_RECT::Height(), FX_RECT::left, FX_RECT::right, StretchDIBits(), FX_RECT::top, and FX_RECT::Width().

+ Here is the call graph for this function:

◆ 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 67 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: