34 KDSize ConsoleLineCell::ScrollableConsoleLineView::minimalSizeForOptimalDisplay()
const {
35 return m_consoleLineView.minimalSizeForOptimalDisplay();
42 m_scrollableView(this),
49 m_scrollableView.consoleLineView()->setLine(&m_line);
56 m_scrollableView.consoleLineView()->setHighlighted(highlight);
62 m_scrollableView.reloadScroll();
75 assert(index >= 0 && index < 2);
76 View * views[] = {&m_promptView, &m_scrollableView};
81 return &m_scrollableView;
93 m_scrollableView.setFrame(
bounds());
KDPoint drawString(const char *text, KDPoint p, KDText::FontSize size=KDText::FontSize::Large, KDColor textColor=KDColorBlack, KDColor backgroundColor=KDColorWhite, int maxLength=-1)
void setFrame(KDRect frame)
void layoutSubviews() override
constexpr KDCoordinate width() const
static KDSize stringSize(const char *text, FontSize size=FontSize::Large)
Responder * parentResponder() const
constexpr KDPoint KDPointZero
void setLine(ConsoleLine line)
void didBecomeFirstResponder() override
ConsoleLineCell(Responder *parentResponder=nullptr)
void setHighlighted(bool highlight) override
enum Message uint16_t enum Language uint16_t const char * translate(Message m, Language l=(Language) 0)
constexpr KDColor KDColorWhite
int numberOfSubviews() const override
static constexpr KDColor Select
bool isHighlighted() const
constexpr KDRect KDRectZero
void fillRect(KDRect rect, KDColor color)
View * subviewAtIndex(int index) override
static constexpr KDText::FontSize k_fontSize
void setFirstResponder(Responder *responder)
KDCoordinate width() const
void setTextColor(KDColor textColor)
virtual void setHighlighted(bool highlight)
virtual void reloadCell()
void reloadCell() override
KDCoordinate height() const