mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-29 11:39:58 +02:00
20 lines
658 B
C++
20 lines
658 B
C++
#ifndef ESCHER_MESSAGE_TEXT_VIEW_H
|
|
#define ESCHER_MESSAGE_TEXT_VIEW_H
|
|
|
|
#include <escher/text_view.h>
|
|
#include <escher/i18n.h>
|
|
|
|
class MessageTextView : public TextView {
|
|
public:
|
|
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);
|
|
void setText(const char * text) override;
|
|
void setMessage(I18n::Message message);
|
|
const char * text() const override;
|
|
KDSize minimalSizeForOptimalDisplay() const override;
|
|
private:
|
|
I18n::Message m_message;
|
|
};
|
|
|
|
#endif
|