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
pdfium::CFX_AggDeviceDriver Class Referencefinal

#include <cfx_agg_devicedriver.h>

Inheritance diagram for pdfium::CFX_AggDeviceDriver:
Collaboration diagram for pdfium::CFX_AggDeviceDriver:

Public Member Functions

 CFX_AggDeviceDriver (RetainPtr< CFX_DIBitmap > pBitmap, bool bRgbByteOrder, RetainPtr< CFX_DIBitmap > pBackdropBitmap, bool bGroupKnockout)
 ~CFX_AggDeviceDriver () override
void InitPlatform ()
void DestroyPlatform ()
DeviceType GetDeviceType () const override
int GetDeviceCaps (int caps_id) const override
void SaveState () override
void RestoreState (bool bKeepSaved) 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
FX_RECT GetClipBox () const override
bool GetDIBits (RetainPtr< CFX_DIBitmap > bitmap, int left, int top) const override
RetainPtr< const CFX_DIBitmapGetBackDrop () const override
bool SetDIBits (RetainPtr< const CFX_DIBBase > bitmap, uint32_t argb, const FX_RECT &src_rect, int left, int top, BlendMode blend_type) override
bool StretchDIBits (RetainPtr< const CFX_DIBBase > bitmap, uint32_t argb, 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 argb, const CFX_Matrix &matrix, const FXDIB_ResampleOptions &options, BlendMode blend_type) override
bool ContinueDIBits (CFX_AggImageRenderer *handle, PauseIndicatorIface *pPause) override
bool DrawDeviceText (pdfium::span< const TextCharPos > pCharPos, CFX_Font *pFont, const CFX_Matrix &mtObject2Device, float font_size, uint32_t color, const CFX_TextRenderOptions &options) override
int GetDriverType () const override
bool MultiplyAlpha (float alpha) override
bool MultiplyAlphaMask (RetainPtr< const CFX_DIBitmap > mask) override
void Clear (uint32_t color)
Public Member Functions inherited from RenderDeviceDriverIface
virtual ~RenderDeviceDriverIface ()
virtual void SetBaseClip (const FX_RECT &rect)
virtual bool DrawCosmeticLine (const CFX_PointF &ptMoveTo, const CFX_PointF &ptLineTo, uint32_t color)

Additional Inherited Members

Public Types inherited from RenderDeviceDriverIface
enum class  Result { kFailure , kSuccess }

Detailed Description

Definition at line 33 of file cfx_agg_devicedriver.h.

Constructor & Destructor Documentation

◆ CFX_AggDeviceDriver()

pdfium::CFX_AggDeviceDriver::CFX_AggDeviceDriver ( RetainPtr< CFX_DIBitmap > pBitmap,
bool bRgbByteOrder,
RetainPtr< CFX_DIBitmap > pBackdropBitmap,
bool bGroupKnockout )

Definition at line 927 of file cfx_agg_devicedriver.cpp.

References CFX_AggDeviceDriver(), and InitPlatform().

Referenced by CFX_AggDeviceDriver().

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

◆ ~CFX_AggDeviceDriver()

pdfium::CFX_AggDeviceDriver::~CFX_AggDeviceDriver ( )
override

Definition at line 942 of file cfx_agg_devicedriver.cpp.

References DestroyPlatform().

Here is the call graph for this function:

Member Function Documentation

◆ Clear()

void pdfium::CFX_AggDeviceDriver::Clear ( uint32_t color)

Definition at line 1105 of file cfx_agg_devicedriver.cpp.

Referenced by CFX_DefaultRenderDevice::Clear().

Here is the caller graph for this function:

◆ ContinueDIBits()

bool pdfium::CFX_AggDeviceDriver::ContinueDIBits ( CFX_AggImageRenderer * handle,
PauseIndicatorIface * pPause )
overridevirtual

Reimplemented from RenderDeviceDriverIface.

Definition at line 1331 of file cfx_agg_devicedriver.cpp.

◆ DestroyPlatform()

void pdfium::CFX_AggDeviceDriver::DestroyPlatform ( )

Definition at line 949 of file cfx_agg_devicedriver.cpp.

Referenced by ~CFX_AggDeviceDriver().

Here is the caller graph for this function:

◆ DrawDeviceText()

bool pdfium::CFX_AggDeviceDriver::DrawDeviceText ( pdfium::span< const TextCharPos > pCharPos,
CFX_Font * pFont,
const CFX_Matrix & mtObject2Device,
float font_size,
uint32_t color,
const CFX_TextRenderOptions & options )
overridevirtual

Reimplemented from RenderDeviceDriverIface.

Definition at line 951 of file cfx_agg_devicedriver.cpp.

◆ DrawPath()

bool pdfium::CFX_AggDeviceDriver::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 )
overridevirtual

◆ FillRect()

bool pdfium::CFX_AggDeviceDriver::FillRect ( const FX_RECT & rect,
uint32_t fill_color )
overridevirtual

Reimplemented from RenderDeviceDriverIface.

Definition at line 1185 of file cfx_agg_devicedriver.cpp.

References GetClipBox(), FX_RECT::Intersect(), and FX_RECT::IsEmpty().

Here is the call graph for this function:

◆ GetBackDrop()

RetainPtr< const CFX_DIBitmap > pdfium::CFX_AggDeviceDriver::GetBackDrop ( ) const
overridevirtual

Reimplemented from RenderDeviceDriverIface.

Definition at line 1256 of file cfx_agg_devicedriver.cpp.

◆ GetClipBox()

FX_RECT pdfium::CFX_AggDeviceDriver::GetClipBox ( ) const
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 1216 of file cfx_agg_devicedriver.cpp.

References FX_RECT::FX_RECT(), and GetDeviceCaps().

Referenced by FillRect().

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

◆ GetDeviceCaps()

int pdfium::CFX_AggDeviceDriver::GetDeviceCaps ( int caps_id) const
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 966 of file cfx_agg_devicedriver.cpp.

Referenced by DrawPath(), GetClipBox(), SetClip_PathFill(), and SetClip_PathStroke().

Here is the caller graph for this function:

◆ GetDeviceType()

DeviceType pdfium::CFX_AggDeviceDriver::GetDeviceType ( ) const
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 962 of file cfx_agg_devicedriver.cpp.

References kDisplay.

◆ GetDIBits()

bool pdfium::CFX_AggDeviceDriver::GetDIBits ( RetainPtr< CFX_DIBitmap > bitmap,
int left,
int top ) const
overridevirtual

Reimplemented from RenderDeviceDriverIface.

Definition at line 1224 of file cfx_agg_devicedriver.cpp.

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

Here is the call graph for this function:

◆ GetDriverType()

int pdfium::CFX_AggDeviceDriver::GetDriverType ( ) const
overridevirtual

Reimplemented from RenderDeviceDriverIface.

Definition at line 1092 of file cfx_agg_devicedriver.cpp.

◆ InitPlatform()

void pdfium::CFX_AggDeviceDriver::InitPlatform ( )

Definition at line 947 of file cfx_agg_devicedriver.cpp.

Referenced by CFX_AggDeviceDriver().

Here is the caller graph for this function:

◆ MultiplyAlpha()

bool pdfium::CFX_AggDeviceDriver::MultiplyAlpha ( float alpha)
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 1096 of file cfx_agg_devicedriver.cpp.

◆ MultiplyAlphaMask()

bool pdfium::CFX_AggDeviceDriver::MultiplyAlphaMask ( RetainPtr< const CFX_DIBitmap > mask)
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 1100 of file cfx_agg_devicedriver.cpp.

◆ RestoreState()

void pdfium::CFX_AggDeviceDriver::RestoreState ( bool bKeepSaved)
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 1000 of file cfx_agg_devicedriver.cpp.

◆ SaveState()

void pdfium::CFX_AggDeviceDriver::SaveState ( )
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 993 of file cfx_agg_devicedriver.cpp.

◆ SetClip_PathFill()

bool pdfium::CFX_AggDeviceDriver::SetClip_PathFill ( const CFX_Path & path,
const CFX_Matrix * pObject2Device,
const CFX_FillRenderOptions & fill_options )
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 1039 of file cfx_agg_devicedriver.cpp.

References CFX_FloatRect::CFX_FloatRect(), GetDeviceCaps(), CFX_FloatRect::GetOuterRect(), and CFX_FloatRect::Intersect().

Here is the call graph for this function:

◆ SetClip_PathStroke()

bool pdfium::CFX_AggDeviceDriver::SetClip_PathStroke ( const CFX_Path & path,
const CFX_Matrix * pObject2Device,
const CFX_GraphStateData * pGraphState )
overridevirtual

Reimplemented from RenderDeviceDriverIface.

Definition at line 1072 of file cfx_agg_devicedriver.cpp.

References GetDeviceCaps().

Here is the call graph for this function:

◆ SetDIBits()

bool pdfium::CFX_AggDeviceDriver::SetDIBits ( RetainPtr< const CFX_DIBBase > bitmap,
uint32_t argb,
const FX_RECT & src_rect,
int left,
int top,
BlendMode blend_type )
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 1260 of file cfx_agg_devicedriver.cpp.

Referenced by StretchDIBits().

Here is the caller graph for this function:

◆ StartDIBits()

RenderDeviceDriverIface::StartResult pdfium::CFX_AggDeviceDriver::StartDIBits ( RetainPtr< const CFX_DIBBase > bitmap,
float alpha,
uint32_t argb,
const CFX_Matrix & matrix,
const FXDIB_ResampleOptions & options,
BlendMode blend_type )
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 1315 of file cfx_agg_devicedriver.cpp.

References RenderDeviceDriverIface::kSuccess.

◆ StretchDIBits()

bool pdfium::CFX_AggDeviceDriver::StretchDIBits ( RetainPtr< const CFX_DIBBase > bitmap,
uint32_t argb,
int dest_left,
int dest_top,
int dest_width,
int dest_height,
const FX_RECT * pClipRect,
const FXDIB_ResampleOptions & options,
BlendMode blend_type )
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 1281 of file cfx_agg_devicedriver.cpp.

References FX_RECT::FX_RECT(), CFX_ImageStretcher::Continue(), FX_RECT::Intersect(), FX_RECT::left, FX_RECT::Normalize(), FX_RECT::Offset(), SetDIBits(), CFX_ImageStretcher::Start(), and FX_RECT::top.

Here is the call graph for this function:

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