HaikuDepot: Paragraph: Added IsEmpty().
This commit is contained in:
parent
720f7fdf54
commit
c6a0782a8f
@ -143,3 +143,9 @@ Paragraph::Length() const
|
||||
return length;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
Paragraph::IsEmpty() const
|
||||
{
|
||||
return fTextSpans.CountItems() == 0;
|
||||
}
|
||||
|
@ -35,6 +35,7 @@ public:
|
||||
void Clear();
|
||||
|
||||
int32 Length() const;
|
||||
bool IsEmpty() const;
|
||||
|
||||
private:
|
||||
ParagraphStyle fStyle;
|
||||
|
Loading…
Reference in New Issue
Block a user