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