Numworks Epsilon  1.4.1
Graphing Calculator Operating System
MessageTextView Class Reference

#include <message_text_view.h>

Inheritance diagram for MessageTextView:
TextView View

Public Member Functions

 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
 
- Public Member Functions inherited from TextView
 TextView (KDText::FontSize size=KDText::FontSize::Large, float horizontalAlignment=0.0f, float verticalAlignment=0.0f, KDColor textColor=KDColorBlack, KDColor backgroundColor=KDColorWhite)
 
void drawRect (KDContext *ctx, KDRect rect) const override
 
void setBackgroundColor (KDColor backgroundColor)
 
void setTextColor (KDColor textColor)
 
void setAlignment (float horizontalAlignment, float verticalAlignment)
 
KDSize minimalSizeForOptimalDisplay () const override
 
void setFontSize (KDText::FontSize fontSize)
 
- Public Member Functions inherited from View
 View ()
 
virtual ~View ()
 
 View (const View &other)=delete
 
 View (View &&other)=delete
 
Viewoperator= (const View &other)=delete
 
Viewoperator= (View &&other)=delete
 
void resetSuperview ()
 
void setSize (KDSize size)
 
void setFrame (KDRect frame)
 
KDPoint pointFromPointInView (View *view, KDPoint point)
 
KDRect bounds () const
 
Viewsubview (int index)
 

Additional Inherited Members

- Protected Member Functions inherited from View
void markRectAsDirty (KDRect rect)
 
- Protected Attributes inherited from TextView
KDText::FontSize m_fontSize
 
- Protected Attributes inherited from View
KDRect m_frame
 

Detailed Description

Definition at line 7 of file message_text_view.h.

Constructor & Destructor Documentation

◆ MessageTextView()

MessageTextView::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 at line 4 of file message_text_view.cpp.

Member Function Documentation

◆ minimalSizeForOptimalDisplay()

KDSize MessageTextView::minimalSizeForOptimalDisplay ( ) const
overridevirtual

Reimplemented from View.

Definition at line 26 of file message_text_view.cpp.

◆ setMessage()

void MessageTextView::setMessage ( I18n::Message  message)

Definition at line 19 of file message_text_view.cpp.

◆ setText()

void MessageTextView::setText ( const char *  text)
overridevirtual

Implements TextView.

Definition at line 15 of file message_text_view.cpp.

◆ text()

const char * MessageTextView::text ( ) const
overridevirtual

Implements TextView.

Definition at line 11 of file message_text_view.cpp.


The documentation for this class was generated from the following files: