Files
Upsilon/escher/src/pointer_text_view.cpp
Léa Saviot 05bfbe83ac [escher/pointer_text_view] Clean minimalSizeForOptimalDisplay
It was unneedingly overriden + added escape case on nullptr text
2019-01-10 11:42:05 +01:00

17 lines
471 B
C++

#include <escher/pointer_text_view.h>
#include <assert.h>
PointerTextView::PointerTextView(const KDFont * font, const char * text, float horizontalAlignment, float verticalAlignment,
KDColor textColor, KDColor backgroundColor) :
TextView(font, horizontalAlignment, verticalAlignment, textColor, backgroundColor),
m_text(text)
{
}
void PointerTextView::setText(const char * text) {
if (text != m_text) {
m_text = text;
markRectAsDirty(bounds());
}
}