projects
/
libsub.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add hack for binary STL files with high MNR (maximum number of rows) values.
[libsub.git]
/
src
/
vertical_position.h
diff --git
a/src/vertical_position.h
b/src/vertical_position.h
index 6a0fff4313b9ad3e43d2b9dd3ab319e1c8881bbd..7bc057ee132f7d0b76404b488f185a746684865c 100644
(file)
--- 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<float> proportional;
public:
/** as a proportion of screen height offset from some reference point */
boost::optional<float> proportional;
- /** reference position for proportional */
- boost::optional<VerticalReference> reference;
- /** line number from the top of the screen */
+ /** line number offset from some reference point */
boost::optional<int> line;
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;
-
+ bool operator< (VerticalPosition const & other) const;
+
+ float fraction_from_screen_top () const;
};
};
-
+
}
#endif
}
#endif