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

#include <cfx_defaultrenderdevice.h>

Inheritance diagram for CFX_DefaultRenderDevice:
Collaboration diagram for CFX_DefaultRenderDevice:

Public Member Functions

 CFX_DefaultRenderDevice ()
 ~CFX_DefaultRenderDevice () override
bool Attach (RetainPtr< CFX_DIBitmap > pBitmap)
bool AttachWithRgbByteOrder (RetainPtr< CFX_DIBitmap > pBitmap, bool bRgbByteOrder)
bool AttachWithBackdropAndGroupKnockout (RetainPtr< CFX_DIBitmap > pBitmap, RetainPtr< CFX_DIBitmap > pBackdropBitmap, bool bGroupKnockout)
bool Create (int width, int height, FXDIB_Format format)
bool CreateWithBackdrop (int width, int height, FXDIB_Format format, RetainPtr< CFX_DIBitmap > backdrop)
void Clear (uint32_t color)
Public Member Functions inherited from CFX_RenderDevice
virtual ~CFX_RenderDevice ()
void SaveState ()
void RestoreState (bool bKeepSaved)
int GetWidth () const
int GetHeight () const
DeviceType GetDeviceType () const
int GetRenderCaps () const
int GetDeviceCaps (int id) const
RetainPtr< CFX_DIBitmapGetBitmap ()
RetainPtr< const CFX_DIBitmapGetBitmap () const
bool CreateCompatibleBitmap (const RetainPtr< CFX_DIBitmap > &pDIB, int width, int height) const
const FX_RECTGetClipBox () const
void SetBaseClip (const FX_RECT &rect)
bool SetClip_PathFill (const CFX_Path &path, const CFX_Matrix *pObject2Device, const CFX_FillRenderOptions &fill_options)
bool SetClip_PathStroke (const CFX_Path &path, const CFX_Matrix *pObject2Device, const CFX_GraphStateData *pGraphState)
bool SetClip_Rect (const FX_RECT &pRect)
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)
bool FillRect (const FX_RECT &rect, uint32_t color)
RetainPtr< const CFX_DIBitmapGetBackDrop () const
bool GetDIBits (RetainPtr< CFX_DIBitmap > bitmap, int left, int top) const
bool SetDIBits (RetainPtr< const CFX_DIBBase > bitmap, int left, int top)
bool SetDIBitsWithBlend (RetainPtr< const CFX_DIBBase > bitmap, int left, int top, BlendMode blend_mode)
bool StretchDIBits (RetainPtr< const CFX_DIBBase > bitmap, int left, int top, int dest_width, int dest_height)
bool StretchDIBitsWithFlagsAndBlend (RetainPtr< const CFX_DIBBase > bitmap, int left, int top, int dest_width, int dest_height, const FXDIB_ResampleOptions &options, BlendMode blend_mode)
bool SetBitMask (RetainPtr< const CFX_DIBBase > bitmap, int left, int top, uint32_t argb)
bool StretchBitMask (RetainPtr< CFX_DIBBase > bitmap, int left, int top, int dest_width, int dest_height, uint32_t color)
bool StretchBitMaskWithFlags (RetainPtr< CFX_DIBBase > bitmap, int left, int top, int dest_width, int dest_height, uint32_t argb, const FXDIB_ResampleOptions &options)
RenderDeviceDriverIface::StartResult StartDIBits (RetainPtr< const CFX_DIBBase > bitmap, float alpha, uint32_t argb, const CFX_Matrix &matrix, const FXDIB_ResampleOptions &options)
RenderDeviceDriverIface::StartResult StartDIBitsWithBlend (RetainPtr< const CFX_DIBBase > bitmap, float alpha, uint32_t argb, const CFX_Matrix &matrix, const FXDIB_ResampleOptions &options, BlendMode blend_mode)
bool ContinueDIBits (CFX_AggImageRenderer *handle, PauseIndicatorIface *pPause)
bool DrawNormalText (pdfium::span< const TextCharPos > pCharPos, CFX_Font *pFont, float font_size, const CFX_Matrix &mtText2Device, uint32_t fill_color, const CFX_TextRenderOptions &options)
bool DrawTextPath (pdfium::span< const TextCharPos > pCharPos, CFX_Font *pFont, float font_size, const CFX_Matrix &mtText2User, const CFX_Matrix *pUser2Device, const CFX_GraphStateData *pGraphState, uint32_t fill_color, uint32_t stroke_color, CFX_Path *pClippingPath, const CFX_FillRenderOptions &fill_options)
void DrawFillRect (const CFX_Matrix *pUser2Device, const CFX_FloatRect &rect, const CFX_Color &color, int32_t nTransparency)
void DrawFillRect (const CFX_Matrix *pUser2Device, const CFX_FloatRect &rect, const FX_COLORREF &color)
void DrawStrokeRect (const CFX_Matrix &mtUser2Device, const CFX_FloatRect &rect, const FX_COLORREF &color, float fWidth)
void DrawStrokeLine (const CFX_Matrix *pUser2Device, const CFX_PointF &ptMoveTo, const CFX_PointF &ptLineTo, const FX_COLORREF &color, float fWidth)
void DrawBorder (const CFX_Matrix *pUser2Device, const CFX_FloatRect &rect, float fWidth, const CFX_Color &color, const CFX_Color &crLeftTop, const CFX_Color &crRightBottom, BorderStyle nStyle, int32_t nTransparency)
void DrawFillArea (const CFX_Matrix &mtUser2Device, const std::vector< CFX_PointF > &points, const FX_COLORREF &color)
void DrawShadow (const CFX_Matrix &mtUser2Device, const CFX_FloatRect &rect, int32_t nTransparency, int32_t nStartGray, int32_t nEndGray)
bool MultiplyAlpha (float alpha)
bool MultiplyAlphaMask (RetainPtr< const CFX_DIBitmap > mask)

Static Public Member Functions

static bool UseSkiaRenderer ()
Static Public Member Functions inherited from CFX_RenderDevice
static CFX_Matrix GetFlipMatrix (float width, float height, float left, float top)

Additional Inherited Members

Protected Member Functions inherited from CFX_RenderDevice
 CFX_RenderDevice ()
void SetBitmap (RetainPtr< CFX_DIBitmap > bitmap)
void SetDeviceDriver (std::unique_ptr< RenderDeviceDriverIface > pDriver)
RenderDeviceDriverIfaceGetDeviceDriver () const

Detailed Description

Definition at line 18 of file cfx_defaultrenderdevice.h.

Constructor & Destructor Documentation

◆ CFX_DefaultRenderDevice()

CFX_DefaultRenderDevice::CFX_DefaultRenderDevice ( )
default

◆ ~CFX_DefaultRenderDevice()

CFX_DefaultRenderDevice::~CFX_DefaultRenderDevice ( )
overridedefault

Member Function Documentation

◆ Attach()

bool CFX_DefaultRenderDevice::Attach ( RetainPtr< CFX_DIBitmap > pBitmap)

Definition at line 47 of file cfx_defaultrenderdevice.cpp.

References AttachWithRgbByteOrder().

Referenced by FPDFBitmap_FillRect(), FPDFImageObj_GetRenderedBitmap(), and FPDFTextObj_GetRenderedBitmap().

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

◆ AttachWithBackdropAndGroupKnockout()

bool CFX_DefaultRenderDevice::AttachWithBackdropAndGroupKnockout ( RetainPtr< CFX_DIBitmap > pBitmap,
RetainPtr< CFX_DIBitmap > pBackdropBitmap,
bool bGroupKnockout )

Definition at line 57 of file cfx_defaultrenderdevice.cpp.

◆ AttachWithRgbByteOrder()

bool CFX_DefaultRenderDevice::AttachWithRgbByteOrder ( RetainPtr< CFX_DIBitmap > pBitmap,
bool bRgbByteOrder )

Definition at line 51 of file cfx_defaultrenderdevice.cpp.

Referenced by Attach().

Here is the caller graph for this function:

◆ Clear()

void CFX_DefaultRenderDevice::Clear ( uint32_t color)

Definition at line 99 of file cfx_defaultrenderdevice.cpp.

References pdfium::CFX_AggDeviceDriver::Clear(), and CFX_RenderDevice::GetDeviceDriver().

Here is the call graph for this function:

◆ Create()

bool CFX_DefaultRenderDevice::Create ( int width,
int height,
FXDIB_Format format )
nodiscard

Definition at line 80 of file cfx_defaultrenderdevice.cpp.

References CreateWithBackdrop().

Referenced by TEST(), TEST(), TEST(), TEST(), and TEST().

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

◆ CreateWithBackdrop()

bool CFX_DefaultRenderDevice::CreateWithBackdrop ( int width,
int height,
FXDIB_Format format,
RetainPtr< CFX_DIBitmap > backdrop )
nodiscard

Definition at line 86 of file cfx_defaultrenderdevice.cpp.

Referenced by Create().

Here is the caller graph for this function:

◆ UseSkiaRenderer()


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