summaryrefslogtreecommitdiff
path: root/desktop/textarea.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-01-30 18:01:01 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-01-30 18:01:01 +0000
commit663191791eda7034c3d7d99a4039eca8ba02b441 (patch)
tree3dd56e825ed4fca3c897dfc9ab2c5e04180baa75 /desktop/textarea.h
parente30e6ec8e9bd435e76261528f055d0b3a6312426 (diff)
downloadnetsurf-663191791eda7034c3d7d99a4039eca8ba02b441.tar.gz
netsurf-663191791eda7034c3d7d99a4039eca8ba02b441.tar.bz2
Add move caret msg. Add flag to choose internal caret or caret move msgs.
Diffstat (limited to 'desktop/textarea.h')
-rw-r--r--desktop/textarea.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/desktop/textarea.h b/desktop/textarea.h
index fb8b13425..6a1a4714d 100644
--- a/desktop/textarea.h
+++ b/desktop/textarea.h
@@ -34,9 +34,10 @@ struct textarea;
/* Text area flags */
typedef enum {
- TEXTAREA_DEFAULT = (1 << 0),
- TEXTAREA_MULTILINE = (1 << 1),
- TEXTAREA_READONLY = (1 << 2)
+ TEXTAREA_DEFAULT = (1 << 0), /**< Standard input */
+ TEXTAREA_MULTILINE = (1 << 1), /**< Multiline area */
+ TEXTAREA_READONLY = (1 << 2), /**< Non-editable */
+ TEXTAREA_INTERNAL_CARET = (1 << 3) /**< Render own caret */
} textarea_flags;
typedef enum {
@@ -47,7 +48,8 @@ typedef enum {
typedef enum {
TEXTAREA_MSG_DRAG_REPORT, /**< Textarea drag start/end report */
- TEXTAREA_MSG_REDRAW_REQUEST /**< Textarea redraw request */
+ TEXTAREA_MSG_REDRAW_REQUEST, /**< Textarea redraw request */
+ TEXTAREA_MSG_MOVED_CARET /**< Textarea caret moved */
} textarea_msg_type;
struct textarea_msg {
@@ -57,6 +59,12 @@ struct textarea_msg {
union {
textarea_drag_type drag;
struct rect redraw;
+ struct {
+ bool hidden;
+ int x;
+ int y;
+ int height;
+ } caret;
} data;
};