mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 15:20:39 +01:00
23 lines
558 B
C++
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());
|
|
} |