Files
Upsilon/apps/graph/list/new_function_cell.cpp
Émilie Feral f51ae5db12 [kandinsky] Introduce two fonts: small font and large font
Change-Id: I502dfa88d627b09ac5af76155140af63547025cd
2017-01-27 11:14:01 +01:00

31 lines
611 B
C++

#include "new_function_cell.h"
#include "assert.h"
namespace Graph {
NewFunctionCell::NewFunctionCell() :
EvenOddCell(),
m_pointerTextView(PointerTextView(KDText::FontSize::Large, "Ajouter une fonction", 0.5f, 0.5f))
{
}
void NewFunctionCell::reloadCell() {
EvenOddCell::reloadCell();
m_pointerTextView.setBackgroundColor(backgroundColor());
}
int NewFunctionCell::numberOfSubviews() const {
return 1;
}
View * NewFunctionCell::subviewAtIndex(int index) {
assert(index == 0);
return &m_pointerTextView;
}
void NewFunctionCell::layoutSubviews() {
m_pointerTextView.setFrame(bounds());
}
}