diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-11 21:19:48 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-13 22:40:52 +0100 |
commit | e0e9997a5e92ce2a31f0ff4d139109be4434105b (patch) | |
tree | e8c3baa67eb65ffc16a9c96fdbb067d142f194bd /src/menu/frame_background.hpp | |
parent | 40caf6163ff2e1274d71146c207fbde0c099b089 (diff) | |
download | usdx-e0e9997a5e92ce2a31f0ff4d139109be4434105b.tar.gz usdx-e0e9997a5e92ce2a31f0ff4d139109be4434105b.tar.xz usdx-e0e9997a5e92ce2a31f0ff4d139109be4434105b.zip |
menu: generalized frame_background to background
background could now be a background for all DrawableControl instances
each subclass should call the parents draw() during executing the
draw() method for background painting
TODO: background should know the size of the control to only draw the
background there
Diffstat (limited to '')
-rw-r--r-- | src/menu/background.hpp (renamed from src/menu/frame_background.hpp) | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/menu/frame_background.hpp b/src/menu/background.hpp index 9cb7c504..4f997700 100644 --- a/src/menu/frame_background.hpp +++ b/src/menu/background.hpp @@ -24,27 +24,26 @@ * $Id$ */ -#ifndef FRAME_BACKGROUND_HPP -#define FRAME_BACKGROUND_HPP +#ifndef BACKGROUND_HPP +#define BACKGROUND_HPP #include "drawable.hpp" namespace usdx { - // Exception - class FrameBackgroundException { }; - - // FrameBackground - abstract class for FrameBackgrounds - class FrameBackground : public Drawable + // Background - abstract class for Backgrounds + class Background : public Drawable { public: - FrameBackground(); - virtual ~FrameBackground(); + virtual ~Background() {}; protected: + // abstract base class + Background() {}; + // no copy and no assignment - FrameBackground(const FrameBackground&); - FrameBackground& operator=(const FrameBackground&); + Background(const Background&); + Background& operator=(const Background&); }; }; |