diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-06-14 15:09:36 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-06-15 15:51:43 +0200 |
| commit | 57a743f42f0cecdc5794b424720500d0532cfc4b (patch) | |
| tree | cd2cfe704793e847f17764801f12790f07dbda2c /view.h | |
| parent | 11d7a0e6a505a3cc9c1a8fedf9e8101059d96701 (diff) | |
| download | vis-57a743f42f0cecdc5794b424720500d0532cfc4b.tar.gz vis-57a743f42f0cecdc5794b424720500d0532cfc4b.tar.xz | |
view: add functions to get/set all selections
Diffstat (limited to 'view.h')
| -rw-r--r-- | view.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -9,6 +9,12 @@ typedef struct Selection Selection; #include "text.h" #include "ui.h" +#include "array.h" + +typedef struct { + Mark anchor; + Mark cursor; +} SelectionRegion; typedef struct { char data[16]; /* utf8 encoded character displayed in this cell (might be more than @@ -140,6 +146,13 @@ void view_selections_dispose_all(View*); /** Dispose all invalid and merge all overlapping selections. */ void view_selections_normalize(View*); /** + * Replace currently active selections. + * @param The array of ``Filerange``s. + */ +void view_selections_set_all(View*, Array*); +/** Get array containing a ``Fileranges`` for each selection. */ +Array view_selections_get_all(View*); +/** * @} * @defgroup view_navigate * @{ |
