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
CPDF_Type3Char Class Reference

#include <cpdf_type3char.h>

+ Collaboration diagram for CPDF_Type3Char:

Public Member Functions

 CPDF_Type3Char ()
 
 ~CPDF_Type3Char ()
 
bool LoadBitmapFromSoleImageOfForm ()
 
void InitializeFromStreamData (bool bColored, pdfium::span< const float > pData)
 
void Transform (CPDF_Font::FormIface *pForm, const CFX_Matrix &matrix)
 
void WillBeDestroyed ()
 
RetainPtr< CFX_DIBitmapGetBitmap ()
 
bool colored () const
 
int width () const
 
const CFX_Matrixmatrix () const
 
const FX_RECTbbox () const
 
const CPDF_Font::FormIfaceform () const
 
void SetForm (std::unique_ptr< CPDF_Font::FormIface > pForm)
 

Static Public Member Functions

static float TextUnitToGlyphUnit (float fTextUnit)
 
static void TextUnitRectToGlyphUnitRect (CFX_FloatRect *pRect)
 

Detailed Description

Definition at line 21 of file cpdf_type3char.h.

Constructor & Destructor Documentation

◆ CPDF_Type3Char()

CPDF_Type3Char::CPDF_Type3Char ( )
default

◆ ~CPDF_Type3Char()

CPDF_Type3Char::~CPDF_Type3Char ( )
default

Member Function Documentation

◆ bbox()

const FX_RECT & CPDF_Type3Char::bbox ( ) const
inline

Definition at line 39 of file cpdf_type3char.h.

Referenced by CPDF_Type3Font::GetCharBBox().

+ Here is the caller graph for this function:

◆ colored()

bool CPDF_Type3Char::colored ( ) const
inline

Definition at line 36 of file cpdf_type3char.h.

◆ form()

const CPDF_Font::FormIface * CPDF_Type3Char::form ( ) const
inline

Definition at line 41 of file cpdf_type3char.h.

◆ GetBitmap()

RetainPtr< CFX_DIBitmap > CPDF_Type3Char::GetBitmap ( )

Definition at line 85 of file cpdf_type3char.cpp.

◆ InitializeFromStreamData()

void CPDF_Type3Char::InitializeFromStreamData ( bool bColored,
pdfium::span< const float > pData )

Definition at line 51 of file cpdf_type3char.cpp.

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

+ Here is the call graph for this function:

◆ LoadBitmapFromSoleImageOfForm()

bool CPDF_Type3Char::LoadBitmapFromSoleImageOfForm ( )

Definition at line 35 of file cpdf_type3char.cpp.

◆ matrix()

const CFX_Matrix & CPDF_Type3Char::matrix ( ) const
inline

Definition at line 38 of file cpdf_type3char.h.

◆ SetForm()

void CPDF_Type3Char::SetForm ( std::unique_ptr< CPDF_Font::FormIface > pForm)

Definition at line 81 of file cpdf_type3char.cpp.

◆ TextUnitRectToGlyphUnitRect()

void CPDF_Type3Char::TextUnitRectToGlyphUnitRect ( CFX_FloatRect * pRect)
static

Definition at line 31 of file cpdf_type3char.cpp.

References CFX_FloatRect::Scale().

Referenced by CPDF_Type3Font::Load(), and Transform().

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

◆ TextUnitToGlyphUnit()

float CPDF_Type3Char::TextUnitToGlyphUnit ( float fTextUnit)
static

Definition at line 26 of file cpdf_type3char.cpp.

Referenced by InitializeFromStreamData(), and CPDF_Type3Font::Load().

+ Here is the caller graph for this function:

◆ Transform()

void CPDF_Type3Char::Transform ( CPDF_Font::FormIface * pForm,
const CFX_Matrix & matrix )

Definition at line 66 of file cpdf_type3char.cpp.

References CFX_FloatRect::CFX_FloatRect(), FX_RECT::bottom, CPDF_Font::FormIface::CalcBoundingBox(), CFX_Matrix::GetXUnit(), FX_RECT::left, CFX_FloatRect::operator=(), FX_RECT::operator=(), FX_RECT::right, TextUnitRectToGlyphUnitRect(), FX_RECT::top, CFX_FloatRect::ToRoundedFxRect(), and CFX_Matrix::TransformRect().

+ Here is the call graph for this function:

◆ width()

int CPDF_Type3Char::width ( ) const
inline

Definition at line 37 of file cpdf_type3char.h.

Referenced by CPDF_Type3Font::GetCharWidthF().

+ Here is the caller graph for this function:

◆ WillBeDestroyed()

void CPDF_Type3Char::WillBeDestroyed ( )

Definition at line 61 of file cpdf_type3char.cpp.


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