diff options
author | Thomas White <taw@bitwiz.org.uk> | 2017-01-25 00:01:45 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2017-01-25 00:11:37 +0100 |
commit | c921eed7f3a10b6e403d5d5863df82c652ca5db9 (patch) | |
tree | 1dafdca921ff731f43b6049a97656713cc7d7cfe /src/sc_editor.h | |
parent | d6afe0601a4d3e35ab492074b7fcde5bfec70875 (diff) |
Implement text selection
Diffstat (limited to 'src/sc_editor.h')
-rw-r--r-- | src/sc_editor.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sc_editor.h b/src/sc_editor.h index e5e415d..4b55e0e 100644 --- a/src/sc_editor.h +++ b/src/sc_editor.h @@ -1,7 +1,7 @@ /* * sc_editor.h * - * Copyright © 2014-2016 Thomas White <taw@bitwiz.org.uk> + * Copyright © 2014-2017 Thomas White <taw@bitwiz.org.uk> * * This file is part of Colloquium. * @@ -59,7 +59,8 @@ enum drag_reason DRAG_REASON_CREATE, DRAG_REASON_IMPORT, DRAG_REASON_RESIZE, - DRAG_REASON_MOVE + DRAG_REASON_MOVE, + DRAG_REASON_TEXTSEL }; @@ -142,6 +143,9 @@ struct _sceditor enum drag_reason drag_reason; enum drag_status drag_status; enum corner drag_corner; + int sel_active; + struct edit_pos sel_start; /* Where the user dragged from */ + struct edit_pos sel_end; /* Stuff to do with drag and drop import of "content" */ int drag_preview_pending; |