summaryrefslogtreecommitdiff
path: root/src/textbuf_gui.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-06-04 15:29:37 +0000
committerfrosch <frosch@openttd.org>2012-06-04 15:29:37 +0000
commit31eb896143ca5a38c0dc7355921393f357c5a383 (patch)
treefee85678331419013e699f39c82cd7afb559a658 /src/textbuf_gui.h
parent5e8a32e2797b741d3d701415e4b658453919eac5 (diff)
downloadopenttd-31eb896143ca5a38c0dc7355921393f357c5a383.tar.xz
(svn r24323) -Codechange: Split Textbuf and associated functions to separate files.
Diffstat (limited to 'src/textbuf_gui.h')
-rw-r--r--src/textbuf_gui.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/textbuf_gui.h b/src/textbuf_gui.h
index 45ed0fed9..ec134c11c 100644
--- a/src/textbuf_gui.h
+++ b/src/textbuf_gui.h
@@ -16,30 +16,6 @@
#include "string_type.h"
#include "strings_type.h"
-/** Helper/buffer for input fields. */
-struct Textbuf {
- char *buf; ///< buffer in which text is saved
- uint16 max_bytes; ///< the maximum size of the buffer in bytes (including terminating '\0')
- uint16 max_chars; ///< the maximum size of the buffer in characters (including terminating '\0')
- uint16 bytes; ///< the current size of the string in bytes (including terminating '\0')
- uint16 chars; ///< the current size of the string in characters (including terminating '\0')
- uint16 pixels; ///< the current size of the string in pixels
- bool caret; ///< is the caret ("_") visible or not
- uint16 caretpos; ///< the current position of the caret in the buffer, in bytes
- uint16 caretxoffs; ///< the current position of the caret in pixels
-};
-
-bool HandleCaret(Textbuf *tb);
-
-void DeleteTextBufferAll(Textbuf *tb);
-bool DeleteTextBufferChar(Textbuf *tb, int delmode);
-bool InsertTextBufferChar(Textbuf *tb, uint32 key);
-bool InsertTextBufferClipboard(Textbuf *tb);
-bool MoveTextBufferPos(Textbuf *tb, int navmode);
-void InitializeTextBuffer(Textbuf *tb, char *buf, uint16 max_bytes);
-void InitializeTextBuffer(Textbuf *tb, char *buf, uint16 max_bytes, uint16 max_chars);
-void UpdateTextBufferSize(Textbuf *tb);
-
/** Flags used in ShowQueryString() call */
enum QueryStringFlags {
QSF_NONE = 0,