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 <fx_agg_driver.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, BlendMode blend_type) override
 
bool FillRectWithBlend (const FX_RECT &rect, uint32_t fill_color, BlendMode blend_type) override
 
bool GetClipBox (FX_RECT *pRect) override
 
bool GetDIBits (const RetainPtr< CFX_DIBitmap > &pBitmap, int left, int top) override
 
RetainPtr< CFX_DIBitmapGetBackDrop () override
 
bool SetDIBits (const RetainPtr< const CFX_DIBBase > &pBitmap, 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
 
bool StartDIBits (RetainPtr< const CFX_DIBBase > bitmap, float alpha, uint32_t argb, const CFX_Matrix &matrix, const FXDIB_ResampleOptions &options, std::unique_ptr< CFX_ImageRenderer > *handle, BlendMode blend_type) override
 
bool ContinueDIBits (CFX_ImageRenderer *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 (const RetainPtr< const CFX_DIBBase > &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, BlendMode blend_type)
 
virtual bool DrawShading (const CPDF_ShadingPattern *pPattern, const CFX_Matrix *pMatrix, const FX_RECT &clip_rect, int alpha, bool bAlphaMode)
 

Detailed Description

Definition at line 33 of file fx_agg_driver.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 966 of file fx_agg_driver.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 981 of file fx_agg_driver.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 1142 of file fx_agg_driver.cpp.

Referenced by CFX_DefaultRenderDevice::Clear().

+ Here is the caller graph for this function:

◆ ContinueDIBits()

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

Reimplemented from RenderDeviceDriverIface.

Definition at line 1380 of file fx_agg_driver.cpp.

◆ DestroyPlatform()

void pdfium::CFX_AggDeviceDriver::DestroyPlatform ( )

Definition at line 988 of file fx_agg_driver.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 990 of file fx_agg_driver.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,
BlendMode blend_type )
overridevirtual

◆ FillRectWithBlend()

bool pdfium::CFX_AggDeviceDriver::FillRectWithBlend ( const FX_RECT & rect,
uint32_t fill_color,
BlendMode blend_type )
overridevirtual

Reimplemented from RenderDeviceDriverIface.

Definition at line 1225 of file fx_agg_driver.cpp.

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

+ Here is the call graph for this function:

◆ GetBackDrop()

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

Reimplemented from RenderDeviceDriverIface.

Definition at line 1304 of file fx_agg_driver.cpp.

◆ GetClipBox()

bool pdfium::CFX_AggDeviceDriver::GetClipBox ( FX_RECT * pRect)
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 1260 of file fx_agg_driver.cpp.

References FX_RECT::bottom, GetDeviceCaps(), FX_RECT::left, FX_RECT::right, and FX_RECT::top.

Referenced by FillRectWithBlend().

+ 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 1005 of file fx_agg_driver.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 1001 of file fx_agg_driver.cpp.

References kDisplay.

◆ GetDIBits()

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

Reimplemented from RenderDeviceDriverIface.

Definition at line 1271 of file fx_agg_driver.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 1129 of file fx_agg_driver.cpp.

◆ InitPlatform()

void pdfium::CFX_AggDeviceDriver::InitPlatform ( )

Definition at line 986 of file fx_agg_driver.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 1133 of file fx_agg_driver.cpp.

◆ MultiplyAlphaMask()

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

Implements RenderDeviceDriverIface.

Definition at line 1137 of file fx_agg_driver.cpp.

◆ RestoreState()

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

Implements RenderDeviceDriverIface.

Definition at line 1039 of file fx_agg_driver.cpp.

◆ SaveState()

void pdfium::CFX_AggDeviceDriver::SaveState ( )
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 1032 of file fx_agg_driver.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 1076 of file fx_agg_driver.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 1109 of file fx_agg_driver.cpp.

References GetDeviceCaps().

+ Here is the call graph for this function:

◆ SetDIBits()

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

Implements RenderDeviceDriverIface.

Definition at line 1308 of file fx_agg_driver.cpp.

Referenced by StretchDIBits().

+ Here is the caller graph for this function:

◆ StartDIBits()

bool pdfium::CFX_AggDeviceDriver::StartDIBits ( RetainPtr< const CFX_DIBBase > bitmap,
float alpha,
uint32_t argb,
const CFX_Matrix & matrix,
const FXDIB_ResampleOptions & options,
std::unique_ptr< CFX_ImageRenderer > * handle,
BlendMode blend_type )
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 1363 of file fx_agg_driver.cpp.

◆ 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 1329 of file fx_agg_driver.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: