Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cfde_textout.h>
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) |
Definition at line 27 of file cfde_textout.h.
CFDE_TextOut::CFDE_TextOut | ( | ) |
Definition at line 132 of file cfde_textout.cpp.
References CFDE_TextOut().
Referenced by CFDE_TextOut().
|
default |
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.
void CFDE_TextOut::CalcLogicSize | ( | WideStringView | str, |
CFX_SizeF * | pSize ) |
Definition at line 187 of file cfde_textout.cpp.
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.
|
static |
Definition at line 45 of file cfde_textout.cpp.
References CFX_TextRenderOptions::CFX_TextRenderOptions(), CFX_RenderDevice::DrawNormalText(), and CFX_TextRenderOptions::kLcd.
|
inline |
Definition at line 53 of file cfde_textout.h.
void CFDE_TextOut::SetAlignment | ( | FDE_TextAlignment | iAlignment | ) |
Definition at line 158 of file cfde_textout.cpp.
References CFX_TxtLineAlignment_Center, CFX_TxtLineAlignment_Left, CFX_TxtLineAlignment_Right, kCenter, kCenterLeft, kCenterRight, and kTopLeft.
void CFDE_TextOut::SetFont | ( | RetainPtr< CFGAS_GEFont > | pFont | ) |
Definition at line 137 of file cfde_textout.cpp.
void CFDE_TextOut::SetFontSize | ( | float | fFontSize | ) |
Definition at line 143 of file cfde_textout.cpp.
void CFDE_TextOut::SetLineBreakTolerance | ( | float | fTolerance | ) |
Definition at line 182 of file cfde_textout.cpp.
void CFDE_TextOut::SetLineSpace | ( | float | fLineSpace | ) |
Definition at line 177 of file cfde_textout.cpp.
|
inline |
Definition at line 45 of file cfde_textout.h.
References CFX_Matrix::operator=().
void CFDE_TextOut::SetStyles | ( | const FDE_TextStyle & | dwStyles | ) |
Definition at line 149 of file cfde_textout.cpp.
Definition at line 41 of file cfde_textout.h.