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

#include <cps_printer_driver.h>

Inheritance diagram for CPSPrinterDriver:
Collaboration diagram for CPSPrinterDriver:

Public Member Functions

 CPSPrinterDriver (HDC hDC, WindowsPrintMode mode, CFX_PSFontTracker *ps_font_tracker, const EncoderIface *encoder_iface)
 ~CPSPrinterDriver () override
Public Member Functions inherited from RenderDeviceDriverIface
virtual ~RenderDeviceDriverIface ()
virtual void SetBaseClip (const FX_RECT &rect)
virtual bool FillRect (const FX_RECT &rect, uint32_t fill_color)
virtual bool DrawCosmeticLine (const CFX_PointF &ptMoveTo, const CFX_PointF &ptLineTo, uint32_t color)
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

DeviceType GetDeviceType () const override
int GetDeviceCaps (int caps_id) const override
void SaveState () override
void RestoreState (bool bKeepSaved) override
bool SetClip_PathFill (const CFX_Path &paath, 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
FX_RECT GetClipBox () 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
bool MultiplyAlpha (float alpha) override
bool MultiplyAlphaMask (RetainPtr< const CFX_DIBitmap > mask) override

Additional Inherited Members

Public Types inherited from RenderDeviceDriverIface
enum class  Result { kFailure , kSuccess }

Detailed Description

Definition at line 20 of file cps_printer_driver.h.

Constructor & Destructor Documentation

◆ CPSPrinterDriver()

CPSPrinterDriver::CPSPrinterDriver ( HDC hDC,
WindowsPrintMode mode,
CFX_PSFontTracker * ps_font_tracker,
const EncoderIface * encoder_iface )

Definition at line 49 of file cps_printer_driver.cpp.

References CPSPrinterDriver(), CFX_Path::AppendRect(), CPSOutput::kExtEscape, CPSOutput::kGdiComment, kPostScript2, kPostScript3, and kPostScript3Type42.

Referenced by CPSPrinterDriver().

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

◆ ~CPSPrinterDriver()

CPSPrinterDriver::~CPSPrinterDriver ( )
overridedefault

Member Function Documentation

◆ DrawDeviceText()

bool CPSPrinterDriver::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 199 of file cps_printer_driver.cpp.

◆ DrawPath()

bool CPSPrinterDriver::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 )
overrideprivatevirtual

Implements RenderDeviceDriverIface.

Definition at line 144 of file cps_printer_driver.cpp.

◆ GetClipBox()

FX_RECT CPSPrinterDriver::GetClipBox ( ) const
overrideprivatevirtual

Implements RenderDeviceDriverIface.

Definition at line 154 of file cps_printer_driver.cpp.

◆ GetDeviceCaps()

int CPSPrinterDriver::GetDeviceCaps ( int caps_id) const
overrideprivatevirtual

Implements RenderDeviceDriverIface.

Definition at line 101 of file cps_printer_driver.cpp.

◆ GetDeviceType()

DeviceType CPSPrinterDriver::GetDeviceType ( ) const
overrideprivatevirtual

Implements RenderDeviceDriverIface.

Definition at line 97 of file cps_printer_driver.cpp.

◆ MultiplyAlpha()

bool CPSPrinterDriver::MultiplyAlpha ( float alpha)
overrideprivatevirtual

Implements RenderDeviceDriverIface.

Definition at line 210 of file cps_printer_driver.cpp.

◆ MultiplyAlphaMask()

bool CPSPrinterDriver::MultiplyAlphaMask ( RetainPtr< const CFX_DIBitmap > mask)
overrideprivatevirtual

Implements RenderDeviceDriverIface.

Definition at line 216 of file cps_printer_driver.cpp.

◆ RestoreState()

void CPSPrinterDriver::RestoreState ( bool bKeepSaved)
overrideprivatevirtual

Implements RenderDeviceDriverIface.

Definition at line 124 of file cps_printer_driver.cpp.

◆ SaveState()

void CPSPrinterDriver::SaveState ( )
overrideprivatevirtual

Implements RenderDeviceDriverIface.

Definition at line 120 of file cps_printer_driver.cpp.

◆ SetClip_PathFill()

bool CPSPrinterDriver::SetClip_PathFill ( const CFX_Path & paath,
const CFX_Matrix * pObject2Device,
const CFX_FillRenderOptions & fill_options )
overrideprivatevirtual

Implements RenderDeviceDriverIface.

Definition at line 128 of file cps_printer_driver.cpp.

◆ SetClip_PathStroke()

bool CPSPrinterDriver::SetClip_PathStroke ( const CFX_Path & path,
const CFX_Matrix * pObject2Device,
const CFX_GraphStateData * pGraphState )
overrideprivatevirtual

Reimplemented from RenderDeviceDriverIface.

Definition at line 136 of file cps_printer_driver.cpp.

◆ SetDIBits()

bool CPSPrinterDriver::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 158 of file cps_printer_driver.cpp.

References kNormal.

◆ StartDIBits()

RenderDeviceDriverIface::StartResult CPSPrinterDriver::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 CPSPrinterDriver::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 169 of file cps_printer_driver.cpp.


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