mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
22 lines
368 B
C++
22 lines
368 B
C++
#include "console_line_cell.h"
|
|
|
|
namespace Code {
|
|
|
|
ConsoleLineCell::ConsoleLineCell() :
|
|
HighlightCell(),
|
|
m_line()
|
|
{
|
|
}
|
|
|
|
void ConsoleLineCell::drawRect(KDContext * ctx, KDRect rect) const {
|
|
ctx->fillRect(bounds(), KDColorRed);
|
|
ctx->drawString(m_line.text(), KDPointZero);
|
|
}
|
|
|
|
void ConsoleLineCell::setLine(ConsoleLine line) {
|
|
m_line = line;
|
|
reloadCell();
|
|
}
|
|
|
|
}
|