X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fvertical_position.h;h=7bc057ee132f7d0b76404b488f185a746684865c;hb=f187e4a08ca777c6e3e5de8037d165f9eea262f2;hp=6a0fff4313b9ad3e43d2b9dd3ab319e1c8881bbd;hpb=d6b067d2a2ec5f0490c9fb17ddd605d0e860480d;p=libsub.git diff --git a/src/vertical_position.h b/src/vertical_position.h index 6a0fff4..7bc057e 100644 --- a/src/vertical_position.h +++ b/src/vertical_position.h @@ -33,15 +33,19 @@ class VerticalPosition public: /** as a proportion of screen height offset from some reference point */ boost::optional proportional; - /** reference position for proportional */ - boost::optional reference; - /** line number from the top of the screen */ + /** line number offset from some reference point */ boost::optional line; - + /** number of lines on the whole screen (i.e. height of the screen in lines) */ + boost::optional lines; + /** reference point */ + boost::optional reference; + bool operator== (VerticalPosition const & other) const; - + bool operator< (VerticalPosition const & other) const; + + float fraction_from_screen_top () const; }; - + } #endif