diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-09-17 00:57:23 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-13 22:41:06 +0100 |
commit | 6bfb5f6d2c9b78c1439f9dfcc44005e6dc8056e4 (patch) | |
tree | d21e5a3ddbf5457c3c69b71924de254ac3f892e9 /src/menu | |
parent | b9d2b63125bfcdd3e027c0673c2cb58d69e26829 (diff) | |
download | usdx-6bfb5f6d2c9b78c1439f9dfcc44005e6dc8056e4.tar.gz usdx-6bfb5f6d2c9b78c1439f9dfcc44005e6dc8056e4.tar.xz usdx-6bfb5f6d2c9b78c1439f9dfcc44005e6dc8056e4.zip |
menu/background: use boost::noncopyable
Diffstat (limited to 'src/menu')
-rw-r--r-- | src/menu/background.hpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/menu/background.hpp b/src/menu/background.hpp index 660605dd..a971416c 100644 --- a/src/menu/background.hpp +++ b/src/menu/background.hpp @@ -26,26 +26,23 @@ #define BACKGROUND_HPP #include "drawable.hpp" +#include <boost/noncopyable.hpp> namespace usdx { class DrawableControl; - // Background - abstract class for Backgrounds - class Background : public Drawable + /** + * Abstract class for backgrounds. Subclasses of this class, implement + * different ways to draw the background for any DrawableControl. + */ + class Background : public Drawable, public boost::noncopyable { private: const DrawableControl& parent; - protected: - // abstract base class - Background(const DrawableControl&); - - // no copy and no assignment - Background(const Background&); - Background& operator=(const Background&); - public: + Background(const DrawableControl&); virtual ~Background(); /** |