window: rename Where to Scroll and make it enum class

This commit is contained in:
Andrzej Rybczak
2012-10-05 21:25:22 +02:00
parent 044464962c
commit 1eb0003714
19 changed files with 81 additions and 81 deletions

View File

@@ -127,7 +127,7 @@ enum Format {
enum Border { brNone, brBlack, brRed, brGreen, brYellow, brBlue, brMagenta, brCyan, brWhite };
/// This indicates how much the window has to be scrolled
enum Where { wUp, wDown, wPageUp, wPageDown, wHome, wEnd };
enum class Scroll { Up, Down, PageUp, PageDown, Home, End };
/// Helper function that is invoked each time one will want
/// to obtain string from Window::getString() function
@@ -334,7 +334,7 @@ struct Window
/// Scrolls the window by amount of lines given in its parameter
/// @param where indicates how many lines it has to scroll
virtual void scroll(Where where);
virtual void scroll(Scroll where);
/// Applies function of compatible prototype to internal WINDOW pointer
/// The mostly used function in this case seem to be wclrtoeol(), which