Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cfgas_txtbreak.h>
Classes | |
class | Engine |
struct | Run |
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< LayoutStyle > | m_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_GEFont > | m_pFont |
UnownedPtr< CFGAS_BreakLine > | m_pCurLine |
int8_t | m_iReadyLineIndex = -1 |
CFGAS_BreakLine | m_Lines [2] |
Static Protected Attributes inherited from CFGAS_Break | |
static const int | kMinimumTabWidth = 160000 |
static const float | kConversionFactor = 20000.0f |
Definition at line 38 of file cfgas_txtbreak.h.
CFGAS_TxtBreak::CFGAS_TxtBreak | ( | ) |
Definition at line 40 of file cfgas_txtbreak.cpp.
References CFGAS_Break::kNone.
|
overridedefault |
CFGAS_Char::BreakType CFGAS_TxtBreak::AppendChar | ( | wchar_t | wch | ) |
Definition at line 214 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.
CFGAS_Char::BreakType CFGAS_TxtBreak::EndBreak | ( | CFGAS_Char::BreakType | dwStatus | ) |
Definition at line 464 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().
Definition at line 878 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, CFGAS_TxtBreak::Run::pWidths, CFX_RectF::right(), and CFX_RectF::width.
size_t CFGAS_TxtBreak::GetDisplayPos | ( | const Run & | run, |
TextCharPos * | pCharPos ) const |
Definition at line 630 of file cfgas_txtbreak.cpp.
References CFGAS_TxtBreak::Run::bSkipSpace, CFGAS_TxtBreak::Run::dwCharStyles, CFGAS_TxtBreak::Run::fFontSize, FXSYS_roundf(), pdfium::arabic::GetFormChar(), pdfium::unicode::GetMirrorChar(), CFX_RectF::height, CFGAS_TxtBreak::Run::iHorizontalScale, CFGAS_TxtBreak::Run::iLength, CFGAS_TxtBreak::Run::iStart, CFGAS_TxtBreak::Run::iVerticalScale, pdfium::arabic::kArabicLetterHeh, pdfium::arabic::kArabicLetterLam, pdfium::arabic::kArabicLetterSuperscriptAlef, pdfium::arabic::kArabicShadda, CFGAS_Break::kCombText, pdfium::unicode::kZeroWidthNoBreakSpace, CFX_RectF::left, TextCharPos::m_AdjustMatrix, TextCharPos::m_bGlyphAdjust, TextCharPos::m_FontCharWidth, TextCharPos::m_GlyphIndex, CFGAS_TxtBreak::Run::pWidths, CFX_RectF::right(), and CFX_RectF::top.
void CFGAS_TxtBreak::SetAlignment | ( | int32_t | iAlignment | ) |
Definition at line 49 of file cfgas_txtbreak.cpp.
void CFGAS_TxtBreak::SetCombWidth | ( | float | fCombWidth | ) |
Definition at line 55 of file cfgas_txtbreak.cpp.
References FXSYS_roundf(), and CFGAS_Break::kConversionFactor.
void CFGAS_TxtBreak::SetLineWidth | ( | float | fLineWidth | ) |
Definition at line 44 of file cfgas_txtbreak.cpp.
References FXSYS_roundf(), CFGAS_Break::kConversionFactor, and CFGAS_Break::m_iLineWidth.