diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-06-11 21:58:33 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-06-15 15:51:42 +0200 |
| commit | 2fa1bea119b211b306281bc3688dee7af7889169 (patch) | |
| tree | a4950060028cf3f0d536185d088bd1ab5194f08a /doc/view.rst | |
| parent | 9d9896d89cfc4ec2f549caad53f2386f15a202bb (diff) | |
| download | vis-2fa1bea119b211b306281bc3688dee7af7889169.tar.gz vis-2fa1bea119b211b306281bc3688dee7af7889169.tar.xz | |
view: clean up and add documentation
Diffstat (limited to 'doc/view.rst')
| -rw-r--r-- | doc/view.rst | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/doc/view.rst b/doc/view.rst new file mode 100644 index 0000000..c48d565 --- /dev/null +++ b/doc/view.rst @@ -0,0 +1,110 @@ +View +==== + +Provides a viewport of a text instance and mangages selections. + +Lifecycle +--------- + +.. doxygengroup:: view_life + :content-only: + +Viewport +-------- + +The cursor of the primary selection is always visible. + +.. doxygengroup:: view_viewport + :content-only: + +Dimension +--------- + +.. doxygengroup:: view_size + :content-only: + +Draw +---- + +.. doxygengroup:: view_draw + :content-only: + +Selections +---------- + +A selection is a non-empty, directed range with two endpoints called *cursor* +and *anchor*. A selection can be anchored in which case the anchor remains +fixed while only the position of the cursor is adjusted. For non-anchored +selections both endpoints are updated. A singleton selection +covers one character on which both cursor and anchor reside. There always +exists a primary selection which remains visible (i.e. changes to its position +will adjust the viewport). + +Creation and Destruction +~~~~~~~~~~~~~~~~~~~~~~~~ + +.. doxygengroup:: view_selnew + :content-only: + +Navigation +~~~~~~~~~~ + +.. doxygengroup:: view_navigate + :content-only: + +Cover +~~~~~ + +.. doxygengroup:: view_cover + :content-only: + +Anchor +~~~~~~ + +.. doxygengroup:: view_anchor + :content-only: + +Cursor +~~~~~~ + +Selection endpoint to which cursor motions apply. + +Properties +^^^^^^^^^^ + +.. doxygengroup:: view_props + :content-only: + +Placement +^^^^^^^^^ + +.. doxygengroup:: view_place + :content-only: + +Motions +^^^^^^^^ + +These functions perform motions based on the current selection cursor position. + +.. doxygengroup:: view_motions + :content-only: + +Primary Selection +~~~~~~~~~~~~~~~~~ + +These are convenience function which operate on the primary selection. + +.. doxygengroup:: view_primary + :content-only: + +Save and Restore +~~~~~~~~~~~~~~~~ + +.. doxygengroup:: view_save + :content-only: + +Style +----- + +.. doxygengroup:: view_style + :content-only: |
