ParagraphLayout: Added CountGlyphs()

This commit is contained in:
Stephan Aßmus 2013-12-06 22:58:48 +01:00
parent dac7b7c980
commit cd50559dde
2 changed files with 9 additions and 0 deletions

View File

@ -271,6 +271,13 @@ ParagraphLayout::Draw(BView* view, const BPoint& offset)
}
int32
ParagraphLayout::CountGlyphs() const
{
return fGlyphInfos.CountItems();
}
// #pragma mark - private

View File

@ -189,6 +189,8 @@ public:
float Height();
void Draw(BView* view, const BPoint& offset);
int32 CountGlyphs() const;
private:
void _Init();