mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-24 16:20:49 +01:00
19 lines
617 B
C++
19 lines
617 B
C++
#ifndef ESCHER_POINTER_TEXT_VIEW_H
|
|
#define ESCHER_POINTER_TEXT_VIEW_H
|
|
|
|
#include <escher/text_view.h>
|
|
#include <escher/i18n.h>
|
|
|
|
class PointerTextView : public TextView {
|
|
public:
|
|
PointerTextView(KDText::FontSize size = KDText::FontSize::Large, const char * text = nullptr, float horizontalAlignment = 0.0f, float verticalAlignment = 0.0f,
|
|
KDColor textColor = KDColorBlack, KDColor backgroundColor = KDColorWhite);
|
|
const char * text() const override { return m_text; }
|
|
void setText(const char * text) override;
|
|
KDSize minimalSizeForOptimalDisplay() const override;
|
|
private:
|
|
const char * m_text;
|
|
};
|
|
|
|
#endif
|