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
CGdiDeviceDriver Class Reference

#include <cgdi_device_driver.h>

+ Inheritance diagram for CGdiDeviceDriver:
+ Collaboration diagram for CGdiDeviceDriver:

Protected Member Functions

 CGdiDeviceDriver (HDC hDC, DeviceType device_type)
 
 ~CGdiDeviceDriver () override
 
DeviceType GetDeviceType () const override
 
int GetDeviceCaps (int caps_id) 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

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
 

Additional Inherited Members

- 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 SetDIBits (const RetainPtr< const CFX_DIBBase > &pBitmap, uint32_t color, const FX_RECT &src_rect, int dest_left, int dest_top, BlendMode blend_type)=0
 
virtual 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)=0
 
virtual 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)=0
 
virtual bool ContinueDIBits (CFX_ImageRenderer *handle, PauseIndicatorIface *pPause)
 
virtual bool DrawDeviceText (pdfium::span< const TextCharPos > pCharPos, CFX_Font *pFont, const CFX_Matrix &mtObject2Device, float font_size, uint32_t color, const CFX_TextRenderOptions &options)
 
virtual int GetDriverType () const
 
virtual bool DrawShading (const CPDF_ShadingPattern *pPattern, const CFX_Matrix *pMatrix, const FX_RECT &clip_rect, int alpha, bool bAlphaMode)
 

Detailed Description

Definition at line 18 of file cgdi_device_driver.h.

Constructor & Destructor Documentation

◆ CGdiDeviceDriver()

CGdiDeviceDriver::CGdiDeviceDriver ( HDC hDC,
DeviceType device_type )
protected

Definition at line 333 of file cgdi_device_driver.cpp.

References CGdiDeviceDriver(), kDisplay, m_DeviceType, m_Height, m_nBitsPerPixel, m_RenderCaps, and m_Width.

Referenced by CGdiDeviceDriver().

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

◆ ~CGdiDeviceDriver()

CGdiDeviceDriver::~CGdiDeviceDriver ( )
overrideprotecteddefault

Member Function Documentation

◆ DrawCosmeticLine()

bool CGdiDeviceDriver::DrawCosmeticLine ( const CFX_PointF & ptMoveTo,
const CFX_PointF & ptLineTo,
uint32_t color,
BlendMode blend_type )
overrideprotectedvirtual

Reimplemented from RenderDeviceDriverIface.

Definition at line 748 of file cgdi_device_driver.cpp.

References kNormal.

Referenced by DrawPath().

+ Here is the caller graph for this function:

◆ DrawLine()

void CGdiDeviceDriver::DrawLine ( float x1,
float y1,
float x2,
float y2 )
protected

Definition at line 551 of file cgdi_device_driver.cpp.

References m_bMetafileDCType, m_Height, and m_Width.

Referenced by DrawPath().

+ Here is the caller graph for this function:

◆ DrawPath()

bool CGdiDeviceDriver::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 )
overrideprotectedvirtual

◆ FillRectWithBlend()

bool CGdiDeviceDriver::FillRectWithBlend ( const FX_RECT & rect,
uint32_t fill_color,
BlendMode blend_type )
overrideprotectedvirtual

Reimplemented from RenderDeviceDriverIface.

Definition at line 687 of file cgdi_device_driver.cpp.

References kNormal.

◆ GDI_SetDIBits()

bool CGdiDeviceDriver::GDI_SetDIBits ( const RetainPtr< const CFX_DIBBase > & source,
const FX_RECT & src_rect,
int left,
int top )
protected

Definition at line 391 of file cgdi_device_driver.cpp.

References FX_RECT::FX_RECT(), FX_RECT::Height(), kPrinter, m_DeviceType, and FX_RECT::Width().

Referenced by CGdiDisplayDriver::SetDIBits(), and CGdiPrinterDriver::SetDIBits().

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

◆ GDI_StretchBitMask()

bool CGdiDeviceDriver::GDI_StretchBitMask ( RetainPtr< const CFX_DIBBase > source,
int dest_left,
int dest_top,
int dest_width,
int dest_height,
uint32_t bitmap_color )
protected

Definition at line 469 of file cgdi_device_driver.cpp.

References m_nBitsPerPixel.

Referenced by CGdiPrinterDriver::StretchDIBits().

+ Here is the caller graph for this function:

◆ GDI_StretchDIBits()

bool CGdiDeviceDriver::GDI_StretchDIBits ( RetainPtr< const CFX_DIBBase > source,
int dest_left,
int dest_top,
int dest_width,
int dest_height,
const FXDIB_ResampleOptions & options )
protected

Definition at line 429 of file cgdi_device_driver.cpp.

References FXDIB_ResampleOptions::FXDIB_ResampleOptions(), FXDIB_ResampleOptions::bInterpolateBilinear, kPrinter, and m_DeviceType.

Referenced by CGdiDisplayDriver::StretchDIBits(), and CGdiPrinterDriver::StretchDIBits().

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

◆ GetClipBox()

bool CGdiDeviceDriver::GetClipBox ( FX_RECT * pRect)
overrideprotectedvirtual

Implements RenderDeviceDriverIface.

Definition at line 534 of file cgdi_device_driver.cpp.

◆ GetDeviceCaps()

int CGdiDeviceDriver::GetDeviceCaps ( int caps_id) const
overrideprotectedvirtual

Implements RenderDeviceDriverIface.

Reimplemented in CGdiDisplayDriver, and CGdiPrinterDriver.

Definition at line 366 of file cgdi_device_driver.cpp.

References m_Height, m_nBitsPerPixel, m_RenderCaps, and m_Width.

Referenced by CGdiDisplayDriver::GetDeviceCaps(), and CGdiPrinterDriver::GetDeviceCaps().

+ Here is the caller graph for this function:

◆ GetDeviceType()

DeviceType CGdiDeviceDriver::GetDeviceType ( ) const
overrideprotectedvirtual

Implements RenderDeviceDriverIface.

Definition at line 362 of file cgdi_device_driver.cpp.

References m_DeviceType.

◆ MultiplyAlpha()

bool CGdiDeviceDriver::MultiplyAlpha ( float alpha)
overrideprotectedvirtual

Implements RenderDeviceDriverIface.

Definition at line 538 of file cgdi_device_driver.cpp.

◆ MultiplyAlphaMask()

bool CGdiDeviceDriver::MultiplyAlphaMask ( const RetainPtr< const CFX_DIBBase > & mask)
overrideprotectedvirtual

Implements RenderDeviceDriverIface.

Definition at line 544 of file cgdi_device_driver.cpp.

◆ RestoreState()

void CGdiDeviceDriver::RestoreState ( bool bKeepSaved)
overrideprotectedvirtual

Implements RenderDeviceDriverIface.

Definition at line 385 of file cgdi_device_driver.cpp.

◆ SaveState()

void CGdiDeviceDriver::SaveState ( )
overrideprotectedvirtual

Implements RenderDeviceDriverIface.

Definition at line 381 of file cgdi_device_driver.cpp.

◆ SetBaseClip()

void CGdiDeviceDriver::SetBaseClip ( const FX_RECT & rect)
overrideprotectedvirtual

Reimplemented from RenderDeviceDriverIface.

Definition at line 709 of file cgdi_device_driver.cpp.

◆ SetClip_PathFill()

bool CGdiDeviceDriver::SetClip_PathFill ( const CFX_Path & path,
const CFX_Matrix * pObject2Device,
const CFX_FillRenderOptions & fill_options )
overrideprotectedvirtual

Implements RenderDeviceDriverIface.

Definition at line 713 of file cgdi_device_driver.cpp.

◆ SetClip_PathStroke()

bool CGdiDeviceDriver::SetClip_PathStroke ( const CFX_Path & path,
const CFX_Matrix * pObject2Device,
const CFX_GraphStateData * pGraphState )
overrideprotectedvirtual

Reimplemented from RenderDeviceDriverIface.

Definition at line 733 of file cgdi_device_driver.cpp.

Member Data Documentation

◆ m_BaseClipBox

absl::optional<FX_RECT> CGdiDeviceDriver::m_BaseClipBox
protected

Definition at line 79 of file cgdi_device_driver.h.

◆ m_bMetafileDCType

bool CGdiDeviceDriver::m_bMetafileDCType
protected

Definition at line 73 of file cgdi_device_driver.h.

Referenced by DrawLine().

◆ m_DeviceType

const DeviceType CGdiDeviceDriver::m_DeviceType
protected

◆ m_hDC

const HDC CGdiDeviceDriver::m_hDC
protected

Definition at line 72 of file cgdi_device_driver.h.

◆ m_Height

int CGdiDeviceDriver::m_Height
protected

Definition at line 75 of file cgdi_device_driver.h.

Referenced by CGdiDeviceDriver(), DrawLine(), and GetDeviceCaps().

◆ m_nBitsPerPixel

int CGdiDeviceDriver::m_nBitsPerPixel
protected

Definition at line 76 of file cgdi_device_driver.h.

Referenced by CGdiDeviceDriver(), GDI_StretchBitMask(), and GetDeviceCaps().

◆ m_RenderCaps

int CGdiDeviceDriver::m_RenderCaps
protected

◆ m_Width

int CGdiDeviceDriver::m_Width
protected

Definition at line 74 of file cgdi_device_driver.h.

Referenced by CGdiDeviceDriver(), DrawLine(), and GetDeviceCaps().


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