add ScreenType for screen's type identification

This commit is contained in:
Andrzej Rybczak
2012-09-16 03:49:11 +02:00
parent f691ab265f
commit f0a0734728
21 changed files with 143 additions and 0 deletions

View File

@@ -23,6 +23,7 @@
#include "menu.h"
#include "scrollpad.h"
#include "screen_type.h"
void genericMouseButtonPressed(NC::Window &w, MEVENT me);
void scrollpadMouseButtonPressed(NC::Scrollpad &w, MEVENT me);
@@ -60,6 +61,9 @@ struct BaseScreen
/// @return title of the screen
virtual std::wstring title() = 0;
/// @return type of the screen
virtual ScreenType type() = 0;
/// If the screen contantly has to update itself
/// somehow, it should be called by this function.
virtual void update() = 0;