Files
Upsilon/escher/src/pointer_text_view.cpp
Émilie Feral 0a6d822046 [escher] Create a class pointer text view inheriting
from text view

Change-Id: I10dd24ed9404e634e90f2bc7fecb6441f7a93550
2016-10-17 22:18:15 +02:00

23 lines
558 B
C++

#include <escher/pointer_text_view.h>
PointerTextView::PointerTextView() :
TextView(),
m_textPointer(nullptr)
{
}
PointerTextView::PointerTextView(const char * text, float horizontalAlignment, float verticalAlignment,
KDColor textColor, KDColor backgroundColor) :
TextView(horizontalAlignment, verticalAlignment, textColor, backgroundColor),
m_textPointer(text)
{
}
const char * PointerTextView::text() const {
return m_textPointer;
}
void PointerTextView::setText(const char * text) {
m_textPointer = text;
markRectAsDirty(bounds());
}