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
CFGAS_TxtBreak Class Referencefinal

#include <cfgas_txtbreak.h>

Inheritance diagram for CFGAS_TxtBreak:
Collaboration diagram for CFGAS_TxtBreak:

Classes

class  Engine
struct  Run

Public Member Functions

 CFGAS_TxtBreak ()
 ~CFGAS_TxtBreak () override
void SetLineWidth (float fLineWidth)
void SetAlignment (int32_t iAlignment)
void SetCombWidth (float fCombWidth)
CFGAS_Char::BreakType EndBreak (CFGAS_Char::BreakType dwStatus)
size_t GetDisplayPos (const Run &run, pdfium::span< TextCharPos > pCharPos) const
std::vector< CFX_RectFGetCharRects (const Run &run) const
CFGAS_Char::BreakType AppendChar (wchar_t wch)
Public Member Functions inherited from CFGAS_Break
virtual ~CFGAS_Break ()
void Reset ()
void SetLayoutStyles (Mask< LayoutStyle > dwLayoutStyles)
Mask< LayoutStyleGetLayoutStyles () const
void SetFont (RetainPtr< CFGAS_GEFont > pFont)
void SetFontSize (float fFontSize)
void SetTabWidth (float fTabWidth)
int32_t GetTabWidth () const
void SetHorizontalScale (int32_t iScale)
void SetVerticalScale (int32_t iScale)
void SetLineBreakTolerance (float fTolerance)
void SetLineBoundary (float fLineStart, float fLineEnd)
void SetCharSpace (float fCharSpace)
void SetParagraphBreakChar (wchar_t wch)
int32_t CountBreakPieces () const
const CFGAS_BreakPieceGetBreakPieceUnstable (int32_t index) const
void ClearBreakPieces ()
CFGAS_CharGetLastChar (int32_t index, bool bOmitChar, bool bRichText) const
const CFGAS_BreakLineGetCurrentLineForTesting () const

Additional Inherited Members

Public Types inherited from CFGAS_Break
enum class  LayoutStyle : uint8_t {
  kNone = 0 , kPagination = 1 << 0 , kExpandTab = 1 << 1 , kSingleLine = 1 << 2 ,
  kCombText = 1 << 3
}
Protected Member Functions inherited from CFGAS_Break
 CFGAS_Break (Mask< LayoutStyle > dwLayoutStyles)
void SetBreakStatus ()
bool HasLine () const
bool IsGreaterThanLineWidth (int32_t width) const
FX_CHARTYPE GetUnifiedCharType (FX_CHARTYPE dwType) const
Protected Attributes inherited from CFGAS_Break
FX_CHARTYPE m_eCharType = FX_CHARTYPE::kUnknown
bool m_bSingleLine = false
bool m_bCombText = false
Mask< LayoutStylem_dwLayoutStyles = LayoutStyle::kNone
uint32_t m_dwIdentity = 0
int32_t m_iLineStart = 0
int32_t m_iLineWidth = 2000000
wchar_t m_wParagraphBreakChar = L'\n'
int32_t m_iFontSize = 240
int32_t m_iTabWidth = 720000
int32_t m_iHorizontalScale = 100
int32_t m_iVerticalScale = 100
int32_t m_iTolerance = 0
int32_t m_iCharSpace = 0
RetainPtr< CFGAS_GEFontm_pFont
int8_t m_iReadyLineIndex = -1
std::array< CFGAS_BreakLine, 2 > m_Lines
UnownedPtr< CFGAS_BreakLinem_pCurLine
Static Protected Attributes inherited from CFGAS_Break
static const int kMinimumTabWidth = 160000
static const float kConversionFactor = 20000.0f

Detailed Description

Definition at line 38 of file cfgas_txtbreak.h.

Constructor & Destructor Documentation

◆ CFGAS_TxtBreak()

CFGAS_TxtBreak::CFGAS_TxtBreak ( )

Definition at line 42 of file cfgas_txtbreak.cpp.

References CFGAS_Break::kNone.

◆ ~CFGAS_TxtBreak()

CFGAS_TxtBreak::~CFGAS_TxtBreak ( )
overridedefault

Member Function Documentation

◆ AppendChar()

CFGAS_Char::BreakType CFGAS_TxtBreak::AppendChar ( wchar_t wch)

Definition at line 216 of file cfgas_txtbreak.cpp.

References EndBreak(), CFGAS_Char::kLine, CFGAS_Char::kNone, CFGAS_Char::kParagraph, CFGAS_Char::m_dwCharStyles, and CFGAS_Break::m_wParagraphBreakChar.

Here is the call graph for this function:

◆ EndBreak()

CFGAS_Char::BreakType CFGAS_TxtBreak::EndBreak ( CFGAS_Char::BreakType dwStatus)

Definition at line 466 of file cfgas_txtbreak.cpp.

References CFX_TxtLineAlignment_Right, CFGAS_Break::GetLastChar(), CFGAS_Break::HasLine(), CFGAS_Char::kNone, and CFGAS_Char::kPiece.

Referenced by AppendChar().

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

◆ GetCharRects()

std::vector< CFX_RectF > CFGAS_TxtBreak::GetCharRects ( const Run & run) const

Definition at line 882 of file cfgas_txtbreak.cpp.

References CFGAS_TxtBreak::Run::dwCharStyles, CFGAS_TxtBreak::Run::fFontSize, CFGAS_TxtBreak::Run::iLength, CFGAS_TxtBreak::Run::iStart, CFGAS_Break::kConversionFactor, pdfium::unicode::kLineSeparator, pdfium::unicode::kParagraphSeparator, CFGAS_Break::kSingleLine, CFX_RectF::left, CFX_RectF::right(), and CFX_RectF::width.

Here is the call graph for this function:

◆ GetDisplayPos()

◆ SetAlignment()

void CFGAS_TxtBreak::SetAlignment ( int32_t iAlignment)

Definition at line 51 of file cfgas_txtbreak.cpp.

◆ SetCombWidth()

void CFGAS_TxtBreak::SetCombWidth ( float fCombWidth)

Definition at line 57 of file cfgas_txtbreak.cpp.

References FXSYS_roundf(), and CFGAS_Break::kConversionFactor.

Here is the call graph for this function:

◆ SetLineWidth()

void CFGAS_TxtBreak::SetLineWidth ( float fLineWidth)

Definition at line 46 of file cfgas_txtbreak.cpp.

References FXSYS_roundf(), CFGAS_Break::kConversionFactor, and CFGAS_Break::m_iLineWidth.

Here is the call graph for this function:

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