mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 05:40:38 +01:00
26 lines
663 B
C++
26 lines
663 B
C++
#include <escher/float_table_view_cell.h>
|
|
|
|
FloatTableViewCell::FloatTableViewCell(char * label) :
|
|
TableViewCell(label),
|
|
m_contentView(FloatView())
|
|
{
|
|
}
|
|
|
|
void FloatTableViewCell::setFloat(float f) {
|
|
m_contentView.setFloat(f);
|
|
}
|
|
|
|
char * FloatTableViewCell::stringFromFloat() {
|
|
return m_contentView.buffer();
|
|
}
|
|
|
|
|
|
View * FloatTableViewCell::contentView() const {
|
|
return (View *)&m_contentView;
|
|
}
|
|
|
|
void FloatTableViewCell::setHighlighted(bool highlight) {
|
|
TableViewCell::setHighlighted(highlight);
|
|
KDColor backgroundColor = highlight? Palette::FocusCellBackgroundColor : Palette::CellBackgroundColor;
|
|
m_contentView.setBackgroundColor(backgroundColor);
|
|
} |