vis: make O implementation independent of <Up> mapping
[vis.git] / doc / view.rst
blobc48d56533473a68dfd965af73a43a77c2b7cb7b4
1 View
2 ====
4 Provides a viewport of a text instance and mangages selections.
6 Lifecycle
7 ---------
9 .. doxygengroup:: view_life
10    :content-only:
12 Viewport
13 --------
15 The cursor of the primary selection is always visible.
17 .. doxygengroup:: view_viewport
18    :content-only:
20 Dimension
21 ---------
23 .. doxygengroup:: view_size
24    :content-only:
26 Draw
27 ----
29 .. doxygengroup:: view_draw
30    :content-only:
32 Selections
33 ----------
35 A selection is a non-empty, directed range with two endpoints called *cursor*
36 and *anchor*. A selection can be anchored in which case the anchor remains
37 fixed while only the position of the cursor is adjusted. For non-anchored
38 selections both endpoints are updated. A singleton selection
39 covers one character on which both cursor and anchor reside. There always
40 exists a primary selection which remains visible (i.e. changes to its position
41 will adjust the viewport).
43 Creation and Destruction
44 ~~~~~~~~~~~~~~~~~~~~~~~~
46 .. doxygengroup:: view_selnew
47    :content-only:
49 Navigation
50 ~~~~~~~~~~
52 .. doxygengroup:: view_navigate
53    :content-only:
55 Cover
56 ~~~~~
58 .. doxygengroup:: view_cover
59    :content-only:
61 Anchor
62 ~~~~~~
64 .. doxygengroup:: view_anchor
65    :content-only:
67 Cursor
68 ~~~~~~
70 Selection endpoint to which cursor motions apply.
72 Properties
73 ^^^^^^^^^^
75 .. doxygengroup:: view_props
76    :content-only:
78 Placement
79 ^^^^^^^^^
81 .. doxygengroup:: view_place
82    :content-only:
84 Motions
85 ^^^^^^^^
87 These functions perform motions based on the current selection cursor position.
89 .. doxygengroup:: view_motions
90    :content-only:
92 Primary Selection
93 ~~~~~~~~~~~~~~~~~
95 These are convenience function which operate on the primary selection.
97 .. doxygengroup:: view_primary
98    :content-only:
100 Save and Restore
101 ~~~~~~~~~~~~~~~~
103 .. doxygengroup:: view_save
104    :content-only:
106 Style
107 -----
109 .. doxygengroup:: view_style
110    :content-only: