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

#include <cfde_textout.h>

+ Collaboration diagram for 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, pdfium::span< TextCharPos > pCharPos, float fFontSize, const CFX_Matrix &matrix)
 

Detailed Description

Definition at line 27 of file cfde_textout.h.

Constructor & Destructor Documentation

◆ CFDE_TextOut()

CFDE_TextOut::CFDE_TextOut ( )

Definition at line 132 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()

CFDE_TextOut::~CFDE_TextOut ( )
default

Member Function Documentation

◆ CalcLogicSize() [1/2]

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

Definition at line 193 of file cfde_textout.cpp.

References CFX_BreakTypeNoneOrPiece(), CFX_RectF::Height(), CFX_RectF::height, CFGAS_Char::kNone, FDE_TextStyle::last_line_height_, CFX_RectF::left, CFX_RectF::right(), 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 CFDE_TextOut::CalcLogicSize ( WideStringView str,
CFX_SizeF * pSize )

Definition at line 187 of file cfde_textout.cpp.

◆ DrawLogicText()

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

Definition at line 274 of file cfde_textout.cpp.

References CFX_RectF::CFX_RectF(), CFX_RectF::GetOuterRect(), CFX_RectF::Height(), CFX_RectF::height, fxcrt::WideString::IsEmpty(), 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 CFDE_TextOut::DrawString ( CFX_RenderDevice * device,
FX_ARGB color,
const RetainPtr< CFGAS_GEFont > & pFont,
pdfium::span< TextCharPos > pCharPos,
float fFontSize,
const CFX_Matrix & matrix )
static

Definition at line 45 of file cfde_textout.cpp.

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

+ Here is the call graph for this function:

◆ GetTotalLines()

int32_t CFDE_TextOut::GetTotalLines ( ) const
inline

Definition at line 53 of file cfde_textout.h.

◆ SetAlignment()

◆ SetFont()

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

Definition at line 137 of file cfde_textout.cpp.

◆ SetFontSize()

void CFDE_TextOut::SetFontSize ( float fFontSize)

Definition at line 143 of file cfde_textout.cpp.

◆ SetLineBreakTolerance()

void CFDE_TextOut::SetLineBreakTolerance ( float fTolerance)

Definition at line 182 of file cfde_textout.cpp.

◆ SetLineSpace()

void CFDE_TextOut::SetLineSpace ( float fLineSpace)

Definition at line 177 of file cfde_textout.cpp.

◆ SetMatrix()

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

Definition at line 45 of file cfde_textout.h.

References CFX_Matrix::operator=().

+ Here is the call graph for this function:

◆ SetStyles()

void CFDE_TextOut::SetStyles ( const FDE_TextStyle & dwStyles)

Definition at line 149 of file cfde_textout.cpp.

◆ SetTextColor()

void CFDE_TextOut::SetTextColor ( FX_ARGB color)
inline

Definition at line 41 of file cfde_textout.h.


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