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_display_driver.h>
Public Member Functions | |
CGdiDisplayDriver (HDC hDC) | |
~CGdiDisplayDriver () override | |
Public Member Functions inherited from RenderDeviceDriverIface | |
virtual | ~RenderDeviceDriverIface () |
virtual RetainPtr< CFX_DIBitmap > | GetBackDrop () |
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) |
Private Member Functions | |
int | GetDeviceCaps (int caps_id) const override |
bool | GetDIBits (const RetainPtr< CFX_DIBitmap > &pBitmap, int left, int top) 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 |
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_RECT > | m_BaseClipBox |
Definition at line 22 of file cgdi_display_driver.h.
|
explicit |
Definition at line 20 of file cgdi_display_driver.cpp.
References CFX_GEModule::Get(), CFX_GEModule::GetPlatform(), kDisplay, and CGdiDeviceDriver::m_RenderCaps.
|
overridedefault |
|
overrideprivatevirtual |
Reimplemented from CGdiDeviceDriver.
Definition at line 31 of file cgdi_display_driver.cpp.
References CGdiDeviceDriver::GetDeviceCaps().
|
overrideprivatevirtual |
Reimplemented from RenderDeviceDriverIface.
Definition at line 37 of file cgdi_display_driver.cpp.
References kRgb.
Referenced by SetDIBits(), and StretchDIBits().
|
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(), kNormal, kRgb, kRgb32, FX_RECT::left, SetDIBits(), StretchDIBits(), FX_RECT::top, and FX_RECT::Width().
Referenced by SetDIBits(), and StretchDIBits().
|
overrideprivatevirtual |
Implements RenderDeviceDriverIface.
Definition at line 216 of file cgdi_display_driver.cpp.
|
overrideprivatevirtual |
Implements RenderDeviceDriverIface.
Definition at line 153 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(), kNormal, kRgb32, FX_RECT::left, FX_RECT::Offset(), FX_RECT::right, SetDIBits(), FX_RECT::top, and FX_RECT::Width().
Referenced by SetDIBits().