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

#include <cpvt_section.h>

Collaboration diagram for CPVT_Section:

Classes

class  Line

Public Member Functions

 CPVT_Section (CPVT_VariableText *pVT)
 ~CPVT_Section ()
void ResetLinePlace ()
CPVT_WordPlace AddWord (const CPVT_WordPlace &place, const CPVT_WordInfo &wordinfo)
CPVT_WordPlace AddLine (const CPVT_LineInfo &lineinfo)
void ClearWords (const CPVT_WordRange &PlaceRange)
void ClearWord (const CPVT_WordPlace &place)
CPVT_FloatRect Rearrange ()
CFX_SizeF GetSectionSize (float fFontSize)
CPVT_WordPlace GetBeginWordPlace () const
CPVT_WordPlace GetEndWordPlace () const
CPVT_WordPlace GetPrevWordPlace (const CPVT_WordPlace &place) const
CPVT_WordPlace GetNextWordPlace (const CPVT_WordPlace &place) const
void UpdateWordPlace (CPVT_WordPlace &place) const
CPVT_WordPlace SearchWordPlace (const CFX_PointF &point) const
CPVT_WordPlace SearchWordPlace (float fx, const CPVT_WordPlace &lineplace) const
CPVT_WordPlace SearchWordPlace (float fx, const CPVT_WordRange &range) const
void SetPlace (const CPVT_WordPlace &place)
void SetPlaceIndex (int32_t index)
const CPVT_FloatRectGetRect () const
void SetRect (const CPVT_FloatRect &rect)
int32_t GetLineArraySize () const
const LineGetLineFromArray (int32_t index) const
int32_t GetWordArraySize () const
const CPVT_WordInfoGetWordFromArray (int32_t index) const
void EraseWordsFrom (int32_t index)

Detailed Description

Definition at line 26 of file cpvt_section.h.

Constructor & Destructor Documentation

◆ CPVT_Section()

CPVT_Section::CPVT_Section ( CPVT_VariableText * pVT)
explicit

Definition at line 206 of file cpvt_section.cpp.

◆ ~CPVT_Section()

CPVT_Section::~CPVT_Section ( )
default

Member Function Documentation

◆ AddLine()

CPVT_WordPlace CPVT_Section::AddLine ( const CPVT_LineInfo & lineinfo)

Definition at line 229 of file cpvt_section.cpp.

◆ AddWord()

CPVT_WordPlace CPVT_Section::AddWord ( const CPVT_WordPlace & place,
const CPVT_WordInfo & wordinfo )

Definition at line 220 of file cpvt_section.cpp.

Referenced by CPVT_VariableText::InsertSection().

Here is the caller graph for this function:

◆ ClearWord()

void CPVT_Section::ClearWord ( const CPVT_WordPlace & place)

Definition at line 754 of file cpvt_section.cpp.

◆ ClearWords()

void CPVT_Section::ClearWords ( const CPVT_WordRange & PlaceRange)

Definition at line 737 of file cpvt_section.cpp.

References CPVT_WordRange::BeginPos, CPVT_WordRange::EndPos, GetBeginWordPlace(), GetEndWordPlace(), CPVT_WordPlace::nWordIndex, CPVT_WordPlace::operator<=(), and CPVT_WordPlace::operator>=().

Here is the call graph for this function:

◆ EraseWordsFrom()

void CPVT_Section::EraseWordsFrom ( int32_t index)

Definition at line 426 of file cpvt_section.cpp.

◆ GetBeginWordPlace()

CPVT_WordPlace CPVT_Section::GetBeginWordPlace ( ) const

Definition at line 246 of file cpvt_section.cpp.

Referenced by ClearWords(), GetNextWordPlace(), GetPrevWordPlace(), CPVT_VariableText::GetPrevWordPlace(), SearchWordPlace(), and SearchWordPlace().

Here is the caller graph for this function:

◆ GetEndWordPlace()

CPVT_WordPlace CPVT_Section::GetEndWordPlace ( ) const

Definition at line 252 of file cpvt_section.cpp.

Referenced by ClearWords(), GetNextWordPlace(), CPVT_VariableText::GetNextWordPlace(), GetPrevWordPlace(), SearchWordPlace(), and CPVT_VariableText::WordIndexToWordPlace().

Here is the caller graph for this function:

◆ GetLineArraySize()

int32_t CPVT_Section::GetLineArraySize ( ) const

Definition at line 404 of file cpvt_section.cpp.

Referenced by CPVT_VariableText::GetDownWordPlace(), CPVT_VariableText::GetUpWordPlace(), and CPVT_VariableText::Iterator::NextLine().

Here is the caller graph for this function:

◆ GetLineFromArray()

const CPVT_Section::Line * CPVT_Section::GetLineFromArray ( int32_t index) const

Definition at line 408 of file cpvt_section.cpp.

Referenced by CPVT_VariableText::Iterator::GetLine(), CPVT_VariableText::GetLineEndPlace(), and CPVT_VariableText::Iterator::GetWord().

Here is the caller graph for this function:

◆ GetNextWordPlace()

CPVT_WordPlace CPVT_Section::GetNextWordPlace ( const CPVT_WordPlace & place) const

Definition at line 279 of file cpvt_section.cpp.

References GetBeginWordPlace(), GetEndWordPlace(), CPVT_Section::Line::GetNextWordPlace(), CPVT_Section::Line::m_LineInfo, CPVT_LineInfo::nEndWordIndex, CPVT_WordPlace::nLineIndex, and CPVT_WordPlace::nWordIndex.

Referenced by CPVT_VariableText::GetNextWordPlace().

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

◆ GetPrevWordPlace()

CPVT_WordPlace CPVT_Section::GetPrevWordPlace ( const CPVT_WordPlace & place) const

Definition at line 258 of file cpvt_section.cpp.

References CPVT_WordPlace::CPVT_WordPlace(), GetBeginWordPlace(), GetEndWordPlace(), CPVT_Section::Line::GetPrevWordPlace(), CPVT_Section::Line::m_LineInfo, CPVT_LineInfo::nBeginWordIndex, CPVT_WordPlace::nLineIndex, CPVT_WordPlace::nSecIndex, and CPVT_WordPlace::nWordIndex.

Referenced by CPVT_VariableText::GetPrevWordPlace().

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

◆ GetRect()

const CPVT_FloatRect & CPVT_Section::GetRect ( ) const
inline

Definition at line 64 of file cpvt_section.h.

Referenced by CPVT_VariableText::GetDownWordPlace(), CPVT_VariableText::GetUpWordPlace(), and CPVT_VariableText::SearchWordPlace().

Here is the caller graph for this function:

◆ GetSectionSize()

CFX_SizeF CPVT_Section::GetSectionSize ( float fFontSize)

Definition at line 241 of file cpvt_section.cpp.

References CPVT_FloatRect::Height(), and CFX_FloatRect::Width().

Here is the call graph for this function:

◆ GetWordArraySize()

int32_t CPVT_Section::GetWordArraySize ( ) const

Definition at line 415 of file cpvt_section.cpp.

Referenced by CPVT_VariableText::InsertSection(), CPVT_VariableText::WordIndexToWordPlace(), and CPVT_VariableText::WordPlaceToWordIndex().

Here is the caller graph for this function:

◆ GetWordFromArray()

const CPVT_WordInfo * CPVT_Section::GetWordFromArray ( int32_t index) const

Definition at line 419 of file cpvt_section.cpp.

Referenced by CPVT_VariableText::Iterator::GetWord(), and CPVT_VariableText::InsertSection().

Here is the caller graph for this function:

◆ Rearrange()

CPVT_FloatRect CPVT_Section::Rearrange ( )

Definition at line 235 of file cpvt_section.cpp.

◆ ResetLinePlace()

void CPVT_Section::ResetLinePlace ( )

Definition at line 212 of file cpvt_section.cpp.

◆ SearchWordPlace() [1/3]

CPVT_WordPlace CPVT_Section::SearchWordPlace ( const CFX_PointF & point) const

Definition at line 316 of file cpvt_section.cpp.

References CPVT_WordRange::CPVT_WordRange(), CPVT_LineInfo::fLineDescent, CPVT_LineInfo::fLineY, GetBeginWordPlace(), CPVT_Section::Line::GetBeginWordPlace(), GetEndWordPlace(), CPVT_Section::Line::GetEndWordPlace(), CPVT_Section::Line::GetNextWordPlace(), CPVT_Section::Line::m_LineInfo, and CPVT_WordPlace::nLineIndex.

Referenced by CPVT_VariableText::SearchWordPlace().

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

◆ SearchWordPlace() [2/3]

CPVT_WordPlace CPVT_Section::SearchWordPlace ( float fx,
const CPVT_WordPlace & lineplace ) const

Definition at line 356 of file cpvt_section.cpp.

References CPVT_WordRange::CPVT_WordRange(), GetBeginWordPlace(), CPVT_Section::Line::GetBeginWordPlace(), CPVT_Section::Line::GetEndWordPlace(), CPVT_Section::Line::GetNextWordPlace(), CFX_FloatRect::left, and SearchWordPlace().

Here is the call graph for this function:

◆ SearchWordPlace() [3/3]

CPVT_WordPlace CPVT_Section::SearchWordPlace ( float fx,
const CPVT_WordRange & range ) const

Definition at line 369 of file cpvt_section.cpp.

References CPVT_WordRange::BeginPos, CPVT_WordRange::EndPos, and CPVT_WordPlace::nWordIndex.

Referenced by SearchWordPlace().

Here is the caller graph for this function:

◆ SetPlace()

void CPVT_Section::SetPlace ( const CPVT_WordPlace & place)
inline

Definition at line 62 of file cpvt_section.h.

◆ SetPlaceIndex()

void CPVT_Section::SetPlaceIndex ( int32_t index)
inline

Definition at line 63 of file cpvt_section.h.

References CPVT_WordPlace::nSecIndex.

◆ SetRect()

void CPVT_Section::SetRect ( const CPVT_FloatRect & rect)
inline

Definition at line 65 of file cpvt_section.h.

◆ UpdateWordPlace()

void CPVT_Section::UpdateWordPlace ( CPVT_WordPlace & place) const

Definition at line 297 of file cpvt_section.cpp.

References CPVT_Section::Line::m_LineInfo, CPVT_LineInfo::nBeginWordIndex, CPVT_LineInfo::nEndWordIndex, CPVT_WordPlace::nLineIndex, and CPVT_WordPlace::nWordIndex.

Referenced by CPVT_VariableText::WordIndexToWordPlace().

Here is the caller graph for this function:

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