media library: make screens non-pointer

This commit is contained in:
Andrzej Rybczak
2012-09-14 17:33:53 +02:00
parent 3a1175343f
commit 0d27d6ded3
5 changed files with 294 additions and 287 deletions

View File

@@ -35,6 +35,9 @@ struct BasicScreen
BasicScreen() : hasToBeResized(false) { }
virtual ~BasicScreen() { }
/// @see Screen::isActiveWindow()
virtual bool isActiveWindow(const NC::Window &w_) = 0;
/// @see Screen::activeWindow()
virtual void *activeWindow() = 0;
@@ -137,6 +140,10 @@ public:
virtual ~Screen() { }
virtual bool isActiveWindow(const NC::Window &w_) OVERRIDE {
return &accessor::apply(w) == &w_;
}
/// Since some screens contain more that one window
/// it's useful to determine the one that is being
/// active