Files
Upsilon/apps/graph/list/function_cell.cpp
Romain Goyet 682c3bbc20 App: Move the app in the apps/ folder
Change-Id: I9c6a3eb58c718f1c796652e94534b53a2a302f8b
2016-06-20 18:04:31 +02:00

29 lines
607 B
C++

#include "function_cell.h"
FunctionCell::FunctionCell() :
ChildlessView(),
m_focused(false),
m_even(false)
{
m_message = "NULL";
}
void FunctionCell::drawRect(KDRect rect) const {
KDColor background = m_even ? KDColorRGB(0xEE, 0xEE, 0xEE) : KDColorRGB(0x77,0x77,0x77);
KDFillRect(rect, background);
KDDrawString(m_message, KDPointZero, m_focused);
}
void FunctionCell::setMessage(const char * message) {
m_message = message;
}
void FunctionCell::setFocused(bool focused) {
m_focused = focused;
markRectAsDirty(bounds());
}
void FunctionCell::setEven(bool even) {
m_even = even;
}