Lines Matching refs:layout

16 	LayoutTextListener(TextDocumentLayout* layout)
18 fLayout(layout)
134 ParagraphLayoutRef layout(new(std::nothrow) ParagraphLayout(
136 if (!layout.IsSet()) {
142 fParagraphLayouts.push_back(ParagraphLayoutInfo(0.0f, layout));
150 info.layout->SetParagraph(paragraph);
184 height = lastLayout.y + lastLayout.layout->Height();
199 const ParagraphLayoutInfo& layout = fParagraphLayouts[i];
200 BPoint location(offset.x, offset.y + layout.y);
203 if (location.y + layout.layout->Height() > updateRect.top)
204 layout.layout->Draw(view, location);
216 lineIndex += fParagraphLayouts[i].layout->CountLines();
220 return lineIndex + info.layout->LineIndexForOffset(textOffset);
234 return info.layout->FirstOffsetOnLine(lineIndex) + paragraphOffset;
248 return info.layout->LastOffsetOnLine(lineIndex) + paragraphOffset;
265 lineCount += info.layout->CountLines();
280 info.layout->GetLineBounds(lineIndex, x1, y1, x2, y2);
300 info.layout->GetTextBounds(textOffset, x1, y1, x2, y2);
324 if (y > info.y + info.layout->Height()) {
325 textOffset += info.layout->CountGlyphs();
329 textOffset += info.layout->TextOffsetAt(x, y - info.y, rightOfCenter);
360 ParagraphLayoutRef layout(new(std::nothrow) ParagraphLayout(paragraph),
362 if (!layout.IsSet()) {
367 fParagraphLayouts.push_back(ParagraphLayoutInfo(0.0f, layout));
371 "layout\n");
386 const ParagraphStyle& style = info.layout->Style();
391 fParagraphLayouts[i] = ParagraphLayoutInfo(y, info.layout);
393 info.layout->SetWidth(fWidth);
394 y += info.layout->Height() + style.SpacingBottom();
408 int32 length = info.layout->CountGlyphs();
423 int32 length = info.layout->CountGlyphs();
442 int32 lineCount = info.layout->CountLines();
445 paragraphOffset += info.layout->CountGlyphs();