aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/background_color.hpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-04-11 21:19:48 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-13 22:40:52 +0100
commite0e9997a5e92ce2a31f0ff4d139109be4434105b (patch)
treee8c3baa67eb65ffc16a9c96fdbb067d142f194bd /src/menu/background_color.hpp
parent40caf6163ff2e1274d71146c207fbde0c099b089 (diff)
downloadusdx-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_color.hpp (renamed from src/menu/frame_background_color.hpp)12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/menu/frame_background_color.hpp b/src/menu/background_color.hpp
index 2e850d2c..d91edcdf 100644
--- a/src/menu/frame_background_color.hpp
+++ b/src/menu/background_color.hpp
@@ -24,15 +24,15 @@
* $Id$
*/
-#ifndef FRAME_BACKGROUND_COLOR_HPP
-#define FRAME_BACKGROUND_COLOR_HPP
+#ifndef BACKGROUND_COLOR_HPP
+#define BACKGROUND_COLOR_HPP
-#include "frame_background.hpp"
+#include "background.hpp"
#include "utils/rgb_color.hpp"
namespace usdx
{
- class FrameBackgroundColor : public FrameBackground
+ class BackgroundColor : public Background
{
private:
RgbColor color;
@@ -41,8 +41,8 @@ namespace usdx
void draw(void);
public:
- FrameBackgroundColor(void);
- FrameBackgroundColor(RgbColor &color);
+ BackgroundColor(void);
+ BackgroundColor(RgbColor &color);
};
};