aboutsummaryrefslogtreecommitdiff
path: root/view.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-03-10 20:53:47 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-03-10 22:36:54 +0100
commit5e632554d9bf7ea48783702ea59585639e1797bf (patch)
tree5691f504dd0c9974d1579469094a9c1fc2b24967 /view.h
parent5f8760a614e11dc2f665ed4a23309875a6af61df (diff)
downloadvis-5e632554d9bf7ea48783702ea59585639e1797bf.tar.gz
vis-5e632554d9bf7ea48783702ea59585639e1797bf.tar.xz
view: clean up API functions related to primary cursor handling
The currently visible display port is always adjusted in a way that the primary cursor is visible.
Diffstat (limited to 'view.h')
-rw-r--r--view.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/view.h b/view.h
index 7119e56..f33f1a8 100644
--- a/view.h
+++ b/view.h
@@ -128,12 +128,14 @@ void view_cursors_dispose(Cursor*);
/* only keep the main cursor, release all others together with their
* selections (if any) */
void view_cursors_clear(View*);
-/* get the main cursor which is always in the visible viewport */
-Cursor *view_cursor(View*);
/* get the first cursor */
Cursor *view_cursors(View*);
+/* get other cursors, no ordering is guaranteed */
Cursor *view_cursors_prev(Cursor*);
Cursor *view_cursors_next(Cursor*);
+/* get the primary cursor which is always in the visible viewport */
+Cursor *view_cursors_primary_get(View*);
+void view_cursors_primary_set(Cursor*);
/* get current position of cursor in bytes from the start of the file */
size_t view_cursors_pos(Cursor*);
/* get/set zero based index of cell on which cursor currently resides,