View for editing text. More...
#include <glv_textview.h>
Public Member Functions | |
TextView (const Rect &r=glv::Rect(200, 16), float textSize=8) | |
Constructor. | |
const std::string & | getValue () const |
Get value. | |
TextView & | size (float pixels) |
Set size of font in pixels. | |
void | select (int v) |
Select element at 1D index. | |
virtual const char * | className () const |
Get class name. | |
virtual void | onDraw (GLV &g) |
Drawing callback. | |
virtual bool | onEvent (Event::t e, GLV &g) |
Event callback to be called after those in callback list. |
View for editing text.