Files
Upsilon/escher/src/tab_view_cell.cpp
Romain Goyet 8f30223aab Escher: Add ESCHER_VIEW_LOGGING
Change-Id: Id0b588069839f9b1d2330eae55a7fd345740cf1b
2016-05-27 12:08:00 +02:00

33 lines
514 B
C++

#include <escher/tab_view_cell.h>
extern "C" {
#include <assert.h>
}
TabViewCell::TabViewCell() :
ChildlessView(),
m_active(false),
m_name(nullptr)
{
}
void TabViewCell::setName(const char * name) {
m_name = name;
redraw();
}
void TabViewCell::setActive(bool active) {
m_active = active;
redraw();
}
void TabViewCell::drawRect(KDRect rect) const {
KDDrawString(m_name, {0,0}, m_active);
}
#if ESCHER_VIEW_LOGGING
const char * TabViewCell::className() const {
return "TabViewCell";
}
#endif