|
|
|
|
@ -30,9 +30,8 @@ void scrollpadMouseButtonPressed(NC::Scrollpad *w, MEVENT me); |
|
|
|
|
/// An interface for various instantiations of Screen template class. Since C++ doesn't like
|
|
|
|
|
/// comparison of two different instantiations of the same template class we need the most
|
|
|
|
|
/// basic class to be non-template to allow it.
|
|
|
|
|
class BasicScreen |
|
|
|
|
struct BasicScreen |
|
|
|
|
{ |
|
|
|
|
public: |
|
|
|
|
/// Initializes all variables to zero
|
|
|
|
|
BasicScreen() : hasToBeResized(0), isInitialized(0) { } |
|
|
|
|
|
|
|
|
|
@ -124,9 +123,8 @@ bool isVisible(BasicScreen *screen); |
|
|
|
|
/// for the screen to be working properly and assumes that we didn't forget
|
|
|
|
|
/// about anything vital.
|
|
|
|
|
///
|
|
|
|
|
template <typename WindowT> class Screen : public BasicScreen |
|
|
|
|
template <typename WindowT> struct Screen : public BasicScreen |
|
|
|
|
{ |
|
|
|
|
public: |
|
|
|
|
typedef WindowT ScreenType; |
|
|
|
|
|
|
|
|
|
Screen() : w(0) { } |
|
|
|
|
|