pointer_text_view.h
617 Bytes
#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