From 20debea202d87ce595b2ebc353d22204e9820efc Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 20 Dec 2009 20:04:30 +0000 Subject: (svn r18579) -Codechange: Add orientation to scrollbars. --- src/window_gui.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/window_gui.h') diff --git a/src/window_gui.h b/src/window_gui.h index 2f5b44d06..3cc9f45ea 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -170,10 +170,16 @@ enum WindowDefaultFlag { */ class Scrollbar { private: - uint16 count; ///< Number of elements in the list - uint16 cap; ///< Number of visible elements of the scroll bar - uint16 pos; ///< Index of first visible item of the list + const bool is_vertical; ///< Scrollbar has vertical orientation. + uint16 count; ///< Number of elements in the list. + uint16 cap; ///< Number of visible elements of the scroll bar. + uint16 pos; ///< Index of first visible item of the list. + public: + Scrollbar(bool is_vertical) : is_vertical(is_vertical) + { + } + /** * Gets the number of elements in the list * @return the number of elements -- cgit v1.2.3-54-g00ecf