Lines Matching refs:pPiece
281 const CFX_TxtPiece* pPiece = m_pTxtBreak->GetBreakPiece(i);
282 fLineWidth += (FX_FLOAT)pPiece->m_iWidth / 20000.0f;
283 fStartPos = std::min(fStartPos, (FX_FLOAT)pPiece->m_iStartPos / 20000.0f);
425 const CFX_TxtPiece* pPiece = m_pTxtBreak->GetBreakPiece(i);
426 int32_t iPieceChars = pPiece->GetLength();
428 CFX_Char* pTC = pPiece->GetCharPtr(j);
516 const CFX_TxtPiece* pPiece = m_pTxtBreak->GetBreakPiece(i);
517 int32_t iPieceChars = pPiece->GetLength();
522 pTC = pPiece->GetCharPtr(j);
539 rtPiece.top = rect.top + (FX_FLOAT)pPiece->m_iStartPos / 20000.0f;
543 rtPiece.left = rect.left + (FX_FLOAT)pPiece->m_iStartPos / 20000.0f;
552 ttoPiece.dwCharStyles = pPiece->m_dwCharStyles;
553 if (FX_IsOdd(pPiece->m_iBidiLevel)) {
606 FDE_TTOPIECE* pPiece = line.GetPtrAt(iPiece);
607 if (!pPiece)
610 for (int32_t j = pPiece->iChars - 1; j >= 0; j--) {
614 int32_t index = pPiece->iStartChar + j;
648 FDE_TTOPIECE* pPiece = pLine->GetPtrAt(0);
649 int32_t iStartChar = pPiece->iStartChar;
650 m_fLinePos = bVertical ? pPiece->rtPiece.left : pPiece->rtPiece.top;
657 int32_t iEnd = pPiece->iChars + iStar;
667 pPiece = pLine->GetPtrAt(iPieceIndex);
700 FDE_TTOPIECE* pPiece = line.GetPtrAt(j);
702 pPiece->rtPiece.left += fInc;
704 pPiece->rtPiece.top += fInc;
725 FDE_TTOPIECE* pPiece = line.GetPtrAt(j);
726 if (!pPiece)
729 int32_t iCount = GetDisplayPos(pPiece);
734 DrawLine(pPiece, pPen.get());
740 int32_t CFDE_TextOut::GetDisplayPos(FDE_TTOPIECE* pPiece) {
741 FX_TXTRUN tr = ToTextRun(pPiece);
746 int32_t CFDE_TextOut::GetCharRects(const FDE_TTOPIECE* pPiece) {
747 FX_TXTRUN tr = ToTextRun(pPiece);
752 FX_TXTRUN CFDE_TextOut::ToTextRun(const FDE_TTOPIECE* pPiece) {
754 tr.wsStr = m_wsText + pPiece->iStartChar;
755 tr.pWidths = &m_CharWidths[pPiece->iStartChar];
756 tr.iLength = pPiece->iChars;
760 tr.dwCharStyles = pPiece->dwCharStyles;
762 tr.pRect = &pPiece->rtPiece;
766 void CFDE_TextOut::DrawLine(const FDE_TTOPIECE* pPiece, CFDE_Pen* pPen) {
776 CFX_RectF rtText = pPiece->rtPiece;
810 int32_t iCount = GetCharRects(pPiece);
814 if (iCharIndex >= pPiece->iStartChar &&
815 iCharIndex < pPiece->iStartChar + pPiece->iChars) {
816 CFX_RectF rect = m_rectArray[iCharIndex - pPiece->iStartChar];