Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-10-12 14:55:10 +0000
committerStijn Buys <ingar@osirion.org>2008-10-12 14:55:10 +0000
commitb417df720584c101f3799874a0c836a543a8d0a8 (patch)
treefb7105ed662f13753a6ab8d3efb047bad04f2316 /src/ui/bitmap.h
parent18383a5fc596bf9546f14d7393ee66c57720b116 (diff)
user interface updates, work-in-progress
Diffstat (limited to 'src/ui/bitmap.h')
-rw-r--r--src/ui/bitmap.h33
1 files changed, 23 insertions, 10 deletions
diff --git a/src/ui/bitmap.h b/src/ui/bitmap.h
index 1f60ef9..9bc1776 100644
--- a/src/ui/bitmap.h
+++ b/src/ui/bitmap.h
@@ -9,25 +9,38 @@
#include "ui/widget.h"
-namespace ui {
+namespace ui
+{
-class Bitmap : public Widget {
+class Bitmap : public Widget
+{
public:
- Bitmap (Widget *parent, const char *texture=0);
+ Bitmap(Widget *parent, const char *texture=0);
~Bitmap();
-
- inline std::string const &texture() const { return bitmap_texture; }
- void set_texture(std::string const & texture);
+
+ inline std::string const &texture() const {
+ return bitmap_texture;
+ }
+
+ inline math::Color const &color() const {
+ return bitmap_color;
+ }
+
+ void set_texture(const std::string & texture);
void set_texture(const char *texture);
-
+
+ void set_color(const math::Color &color);
+
/// print bitmap description
- virtual void print(size_t indent);
-
+ virtual void print(const size_t indent) const;
+
protected:
+ /// draw the bitmap as background
virtual void draw_background();
-
+
private:
std::string bitmap_texture;
+ math::Color bitmap_color;
};
}