Numworks Epsilon
1.4.1
Graphing Calculator Operating System
clipboard.cpp
Go to the documentation of this file.
1
#include <
escher/clipboard.h
>
2
3
static
Clipboard
s_clipboard;
4
5
Clipboard
*
Clipboard::sharedClipboard
() {
6
return
&s_clipboard;
7
}
8
9
void
Clipboard::store
(
const
char
* storedText) {
10
strlcpy
(m_textBuffer,
storedText
,
TextField::maxBufferSize
());
11
}
12
13
const
char
*
Clipboard::storedText
() {
14
return
m_textBuffer;
15
}
16
17
void
Clipboard::reset
() {
18
strlcpy
(m_textBuffer,
""
, 1);
19
}
TextField::maxBufferSize
static constexpr int maxBufferSize()
Definition:
text_field.h:23
clipboard.h
Clipboard
Definition:
clipboard.h:6
strlcpy
size_t strlcpy(char *dst, const char *src, size_t len)
Definition:
strlcpy.c:3
Clipboard::storedText
const char * storedText()
Definition:
clipboard.cpp:13
Clipboard::store
void store(const char *storedText)
Definition:
clipboard.cpp:9
Clipboard::reset
void reset()
Definition:
clipboard.cpp:17
Clipboard::sharedClipboard
static Clipboard * sharedClipboard()
Definition:
clipboard.cpp:5
epsilon
escher
src
clipboard.cpp
Generated by
1.8.14