1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#include <escher/clipboard.h> static Clipboard s_clipboard; Clipboard * Clipboard::sharedClipboard() { return &s_clipboard; } void Clipboard::store(const char * storedText) { strlcpy(m_textBuffer, storedText, TextField::maxBufferSize()); } const char * Clipboard::storedText() { return m_textBuffer; } void Clipboard::reset() { strlcpy(m_textBuffer, "", 1); }