diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-01-14 15:13:48 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-01-14 15:13:48 +0000 |
| commit | 972d33c500c9de02aa007440f665637e455610c1 (patch) | |
| tree | 5956c54b3b97ab10b61fd1383cfd12de15959214 /src/vertical_position.h | |
| parent | 65244fb9190e6d0aefc83c9cc4de83b1df18001d (diff) | |
Forward-port some stuff from 0.x.
Diffstat (limited to 'src/vertical_position.h')
| -rw-r--r-- | src/vertical_position.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vertical_position.h b/src/vertical_position.h index 1d0b939..9f04056 100644 --- a/src/vertical_position.h +++ b/src/vertical_position.h @@ -35,11 +35,15 @@ public: boost::optional<float> proportional; /** line number offset from some reference point */ boost::optional<int> line; + /** number of lines on the whole screen (i.e. height of the screen in lines) */ + boost::optional<int> lines; /** reference point */ boost::optional<VerticalReference> reference; bool operator== (VerticalPosition const & other) const; - + bool operator< (VerticalPosition const & other) const; + + float fraction_from_screen_top () const; }; } |
