Phoenard
Public Member Functions | List of all members
PHN_TextContainer Class Reference

Abstraction for a widget that can store and update text. More...

#include <PHNTextContainer.h>

Inheritance diagram for PHN_TextContainer:
DataBuffer PHN_Button PHN_Label PHN_NumberBox PHN_TextBox

Public Member Functions

void setText (String textString)
 Sets the new text to display using an Arduino type String.
 
void setText (int valueText)
 Sets the new text to display using an integer value.
 
void setText (long valueText)
 Sets the new text to display using a long value.
 
void setText (double valueText)
 Sets the new text to display using a float value.
 
void setText (const char *text)
 Sets the new text to display using a null-terminated String.
 
void clearText ()
 Clears all the text, setting it to an Empty String.
 
virtual void setTextRaw (const char *text, int textLen)
 Sets the new text to display using a buffer and length.
 
virtual const char * text ()
 Gets the text displayed.
 
virtual int textLength ()
 Gets the length of the text displayed.
 

Detailed Description

Abstraction for a widget that can store and update text.

Makes it easier to set the text of any text-based widget to, for example, a number or an Arduino-type String.


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