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