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

#include <cxfa_textlayout.h>

Inheritance diagram for CXFA_TextLayout:
Collaboration diagram for CXFA_TextLayout:

Public Member Functions

 ~CXFA_TextLayout ()
void Trace (cppgc::Visitor *visitor) const
float GetLayoutHeight ()
float StartLayout (float fWidth)
float DoLayout (float fTextHeight)
float DoSplitLayout (size_t szBlockIndex, float fCalcHeight, float fTextHeight)
float Layout (const CFX_SizeF &size)
CFX_SizeF CalcSize (const CFX_SizeF &minSize, const CFX_SizeF &maxSize)
void ItemBlocks (const CFX_RectF &rtText, size_t szBlockIndex)
bool DrawString (CFX_RenderDevice *pFxDevice, const CFX_Matrix &mtDoc2Device, const CFX_RectF &rtClip, size_t szBlockIndex)
bool IsLoaded () const
void Unload ()
bool HasBlock () const
void ClearBlocks ()
void ResetHasBlock ()
WideString GetLinkURLAtPoint (const CFX_PointF &point)

Public Attributes

 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

Detailed Description

Definition at line 40 of file cxfa_textlayout.h.

Constructor & Destructor Documentation

◆ ~CXFA_TextLayout()

CXFA_TextLayout::~CXFA_TextLayout ( )
default

Member Function Documentation

◆ CalcSize()

CFX_SizeF CXFA_TextLayout::CalcSize ( const CFX_SizeF & minSize,
const CFX_SizeF & maxSize )

Definition at line 452 of file cxfa_textlayout.cpp.

◆ ClearBlocks()

void CXFA_TextLayout::ClearBlocks ( )
inline

Definition at line 64 of file cxfa_textlayout.h.

Referenced by CXFA_FFText::PerformLayout().

Here is the caller graph for this function:

◆ DoLayout()

float CXFA_TextLayout::DoLayout ( float fTextHeight)

Definition at line 357 of file cxfa_textlayout.cpp.

◆ DoSplitLayout()

float CXFA_TextLayout::DoSplitLayout ( size_t szBlockIndex,
float fCalcHeight,
float fTextHeight )

Definition at line 365 of file cxfa_textlayout.cpp.

References GetLayoutHeight().

Here is the call graph for this function:

◆ DrawString()

bool CXFA_TextLayout::DrawString ( CFX_RenderDevice * pFxDevice,
const CFX_Matrix & mtDoc2Device,
const CFX_RectF & rtClip,
size_t szBlockIndex )

Definition at line 603 of file cxfa_textlayout.cpp.

References CFX_RectF::GetOuterRect(), CFGAS_TextPiece::iChars, CFX_RenderDevice::RestoreState(), CFX_RenderDevice::SaveState(), and CFX_RenderDevice::SetClip_Rect().

Here is the call graph for this function:

◆ GetLayoutHeight()

float CXFA_TextLayout::GetLayoutHeight ( )

Definition at line 309 of file cxfa_textlayout.cpp.

Referenced by DoSplitLayout().

Here is the caller graph for this function:

◆ GetLinkURLAtPoint()

WideString CXFA_TextLayout::GetLinkURLAtPoint ( const CFX_PointF & point)

Definition at line 112 of file cxfa_textlayout.cpp.

References fxcrt::WideString::WideString().

Here is the call graph for this function:

◆ HasBlock()

bool CXFA_TextLayout::HasBlock ( ) const
inline

Definition at line 63 of file cxfa_textlayout.h.

Referenced by CXFA_FFText::IsLoaded(), and CXFA_FFText::PerformLayout().

Here is the caller graph for this function:

◆ IsLoaded()

bool CXFA_TextLayout::IsLoaded ( ) const
inline

Definition at line 61 of file cxfa_textlayout.h.

Referenced by CXFA_FFField::RenderCaption().

Here is the caller graph for this function:

◆ ItemBlocks()

void CXFA_TextLayout::ItemBlocks ( const CFX_RectF & rtText,
size_t szBlockIndex )

Definition at line 571 of file cxfa_textlayout.cpp.

References CFX_RectF::height.

◆ Layout()

float CXFA_TextLayout::Layout ( const CFX_SizeF & size)

Definition at line 470 of file cxfa_textlayout.cpp.

References Unload().

Referenced by CXFA_FFField::LayoutCaption(), and CXFA_FFField::RenderCaption().

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

◆ ResetHasBlock()

void CXFA_TextLayout::ResetHasBlock ( )
inline

Definition at line 65 of file cxfa_textlayout.h.

Referenced by CXFA_FFText::PerformLayout().

Here is the caller graph for this function:

◆ StartLayout()

float CXFA_TextLayout::StartLayout ( float fWidth)

Definition at line 331 of file cxfa_textlayout.cpp.

References Unload().

Here is the call graph for this function:

◆ Trace()

void CXFA_TextLayout::Trace ( cppgc::Visitor * visitor) const

Definition at line 99 of file cxfa_textlayout.cpp.

◆ Unload()

void CXFA_TextLayout::Unload ( )

Definition at line 107 of file cxfa_textlayout.cpp.

Referenced by Layout(), CXFA_FFNotify::OnValueChanged(), and StartLayout().

Here is the caller graph for this function:

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

CXFA_TextLayout::CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

Definition at line 42 of file cxfa_textlayout.h.


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