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

#include <cgdi_display_driver.h>

Inheritance diagram for CGdiDisplayDriver:
Collaboration diagram for CGdiDisplayDriver:

Public Member Functions

 CGdiDisplayDriver (HDC hDC)
 ~CGdiDisplayDriver () override
Public Member Functions inherited from RenderDeviceDriverIface
virtual ~RenderDeviceDriverIface ()
virtual RetainPtr< const CFX_DIBitmapGetBackDrop () const
virtual bool ContinueDIBits (CFX_AggImageRenderer *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

Private Member Functions

int GetDeviceCaps (int caps_id) const override
bool GetDIBits (RetainPtr< CFX_DIBitmap > bitmap, int left, int top) 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

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 22 of file cgdi_display_driver.h.

Constructor & Destructor Documentation

◆ CGdiDisplayDriver()

CGdiDisplayDriver::CGdiDisplayDriver ( HDC hDC)
explicit

Definition at line 21 of file cgdi_display_driver.cpp.

References CFX_GEModule::Get(), CFX_GEModule::GetPlatform(), kDisplay, and CGdiDeviceDriver::m_RenderCaps.

Here is the call graph for this function:

◆ ~CGdiDisplayDriver()

CGdiDisplayDriver::~CGdiDisplayDriver ( )
overridedefault

Member Function Documentation

◆ GetDeviceCaps()

int CGdiDisplayDriver::GetDeviceCaps ( int caps_id) const
overrideprivatevirtual

Reimplemented from CGdiDeviceDriver.

Definition at line 32 of file cgdi_display_driver.cpp.

References CGdiDeviceDriver::GetDeviceCaps().

Here is the call graph for this function:

◆ GetDIBits()

bool CGdiDisplayDriver::GetDIBits ( RetainPtr< CFX_DIBitmap > bitmap,
int left,
int top ) const
overrideprivatevirtual

Reimplemented from RenderDeviceDriverIface.

Definition at line 38 of file cgdi_display_driver.cpp.

References kBgr.

Referenced by SetDIBits(), and StretchDIBits().

Here is the caller graph for this function:

◆ SetDIBits()

bool CGdiDisplayDriver::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 79 of file cgdi_display_driver.cpp.

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

Referenced by SetDIBits(), and StretchDIBits().

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

◆ StartDIBits()

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

Implements RenderDeviceDriverIface.

Definition at line 217 of file cgdi_display_driver.cpp.

◆ StretchDIBits()

bool CGdiDisplayDriver::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 154 of file cgdi_display_driver.cpp.

References FX_RECT::FX_RECT(), FXDIB_ResampleOptions::FXDIB_ResampleOptions(), FX_RECT::bottom, CGdiDeviceDriver::GDI_StretchDIBits(), CFX_GEModule::Get(), GetDIBits(), CFX_GEModule::GetPlatform(), FXDIB_ResampleOptions::HasAnyOptions(), FX_RECT::Height(), FX_RECT::Intersect(), kBgrx, kNormal, FX_RECT::left, FX_RECT::Offset(), FX_RECT::right, SetDIBits(), FX_RECT::top, and FX_RECT::Width().

Referenced by SetDIBits().

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: