Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cgdi_device_driver.h>
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_RECT > | m_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_DIBitmap > | GetBackDrop () |
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) |
Definition at line 18 of file cgdi_device_driver.h.
|
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().
|
overrideprotecteddefault |
|
overrideprotectedvirtual |
Reimplemented from RenderDeviceDriverIface.
Definition at line 748 of file cgdi_device_driver.cpp.
References kNormal.
Referenced by DrawPath().
|
protected |
Definition at line 551 of file cgdi_device_driver.cpp.
References m_bMetafileDCType, m_Height, and m_Width.
Referenced by DrawPath().
|
overrideprotectedvirtual |
Implements RenderDeviceDriverIface.
Definition at line 584 of file cgdi_device_driver.cpp.
References FX_RECT::bottom, DrawCosmeticLine(), DrawLine(), CFX_FillRenderOptions::fill_type, CFX_FillRenderOptions::full_cover, CFX_GEModule::Get(), CFX_Path::GetBoundingBox(), CFX_FloatRect::GetInnerRect(), CFX_GEModule::GetPlatform(), FX_RECT::Height(), CFX_Path::IsRect(), CFX_FillRenderOptions::kNoFill, kNormal, kPrinter, FX_RECT::left, m_DeviceType, CFX_GraphStateData::m_LineWidth, CFX_FloatRect::operator=(), FX_RECT::right, CFX_FillRenderOptions::text_mode, FX_RECT::top, CFX_Matrix::Transform(), CFX_Matrix::TransformRect(), FX_RECT::Width(), and CFX_Matrix::WillScale().
|
overrideprotectedvirtual |
Reimplemented from RenderDeviceDriverIface.
Definition at line 687 of file cgdi_device_driver.cpp.
References kNormal.
|
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().
|
protected |
Definition at line 469 of file cgdi_device_driver.cpp.
References m_nBitsPerPixel.
Referenced by CGdiPrinterDriver::StretchDIBits().
|
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().
|
overrideprotectedvirtual |
Implements RenderDeviceDriverIface.
Definition at line 534 of file cgdi_device_driver.cpp.
|
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().
|
overrideprotectedvirtual |
Implements RenderDeviceDriverIface.
Definition at line 362 of file cgdi_device_driver.cpp.
References m_DeviceType.
|
overrideprotectedvirtual |
Implements RenderDeviceDriverIface.
Definition at line 538 of file cgdi_device_driver.cpp.
|
overrideprotectedvirtual |
Implements RenderDeviceDriverIface.
Definition at line 544 of file cgdi_device_driver.cpp.
|
overrideprotectedvirtual |
Implements RenderDeviceDriverIface.
Definition at line 385 of file cgdi_device_driver.cpp.
|
overrideprotectedvirtual |
Implements RenderDeviceDriverIface.
Definition at line 381 of file cgdi_device_driver.cpp.
Reimplemented from RenderDeviceDriverIface.
Definition at line 709 of file cgdi_device_driver.cpp.
|
overrideprotectedvirtual |
Implements RenderDeviceDriverIface.
Definition at line 713 of file cgdi_device_driver.cpp.
|
overrideprotectedvirtual |
Reimplemented from RenderDeviceDriverIface.
Definition at line 733 of file cgdi_device_driver.cpp.
|
protected |
Definition at line 79 of file cgdi_device_driver.h.
|
protected |
Definition at line 73 of file cgdi_device_driver.h.
Referenced by DrawLine().
|
protected |
Definition at line 77 of file cgdi_device_driver.h.
Referenced by CGdiDeviceDriver(), DrawPath(), GDI_SetDIBits(), GDI_StretchDIBits(), and GetDeviceType().
|
protected |
Definition at line 72 of file cgdi_device_driver.h.
|
protected |
Definition at line 75 of file cgdi_device_driver.h.
Referenced by CGdiDeviceDriver(), DrawLine(), and GetDeviceCaps().
|
protected |
Definition at line 76 of file cgdi_device_driver.h.
Referenced by CGdiDeviceDriver(), GDI_StretchBitMask(), and GetDeviceCaps().
|
protected |
Definition at line 78 of file cgdi_device_driver.h.
Referenced by CGdiDeviceDriver(), CGdiDisplayDriver::CGdiDisplayDriver(), and GetDeviceCaps().
|
protected |
Definition at line 74 of file cgdi_device_driver.h.
Referenced by CGdiDeviceDriver(), DrawLine(), and GetDeviceCaps().