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::CFDE_TextOut Class Reference

#include <cfde_textout.h>

Collaboration diagram for pdfium::CFDE_TextOut:

Public Member Functions

 CFDE_TextOut ()
 ~CFDE_TextOut ()
void SetFont (RetainPtr< CFGAS_GEFont > pFont)
void SetFontSize (float fFontSize)
void SetTextColor (FX_ARGB color)
void SetStyles (const FDE_TextStyle &dwStyles)
void SetAlignment (FDE_TextAlignment iAlignment)
void SetLineSpace (float fLineSpace)
void SetMatrix (const CFX_Matrix &matrix)
void SetLineBreakTolerance (float fTolerance)
void CalcLogicSize (WideStringView str, CFX_SizeF *pSize)
void CalcLogicSize (WideStringView str, CFX_RectF *pRect)
void DrawLogicText (CFX_RenderDevice *device, const WideString &str, const CFX_RectF &rect)
int32_t GetTotalLines () const

Static Public Member Functions

static bool DrawString (CFX_RenderDevice *device, FX_ARGB color, const RetainPtr< CFGAS_GEFont > &pFont, span< TextCharPos > pCharPos, float fFontSize, const CFX_Matrix &matrix)

Detailed Description

Definition at line 29 of file cfde_textout.h.

Constructor & Destructor Documentation

◆ CFDE_TextOut()

pdfium::CFDE_TextOut::CFDE_TextOut ( )

Definition at line 130 of file cfde_textout.cpp.

References CFDE_TextOut().

Referenced by CFDE_TextOut().

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

◆ ~CFDE_TextOut()

pdfium::CFDE_TextOut::~CFDE_TextOut ( )
default

Member Function Documentation

◆ CalcLogicSize() [1/2]

void pdfium::CFDE_TextOut::CalcLogicSize ( WideStringView str,
CFX_RectF * pRect )

Definition at line 191 of file cfde_textout.cpp.

References CFX_BreakTypeNoneOrPiece(), CFX_RectF::Height(), CFX_RectF::height, CFGAS_Char::kNone, pdfium::FDE_TextStyle::last_line_height_, CFX_RectF::left, CFX_RectF::right(), pdfium::FDE_TextStyle::single_line_, CFX_RectF::top, CFX_RectF::Width(), and CFX_RectF::width.

Here is the call graph for this function:

◆ CalcLogicSize() [2/2]

void pdfium::CFDE_TextOut::CalcLogicSize ( WideStringView str,
CFX_SizeF * pSize )

Definition at line 185 of file cfde_textout.cpp.

◆ DrawLogicText()

void pdfium::CFDE_TextOut::DrawLogicText ( CFX_RenderDevice * device,
const WideString & str,
const CFX_RectF & rect )

Definition at line 272 of file cfde_textout.cpp.

References CFX_RectF::CFX_RectF(), CFX_RectF::GetOuterRect(), CFX_RectF::Height(), CFX_RectF::height, CFX_RenderDevice::RestoreState(), CFX_RenderDevice::SaveState(), CFX_RenderDevice::SetClip_Rect(), CFX_Matrix::TransformRect(), CFX_RectF::Width(), and CFX_RectF::width.

Here is the call graph for this function:

◆ DrawString()

bool pdfium::CFDE_TextOut::DrawString ( CFX_RenderDevice * device,
FX_ARGB color,
const RetainPtr< CFGAS_GEFont > & pFont,
span< TextCharPos > pCharPos,
float fFontSize,
const CFX_Matrix & matrix )
static

Definition at line 48 of file cfde_textout.cpp.

References CFX_TextRenderOptions::CFX_TextRenderOptions(), and CFX_TextRenderOptions::kLcd.

Here is the call graph for this function:

◆ GetTotalLines()

int32_t pdfium::CFDE_TextOut::GetTotalLines ( ) const
inline

Definition at line 55 of file cfde_textout.h.

◆ SetAlignment()

◆ SetFont()

void pdfium::CFDE_TextOut::SetFont ( RetainPtr< CFGAS_GEFont > pFont)

Definition at line 135 of file cfde_textout.cpp.

◆ SetFontSize()

void pdfium::CFDE_TextOut::SetFontSize ( float fFontSize)

Definition at line 141 of file cfde_textout.cpp.

◆ SetLineBreakTolerance()

void pdfium::CFDE_TextOut::SetLineBreakTolerance ( float fTolerance)

Definition at line 180 of file cfde_textout.cpp.

◆ SetLineSpace()

void pdfium::CFDE_TextOut::SetLineSpace ( float fLineSpace)

Definition at line 175 of file cfde_textout.cpp.

◆ SetMatrix()

void pdfium::CFDE_TextOut::SetMatrix ( const CFX_Matrix & matrix)
inline

Definition at line 47 of file cfde_textout.h.

References CFX_Matrix::operator=().

Here is the call graph for this function:

◆ SetStyles()

void pdfium::CFDE_TextOut::SetStyles ( const FDE_TextStyle & dwStyles)

Definition at line 147 of file cfde_textout.cpp.

◆ SetTextColor()

void pdfium::CFDE_TextOut::SetTextColor ( FX_ARGB color)
inline

Definition at line 43 of file cfde_textout.h.


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