Lines Matching refs:textOffset

293 ParagraphLayout::LineIndexForOffset(int32 textOffset)  in LineIndexForOffset()  argument
300 if (textOffset >= static_cast<int32>(fGlyphInfos.size())) { in LineIndexForOffset()
305 if (textOffset < 0) in LineIndexForOffset()
306 textOffset = 0; in LineIndexForOffset()
308 const GlyphInfo& glyph = fGlyphInfos[textOffset]; in LineIndexForOffset()
324 return fLineInfos[lineIndex].textOffset; in FirstOffsetOnLine()
339 return fLineInfos[lineIndex + 1].textOffset - 1; in LastOffsetOnLine()
361 int32 firstGlyphIndex = lineInfo.textOffset; in GetLineBounds()
365 lastGlyphIndex = fLineInfos[lineIndex + 1].textOffset - 1; in GetLineBounds()
380 ParagraphLayout::GetTextBounds(int32 textOffset, float& x1, float& y1, in GetTextBounds() argument
390 if (textOffset >= static_cast<int32>(fGlyphInfos.size())) { in GetTextBounds()
402 if (textOffset < 0) in GetTextBounds()
403 textOffset = 0; in GetTextBounds()
405 const GlyphInfo& glyph = fGlyphInfos[textOffset]; in GetTextBounds()
445 int32 textOffset = line.textOffset; in TextOffsetAt() local
448 end = fLineInfos[lineIndex + 1].textOffset - 1; in TextOffsetAt()
453 for (; textOffset <= end; textOffset++) { in TextOffsetAt()
454 const GlyphInfo& glyph = fGlyphInfos[textOffset]; in TextOffsetAt()
457 return textOffset; in TextOffsetAt()
465 if (textOffset < end - 1) in TextOffsetAt()
466 x3 = fGlyphInfos[textOffset + 1].x; in TextOffsetAt()
472 return textOffset; in TextOffsetAt()
932 int textOffset = line.textOffset; in _DrawLine() local
936 _DrawSpan(view, offset, span, textOffset); in _DrawLine()
937 textOffset += span.CountChars(); in _DrawLine()
944 const TextSpan& span, int32 textOffset) const in _DrawSpan()
950 const GlyphInfo& glyph = fGlyphInfos[textOffset]; in _DrawSpan()