Numworks Epsilon  1.4.1
Graphing Calculator Operating System
pointer_text_view.h
Go to the documentation of this file.
1 #ifndef ESCHER_POINTER_TEXT_VIEW_H
2 #define ESCHER_POINTER_TEXT_VIEW_H
3 
4 #include <escher/text_view.h>
5 #include <escher/i18n.h>
6 
7 class PointerTextView : public TextView {
8 public:
9  PointerTextView(KDText::FontSize size = KDText::FontSize::Large, const char * text = nullptr, float horizontalAlignment = 0.0f, float verticalAlignment = 0.0f,
10  KDColor textColor = KDColorBlack, KDColor backgroundColor = KDColorWhite);
11  const char * text() const override { return m_text; }
12  void setText(const char * text) override;
13  KDSize minimalSizeForOptimalDisplay() const override;
14 private:
15  const char * m_text;
16 };
17 
18 #endif
void setText(const char *text) override
Definition: size.h:6
constexpr KDColor KDColorWhite
Definition: color.h:42
KDSize minimalSizeForOptimalDisplay() const override
constexpr KDColor KDColorBlack
Definition: color.h:41
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)
Definition: color.h:6
FontSize
Definition: text.h:10
const char * text() const override