add ScreenType for screen's type identification
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user