![]() |
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_break.h>
Classes | |
| struct | TPO |
Public Types | |
| enum class | LayoutStyle : uint8_t { kNone = 0 , kPagination = 1 << 0 , kExpandTab = 1 << 1 , kSingleLine = 1 << 2 , kCombText = 1 << 3 } |
Public Member Functions | |
| virtual | ~CFGAS_Break () |
| void | Reset () |
| void | SetLayoutStyles (Mask< LayoutStyle > dwLayoutStyles) |
| Mask< LayoutStyle > | GetLayoutStyles () 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_BreakPiece * | GetBreakPieceUnstable (int32_t index) const |
| void | ClearBreakPieces () |
| CFGAS_Char * | GetLastChar (int32_t index, bool bOmitChar, bool bRichText) const |
| const CFGAS_BreakLine * | GetCurrentLineForTesting () const |
Protected Member Functions | |
| 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 | |
| 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 |
| int8_t | m_iReadyLineIndex = -1 |
| std::array< CFGAS_BreakLine, 2 > | m_Lines |
| UnownedPtr< CFGAS_BreakLine > | m_pCurLine |
Static Protected Attributes | |
| static const int | kMinimumTabWidth = 160000 |
| static const float | kConversionFactor = 20000.0f |
Definition at line 21 of file cfgas_break.h.
|
strong |
| Enumerator | |
|---|---|
| kNone | |
| kPagination | |
| kExpandTab | |
| kSingleLine | |
| kCombText | |
Definition at line 23 of file cfgas_break.h.
|
virtualdefault |
|
explicitprotected |
Definition at line 20 of file cfgas_break.cpp.
References CFGAS_Break().
Referenced by CFGAS_Break().
| void CFGAS_Break::ClearBreakPieces | ( | ) |
Definition at line 158 of file cfgas_break.cpp.
References m_iReadyLineIndex.
| int32_t CFGAS_Break::CountBreakPieces | ( | ) | const |
Definition at line 143 of file cfgas_break.cpp.
| const CFGAS_BreakPiece * CFGAS_Break::GetBreakPieceUnstable | ( | int32_t | index | ) | const |
Definition at line 149 of file cfgas_break.cpp.
References HasLine().
|
inline |
Definition at line 56 of file cfgas_break.h.
| CFGAS_Char * CFGAS_Break::GetLastChar | ( | int32_t | index, |
| bool | bOmitChar, | ||
| bool | bRichText ) const |
Definition at line 123 of file cfgas_break.cpp.
Referenced by CFGAS_RTFBreak::EndBreak(), and CFGAS_TxtBreak::EndBreak().
|
inline |
Definition at line 36 of file cfgas_break.h.
|
inline |
Definition at line 41 of file cfgas_break.h.
References m_iTabWidth.
|
protected |
Definition at line 87 of file cfgas_break.cpp.
|
inlineprotected |
Definition at line 72 of file cfgas_break.h.
References m_iReadyLineIndex.
Referenced by CFGAS_RTFBreak::EndBreak(), CFGAS_TxtBreak::EndBreak(), and GetBreakPieceUnstable().
|
protected |
Definition at line 81 of file cfgas_break.cpp.
References m_iTolerance.
| void CFGAS_Break::Reset | ( | ) |
Definition at line 25 of file cfgas_break.cpp.
|
protected |
Definition at line 73 of file cfgas_break.cpp.
References CFGAS_Char::kNone, CFGAS_Char::kPiece, m_dwIdentity, and CFGAS_Char::m_dwStatus.
Referenced by CFGAS_RTFBreak::CFGAS_RTFBreak(), SetFont(), SetFontSize(), SetHorizontalScale(), CFGAS_RTFBreak::SetUserData(), and SetVerticalScale().
| void CFGAS_Break::SetCharSpace | ( | float | fCharSpace | ) |
Definition at line 109 of file cfgas_break.cpp.
References FXSYS_roundf(), kConversionFactor, and m_iCharSpace.
| void CFGAS_Break::SetFont | ( | RetainPtr< CFGAS_GEFont > | pFont | ) |
Definition at line 56 of file cfgas_break.cpp.
References SetBreakStatus().
| void CFGAS_Break::SetFontSize | ( | float | fFontSize | ) |
Definition at line 64 of file cfgas_break.cpp.
References FXSYS_roundf(), m_iFontSize, and SetBreakStatus().
| void CFGAS_Break::SetHorizontalScale | ( | int32_t | iScale | ) |
Definition at line 37 of file cfgas_break.cpp.
References m_iHorizontalScale, and SetBreakStatus().
| void CFGAS_Break::SetLayoutStyles | ( | Mask< LayoutStyle > | dwLayoutStyles | ) |
Definition at line 31 of file cfgas_break.cpp.
| void CFGAS_Break::SetLineBoundary | ( | float | fLineStart, |
| float | fLineEnd ) |
Definition at line 113 of file cfgas_break.cpp.
References FXSYS_roundf(), kConversionFactor, m_iLineStart, and m_iLineWidth.
| void CFGAS_Break::SetLineBreakTolerance | ( | float | fTolerance | ) |
Definition at line 105 of file cfgas_break.cpp.
References FXSYS_roundf(), kConversionFactor, and m_iTolerance.
| void CFGAS_Break::SetParagraphBreakChar | ( | wchar_t | wch | ) |
Definition at line 99 of file cfgas_break.cpp.
References m_wParagraphBreakChar.
| void CFGAS_Break::SetTabWidth | ( | float | fTabWidth | ) |
Definition at line 91 of file cfgas_break.cpp.
References FXSYS_roundf(), kConversionFactor, kMinimumTabWidth, and m_iTabWidth.
| void CFGAS_Break::SetVerticalScale | ( | int32_t | iScale | ) |
Definition at line 46 of file cfgas_break.cpp.
References m_iVerticalScale, and SetBreakStatus().
|
staticprotected |
Definition at line 67 of file cfgas_break.h.
Referenced by CFGAS_RTFBreak::AddPositionedTab(), CFGAS_TxtBreak::GetCharRects(), SetCharSpace(), CFGAS_TxtBreak::SetCombWidth(), SetLineBoundary(), SetLineBreakTolerance(), CFGAS_RTFBreak::SetLineStartPos(), CFGAS_TxtBreak::SetLineWidth(), and SetTabWidth().
|
staticprotected |
Definition at line 66 of file cfgas_break.h.
Referenced by SetTabWidth().
|
protected |
Definition at line 78 of file cfgas_break.h.
|
protected |
Definition at line 77 of file cfgas_break.h.
|
protected |
Definition at line 80 of file cfgas_break.h.
Referenced by CFGAS_RTFBreak::AppendChar(), CFGAS_RTFBreak::EndBreak(), and SetBreakStatus().
|
protected |
Definition at line 79 of file cfgas_break.h.
|
protected |
Definition at line 76 of file cfgas_break.h.
|
protected |
Definition at line 89 of file cfgas_break.h.
Referenced by SetCharSpace().
|
protected |
Definition at line 84 of file cfgas_break.h.
Referenced by CFGAS_RTFBreak::AppendChar(), and SetFontSize().
|
protected |
Definition at line 86 of file cfgas_break.h.
Referenced by SetHorizontalScale().
|
protected |
Definition at line 81 of file cfgas_break.h.
Referenced by CFGAS_RTFBreak::AddPositionedTab(), SetLineBoundary(), and CFGAS_RTFBreak::SetLineStartPos().
|
protected |
Definition at line 82 of file cfgas_break.h.
Referenced by CFGAS_RTFBreak::AddPositionedTab(), SetLineBoundary(), CFGAS_RTFBreak::SetLineStartPos(), and CFGAS_TxtBreak::SetLineWidth().
|
protected |
Definition at line 91 of file cfgas_break.h.
Referenced by ClearBreakPieces(), and HasLine().
|
protected |
Definition at line 85 of file cfgas_break.h.
Referenced by GetTabWidth(), and SetTabWidth().
|
protected |
Definition at line 88 of file cfgas_break.h.
Referenced by IsGreaterThanLineWidth(), and SetLineBreakTolerance().
|
protected |
Definition at line 87 of file cfgas_break.h.
Referenced by SetVerticalScale().
|
protected |
Definition at line 92 of file cfgas_break.h.
|
protected |
Definition at line 93 of file cfgas_break.h.
|
protected |
Definition at line 90 of file cfgas_break.h.
|
protected |
Definition at line 83 of file cfgas_break.h.
Referenced by CFGAS_TxtBreak::AppendChar(), and SetParagraphBreakChar().