Small documentation tweak in display_buffer.hh
This commit is contained in:
parent
6e389512f5
commit
b1bb9d0cb2
|
@ -134,6 +134,7 @@ public:
|
||||||
// the line is less that col_count character
|
// the line is less that col_count character
|
||||||
void trim(ColumnCount first_col, ColumnCount col_count, bool only_buffer);
|
void trim(ColumnCount first_col, ColumnCount col_count, bool only_buffer);
|
||||||
|
|
||||||
|
// Merge together consecutive atoms sharing the same display attributes
|
||||||
void optimize();
|
void optimize();
|
||||||
private:
|
private:
|
||||||
void compute_range();
|
void compute_range();
|
||||||
|
@ -146,7 +147,7 @@ DisplayLine parse_display_line(StringView line, const HashMap<String, DisplayLin
|
||||||
class DisplayBuffer : public UseMemoryDomain<MemoryDomain::Display>
|
class DisplayBuffer : public UseMemoryDomain<MemoryDomain::Display>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
using LineList = Vector<DisplayLine, MemoryDomain::Display>;
|
using LineList = Vector<DisplayLine>;
|
||||||
DisplayBuffer() {}
|
DisplayBuffer() {}
|
||||||
|
|
||||||
LineList& lines() { return m_lines; }
|
LineList& lines() { return m_lines; }
|
||||||
|
@ -154,9 +155,11 @@ public:
|
||||||
|
|
||||||
// returns the smallest BufferRange which contains every DisplayAtoms
|
// returns the smallest BufferRange which contains every DisplayAtoms
|
||||||
const BufferRange& range() const { return m_range; }
|
const BufferRange& range() const { return m_range; }
|
||||||
void optimize();
|
|
||||||
void compute_range();
|
void compute_range();
|
||||||
|
|
||||||
|
// Optimize all lines, set DisplayLine::optimize
|
||||||
|
void optimize();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
LineList m_lines;
|
LineList m_lines;
|
||||||
BufferRange m_range;
|
BufferRange m_range;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user