Files
Upsilon/apps/graph/values/abscissa_title_cell.cpp
2019-09-09 19:10:17 +02:00

24 lines
578 B
C++

#include "abscissa_title_cell.h"
#include <apps/shared/hideable_even_odd_editable_text_cell.h>
namespace Graph {
void AbscissaTitleCell::drawRect(KDContext * ctx, KDRect rect) const {
EvenOddMessageTextCell::drawRect(ctx, rect);
// Draw the separator
if (m_separatorLeft) {
KDRect r = separatorRect(bounds());
ctx->fillRect(r, Shared::HideableEvenOddEditableTextCell::hideColor());
}
}
void AbscissaTitleCell::layoutSubviews() {
m_messageTextView.setFrame(rectWithoutSeparator(bounds()));
}
void AbscissaTitleCell::didSetSeparator() {
reloadCell();
}
}