summaryrefslogtreecommitdiff
path: root/desktop/selection.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2020-05-23 23:33:52 +0100
committerVincent Sanders <vince@kyllikki.org>2020-05-23 23:33:52 +0100
commit5ce8f0baf1af7ce119c0c3c5b4d32934a1d95a0a (patch)
treea739586369f7ad25a791563d256320b6560b9553 /desktop/selection.h
parent6108d210d508e754904c46f687adbc87ab98dc78 (diff)
downloadnetsurf-5ce8f0baf1af7ce119c0c3c5b4d32934a1d95a0a.tar.gz
netsurf-5ce8f0baf1af7ce119c0c3c5b4d32934a1d95a0a.tar.bz2
make text selection context an opaque interface
Diffstat (limited to 'desktop/selection.h')
-rw-r--r--desktop/selection.h22
1 files changed, 2 insertions, 20 deletions
diff --git a/desktop/selection.h b/desktop/selection.h
index 86ff395a1..1b8d91c08 100644
--- a/desktop/selection.h
+++ b/desktop/selection.h
@@ -30,26 +30,8 @@ struct box;
struct browser_window;
struct plot_font_style;
struct selection_string;
-
-typedef enum {
- DRAG_NONE,
- DRAG_START,
- DRAG_END
-} seln_drag_state;
-
-struct selection {
- struct content *c;
- struct box *root;
-
- unsigned max_idx; /* total bytes in text representation */
-
- unsigned start_idx; /* offset in bytes within text representation */
- unsigned end_idx;
-
- bool defined;
-
- seln_drag_state drag_state;
-};
+struct selection;
+struct content;
/**
* determine if a selecion is active