Paragraph: Added Clear() method to remove all TextChunks.
This commit is contained in:
@@ -125,6 +125,13 @@ Paragraph::Insert(int32 offset, const TextSpan& newSpan)
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
Paragraph::Clear()
|
||||
{
|
||||
fTextSpans.Clear();
|
||||
}
|
||||
|
||||
|
||||
int32
|
||||
Paragraph::Length() const
|
||||
{
|
||||
|
||||
@@ -32,6 +32,7 @@ public:
|
||||
|
||||
bool Append(const TextSpan& span);
|
||||
bool Insert(int32 offset, const TextSpan& span);
|
||||
void Clear();
|
||||
|
||||
int32 Length() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user