diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-01-04 14:48:58 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-01-04 14:48:58 +0000 |
commit | 838359194e423fb5c568fca75f9ab6e00600be6c (patch) | |
tree | 15ec73dab665c1cac8b4363b4e3fdc2bb21ad543 /desktop/textarea.h | |
parent | 8b253a215134c104f853165b4a674ffc24be8cbe (diff) | |
download | netsurf-838359194e423fb5c568fca75f9ab6e00600be6c.tar.gz netsurf-838359194e423fb5c568fca75f9ab6e00600be6c.tar.bz2 |
Return message to client when textarea is modified.
Diffstat (limited to 'desktop/textarea.h')
-rw-r--r-- | desktop/textarea.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/desktop/textarea.h b/desktop/textarea.h index 016f15a10..1c24dd1cc 100644 --- a/desktop/textarea.h +++ b/desktop/textarea.h @@ -51,7 +51,8 @@ typedef enum { TEXTAREA_MSG_DRAG_REPORT, /**< Textarea drag start/end report */ TEXTAREA_MSG_SELECTION_REPORT, /**< Textarea text selection presence */ TEXTAREA_MSG_REDRAW_REQUEST, /**< Textarea redraw request */ - TEXTAREA_MSG_CARET_UPDATE /**< Textarea caret */ + TEXTAREA_MSG_CARET_UPDATE, /**< Textarea caret */ + TEXTAREA_MSG_TEXT_MODIFIED /**< Textarea text modified */ } textarea_msg_type; struct textarea_msg { @@ -77,6 +78,10 @@ struct textarea_msg { struct rect *clip; /**< Carret clip rect */ } pos; /**< With _CARET_SET_POS */ } caret; /**< With _CARET_UPDATE */ + struct { + const char *text; /**< UTF8 text */ + unsigned int len; /**< Byte length of text */ + } modified; /**< With _TEXT_MODIFIED */ } data; /**< Depends on msg type */ }; |